@dcl/shop 0.1.0-29571500722.commit-8ea45d8 → 0.1.0-29588264451.commit-627b4b7
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/{AnimatedBackground-Y-secaKv.js → AnimatedBackground-psFU9eqJ.js} +3 -3
- package/assets/Assets-iKVqmFqq.js +1 -0
- package/assets/Cart-B0oxrKWW.js +1 -0
- package/assets/Cart-C612IvK3.css +1 -0
- package/assets/{CircularProgress-DF1tx4Pz.js → CircularProgress-Fg-Nhc1W.js} +2 -2
- package/assets/Collection-D5Q48x8i.js +1 -0
- package/assets/{ConstantsUtil-BTo1-KgH.js → ConstantsUtil-CCJ0yRd8.js} +1 -1
- package/assets/{ContentClient-DahG0FsN.js → ContentClient-CiSvC4he.js} +1 -1
- package/assets/Creator-Cw25k_kz.js +1 -0
- package/assets/CssVarsProvider-D1D1cNqm.js +24 -0
- package/assets/{DeploymentBuilder-DCLyMp7S.js → DeploymentBuilder-Du1wr7ad.js} +1 -1
- package/assets/{ExchangeController-5UZnaMYm.js → ExchangeController-DR6BBi2L.js} +1 -1
- package/assets/GetCredits-HKG4BM_P.js +1 -0
- package/assets/{HelpersUtil-DsOycveq.js → HelpersUtil-31KPVf4r.js} +1 -1
- package/assets/{ImportListings-Ry47KtP_.js → ImportListings-dKZfPQUt.js} +1 -1
- package/assets/ItemDetail-BMi8a81V.css +1 -0
- package/assets/ItemDetail-Cx-6T0Eg.js +2 -0
- package/assets/{LoadMore-DsKzH4Rv.js → LoadMore-CiZkVzux.js} +1 -1
- package/assets/MarketCheckout-Qn1ixrkb.js +1 -0
- package/assets/MyAssets-DxI94ipn.js +1 -0
- package/assets/{MyFavorites-BfWQjhlL.js → MyFavorites-D2VaWS1B.js} +1 -1
- package/assets/{MyPurchases-DbU97xcR.js → MyPurchases-B9emkBFN.js} +1 -1
- package/assets/{NetworkUtil-DInevqnn.js → NetworkUtil-Yv-DdqEo.js} +1 -1
- package/assets/{NotFound-CWys1EXA.js → NotFound-E0wDMFCK.js} +1 -1
- package/assets/{StoreSettings-C-yDm4Ah.js → StoreSettings-DfKsXLjF.js} +1 -1
- package/assets/Success-D8vbmLlB.js +1 -0
- package/assets/{SwapController-Bau8y3ss.js → SwapController-BhWJpnsS.js} +1 -1
- package/assets/{TradeService-sWmitO7N.js → TradeService-CzTJfCBU.js} +1 -1
- package/assets/{W3MFrameProviderSingleton-BrDTQqcr.js → W3MFrameProviderSingleton-QTe845Ty.js} +3 -3
- package/assets/{WebCryptoP256-Clorun9S.js → WebCryptoP256-C9DwfYdN.js} +1 -1
- package/assets/{basic-Co2ks3tP.js → basic-BZccaaZw.js} +1 -1
- package/assets/{biconomy-DAm_-Hm_.js → biconomy-DB7oVSPZ.js} +1 -1
- package/assets/{browser-9oFjBwrz.js → browser-L8b8z1bK.js} +1 -1
- package/assets/browser-ponyfill-Cl4XgbUp.js +1 -0
- package/assets/{browser-ponyfill-DMgE6PM5.js → browser-ponyfill-jziBOMa-.js} +1 -1
- package/assets/{buy-y9zg-9gr.js → buy-D_7yggiZ.js} +1 -1
- package/assets/{buy-gasless-B4g8GiJr.js → buy-gasless-DdXBIm99.js} +1 -1
- package/assets/cart-checkout-C6slCzLp.js +1 -0
- package/assets/categories-CBvVTfQE.css +1 -0
- package/assets/categories-CS5KEV15.js +1 -0
- package/assets/{ccip-i7tJF0Hj.js → ccip-Bs_9Z_ZN.js} +1 -1
- package/assets/{ccip-B8JdVFq5.js → ccip-CRir71Ts.js} +1 -1
- package/assets/{chains-BQ5Swd2q.js → chains-sL9nr1ux.js} +1 -1
- package/assets/collection-BB4WIsDf.js +1 -0
- package/assets/colors-LINLm1ux.js +1 -0
- package/assets/{common-CBPtpBt7.js → common-Dyx8k-hp.js} +1 -1
- package/assets/{controller-BVAEs_Ol.js → controller-8YCt_5kO.js} +2 -2
- package/assets/{core-DXAXZQxt.js → core-_p71vehW.js} +4 -4
- package/assets/{custom-C00ZS-dv.js → custom-D5gy9Lbk.js} +1 -1
- package/assets/{data-capture-BfGns_F9.js → data-capture-D4KpcM2w.js} +1 -1
- package/assets/decimals-Bkiwsrz3.js +1 -0
- package/assets/{decimals-7LZbjdh-.js → decimals-DAdpv8M5.js} +1 -1
- package/assets/{detectExtension-C_qqqhXd.js → detectExtension-BwC-gZ7s.js} +1 -1
- package/assets/{email-10XDB7Ed.js → email-DoKqUCg3.js} +1 -1
- package/assets/{embedded-wallet-Coq3FP2j.js → embedded-wallet-DFjP-9W6.js} +1 -1
- package/assets/{emotion-styled.browser.esm-Col8rSBp.js → emotion-styled.browser.esm-B7PezGnO.js} +1 -1
- package/assets/{engine-DNO34GZS.js → engine-C07V9FFP.js} +1 -1
- package/assets/{estimate-l1-fee-ttG5TVsi.js → estimate-l1-fee-CbSYXxVq.js} +1 -1
- package/assets/eth_estimateGas-CHt9spnf.js +1 -0
- package/assets/{eth_getStorageAt-ZjeD4sfh.js → eth_getStorageAt-Dzigs9Zu.js} +1 -1
- package/assets/eth_getTransactionCount-CDY9h_Rg.js +1 -0
- package/assets/{ethereum-CD3dxaW_.js → ethereum-gQdvRN4F.js} +1 -1
- package/assets/{ethers-DwWf2RqE.js → ethers-DArfy-QF.js} +1 -1
- package/assets/{extractIPFS-CFw95IDm.js → extractIPFS-BOTNSryE.js} +1 -1
- package/assets/{features-BBwkLwo8.js → features-C90RUzSP.js} +1 -1
- package/assets/{fetchTokenMetadata-BbJeox1b.js → fetchTokenMetadata-BKZfKsNV.js} +2 -2
- package/assets/{fortmatic-DhmlcDbL.js → fortmatic-BAdaY-Dp.js} +1 -1
- package/assets/get-ecosystem-wallet-info-WLLUCIzd.js +1 -0
- package/assets/{getBalance-BVXxyvdU.js → getBalance-Bb_-F40S.js} +2 -2
- package/assets/{getInstalledModules-92CJz4J0.js → getInstalledModules-BOPp6l-B.js} +1 -1
- package/assets/{getNFT-By7tEt1z.js → getNFT-DsdBNES9.js} +1 -1
- package/assets/{getNFT-6Z-JCPcj.js → getNFT-jiRKQ5Oo.js} +2 -2
- package/assets/getOverlayAlpha-CM9JvcJV.js +1 -0
- package/assets/{hashTypedData-UUOD4hvk.js → hashTypedData-DONiI8QZ.js} +1 -1
- package/assets/{hashTypedData-78L5umOY.js → hashTypedData-vGDzeBcA.js} +1 -1
- package/assets/{import-BCIlZ3yx.js → import-DM-iC_9y.js} +1 -1
- package/assets/{in-app-wallet-calls-Dx8qnM7-.js → in-app-wallet-calls-C_aNlFmv.js} +1 -1
- package/assets/{index-BlFZSvWx.js → index--gVKrRw0.js} +1 -1
- package/assets/{index-DFGIa8d3.js → index-57pYnjcK.js} +1 -1
- package/assets/{index-Dfn1y1uF.js → index-7DJmnNdg.js} +1 -1
- package/assets/{index-BVRx9Ot1.js → index-7PEMu-vS.js} +1 -1
- package/assets/{index-CIx1sZmW.js → index-8TBzmL0l.js} +1 -1
- package/assets/{index-DNT62M3w.js → index-B2Zw4G7Z.js} +1 -1
- package/assets/index-BAYW-Y7J.css +1 -0
- package/assets/{index-BsVbqXUp.js → index-BEob012O.js} +3 -3
- package/assets/{index-BAoHOXze.js → index-BIJTdhnz.js} +2 -2
- package/assets/{index-B7PXWLXB.js → index-BNKsMdm-.js} +1 -1
- package/assets/{index-DLXELZQv.js → index-BNsBOmtc.js} +1 -1
- package/assets/{index-DKP6gkl4.js → index-BQrBXxNO.js} +1 -1
- package/assets/{index-DjVz63Zr.js → index-BUzSFM10.js} +1 -1
- package/assets/{index-D-BMnyQb.js → index-BVEDAipP.js} +1 -1
- package/assets/{index-C4JAp-Oa.js → index-BVpuOhLG.js} +3 -3
- package/assets/{index-CApcD-t8.js → index-Bj7GkEZm.js} +1 -1
- package/assets/{index-DN8pYCNl.js → index-Bn_Nt76C.js} +1 -1
- package/assets/{index-BYRbnzmu.js → index-BpQeHVbA.js} +1 -1
- package/assets/{index-C1wVfhuw.js → index-BtVa_Kh7.js} +1 -1
- package/assets/{index-Ds-AFLHc.js → index-Bv4pyelF.js} +1 -1
- package/assets/{index-C3xlbPh_.js → index-C02-3pKD.js} +2 -2
- package/assets/{index-KYyY5J5u.js → index-C2G2lljO.js} +1 -1
- package/assets/{index-DsVVBfxP.js → index-C5j8nmW-.js} +1 -1
- package/assets/{index-CjpJ162L.js → index-C6Uar8kN.js} +1 -1
- package/assets/{index-ZvQFinLo.js → index-C7gttTv8.js} +1 -1
- package/assets/{index-CAMCLJ-3.js → index-C8i-4YQe.js} +1 -1
- package/assets/index-CBVNSjCQ.js +74 -0
- package/assets/{index-DUc6Q2Iz.js → index-CE5ZSWni.js} +1 -1
- package/assets/{index-By6STTNb.js → index-CFasXWsQ.js} +1 -1
- package/assets/{index-DcmcHRml.js → index-CFy8QjLL.js} +1 -1
- package/assets/index-CIiavQLK.js +1 -0
- package/assets/{index-Bvx0NOxN.js → index-CRTJ7_WQ.js} +1 -1
- package/assets/{index-D8XPW5rW.js → index-CSm8067w.js} +1 -1
- package/assets/{index-C_x2eFau.js → index-CThtDCr0.js} +3 -3
- package/assets/{index-DhQcB2cI.js → index-C__ZUWCs.js} +1 -1
- package/assets/index-ChMOJahJ.js +2 -0
- package/assets/{index-94XD4C5w.js → index-Ckj9N8kM.js} +1 -1
- package/assets/{index-CBWS4Ml_.js → index-Cmhu1R9V.js} +1 -1
- package/assets/{index-DHM1o-4K.js → index-CnWEn3Fl.js} +1 -1
- package/assets/{index-lt7oq_YM.js → index-CsTr0LfC.js} +1 -1
- package/assets/{index-Bsx6GubH.js → index-Cv14wakP.js} +1 -1
- package/assets/{index-CeR8VFbd.js → index-D3SxIXox.js} +1 -1
- package/assets/{index-CJD-gYKv.js → index-D66LUjvb.js} +1 -1
- package/assets/{index-CPYtbWCQ.js → index-D8WLCETG.js} +1 -1
- package/assets/{index-6jN-_TNa.js → index-D8WMIH5c.js} +1 -1
- package/assets/index-DD6TVIkI.js +1 -0
- package/assets/{index-CC32N6uw.js → index-DHJgxESc.js} +1 -1
- package/assets/{index-CGbJjZCV.js → index-DO9rihjD.js} +1 -1
- package/assets/{index-DIYL1_Ov.js → index-DSs6L904.js} +1 -1
- package/assets/{index-DhedohT0.js → index-DaIODAHU.js} +1 -1
- package/assets/index-DgPN63Jh.js +103 -0
- package/assets/{index-D7Fx-Qac.js → index-Dgwg-DaP.js} +1 -1
- package/assets/{index-BBZ21lbu.js → index-DmQaEVTR.js} +1 -1
- package/assets/index-DxBzK74p.js +1 -0
- package/assets/{index-Ct0w7Ogt.js → index-DzmAUU0P.js} +1 -1
- package/assets/{index-DkjQWYoB.js → index-MqZwF8o9.js} +2 -2
- package/assets/{index-P4QO1O0D.js → index-QHZTwn8s.js} +1 -1
- package/assets/{index-BlNwDD1i.js → index-SOuBSYKv.js} +1 -1
- package/assets/{index-DaDHmqAS.js → index-TNdqfy5A.js} +2 -2
- package/assets/{index-BsFR4koq.js → index-fGWdBWqW.js} +1 -1
- package/assets/{index-DPyb1X7J.js → index-gEVnIhEr.js} +1 -1
- package/assets/{index-DNGhO1UM.js → index-gt71uI0K.js} +1 -1
- package/assets/{index-Dp3Py-Ws.js → index-sFssfP96.js} +1 -1
- package/assets/{index-B0PF-s9M.js → index-xHNUVGAh.js} +1 -1
- package/assets/{index-ClxTTupQ.js → index-zHd02W0T.js} +1 -1
- package/assets/{index.es-CNLSXMT-.js → index.es-B5B8Zcyr.js} +1 -1
- package/assets/{index.es-DGT1W3bC.js → index.es-C122sfII.js} +1 -1
- package/assets/{index.es-EcAKXlCW.js → index.es-D2JDwbaX.js} +4 -4
- package/assets/{localBatchGatewayRequest-CUupTU5s.js → localBatchGatewayRequest-aLhcfaIA.js} +1 -1
- package/assets/{mana-rate-TrkgOUFu.js → mana-rate-DM_I1GlP.js} +1 -1
- package/assets/{native-B49T_qnV.js → native-DBJATukw.js} +1 -1
- package/assets/network-Dev_1fOd.js +1 -0
- package/assets/{networks-BEAzlz87.js → networks-C5Fm0Wg2.js} +1 -1
- package/assets/{onramp-BHjPyFrf.js → onramp-DkCes_uB.js} +1 -1
- package/assets/{openzeppelin-BqEz23oI.js → openzeppelin-Do5qc-L4.js} +1 -1
- package/assets/{ownerOf-D2Ruvcgr.js → ownerOf-B7-bZ1Kj.js} +1 -1
- package/assets/{parseNft-C4rXbAm3.js → parseNft-BnBeb8zU.js} +2 -2
- package/assets/{parseSignature-1_3SuD3y.js → parseSignature-BXiUrtE0.js} +3 -3
- package/assets/{parseSignature-B6_wXS1t.js → parseSignature-gA3whR_I.js} +1 -1
- package/assets/{pay-with-exchange-AvS-iWv3.js → pay-with-exchange-Bfj0m_wp.js} +1 -1
- package/assets/payments-Cz9uOQEa.js +1 -0
- package/assets/{qr-overlay-Di1sYsV2.js → qr-overlay-tCTGCDoP.js} +3 -3
- package/assets/{react-C51i12iP.js → react-yytiy0wi.js} +1 -1
- package/assets/{receive-CGzdSteR.js → receive-BB-3p_8X.js} +1 -1
- package/assets/{resolveImplementation-CaXsKbDx.js → resolveImplementation-AZ8V1faE.js} +1 -1
- package/assets/resume-buy-Bf0zIH7y.js +1 -0
- package/assets/{rpc-DG-6qjB5.js → rpc-DfJIwLRx.js} +1 -1
- package/assets/{secp256k1-ChfveZcd.js → secp256k1-Bmuoeuaz.js} +1 -1
- package/assets/{secp256k1-DWucSlB-.js → secp256k1-D5GxePTM.js} +1 -1
- package/assets/{secp256k1-B9CXpvLY.js → secp256k1-lxVndZFi.js} +1 -1
- package/assets/{send-D5cFILBF.js → send-DmW5J-Nc.js} +1 -1
- package/assets/{send-batch-transaction-B3lTEUOF.js → send-batch-transaction-CZjLQhJF.js} +1 -1
- package/assets/{send-eip712-transaction-ByX_--Vb.js → send-eip712-transaction-BhyQ0a_B.js} +2 -2
- package/assets/{send-gasless-transaction-sFztvg-i.js → send-gasless-transaction-CXbVlKhB.js} +2 -2
- package/assets/{sendRawTransaction-CR5Mmi6b.js → sendRawTransaction-BGdiWFeb.js} +3 -3
- package/assets/{serializeTransaction-D79jfd3_.js → serializeTransaction-DykKczc7.js} +1 -1
- package/assets/{session-proposal-Cwo9ltsm.js → session-proposal-BEX_HaKf.js} +1 -1
- package/assets/{session-request-l_FrHUZo.js → session-request-DR4MsaR6.js} +2 -2
- package/assets/{sha256-B1PPmRn9.js → sha256-Dlxe-c_a.js} +1 -1
- package/assets/{signing-Sn5rFCHS.js → signing-DznnvpB3.js} +5 -5
- package/assets/{socials-CqUkp7RR.js → socials-BIESIfY8.js} +1 -1
- package/assets/{swaps-hvkTELkc.js → swaps-CA_8qfYn.js} +1 -1
- package/assets/{thirdweb-Bfq5h25u.js → thirdweb-UauMP3KV.js} +3 -3
- package/assets/{totalSupply-yip6OCLy.js → totalSupply-V0CpLejD.js} +1 -1
- package/assets/{trade-encoding-42N07h92.js → trade-encoding-CWQaROcB.js} +1 -1
- package/assets/{transactionReceipt-DADNrKU6.js → transactionReceipt-T_4Pqj5L.js} +1 -1
- package/assets/{transactions-DQBiQzWz.js → transactions-CCKmzO8P.js} +1 -1
- package/assets/{useInfiniteGrid-CjcJxtXA.js → useInfiniteGrid-BwrFUhaa.js} +1 -1
- package/assets/useStore-D9l09yvh.js +2 -0
- package/assets/useTheme-B2pFHCn2.js +1 -0
- package/assets/useTheme-Bf8Lxsxi.js +1 -0
- package/assets/{utils-rl7KiNyp.js → utils-BDQ8DS2k.js} +1 -1
- package/assets/{verifyHash-CNDR4v8f.js → verifyHash-DictgvCd.js} +1 -1
- package/assets/{w3m-modal-Clo6bKVE.js → w3m-modal-DEg0nzZj.js} +1 -1
- package/assets/{w3m-modal-GMd0MTV7.js → w3m-modal-DjfQ6wwU.js} +1 -1
- package/assets/{wait-for-tx-receipt-uU57b-HM.js → wait-for-tx-receipt-agyY9QD2.js} +1 -1
- package/assets/{wallet-kind-PnN45EW0.js → wallet-kind-Jzl4cyiP.js} +1 -1
- package/assets/{wallets-CgInyYuE.js → wallets-_A4Bjek9.js} +6 -6
- package/assets/{web-connector-DitPEy2c.js → web-connector-BaXQsZJI.js} +3 -3
- package/assets/{writeContract-CzZHvjcP.js → writeContract-D9YLPdhX.js} +1 -1
- package/assets/{zora-sepolia-Cmu9LYjr.js → zora-sepolia-B35hC1NB.js} +1 -1
- package/assets/{zoraTestnet-l_-faq0L.js → zoraTestnet-BC6E1i5C.js} +1 -1
- package/index.html +8 -8
- package/package.json +2 -2
- package/assets/Assets-sWyggSzY.js +0 -1
- package/assets/Cart-DVt0m7-J.js +0 -1
- package/assets/Collection-D-dr6oYY.js +0 -1
- package/assets/Creator-DpZ1qFEV.js +0 -1
- package/assets/GetCredits-B-2Nu_Cx.js +0 -1
- package/assets/ItemDetail--AzXh8S2.css +0 -1
- package/assets/ItemDetail-CblzRtB5.js +0 -2
- package/assets/MyAssets-26oYZL-x.js +0 -1
- package/assets/Success-CW65bxXN.js +0 -1
- package/assets/browser-ponyfill-Djb5Py6a.js +0 -1
- package/assets/categories-DbX2Gw4H.js +0 -1
- package/assets/categories-FoGfjyVm.css +0 -1
- package/assets/collection-CS59m6GL.js +0 -1
- package/assets/decimals-CeoXdXWM.js +0 -1
- package/assets/eth_estimateGas-BiFrKNU-.js +0 -1
- package/assets/eth_getTransactionCount-BjHbR3QT.js +0 -1
- package/assets/get-ecosystem-wallet-info-BotVMG7h.js +0 -1
- package/assets/index-B4tMFfvy.js +0 -74
- package/assets/index-BcX-FSIU.css +0 -1
- package/assets/index-C1u3RQ96.js +0 -103
- package/assets/index-DH3Yzbz3.js +0 -1
- package/assets/index-QnApYtWL.js +0 -1
- package/assets/network-44dqSlR2.js +0 -1
- package/assets/useStore-zhFVY9fU.js +0 -2
package/assets/index-C1u3RQ96.js
DELETED
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-QnApYtWL.js","assets/react-C51i12iP.js","assets/network-44dqSlR2.js","assets/index-Bsx6GubH.js","assets/emotion-styled.browser.esm-Col8rSBp.js","assets/ethers-DwWf2RqE.js","assets/index-BAoHOXze.js","assets/events-DQ172AOg.js","assets/TradeService-sWmitO7N.js","assets/index-DNT62M3w.js","assets/index-BsVbqXUp.js","assets/index-Dp3Py-Ws.js","assets/index-B4tMFfvy.js","assets/CircularProgress-DF1tx4Pz.js","assets/AnimatedBackground-Y-secaKv.js","assets/AnimatedBackground-CiurwFBv.css","assets/Assets-sWyggSzY.js","assets/mana-rate-TrkgOUFu.js","assets/categories-DbX2Gw4H.js","assets/categories-FoGfjyVm.css","assets/LoadMore-DsKzH4Rv.js","assets/buy-y9zg-9gr.js","assets/trade-encoding-42N07h92.js","assets/buy-gasless-B4g8GiJr.js","assets/useInfiniteGrid-CjcJxtXA.js","assets/ItemDetail-CblzRtB5.js","assets/ItemDetail--AzXh8S2.css","assets/Collection-D-dr6oYY.js","assets/collection-CS59m6GL.js","assets/collection-CrgnzsVL.css","assets/useStore-zhFVY9fU.js","assets/Collection-CxRRuAdy.css","assets/Creator-DpZ1qFEV.js","assets/Creator-DJqbQ8AX.css","assets/StoreSettings-C-yDm4Ah.js","assets/StoreSettings-BsV7iEJX.css","assets/MyAssets-26oYZL-x.js","assets/import-BCIlZ3yx.js","assets/wallet-kind-PnN45EW0.js","assets/MyAssets-BqJHbQOZ.css","assets/MyFavorites-BfWQjhlL.js","assets/MyPurchases-DbU97xcR.js","assets/ImportListings-Ry47KtP_.js","assets/ImportListings-Cdx3om4x.css","assets/Cart-DVt0m7-J.js","assets/GetCredits-B-2Nu_Cx.js","assets/Success-CW65bxXN.js","assets/NotFound-CWys1EXA.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var h2=Object.defineProperty;var Hb=e=>{throw TypeError(e)};var y2=(e,t,r)=>t in e?h2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var vi=(e,t,r)=>y2(e,typeof t!="symbol"?t+"":t,r),xf=(e,t,r)=>t.has(e)||Hb("Cannot "+r);var le=(e,t,r)=>(xf(e,t,"read from private field"),r?r.call(e):t.get(e)),ze=(e,t,r)=>t.has(e)?Hb("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),De=(e,t,r,n)=>(xf(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),nt=(e,t,r)=>(xf(e,t,"access private method"),r);var Gu=(e,t,r,n)=>({set _(i){De(e,t,i,r)},get _(){return le(e,t,n)}});import{r as ve,j as C,i as qC,g as Vd,R as BC,c as U_,L as Ra,l as F_,e as mi,k as g2,u as Qv,b as _2,m as Bi,a as v2,n as E2,o as Er,N as Vb,p as b2,B as S2}from"./react-C51i12iP.js";import{g as Od,p as _d,W as T2,m as w2,h as xb,f as UC}from"./ethers-DwWf2RqE.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var $c=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(){}},Oa,Ri,Ps,OC,I2=(OC=class extends $c{constructor(){super();ze(this,Oa);ze(this,Ri);ze(this,Ps);De(this,Ps,t=>{if(typeof window<"u"&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){le(this,Ri)||this.setEventListener(le(this,Ps))}onUnsubscribe(){var t;this.hasListeners()||((t=le(this,Ri))==null||t.call(this),De(this,Ri,void 0))}setEventListener(t){var r;De(this,Ps,t),(r=le(this,Ri))==null||r.call(this),De(this,Ri,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){le(this,Oa)!==t&&(De(this,Oa,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof le(this,Oa)=="boolean"?le(this,Oa):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Oa=new WeakMap,Ri=new WeakMap,Ps=new WeakMap,OC),Zv=new I2,R2={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Ai,Jv,NC,A2=(NC=class{constructor(){ze(this,Ai,R2);ze(this,Jv,!1)}setTimeoutProvider(e){De(this,Ai,e)}setTimeout(e,t){return le(this,Ai).setTimeout(e,t)}clearTimeout(e){le(this,Ai).clearTimeout(e)}setInterval(e,t){return le(this,Ai).setInterval(e,t)}clearInterval(e){le(this,Ai).clearInterval(e)}},Ai=new WeakMap,Jv=new WeakMap,NC),Aa=new A2;function O2(e){setTimeout(e,0)}var N2=typeof window>"u"||"Deno"in globalThis;function kr(){}function P2(e,t){return typeof e=="function"?e(t):e}function H_(e){return typeof e=="number"&&e>=0&&e!==1/0}function FC(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Di(e,t){return typeof e=="function"?e(t):e}function zr(e,t){return typeof e=="function"?e(t):e}function Gb(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:a,queryKey:s,stale:o}=e;if(s){if(n){if(t.queryHash!==eE(s,t.options))return!1}else if(!_c(t.queryKey,s))return!1}if(r!=="all"){const c=t.isActive();if(r==="active"&&!c||r==="inactive"&&c)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||i&&i!==t.state.fetchStatus||a&&!a(t))}function zb(e,t){const{exact:r,status:n,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(gc(t.options.mutationKey)!==gc(a))return!1}else if(!_c(t.options.mutationKey,a))return!1}return!(n&&t.state.status!==n||i&&!i(t))}function eE(e,t){return((t==null?void 0:t.queryKeyHashFn)||gc)(e)}function gc(e){return JSON.stringify(e,(t,r)=>x_(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function _c(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>_c(e[r],t[r])):!1}var C2=Object.prototype.hasOwnProperty;function HC(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=Wb(e)&&Wb(t);if(!n&&!(x_(e)&&x_(t)))return t;const a=(n?e:Object.keys(e)).length,s=n?t:Object.keys(t),o=s.length,c=n?new Array(o):{};let l=0;for(let u=0;u<o;u++){const d=n?u:s[u],f=e[d],p=t[d];if(f===p){c[d]=f,(n?u<a:C2.call(e,d))&&l++;continue}if(f===null||p===null||typeof f!="object"||typeof p!="object"){c[d]=p;continue}const y=HC(f,p,r+1);c[d]=y,y===f&&l++}return a===o&&l===a?e:c}function V_(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 Wb(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function x_(e){if(!Yb(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!Yb(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Yb(e){return Object.prototype.toString.call(e)==="[object Object]"}function M2(e){return new Promise(t=>{Aa.setTimeout(t,e)})}function G_(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?HC(e,t):t}function Gf(e){return e}function j2(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function D2(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var tE=Symbol();function VC(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===tE?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function xC(e,t){return typeof e=="function"?e(...t):!!e}function L2(e,t,r){let n=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),n||(n=!0,i.aborted?r():i.addEventListener("abort",r,{once:!0})),i)}),e}var vc=(()=>{let e=()=>N2;return{isServer(){return e()},setIsServer(t){e=t}}})();function z_(){let e,t;const r=new Promise((i,a)=>{e=i,t=a});r.status="pending",r.catch(()=>{});function n(i){Object.assign(r,i),delete r.resolve,delete r.reject}return r.resolve=i=>{n({status:"fulfilled",value:i}),e(i)},r.reject=i=>{n({status:"rejected",reason:i}),t(i)},r}var $2=O2;function k2(){let e=[],t=0,r=o=>{o()},n=o=>{o()},i=$2;const a=o=>{t?e.push(o):i(()=>{r(o)})},s=()=>{const o=e;e=[],o.length&&i(()=>{n(()=>{o.forEach(c=>{r(c)})})})};return{batch:o=>{let c;t++;try{c=o()}finally{t--,t||s()}return c},batchCalls:o=>(...c)=>{a(()=>{o(...c)})},schedule:a,setNotifyFunction:o=>{r=o},setBatchNotifyFunction:o=>{n=o},setScheduler:o=>{i=o}}}var fr=k2(),Cs,Oi,Ms,PC,q2=(PC=class extends $c{constructor(){super();ze(this,Cs,!0);ze(this,Oi);ze(this,Ms);De(this,Ms,t=>{if(typeof window<"u"&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){le(this,Oi)||this.setEventListener(le(this,Ms))}onUnsubscribe(){var t;this.hasListeners()||((t=le(this,Oi))==null||t.call(this),De(this,Oi,void 0))}setEventListener(t){var r;De(this,Ms,t),(r=le(this,Oi))==null||r.call(this),De(this,Oi,t(this.setOnline.bind(this)))}setOnline(t){le(this,Cs)!==t&&(De(this,Cs,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return le(this,Cs)}},Cs=new WeakMap,Oi=new WeakMap,Ms=new WeakMap,PC),Nd=new q2;function B2(e){return Math.min(1e3*2**e,3e4)}function GC(e){return(e??"online")==="online"?Nd.isOnline():!0}var W_=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function zC(e){let t=!1,r=0,n;const i=z_(),a=()=>i.status!=="pending",s=g=>{var b;if(!a()){const O=new W_(g);f(O),(b=e.onCancel)==null||b.call(e,O)}},o=()=>{t=!0},c=()=>{t=!1},l=()=>Zv.isFocused()&&(e.networkMode==="always"||Nd.isOnline())&&e.canRun(),u=()=>GC(e.networkMode)&&e.canRun(),d=g=>{a()||(n==null||n(),i.resolve(g))},f=g=>{a()||(n==null||n(),i.reject(g))},p=()=>new Promise(g=>{var b;n=O=>{(a()||l())&&g(O)},(b=e.onPause)==null||b.call(e)}).then(()=>{var g;n=void 0,a()||(g=e.onContinue)==null||g.call(e)}),y=()=>{if(a())return;let g;const b=r===0?e.initialPromise:void 0;try{g=b??e.fn()}catch(O){g=Promise.reject(O)}Promise.resolve(g).then(d).catch(O=>{var v;if(a())return;const m=e.retry??(vc.isServer()?0:3),T=e.retryDelay??B2,I=typeof T=="function"?T(r,O):T,h=m===!0||typeof m=="number"&&r<m||typeof m=="function"&&m(r,O);if(t||!h){f(O);return}r++,(v=e.onFail)==null||v.call(e,r,O),M2(I).then(()=>l()?void 0:p()).then(()=>{t?f(O):y()})})};return{promise:i,status:()=>i.status,cancel:s,continue:()=>(n==null||n(),i),cancelRetry:o,continueRetry:c,canStart:u,start:()=>(u()?y():p().then(y),i)}}var Na,CC,WC=(CC=class{constructor(){ze(this,Na)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),H_(this.gcTime)&&De(this,Na,Aa.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(vc.isServer()?1/0:300*1e3))}clearGcTimeout(){le(this,Na)!==void 0&&(Aa.clearTimeout(le(this,Na)),De(this,Na,void 0))}},Na=new WeakMap,CC);function U2(e){return{onFetch:(t,r)=>{var u,d,f,p,y;const n=t.options,i=(f=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,a=((p=t.state.data)==null?void 0:p.pages)||[],s=((y=t.state.data)==null?void 0:y.pageParams)||[];let o={pages:[],pageParams:[]},c=0;const l=async()=>{let g=!1;const b=T=>{L2(T,()=>t.signal,()=>g=!0)},O=VC(t.options,t.fetchOptions),m=async(T,I,h)=>{if(g)return Promise.reject(t.signal.reason);if(I==null&&T.pages.length)return Promise.resolve(T);const E=(()=>{const H={client:t.client,queryKey:t.queryKey,pageParam:I,direction:h?"backward":"forward",meta:t.options.meta};return b(H),H})(),N=await O(E),{maxPages:M}=t.options,q=h?D2:j2;return{pages:q(T.pages,N,M),pageParams:q(T.pageParams,I,M)}};if(i&&a.length){const T=i==="backward",I=T?YC:Y_,h={pages:a,pageParams:s},v=I(n,h);o=await m(h,v,T)}else{const T=e??a.length;do{const I=c===0?s[0]??n.initialPageParam:Y_(n,o);if(c>0&&I==null)break;o=await m(o,I),c++}while(c<T)}return o};t.options.persister?t.fetchFn=()=>{var g,b;return(b=(g=t.options).persister)==null?void 0:b.call(g,l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=l}}}function Y_(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 YC(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}function EJ(e,t){return t?Y_(e,t)!=null:!1}function bJ(e,t){return!t||!e.getPreviousPageParam?!1:YC(e,t)!=null}var js,Pa,Ds,Jr,Ca,ir,Cc,Ma,Gr,KC,ai,MC,F2=(MC=class extends WC{constructor(t){super();ze(this,Gr);ze(this,js);ze(this,Pa);ze(this,Ds);ze(this,Jr);ze(this,Ca);ze(this,ir);ze(this,Cc);ze(this,Ma);De(this,Ma,!1),De(this,Cc,t.defaultOptions),this.setOptions(t.options),this.observers=[],De(this,Ca,t.client),De(this,Jr,le(this,Ca).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,De(this,Pa,Xb(this.options)),this.state=t.state??le(this,Pa),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return le(this,js)}get promise(){var t;return(t=le(this,ir))==null?void 0:t.promise}setOptions(t){if(this.options={...le(this,Cc),...t},t!=null&&t._type&&De(this,js,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=Xb(this.options);r.data!==void 0&&(this.setState(Kb(r.data,r.dataUpdatedAt)),De(this,Pa,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&le(this,Jr).remove(this)}setData(t,r){const n=G_(this.state.data,t,this.options);return nt(this,Gr,ai).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t){nt(this,Gr,ai).call(this,{type:"setState",state:t})}cancel(t){var n,i;const r=(n=le(this,ir))==null?void 0:n.promise;return(i=le(this,ir))==null||i.cancel(t),r?r.then(kr).catch(kr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return le(this,Pa)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>zr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===tE||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Di(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!FC(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=le(this,ir))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=le(this,ir))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),le(this,Jr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(le(this,ir)&&(le(this,Ma)||nt(this,Gr,KC).call(this)?le(this,ir).cancel({revert:!0}):le(this,ir).cancelRetry()),this.scheduleGc()),le(this,Jr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||nt(this,Gr,ai).call(this,{type:"invalidate"})}async fetch(t,r){var l,u,d,f,p,y,g,b,O,m,T;if(this.state.fetchStatus!=="idle"&&((l=le(this,ir))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(le(this,ir))return le(this,ir).continueRetry(),le(this,ir).promise}if(t&&this.setOptions(t),!this.options.queryFn){const I=this.observers.find(h=>h.options.queryFn);I&&this.setOptions(I.options)}const n=new AbortController,i=I=>{Object.defineProperty(I,"signal",{enumerable:!0,get:()=>(De(this,Ma,!0),n.signal)})},a=()=>{const I=VC(this.options,r),v=(()=>{const E={client:le(this,Ca),queryKey:this.queryKey,meta:this.meta};return i(E),E})();return De(this,Ma,!1),this.options.persister?this.options.persister(I,v,this):I(v)},o=(()=>{const I={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:le(this,Ca),state:this.state,fetchFn:a};return i(I),I})(),c=le(this,js)==="infinite"?U2(this.options.pages):this.options.behavior;c==null||c.onFetch(o,this),De(this,Ds,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=o.fetchOptions)==null?void 0:u.meta))&&nt(this,Gr,ai).call(this,{type:"fetch",meta:(d=o.fetchOptions)==null?void 0:d.meta}),De(this,ir,zC({initialPromise:r==null?void 0:r.initialPromise,fn:o.fetchFn,onCancel:I=>{I instanceof W_&&I.revert&&this.setState({...le(this,Ds),fetchStatus:"idle"}),n.abort()},onFail:(I,h)=>{nt(this,Gr,ai).call(this,{type:"failed",failureCount:I,error:h})},onPause:()=>{nt(this,Gr,ai).call(this,{type:"pause"})},onContinue:()=>{nt(this,Gr,ai).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0}));try{const I=await le(this,ir).start();if(I===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(I),(p=(f=le(this,Jr).config).onSuccess)==null||p.call(f,I,this),(g=(y=le(this,Jr).config).onSettled)==null||g.call(y,I,this.state.error,this),I}catch(I){if(I instanceof W_){if(I.silent)return le(this,ir).promise;if(I.revert){if(this.state.data===void 0)throw I;return this.state.data}}throw nt(this,Gr,ai).call(this,{type:"error",error:I}),(O=(b=le(this,Jr).config).onError)==null||O.call(b,I,this),(T=(m=le(this,Jr).config).onSettled)==null||T.call(m,this.state.data,I,this),I}finally{this.scheduleGc()}}},js=new WeakMap,Pa=new WeakMap,Ds=new WeakMap,Jr=new WeakMap,Ca=new WeakMap,ir=new WeakMap,Cc=new WeakMap,Ma=new WeakMap,Gr=new WeakSet,KC=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},ai=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...XC(n.data,this.options),fetchMeta:t.meta??null};case"success":const i={...n,...Kb(t.data,t.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return De(this,Ds,t.manual?i:void 0),i;case"error":const a=t.error;return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),fr.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),le(this,Jr).notify({query:this,type:"updated",action:t})})},MC);function XC(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:GC(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Kb(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Xb(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"}}var $r,ot,Mc,Rr,ja,Ls,ci,Ni,jc,$s,ks,Da,La,Pi,qs,bt,Fo,K_,X_,J_,Q_,Z_,ev,tv,JC,jC,H2=(jC=class extends $c{constructor(t,r){super();ze(this,bt);ze(this,$r);ze(this,ot);ze(this,Mc);ze(this,Rr);ze(this,ja);ze(this,Ls);ze(this,ci);ze(this,Ni);ze(this,jc);ze(this,$s);ze(this,ks);ze(this,Da);ze(this,La);ze(this,Pi);ze(this,qs,new Set);this.options=r,De(this,$r,t),De(this,Ni,null),De(this,ci,z_()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(le(this,ot).addObserver(this),Jb(le(this,ot),this.options)?nt(this,bt,Fo).call(this):this.updateResult(),nt(this,bt,Q_).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return rv(le(this,ot),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return rv(le(this,ot),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,nt(this,bt,Z_).call(this),nt(this,bt,ev).call(this),le(this,ot).removeObserver(this)}setOptions(t){const r=this.options,n=le(this,ot);if(this.options=le(this,$r).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof zr(this.options.enabled,le(this,ot))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");nt(this,bt,tv).call(this),le(this,ot).setOptions(this.options),r._defaulted&&!V_(this.options,r)&&le(this,$r).getQueryCache().notify({type:"observerOptionsUpdated",query:le(this,ot),observer:this});const i=this.hasListeners();i&&Qb(le(this,ot),n,this.options,r)&&nt(this,bt,Fo).call(this),this.updateResult(),i&&(le(this,ot)!==n||zr(this.options.enabled,le(this,ot))!==zr(r.enabled,le(this,ot))||Di(this.options.staleTime,le(this,ot))!==Di(r.staleTime,le(this,ot)))&&nt(this,bt,K_).call(this);const a=nt(this,bt,X_).call(this);i&&(le(this,ot)!==n||zr(this.options.enabled,le(this,ot))!==zr(r.enabled,le(this,ot))||a!==le(this,Pi))&&nt(this,bt,J_).call(this,a)}getOptimisticResult(t){const r=le(this,$r).getQueryCache().build(le(this,$r),t),n=this.createResult(r,t);return x2(this,n)&&(De(this,Rr,n),De(this,Ls,this.options),De(this,ja,le(this,ot).state)),n}getCurrentResult(){return le(this,Rr)}trackResult(t,r){return new Proxy(t,{get:(n,i)=>(this.trackProp(i),r==null||r(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&le(this,ci).status==="pending"&&le(this,ci).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,i))})}trackProp(t){le(this,qs).add(t)}getCurrentQuery(){return le(this,ot)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=le(this,$r).defaultQueryOptions(t),n=le(this,$r).getQueryCache().build(le(this,$r),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return nt(this,bt,Fo).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),le(this,Rr)))}createResult(t,r){var M;const n=le(this,ot),i=this.options,a=le(this,Rr),s=le(this,ja),o=le(this,Ls),l=t!==n?t.state:le(this,Mc),{state:u}=t;let d={...u},f=!1,p;if(r._optimisticResults){const q=this.hasListeners(),H=!q&&Jb(t,r),k=q&&Qb(t,n,r,i);(H||k)&&(d={...d,...XC(u.data,t.options)}),r._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:y,errorUpdatedAt:g,status:b}=d;p=d.data;let O=!1;if(r.placeholderData!==void 0&&p===void 0&&b==="pending"){let q;a!=null&&a.isPlaceholderData&&r.placeholderData===(o==null?void 0:o.placeholderData)?(q=a.data,O=!0):q=typeof r.placeholderData=="function"?r.placeholderData((M=le(this,ks))==null?void 0:M.state.data,le(this,ks)):r.placeholderData,q!==void 0&&(b="success",p=G_(a==null?void 0:a.data,q,r),f=!0)}if(r.select&&p!==void 0&&!O)if(a&&p===(s==null?void 0:s.data)&&r.select===le(this,jc))p=le(this,$s);else try{De(this,jc,r.select),p=r.select(p),p=G_(a==null?void 0:a.data,p,r),De(this,$s,p),De(this,Ni,null)}catch(q){De(this,Ni,q)}le(this,Ni)&&(y=le(this,Ni),p=le(this,$s),g=Date.now(),b="error");const m=d.fetchStatus==="fetching",T=b==="pending",I=b==="error",h=T&&m,v=p!==void 0,N={status:b,fetchStatus:d.fetchStatus,isPending:T,isSuccess:b==="success",isError:I,isInitialLoading:h,isLoading:h,data:p,dataUpdatedAt:d.dataUpdatedAt,error:y,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:m,isRefetching:m&&!T,isLoadingError:I&&!v,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:I&&v,isStale:rE(t,r),refetch:this.refetch,promise:le(this,ci),isEnabled:zr(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const q=N.data!==void 0,H=N.status==="error"&&!q,k=te=>{H?te.reject(N.error):q&&te.resolve(N.data)},B=()=>{const te=De(this,ci,N.promise=z_());k(te)},F=le(this,ci);switch(F.status){case"pending":t.queryHash===n.queryHash&&k(F);break;case"fulfilled":(H||N.data!==F.value)&&B();break;case"rejected":(!H||N.error!==F.reason)&&B();break}}return N}updateResult(){const t=le(this,Rr),r=this.createResult(le(this,ot),this.options);if(De(this,ja,le(this,ot).state),De(this,Ls,this.options),le(this,ja).data!==void 0&&De(this,ks,le(this,ot)),V_(r,t))return;De(this,Rr,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,a=typeof i=="function"?i():i;if(a==="all"||!a&&!le(this,qs).size)return!0;const s=new Set(a??le(this,qs));return this.options.throwOnError&&s.add("error"),Object.keys(le(this,Rr)).some(o=>{const c=o;return le(this,Rr)[c]!==t[c]&&s.has(c)})};nt(this,bt,JC).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&nt(this,bt,Q_).call(this)}},$r=new WeakMap,ot=new WeakMap,Mc=new WeakMap,Rr=new WeakMap,ja=new WeakMap,Ls=new WeakMap,ci=new WeakMap,Ni=new WeakMap,jc=new WeakMap,$s=new WeakMap,ks=new WeakMap,Da=new WeakMap,La=new WeakMap,Pi=new WeakMap,qs=new WeakMap,bt=new WeakSet,Fo=function(t){nt(this,bt,tv).call(this);let r=le(this,ot).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(kr)),r},K_=function(){nt(this,bt,Z_).call(this);const t=Di(this.options.staleTime,le(this,ot));if(vc.isServer()||le(this,Rr).isStale||!H_(t))return;const n=FC(le(this,Rr).dataUpdatedAt,t)+1;De(this,Da,Aa.setTimeout(()=>{le(this,Rr).isStale||this.updateResult()},n))},X_=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(le(this,ot)):this.options.refetchInterval)??!1},J_=function(t){nt(this,bt,ev).call(this),De(this,Pi,t),!(vc.isServer()||zr(this.options.enabled,le(this,ot))===!1||!H_(le(this,Pi))||le(this,Pi)===0)&&De(this,La,Aa.setInterval(()=>{(this.options.refetchIntervalInBackground||Zv.isFocused())&&nt(this,bt,Fo).call(this)},le(this,Pi)))},Q_=function(){nt(this,bt,K_).call(this),nt(this,bt,J_).call(this,nt(this,bt,X_).call(this))},Z_=function(){le(this,Da)!==void 0&&(Aa.clearTimeout(le(this,Da)),De(this,Da,void 0))},ev=function(){le(this,La)!==void 0&&(Aa.clearInterval(le(this,La)),De(this,La,void 0))},tv=function(){const t=le(this,$r).getQueryCache().build(le(this,$r),this.options);if(t===le(this,ot))return;const r=le(this,ot);De(this,ot,t),De(this,Mc,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},JC=function(t){fr.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(le(this,Rr))}),le(this,$r).getQueryCache().notify({query:le(this,ot),type:"observerResultsUpdated"})})},jC);function V2(e,t){return zr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&zr(t.retryOnMount,e)===!1)}function Jb(e,t){return V2(e,t)||e.state.data!==void 0&&rv(e,t,t.refetchOnMount)}function rv(e,t,r){if(zr(t.enabled,e)!==!1&&Di(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&rE(e,t)}return!1}function Qb(e,t,r,n){return(e!==t||zr(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&rE(e,r)}function rE(e,t){return zr(t.enabled,e)!==!1&&e.isStaleByTime(Di(t.staleTime,e))}function x2(e,t){return!V_(e.getCurrentResult(),t)}var Dc,Ln,Sr,$a,$n,Si,DC,G2=(DC=class extends WC{constructor(t){super();ze(this,$n);ze(this,Dc);ze(this,Ln);ze(this,Sr);ze(this,$a);De(this,Dc,t.client),this.mutationId=t.mutationId,De(this,Sr,t.mutationCache),De(this,Ln,[]),this.state=t.state||z2(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){le(this,Ln).includes(t)||(le(this,Ln).push(t),this.clearGcTimeout(),le(this,Sr).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){De(this,Ln,le(this,Ln).filter(r=>r!==t)),this.scheduleGc(),le(this,Sr).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){le(this,Ln).length||(this.state.status==="pending"?this.scheduleGc():le(this,Sr).remove(this))}continue(){var t;return((t=le(this,$a))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,o,c,l,u,d,f,p,y,g,b,O,m,T,I,h,v,E;const r=()=>{nt(this,$n,Si).call(this,{type:"continue"})},n={client:le(this,Dc),meta:this.options.meta,mutationKey:this.options.mutationKey};De(this,$a,zC({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(new Error("No mutationFn found")),onFail:(N,M)=>{nt(this,$n,Si).call(this,{type:"failed",failureCount:N,error:M})},onPause:()=>{nt(this,$n,Si).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>le(this,Sr).canRun(this)}));const i=this.state.status==="pending",a=!le(this,$a).canStart();try{if(i)r();else{nt(this,$n,Si).call(this,{type:"pending",variables:t,isPaused:a}),le(this,Sr).config.onMutate&&await le(this,Sr).config.onMutate(t,this,n);const M=await((o=(s=this.options).onMutate)==null?void 0:o.call(s,t,n));M!==this.state.context&&nt(this,$n,Si).call(this,{type:"pending",context:M,variables:t,isPaused:a})}const N=await le(this,$a).start();return await((l=(c=le(this,Sr).config).onSuccess)==null?void 0:l.call(c,N,t,this.state.context,this,n)),await((d=(u=this.options).onSuccess)==null?void 0:d.call(u,N,t,this.state.context,n)),await((p=(f=le(this,Sr).config).onSettled)==null?void 0:p.call(f,N,null,this.state.variables,this.state.context,this,n)),await((g=(y=this.options).onSettled)==null?void 0:g.call(y,N,null,t,this.state.context,n)),nt(this,$n,Si).call(this,{type:"success",data:N}),N}catch(N){try{await((O=(b=le(this,Sr).config).onError)==null?void 0:O.call(b,N,t,this.state.context,this,n))}catch(M){Promise.reject(M)}try{await((T=(m=this.options).onError)==null?void 0:T.call(m,N,t,this.state.context,n))}catch(M){Promise.reject(M)}try{await((h=(I=le(this,Sr).config).onSettled)==null?void 0:h.call(I,void 0,N,this.state.variables,this.state.context,this,n))}catch(M){Promise.reject(M)}try{await((E=(v=this.options).onSettled)==null?void 0:E.call(v,void 0,N,t,this.state.context,n))}catch(M){Promise.reject(M)}throw nt(this,$n,Si).call(this,{type:"error",error:N}),N}finally{le(this,Sr).runNext(this)}}},Dc=new WeakMap,Ln=new WeakMap,Sr=new WeakMap,$a=new WeakMap,$n=new WeakSet,Si=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),fr.batch(()=>{le(this,Ln).forEach(n=>{n.onMutationUpdate(t)}),le(this,Sr).notify({mutation:this,type:"updated",action:t})})},DC);function z2(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ui,mn,Lc,LC,W2=(LC=class extends $c{constructor(t={}){super();ze(this,ui);ze(this,mn);ze(this,Lc);this.config=t,De(this,ui,new Set),De(this,mn,new Map),De(this,Lc,0)}build(t,r,n){const i=new G2({client:t,mutationCache:this,mutationId:++Gu(this,Lc)._,options:t.defaultMutationOptions(r),state:n});return this.add(i),i}add(t){le(this,ui).add(t);const r=zu(t);if(typeof r=="string"){const n=le(this,mn).get(r);n?n.push(t):le(this,mn).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(le(this,ui).delete(t)){const r=zu(t);if(typeof r=="string"){const n=le(this,mn).get(r);if(n)if(n.length>1){const i=n.indexOf(t);i!==-1&&n.splice(i,1)}else n[0]===t&&le(this,mn).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=zu(t);if(typeof r=="string"){const n=le(this,mn).get(r),i=n==null?void 0:n.find(a=>a.state.status==="pending");return!i||i===t}else return!0}runNext(t){var n;const r=zu(t);if(typeof r=="string"){const i=(n=le(this,mn).get(r))==null?void 0:n.find(a=>a!==t&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){fr.batch(()=>{le(this,ui).forEach(t=>{this.notify({type:"removed",mutation:t})}),le(this,ui).clear(),le(this,mn).clear()})}getAll(){return Array.from(le(this,ui))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>zb(r,n))}findAll(t={}){return this.getAll().filter(r=>zb(t,r))}notify(t){fr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return fr.batch(()=>Promise.all(t.map(r=>r.continue().catch(kr))))}},ui=new WeakMap,mn=new WeakMap,Lc=new WeakMap,LC);function zu(e){var t;return(t=e.options.scope)==null?void 0:t.id}var kn,$C,Y2=($C=class extends $c{constructor(t={}){super();ze(this,kn);this.config=t,De(this,kn,new Map)}build(t,r,n){const i=r.queryKey,a=r.queryHash??eE(i,r);let s=this.get(a);return s||(s=new F2({client:t,queryKey:i,queryHash:a,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){le(this,kn).has(t.queryHash)||(le(this,kn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=le(this,kn).get(t.queryHash);r&&(t.destroy(),r===t&&le(this,kn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){fr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return le(this,kn).get(t)}getAll(){return[...le(this,kn).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Gb(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>Gb(t,n)):r}notify(t){fr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){fr.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){fr.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},kn=new WeakMap,$C),Wt,Ci,Mi,Bs,Us,ji,Fs,Hs,kC,K2=(kC=class{constructor(e={}){ze(this,Wt);ze(this,Ci);ze(this,Mi);ze(this,Bs);ze(this,Us);ze(this,ji);ze(this,Fs);ze(this,Hs);De(this,Wt,e.queryCache||new Y2),De(this,Ci,e.mutationCache||new W2),De(this,Mi,e.defaultOptions||{}),De(this,Bs,new Map),De(this,Us,new Map),De(this,ji,0)}mount(){Gu(this,ji)._++,le(this,ji)===1&&(De(this,Fs,Zv.subscribe(async e=>{e&&(await this.resumePausedMutations(),le(this,Wt).onFocus())})),De(this,Hs,Nd.subscribe(async e=>{e&&(await this.resumePausedMutations(),le(this,Wt).onOnline())})))}unmount(){var e,t;Gu(this,ji)._--,le(this,ji)===0&&((e=le(this,Fs))==null||e.call(this),De(this,Fs,void 0),(t=le(this,Hs))==null||t.call(this),De(this,Hs,void 0))}isFetching(e){return le(this,Wt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return le(this,Ci).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=le(this,Wt).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=le(this,Wt).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Di(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return le(this,Wt).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),i=le(this,Wt).get(n.queryHash),a=i==null?void 0:i.state.data,s=P2(t,a);if(s!==void 0)return le(this,Wt).build(this,n).setData(s,{...r,manual:!0})}setQueriesData(e,t,r){return fr.batch(()=>le(this,Wt).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=le(this,Wt).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=le(this,Wt);fr.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=le(this,Wt);return fr.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=fr.batch(()=>le(this,Wt).findAll(e).map(i=>i.cancel(r)));return Promise.all(n).then(kr).catch(kr)}invalidateQueries(e,t={}){return fr.batch(()=>(le(this,Wt).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=fr.batch(()=>le(this,Wt).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let a=i.fetch(void 0,r);return r.throwOnError||(a=a.catch(kr)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(n).then(kr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=le(this,Wt).build(this,t);return r.isStaleByTime(Di(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(kr).catch(kr)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(kr).catch(kr)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Nd.isOnline()?le(this,Ci).resumePausedMutations():Promise.resolve()}getQueryCache(){return le(this,Wt)}getMutationCache(){return le(this,Ci)}getDefaultOptions(){return le(this,Mi)}setDefaultOptions(e){De(this,Mi,e)}setQueryDefaults(e,t){le(this,Bs).set(gc(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...le(this,Bs).values()],r={};return t.forEach(n=>{_c(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){le(this,Us).set(gc(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...le(this,Us).values()],r={};return t.forEach(n=>{_c(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...le(this,Mi).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=eE(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===tE&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...le(this,Mi).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){le(this,Wt).clear(),le(this,Ci).clear()}},Wt=new WeakMap,Ci=new WeakMap,Mi=new WeakMap,Bs=new WeakMap,Us=new WeakMap,ji=new WeakMap,Fs=new WeakMap,Hs=new WeakMap,kC),QC=ve.createContext(void 0),X2=e=>{const t=ve.useContext(QC);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},J2=({client:e,children:t})=>(ve.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),C.jsx(QC.Provider,{value:e,children:t})),ZC=ve.createContext(!1),Q2=()=>ve.useContext(ZC);ZC.Provider;function Z2(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var ek=ve.createContext(Z2()),tk=()=>ve.useContext(ek),rk=(e,t,r)=>{const n=r!=null&&r.state.error&&typeof e.throwOnError=="function"?xC(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||n)&&(t.isReset()||(e.retryOnMount=!1))},nk=e=>{ve.useEffect(()=>{e.clearReset()},[e])},ik=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(i&&e.data===void 0||xC(r,[e.error,n])),ak=e=>{if(e.suspense){const r=i=>i==="static"?i:Math.max(i??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...i)=>r(n(...i)):r(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},sk=(e,t)=>e.isLoading&&e.isFetching&&!t,ok=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Zb=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function ck(e,t,r){var p,y,g,b;const n=Q2(),i=tk(),a=X2(),s=a.defaultQueryOptions(e);(y=(p=a.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||y.call(p,s);const o=a.getQueryCache().get(s.queryHash),c=e.subscribed!==!1;s._optimisticResults=n?"isRestoring":c?"optimistic":void 0,ak(s),rk(s,i,o),nk(i);const l=!a.getQueryCache().get(s.queryHash),[u]=ve.useState(()=>new t(a,s)),d=u.getOptimisticResult(s),f=!n&&c;if(ve.useSyncExternalStore(ve.useCallback(O=>{const m=f?u.subscribe(fr.batchCalls(O)):kr;return u.updateResult(),m},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),ve.useEffect(()=>{u.setOptions(s)},[s,u]),ok(s,d))throw Zb(s,u,i);if(ik({result:d,errorResetBoundary:i,throwOnError:s.throwOnError,query:o,suspense:s.suspense}))throw d.error;if((b=(g=a.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||b.call(g,s,d),s.experimental_prefetchInRender&&!vc.isServer()&&sk(d,n)){const O=l?Zb(s,u,i):o==null?void 0:o.promise;O==null||O.catch(kr).finally(()=>{u.updateResult()})}return s.notifyOnChangeProps?d:u.trackResult(d)}function li(e,t){return ck(e,H2)}const uk="modulepreload",lk=function(e){return"https://cdn.decentraland.org/@dcl/shop/0.1.0-29571500722.commit-8ea45d8/"+e},e0={},ar=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){let s=function(l){return Promise.all(l.map(u=>Promise.resolve(u).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),c=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=s(r.map(l=>{if(l=lk(l),l in e0)return;e0[l]=!0;const u=l.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":uk,u||(f.as="script"),f.crossOrigin="",f.href=l,c&&f.setAttribute("nonce",c),document.head.appendChild(f),u)return new Promise((p,y)=>{f.addEventListener("load",p),f.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${l}`)))})}))}function a(s){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s}return i.then(s=>{for(const o of s||[])o.status==="rejected"&&a(o.reason);return t().catch(a)})},eM=Object.prototype.toString;function nE(e){switch(eM.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return di(e,Error)}}function eo(e,t){return eM.call(e)===`[object ${t}]`}function iE(e){return eo(e,"ErrorEvent")}function t0(e){return eo(e,"DOMError")}function dk(e){return eo(e,"DOMException")}function Hn(e){return eo(e,"String")}function aE(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function sE(e){return e===null||aE(e)||typeof e!="object"&&typeof e!="function"}function Ba(e){return eo(e,"Object")}function xd(e){return typeof Event<"u"&&di(e,Event)}function fk(e){return typeof Element<"u"&&di(e,Element)}function pk(e){return eo(e,"RegExp")}function to(e){return!!(e&&e.then&&typeof e.then=="function")}function mk(e){return Ba(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function tM(e){return typeof e=="number"&&e!==e}function di(e,t){try{return e instanceof t}catch{return!1}}function rM(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function Ss(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function r0(e,t){if(!Array.isArray(e))return"";const r=[];for(let n=0;n<e.length;n++){const i=e[n];try{rM(i)?r.push("[VueViewModel]"):r.push(String(i))}catch{r.push("[value cannot be serialized]")}}return r.join(t)}function hk(e,t,r=!1){return Hn(e)?pk(t)?t.test(e):Hn(t)?r?e===t:e.includes(t):!1:!1}function kc(e,t=[],r=!1){return t.some(n=>hk(e,n,r))}function yk(e,t,r=250,n,i,a,s){if(!a.exception||!a.exception.values||!s||!di(s.originalException,Error))return;const o=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;o&&(a.exception.values=gk(nv(e,t,i,s.originalException,n,a.exception.values,o,0),r))}function nv(e,t,r,n,i,a,s,o){if(a.length>=r+1)return a;let c=[...a];if(di(n[i],Error)){n0(s,o);const l=e(t,n[i]),u=c.length;i0(l,i,u,o),c=nv(e,t,r,n[i],i,[l,...c],l,u)}return Array.isArray(n.errors)&&n.errors.forEach((l,u)=>{if(di(l,Error)){n0(s,o);const d=e(t,l),f=c.length;i0(d,`errors[${u}]`,f,o),c=nv(e,t,r,l,i,[d,...c],d,f)}}),c}function n0(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function i0(e,t,r,n){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}function gk(e,t){return e.map(r=>(r.value&&(r.value=Ss(r.value,t)),r))}function Wu(e){return e&&e.Math==Math?e:void 0}const ct=typeof globalThis=="object"&&Wu(globalThis)||typeof window=="object"&&Wu(window)||typeof self=="object"&&Wu(self)||typeof Od=="object"&&Wu(Od)||(function(){return this})()||{};function oE(){return ct}function Gd(e,t,r){const n=r||ct,i=n.__SENTRY__=n.__SENTRY__||{};return i[e]||(i[e]=t())}const Ts=oE(),_k=80;function Vs(e,t={}){if(!e)return"<unknown>";try{let r=e;const n=5,i=[];let a=0,s=0;const o=" > ",c=o.length;let l;const u=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||_k;for(;r&&a++<n&&(l=vk(r,u),!(l==="html"||a>1&&s+i.length*c+l.length>=d));)i.push(l),s+=l.length,r=r.parentNode;return i.reverse().join(o)}catch{return"<unknown>"}}function vk(e,t){const r=e,n=[];let i,a,s,o,c;if(!r||!r.tagName)return"";if(Ts.HTMLElement&&r instanceof HTMLElement&&r.dataset&&r.dataset.sentryComponent)return r.dataset.sentryComponent;n.push(r.tagName.toLowerCase());const l=t&&t.length?t.filter(d=>r.getAttribute(d)).map(d=>[d,r.getAttribute(d)]):null;if(l&&l.length)l.forEach(d=>{n.push(`[${d[0]}="${d[1]}"]`)});else if(r.id&&n.push(`#${r.id}`),i=r.className,i&&Hn(i))for(a=i.split(/\s+/),c=0;c<a.length;c++)n.push(`.${a[c]}`);const u=["aria-label","type","name","title","alt"];for(c=0;c<u.length;c++)s=u[c],o=r.getAttribute(s),o&&n.push(`[${s}="${o}"]`);return n.join("")}function Ek(){try{return Ts.document.location.href}catch{return""}}function bk(e){return Ts.document&&Ts.document.querySelector?Ts.document.querySelector(e):null}function nM(e){if(!Ts.HTMLElement)return null;let t=e;const r=5;for(let n=0;n<r;n++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}const ro=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Sk="Sentry Logger ",iv=["debug","info","warn","error","log","assert","trace"],Pd={};function qc(e){if(!("console"in ct))return e();const t=ct.console,r={},n=Object.keys(Pd);n.forEach(i=>{const a=Pd[i];r[i]=t[i],t[i]=a});try{return e()}finally{n.forEach(i=>{t[i]=r[i]})}}function Tk(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return ro?iv.forEach(r=>{t[r]=(...n)=>{e&&qc(()=>{ct.console[r](`${Sk}[${r}]:`,...n)})}}):iv.forEach(r=>{t[r]=()=>{}}),t}const Re=Tk(),wk=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Ik(e){return e==="http"||e==="https"}function Ga(e,t=!1){const{host:r,path:n,pass:i,port:a,projectId:s,protocol:o,publicKey:c}=e;return`${o}://${c}${t&&i?`:${i}`:""}@${r}${a?`:${a}`:""}/${n&&`${n}/`}${s}`}function Rk(e){const t=wk.exec(e);if(!t){qc(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[r,n,i="",a,s="",o]=t.slice(1);let c="",l=o;const u=l.split("/");if(u.length>1&&(c=u.slice(0,-1).join("/"),l=u.pop()),l){const d=l.match(/^\d+/);d&&(l=d[0])}return iM({host:a,pass:i,path:c,projectId:l,port:s,protocol:r,publicKey:n})}function iM(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Ak(e){if(!ro)return!0;const{port:t,projectId:r,protocol:n}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(Re.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:r.match(/^\d+$/)?Ik(n)?t&&isNaN(parseInt(t,10))?(Re.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(Re.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):(Re.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function aM(e){const t=typeof e=="string"?Rk(e):iM(e);if(!(!t||!Ak(t)))return t}class Un extends Error{constructor(t,r="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=r}}function mr(e,t,r){if(!(t in e))return;const n=e[t],i=r(n);typeof i=="function"&&sM(i,n),e[t]=i}function Ua(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch{ro&&Re.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function sM(e,t){try{const r=t.prototype||{};e.prototype=t.prototype=r,Ua(e,"__sentry_original__",t)}catch{}}function cE(e){return e.__sentry_original__}function Ok(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function oM(e){if(nE(e))return{message:e.message,name:e.name,stack:e.stack,...s0(e)};if(xd(e)){const t={type:e.type,target:a0(e.target),currentTarget:a0(e.currentTarget),...s0(e)};return typeof CustomEvent<"u"&&di(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function a0(e){try{return fk(e)?Vs(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function s0(e){if(typeof e=="object"&&e!==null){const t={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}else return{}}function Nk(e,t=40){const r=Object.keys(oM(e));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=t)return Ss(r[0],t);for(let n=r.length;n>0;n--){const i=r.slice(0,n).join(", ");if(!(i.length>t))return n===r.length?i:Ss(i,t)}return""}function Zt(e){return av(e,new Map)}function av(e,t){if(Pk(e)){const r=t.get(e);if(r!==void 0)return r;const n={};t.set(e,n);for(const i of Object.keys(e))typeof e[i]<"u"&&(n[i]=av(e[i],t));return n}if(Array.isArray(e)){const r=t.get(e);if(r!==void 0)return r;const n=[];return t.set(e,n),e.forEach(i=>{n.push(av(i,t))}),n}return e}function Pk(e){if(!Ba(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const cM=50,o0=/\(error: (.*)\)/,c0=/captureMessage|captureException/;function uM(...e){const t=e.sort((r,n)=>r[0]-n[0]).map(r=>r[1]);return(r,n=0)=>{const i=[],a=r.split(`
|
|
3
|
-
`);for(let s=n;s<a.length;s++){const o=a[s];if(o.length>1024)continue;const c=o0.test(o)?o.replace(o0,"$1"):o;if(!c.match(/\S*Error: /)){for(const l of t){const u=l(c);if(u){i.push(u);break}}if(i.length>=cM)break}}return Mk(i)}}function Ck(e){return Array.isArray(e)?uM(...e):e}function Mk(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),c0.test(t[t.length-1].function||"")&&(t.pop(),c0.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,cM).map(r=>({...r,filename:r.filename||t[t.length-1].filename,function:r.function||"?"}))}const zf="<anonymous>";function fi(e){try{return!e||typeof e!="function"?zf:e.name||zf}catch{return zf}}const vd={},u0={};function za(e,t){vd[e]=vd[e]||[],vd[e].push(t)}function Wa(e,t){u0[e]||(t(),u0[e]=!0)}function gn(e,t){const r=e&&vd[e];if(r)for(const n of r)try{n(t)}catch(i){ro&&Re.error(`Error while triggering instrumentation handler.
|
|
4
|
-
Type: ${e}
|
|
5
|
-
Name: ${fi(n)}
|
|
6
|
-
Error:`,i)}}function jk(e){const t="console";za(t,e),Wa(t,Dk)}function Dk(){"console"in ct&&iv.forEach(function(e){e in ct.console&&mr(ct.console,e,function(t){return Pd[e]=t,function(...r){gn("console",{args:r,level:e});const i=Pd[e];i&&i.apply(ct.console,r)}})})}function vt(){const e=ct,t=e.crypto||e.msCrypto;let r=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(r=()=>{const n=new Uint8Array(1);return t.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(r()&15)>>n/4).toString(16))}function lM(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function wi(e){const{message:t,event_id:r}=e;if(t)return t;const n=lM(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function sv(e,t,r){const n=e.exception=e.exception||{},i=n.values=n.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type="Error")}function Ec(e,t){const r=lM(e);if(!r)return;const n={type:"generic",handled:!0},i=r.mechanism;if(r.mechanism={...n,...i,...t},t&&"data"in t){const a={...i&&i.data,...t.data};r.mechanism.data=a}}function l0(e){if(e&&e.__sentry_captured__)return!0;try{Ua(e,"__sentry_captured__",!0)}catch{}return!1}function uE(e){return Array.isArray(e)?e:[e]}const _s=ct,Lk=1e3;let d0,ov,cv;function $k(e){za("dom",e),Wa("dom",kk)}function kk(){if(!_s.document)return;const e=gn.bind(null,"dom"),t=f0(e,!0);_s.document.addEventListener("click",t,!1),_s.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(r=>{const n=_s[r]&&_s[r].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(mr(n,"addEventListener",function(i){return function(a,s,o){if(a==="click"||a=="keypress")try{const c=this,l=c.__sentry_instrumentation_handlers__=c.__sentry_instrumentation_handlers__||{},u=l[a]=l[a]||{refCount:0};if(!u.handler){const d=f0(e);u.handler=d,i.call(this,a,d,o)}u.refCount++}catch{}return i.call(this,a,s,o)}}),mr(n,"removeEventListener",function(i){return function(a,s,o){if(a==="click"||a=="keypress")try{const c=this,l=c.__sentry_instrumentation_handlers__||{},u=l[a];u&&(u.refCount--,u.refCount<=0&&(i.call(this,a,u.handler,o),u.handler=void 0,delete l[a]),Object.keys(l).length===0&&delete c.__sentry_instrumentation_handlers__)}catch{}return i.call(this,a,s,o)}}))})}function qk(e){if(e.type!==ov)return!1;try{if(!e.target||e.target._sentryId!==cv)return!1}catch{}return!0}function Bk(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function f0(e,t=!1){return r=>{if(!r||r._sentryCaptured)return;const n=Uk(r);if(Bk(r.type,n))return;Ua(r,"_sentryCaptured",!0),n&&!n._sentryId&&Ua(n,"_sentryId",vt());const i=r.type==="keypress"?"input":r.type;qk(r)||(e({event:r,name:i,global:t}),ov=r.type,cv=n?n._sentryId:void 0),clearTimeout(d0),d0=_s.setTimeout(()=>{cv=void 0,ov=void 0},Lk)}}function Uk(e){try{return e.target}catch{return null}}const uv=oE();function dM(){if(!("fetch"in uv))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function lv(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Fk(){if(typeof EdgeRuntime=="string")return!0;if(!dM())return!1;if(lv(uv.fetch))return!0;let e=!1;const t=uv.document;if(t&&typeof t.createElement=="function")try{const r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(e=lv(r.contentWindow.fetch)),t.head.removeChild(r)}catch(r){ro&&Re.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return e}function fM(e){const t="fetch";za(t,e),Wa(t,Hk)}function Hk(){Fk()&&mr(ct,"fetch",function(e){return function(...t){const{method:r,url:n}=Vk(t),i={args:t,fetchData:{method:r,url:n},startTimestamp:Date.now()};return gn("fetch",{...i}),e.apply(ct,t).then(a=>{const s={...i,endTimestamp:Date.now(),response:a};return gn("fetch",s),a},a=>{const s={...i,endTimestamp:Date.now(),error:a};throw gn("fetch",s),a})}})}function dv(e,t){return!!e&&typeof e=="object"&&!!e[t]}function p0(e){return typeof e=="string"?e:e?dv(e,"url")?e.url:e.toString?e.toString():"":""}function Vk(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[r,n]=e;return{url:p0(r),method:dv(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:p0(t),method:dv(t,"method")?String(t.method).toUpperCase():"GET"}}let Yu=null;function pM(e){const t="error";za(t,e),Wa(t,xk)}function xk(){Yu=ct.onerror,ct.onerror=function(e,t,r,n,i){return gn("error",{column:n,error:i,line:r,msg:e,url:t}),Yu&&!Yu.__SENTRY_LOADER__?Yu.apply(this,arguments):!1},ct.onerror.__SENTRY_INSTRUMENTED__=!0}let Ku=null;function mM(e){const t="unhandledrejection";za(t,e),Wa(t,Gk)}function Gk(){Ku=ct.onunhandledrejection,ct.onunhandledrejection=function(e){return gn("unhandledrejection",e),Ku&&!Ku.__SENTRY_LOADER__?Ku.apply(this,arguments):!0},ct.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Xu=oE();function zk(){const e=Xu.chrome,t=e&&e.app&&e.app.runtime,r="history"in Xu&&!!Xu.history.pushState&&!!Xu.history.replaceState;return!t&&r}const _o=ct;let Ju;function lE(e){const t="history";za(t,e),Wa(t,Wk)}function Wk(){if(!zk())return;const e=_o.onpopstate;_o.onpopstate=function(...r){const n=_o.location.href,i=Ju;if(Ju=n,gn("history",{from:i,to:n}),e)try{return e.apply(this,r)}catch{}};function t(r){return function(...n){const i=n.length>2?n[2]:void 0;if(i){const a=Ju,s=String(i);Ju=s,gn("history",{from:a,to:s})}return r.apply(this,n)}}mr(_o.history,"pushState",t),mr(_o.history,"replaceState",t)}const Yk=ct,vs="__sentry_xhr_v3__";function hM(e){za("xhr",e),Wa("xhr",Kk)}function Kk(){if(!Yk.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;mr(e,"open",function(t){return function(...r){const n=Date.now(),i=Hn(r[0])?r[0].toUpperCase():void 0,a=Xk(r[1]);if(!i||!a)return t.apply(this,r);this[vs]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const o=this[vs];if(o&&this.readyState===4){try{o.status_code=this.status}catch{}const c={args:[i,a],endTimestamp:Date.now(),startTimestamp:n,xhr:this};gn("xhr",c)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?mr(this,"onreadystatechange",function(o){return function(...c){return s(),o.apply(this,c)}}):this.addEventListener("readystatechange",s),mr(this,"setRequestHeader",function(o){return function(...c){const[l,u]=c,d=this[vs];return d&&Hn(l)&&Hn(u)&&(d.request_headers[l.toLowerCase()]=u),o.apply(this,c)}}),t.apply(this,r)}}),mr(e,"send",function(t){return function(...r){const n=this[vs];if(!n)return t.apply(this,r);r[0]!==void 0&&(n.body=r[0]);const i={args:[n.method,n.url],startTimestamp:Date.now(),xhr:this};return gn("xhr",i),t.apply(this,r)}})}function Xk(e){if(Hn(e))return e;try{return e.toString()}catch{}}function Jk(){return"npm"}function Qk(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function r(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let a=0;a<t.length;a++)if(t[a]===i)return!0;return t.push(i),!1}function n(i){if(e)t.delete(i);else for(let a=0;a<t.length;a++)if(t[a]===i){t.splice(a,1);break}}return[r,n]}function Ti(e,t=100,r=1/0){try{return fv("",e,t,r)}catch(n){return{ERROR:`**non-serializable** (${n})`}}}function yM(e,t=3,r=100*1024){const n=Ti(e,t);return rq(n)>r?yM(e,t-1,r):n}function fv(e,t,r=1/0,n=1/0,i=Qk()){const[a,s]=i;if(t==null||["number","boolean","string"].includes(typeof t)&&!tM(t))return t;const o=Zk(e,t);if(!o.startsWith("[object "))return o;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:r;if(c===0)return o.replace("object ","");if(a(t))return"[Circular ~]";const l=t;if(l&&typeof l.toJSON=="function")try{const p=l.toJSON();return fv("",p,c-1,n,i)}catch{}const u=Array.isArray(t)?[]:{};let d=0;const f=oM(t);for(const p in f){if(!Object.prototype.hasOwnProperty.call(f,p))continue;if(d>=n){u[p]="[MaxProperties ~]";break}const y=f[p];u[p]=fv(p,y,c-1,n,i),d++}return s(t),u}function Zk(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof Od<"u"&&t===Od)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(rM(t))return"[VueViewModel]";if(mk(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${fi(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const r=eq(t);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(r){return`**non-serializable** (${r})`}}function eq(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function tq(e){return~-encodeURI(e).split(/%..|./).length}function rq(e){return tq(JSON.stringify(e))}var si;(function(e){e[e.PENDING=0]="PENDING";const r=1;e[e.RESOLVED=r]="RESOLVED";const n=2;e[e.REJECTED=n]="REJECTED"})(si||(si={}));function xs(e){return new qr(t=>{t(e)})}function dE(e){return new qr((t,r)=>{r(e)})}class qr{constructor(t){qr.prototype.__init.call(this),qr.prototype.__init2.call(this),qr.prototype.__init3.call(this),qr.prototype.__init4.call(this),this._state=si.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(r){this._reject(r)}}then(t,r){return new qr((n,i)=>{this._handlers.push([!1,a=>{if(!t)n(a);else try{n(t(a))}catch(s){i(s)}},a=>{if(!r)i(a);else try{n(r(a))}catch(s){i(s)}}]),this._executeHandlers()})}catch(t){return this.then(r=>r,t)}finally(t){return new qr((r,n)=>{let i,a;return this.then(s=>{a=!1,i=s,t&&t()},s=>{a=!0,i=s,t&&t()}).then(()=>{if(a){n(i);return}r(i)})})}__init(){this._resolve=t=>{this._setResult(si.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(si.REJECTED,t)}}__init3(){this._setResult=(t,r)=>{if(this._state===si.PENDING){if(to(r)){r.then(this._resolve,this._reject);return}this._state=t,this._value=r,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===si.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(r=>{r[0]||(this._state===si.RESOLVED&&r[1](this._value),this._state===si.REJECTED&&r[2](this._value),r[0]=!0)})}}}function nq(e){const t=[];function r(){return e===void 0||t.length<e}function n(s){return t.splice(t.indexOf(s),1)[0]}function i(s){if(!r())return dE(new Un("Not adding Promise because buffer limit was reached."));const o=s();return t.indexOf(o)===-1&&t.push(o),o.then(()=>n(o)).then(null,()=>n(o).then(null,()=>{})),o}function a(s){return new qr((o,c)=>{let l=t.length;if(!l)return o(!0);const u=setTimeout(()=>{s&&s>0&&o(!1)},s);t.forEach(d=>{xs(d).then(()=>{--l||(clearTimeout(u),o(!0))},c)})})}return{$:t,add:i,drain:a}}function ka(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}const iq=["fatal","error","warning","log","info","debug"];function aq(e){return e==="warn"?"warning":iq.includes(e)?e:"log"}const gM=1e3;function Ya(){return Date.now()/gM}function sq(){const{performance:e}=ct;if(!e||!e.now)return Ya;const t=Date.now()-e.now(),r=e.timeOrigin==null?t:e.timeOrigin;return()=>(r+e.now())/gM}const Ka=sq(),tn=(()=>{const{performance:e}=ct;if(!e||!e.now)return;const t=3600*1e3,r=e.now(),n=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+r-n):t,a=i<t,s=e.timing&&e.timing.navigationStart,c=typeof s=="number"?Math.abs(s+r-n):t,l=c<t;return a||l?i<=c?e.timeOrigin:s:n})(),pv="baggage",_M="sentry-",oq=/^sentry-/,cq=8192;function uq(e){if(!Hn(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((n,i)=>{const a=m0(i);for(const s of Object.keys(a))n[s]=a[s];return n},{});else{if(!e)return;t=m0(e)}const r=Object.entries(t).reduce((n,[i,a])=>{if(i.match(oq)){const s=i.slice(_M.length);n[s]=a}return n},{});if(Object.keys(r).length>0)return r}function vM(e){if(!e)return;const t=Object.entries(e).reduce((r,[n,i])=>(i&&(r[`${_M}${n}`]=i),r),{});return lq(t)}function m0(e){return e.split(",").map(t=>t.split("=").map(r=>decodeURIComponent(r.trim()))).reduce((t,[r,n])=>(t[r]=n,t),{})}function lq(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[r,n],i)=>{const a=`${encodeURIComponent(r)}=${encodeURIComponent(n)}`,s=i===0?a:`${t},${a}`;return s.length>cq?(ro&&Re.warn(`Not adding key: ${r} with val: ${n} to baggage header due to exceeding baggage size limits.`),t):s},"")}const dq=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function fq(e){if(!e)return;const t=e.match(dq);if(!t)return;let r;return t[3]==="1"?r=!0:t[3]==="0"&&(r=!1),{traceId:t[1],parentSampled:r,parentSpanId:t[2]}}function pq(e,t){const r=fq(e),n=uq(t),{traceId:i,parentSpanId:a,parentSampled:s}=r||{};return r?{traceId:i||vt(),parentSpanId:a||vt().substring(16),spanId:vt().substring(16),sampled:s,dsc:n||{}}:{traceId:i||vt(),spanId:vt().substring(16)}}function fE(e=vt(),t=vt().substring(16),r){let n="";return r!==void 0&&(n=r?"-1":"-0"),`${e}-${t}${n}`}function Xa(e,t=[]){return[e,t]}function mq(e,t){const[r,n]=e;return[r,[...n,t]]}function h0(e,t){const r=e[1];for(const n of r){const i=n[0].type;if(t(n,i))return!0}return!1}function mv(e,t){return(t||new TextEncoder).encode(e)}function hq(e,t){const[r,n]=e;let i=JSON.stringify(r);function a(s){typeof i=="string"?i=typeof s=="string"?i+s:[mv(i,t),s]:i.push(typeof s=="string"?mv(s,t):s)}for(const s of n){const[o,c]=s;if(a(`
|
|
7
|
-
${JSON.stringify(o)}
|
|
8
|
-
`),typeof c=="string"||c instanceof Uint8Array)a(c);else{let l;try{l=JSON.stringify(c)}catch{l=JSON.stringify(Ti(c))}a(l)}}return typeof i=="string"?i:yq(i)}function yq(e){const t=e.reduce((i,a)=>i+a.length,0),r=new Uint8Array(t);let n=0;for(const i of e)r.set(i,n),n+=i.length;return r}function gq(e,t){const r=typeof e.data=="string"?mv(e.data,t):e.data;return[Zt({type:"attachment",length:r.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),r]}const _q={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function y0(e){return _q[e]}function EM(e){if(!e||!e.sdk)return;const{name:t,version:r}=e.sdk;return{name:t,version:r}}function vq(e,t,r,n){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!r&&n&&{dsn:Ga(n)},...i&&{trace:Zt({...i})}}}function Eq(e,t,r){const n=[{type:"client_report"},{timestamp:Ya(),discarded_events:e}];return Xa(t?{dsn:t}:{},[n])}const bq=60*1e3;function Sq(e,t=Date.now()){const r=parseInt(`${e}`,10);if(!isNaN(r))return r*1e3;const n=Date.parse(`${e}`);return isNaN(n)?bq:n-t}function Tq(e,t){return e[t]||e.all||0}function wq(e,t,r=Date.now()){return Tq(e,t)>r}function Iq(e,{statusCode:t,headers:r},n=Date.now()){const i={...e},a=r&&r["x-sentry-rate-limits"],s=r&&r["retry-after"];if(a)for(const o of a.trim().split(",")){const[c,l,,,u]=o.split(":",5),d=parseInt(c,10),f=(isNaN(d)?60:d)*1e3;if(!l)i.all=n+f;else for(const p of l.split(";"))p==="metric_bucket"?(!u||u.split(";").includes("custom"))&&(i[p]=n+f):i[p]=n+f}else s?i.all=n+Sq(s,n):t===429&&(i.all=n+60*1e3);return i}const jt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,zd="production";function pE(){return Gd("globalEventProcessors",()=>[])}function Rq(e){pE().push(e)}function Cd(e,t,r,n=0){return new qr((i,a)=>{const s=e[n];if(t===null||typeof s!="function")i(t);else{const o=s({...t},r);jt&&s.id&&o===null&&Re.log(`Event processor "${s.id}" dropped event`),to(o)?o.then(c=>Cd(e,c,r,n+1).then(i)).then(null,a):Cd(e,o,r,n+1).then(i).then(null,a)}})}function bM(e){const t=Ka(),r={sid:vt(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Aq(r)};return e&&Fa(r,e),r}function Fa(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Ka(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:vt()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const r=e.timestamp-e.started;e.duration=r>=0?r:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function SM(e,t){let r={};e.status==="ok"&&(r={status:"exited"}),Fa(e,r)}function Aq(e){return Zt({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const Oq=1;function Nq(e){const{spanId:t,traceId:r}=e.spanContext(),{data:n,op:i,parent_span_id:a,status:s,tags:o,origin:c}=bc(e);return Zt({data:n,op:i,parent_span_id:a,span_id:t,status:s,tags:o,trace_id:r,origin:c})}function bc(e){return Pq(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function Pq(e){return typeof e.getSpanJSON=="function"}function Cq(e){const{traceFlags:t}=e.spanContext();return!!(t&Oq)}function Mq(e,t,r,n,i,a){const{normalizeDepth:s=3,normalizeMaxBreadth:o=1e3}=e,c={...t,event_id:t.event_id||r.event_id||vt(),timestamp:t.timestamp||Ya()},l=r.integrations||e.integrations.map(b=>b.name);jq(c,e),$q(c,l),t.type===void 0&&Dq(c,e.stackParser);const u=qq(n,r.captureContext);r.mechanism&&Ec(c,r.mechanism);const d=i&&i.getEventProcessors?i.getEventProcessors():[],f=Jq().getScopeData();if(a){const b=a.getScopeData();E0(f,b)}if(u){const b=u.getScopeData();E0(f,b)}const p=[...r.attachments||[],...f.attachments];p.length&&(r.attachments=p),NM(c,f);const y=[...d,...pE(),...f.eventProcessors];return Cd(y,c,r).then(b=>(b&&Lq(b),typeof s=="number"&&s>0?kq(b,s,o):b))}function jq(e,t){const{environment:r,release:n,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?r:zd),e.release===void 0&&n!==void 0&&(e.release=n),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=Ss(e.message,a));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=Ss(s.value,a));const o=e.request;o&&o.url&&(o.url=Ss(o.url,a))}const g0=new WeakMap;function Dq(e,t){const r=ct._sentryDebugIds;if(!r)return;let n;const i=g0.get(t);i?n=i:(n=new Map,g0.set(t,n));const a=Object.keys(r).reduce((s,o)=>{let c;const l=n.get(o);l?c=l:(c=t(o),n.set(o,c));for(let u=c.length-1;u>=0;u--){const d=c[u];if(d.filename){s[d.filename]=r[o];break}}return s},{});try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(o=>{o.filename&&(o.debug_id=a[o.filename])})})}catch{}}function Lq(e){const t={};try{e.exception.values.forEach(n=>{n.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const r=e.debug_meta.images;Object.keys(t).forEach(n=>{r.push({type:"sourcemap",code_file:n,debug_id:t[n]})})}function $q(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function kq(e,t,r){if(!e)return null;const n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:Ti(i.data,t,r)}}))},...e.user&&{user:Ti(e.user,t,r)},...e.contexts&&{contexts:Ti(e.contexts,t,r)},...e.extra&&{extra:Ti(e.extra,t,r)}};return e.contexts&&e.contexts.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=Ti(e.contexts.trace.data,t,r))),e.spans&&(n.spans=e.spans.map(i=>{const a=bc(i).data;return a&&(i.data=Ti(a,t,r)),i})),n}function qq(e,t){if(!t)return e;const r=e?e.clone():new Sc;return r.update(t),r}function Bq(e){if(e)return Uq(e)?{captureContext:e}:Hq(e)?{captureContext:e}:e}function Uq(e){return e instanceof Sc||typeof e=="function"}const Fq=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Hq(e){return Object.keys(e).some(t=>Fq.includes(t))}function mE(e,t){return vn().captureException(e,Bq(t))}function TM(e,t){return vn().captureEvent(e,t)}function Ha(e,t){vn().addBreadcrumb(e,t)}function Vq(e){vn().setUser(e)}function wM(...e){const t=vn();if(e.length===2){const[r,n]=e;return r?t.withScope(()=>(t.getStackTop().scope=r,n(r))):t.withScope(n)}return t.withScope(e[0])}function Pr(){return vn().getClient()}function Bc(){return vn().getScope()}function _0(e){const t=Pr(),r=Yd(),n=Bc(),{release:i,environment:a=zd}=t&&t.getOptions()||{},{userAgent:s}=ct.navigator||{},o=bM({release:i,environment:a,user:n.getUser()||r.getUser(),...s&&{userAgent:s},...e}),c=r.getSession();return c&&c.status==="ok"&&Fa(c,{status:"exited"}),IM(),r.setSession(o),n.setSession(o),o}function IM(){const e=Yd(),t=Bc(),r=t.getSession()||e.getSession();r&&SM(r),RM(),e.setSession(),t.setSession()}function RM(){const e=Yd(),t=Bc(),r=Pr(),n=t.getSession()||e.getSession();n&&r&&r.captureSession&&r.captureSession(n)}function v0(e=!1){if(e){IM();return}RM()}function AM(e){return e.transaction}function OM(e,t,r){const n=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:a}=r&&r.getUser()||{},s=Zt({environment:n.environment||zd,release:n.release,user_segment:a,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",s),s}function xq(e){const t=Pr();if(!t)return{};const r=OM(bc(e).trace_id||"",t,Bc()),n=AM(e);if(!n)return r;const i=n&&n._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:a,source:s}=n.metadata;a!=null&&(r.sample_rate=`${a}`);const o=bc(n);return s&&s!=="url"&&(r.transaction=o.description),r.sampled=String(Cq(n)),t.emit&&t.emit("createDsc",r),r}function NM(e,t){const{fingerprint:r,span:n,breadcrumbs:i,sdkProcessingMetadata:a}=t;Gq(e,t),n&&Yq(e,n),Kq(e,r),zq(e,i),Wq(e,a)}function E0(e,t){const{extra:r,tags:n,user:i,contexts:a,level:s,sdkProcessingMetadata:o,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:d,propagationContext:f,transactionName:p,span:y}=t;vo(e,"extra",r),vo(e,"tags",n),vo(e,"user",i),vo(e,"contexts",a),vo(e,"sdkProcessingMetadata",o),s&&(e.level=s),p&&(e.transactionName=p),y&&(e.span=y),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function vo(e,t,r){if(r&&Object.keys(r).length){e[t]={...e[t]};for(const n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[t][n]=r[n])}}function Gq(e,t){const{extra:r,tags:n,user:i,contexts:a,level:s,transactionName:o}=t,c=Zt(r);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=Zt(n);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const u=Zt(i);u&&Object.keys(u).length&&(e.user={...u,...e.user});const d=Zt(a);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),s&&(e.level=s),o&&(e.transaction=o)}function zq(e,t){const r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0}function Wq(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Yq(e,t){e.contexts={trace:Nq(t),...e.contexts};const r=AM(t);if(r){e.sdkProcessingMetadata={dynamicSamplingContext:xq(t),...e.sdkProcessingMetadata};const n=bc(r).description;n&&(e.tags={transaction:n,...e.tags})}}function Kq(e,t){e.fingerprint=e.fingerprint?uE(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const Xq=100;let Wf,Sc=class Ed{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=b0()}static clone(t){return t?t.clone():new Ed}clone(){const t=new Ed;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&Fa(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,r){return this._tags={...this._tags,[t]:r},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,r){return this._extra={...this._extra,[t]:r},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,r){return r===null?delete this._contexts[t]:this._contexts[t]=r,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const r=typeof t=="function"?t(this):t;if(r instanceof Ed){const n=r.getScopeData();this._tags={...this._tags,...n.tags},this._extra={...this._extra,...n.extra},this._contexts={...this._contexts,...n.contexts},n.user&&Object.keys(n.user).length&&(this._user=n.user),n.level&&(this._level=n.level),n.fingerprint.length&&(this._fingerprint=n.fingerprint),r.getRequestSession()&&(this._requestSession=r.getRequestSession()),n.propagationContext&&(this._propagationContext=n.propagationContext)}else if(Ba(r)){const n=t;this._tags={...this._tags,...n.tags},this._extra={...this._extra,...n.extra},this._contexts={...this._contexts,...n.contexts},n.user&&(this._user=n.user),n.level&&(this._level=n.level),n.fingerprint&&(this._fingerprint=n.fingerprint),n.requestSession&&(this._requestSession=n.requestSession),n.propagationContext&&(this._propagationContext=n.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=b0(),this}addBreadcrumb(t,r){const n=typeof r=="number"?r:Xq;if(n<=0)return this;const i={timestamp:Ya(),...t},a=this._breadcrumbs;return a.push(i),this._breadcrumbs=a.length>n?a.slice(-n):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:r,_contexts:n,_tags:i,_extra:a,_user:s,_level:o,_fingerprint:c,_eventProcessors:l,_propagationContext:u,_sdkProcessingMetadata:d,_transactionName:f,_span:p}=this;return{breadcrumbs:t,attachments:r,contexts:n,tags:i,extra:a,user:s,level:o,fingerprint:c||[],eventProcessors:l,propagationContext:u,sdkProcessingMetadata:d,transactionName:f,span:p}}applyToEvent(t,r={},n=[]){NM(t,this.getScopeData());const i=[...n,...pE(),...this._eventProcessors];return Cd(i,t,r)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,r){const n=r&&r.event_id?r.event_id:vt();if(!this._client)return Re.warn("No client configured on scope - will not capture exception!"),n;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...r,event_id:n},this),n}captureMessage(t,r,n){const i=n&&n.event_id?n.event_id:vt();if(!this._client)return Re.warn("No client configured on scope - will not capture message!"),i;const a=new Error(t);return this._client.captureMessage(t,r,{originalException:t,syntheticException:a,...n,event_id:i},this),i}captureEvent(t,r){const n=r&&r.event_id?r.event_id:vt();return this._client?(this._client.captureEvent(t,{...r,event_id:n},this),n):(Re.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}};function Jq(){return Wf||(Wf=new Sc),Wf}function b0(){return{traceId:vt(),spanId:vt().substring(16)}}const hv="7.120.3",PM=parseFloat(hv),Qq=100;let CM=class{constructor(t,r,n,i=PM){this._version=i;let a;r?a=r:(a=new Sc,a.setClient(t));let s;n?s=n:(s=new Sc,s.setClient(t)),this._stack=[{scope:a}],t&&this.bindClient(t),this._isolationScope=s}isOlderThan(t){return this._version<t}bindClient(t){const r=this.getStackTop();r.client=t,r.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(t){const r=this.pushScope();let n;try{n=t(r)}catch(i){throw this.popScope(),i}return to(n)?n.then(i=>(this.popScope(),i),i=>{throw this.popScope(),i}):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,r){const n=this._lastEventId=r&&r.event_id?r.event_id:vt(),i=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:i,...r,event_id:n}),n}captureMessage(t,r,n){const i=this._lastEventId=n&&n.event_id?n.event_id:vt(),a=new Error(t);return this.getScope().captureMessage(t,r,{originalException:t,syntheticException:a,...n,event_id:i}),i}captureEvent(t,r){const n=r&&r.event_id?r.event_id:vt();return t.type||(this._lastEventId=n),this.getScope().captureEvent(t,{...r,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(t,r){const{scope:n,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:s=Qq}=i.getOptions&&i.getOptions()||{};if(s<=0)return;const c={timestamp:Ya(),...t},l=a?qc(()=>a(c,r)):c;l!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",l,r),n.addBreadcrumb(l,s))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,r){this.getScope().setTag(t,r),this.getIsolationScope().setTag(t,r)}setExtra(t,r){this.getScope().setExtra(t,r),this.getIsolationScope().setExtra(t,r)}setContext(t,r){this.getScope().setContext(t,r),this.getIsolationScope().setContext(t,r)}configureScope(t){const{scope:r,client:n}=this.getStackTop();n&&t(r)}run(t){const r=S0(this);try{t(this)}finally{S0(r)}}getIntegration(t){const r=this.getClient();if(!r)return null;try{return r.getIntegration(t)}catch{return jt&&Re.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,r){const n=this._callExtensionMethod("startTransaction",t,r);return jt&&!n&&(this.getClient()?Re.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
|
|
9
|
-
Sentry.addTracingExtensions();
|
|
10
|
-
Sentry.init({...});
|
|
11
|
-
`):Re.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const r=this.getStackTop().scope,n=r.getSession();n&&SM(n),this._sendSessionUpdate(),r.setSession()}startSession(t){const{scope:r,client:n}=this.getStackTop(),{release:i,environment:a=zd}=n&&n.getOptions()||{},{userAgent:s}=ct.navigator||{},o=bM({release:i,environment:a,user:r.getUser(),...s&&{userAgent:s},...t}),c=r.getSession&&r.getSession();return c&&c.status==="ok"&&Fa(c,{status:"exited"}),this.endSession(),r.setSession(o),o}shouldSendDefaultPii(){const t=this.getClient(),r=t&&t.getOptions();return!!(r&&r.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:r}=this.getStackTop(),n=t.getSession();n&&r&&r.captureSession&&r.captureSession(n)}_callExtensionMethod(t,...r){const i=Wd().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,r);jt&&Re.warn(`Extension method ${t} couldn't be found, doing nothing.`)}};function Wd(){return ct.__SENTRY__=ct.__SENTRY__||{extensions:{},hub:void 0},ct}function S0(e){const t=Wd(),r=yv(t);return MM(t,e),r}function vn(){const e=Wd();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return Zq(e)}function Yd(){return vn().getIsolationScope()}function Zq(e=Wd()){return(!eB(e)||yv(e).isOlderThan(PM))&&MM(e,new CM),yv(e)}function eB(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function yv(e){return Gd("hub",()=>new CM,e)}function MM(e,t){if(!e)return!1;const r=e.__SENTRY__=e.__SENTRY__||{};return r.hub=t,!0}function tB(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function rB(e,t,r,n){const i=EM(r),a={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!n&&t&&{dsn:Ga(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Xa(a,[s])}function nB(e,t,r,n){const i=EM(r),a=e.type&&e.type!=="replay_event"?e.type:"event";tB(e,r&&r.sdk);const s=vq(e,i,n,t);return delete e.sdkProcessingMetadata,Xa(s,[[{type:a},e]])}const iB="7";function jM(e){const t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}function aB(e){return`${jM(e)}${e.projectId}/envelope/`}function sB(e,t){return Ok({sentry_key:e.publicKey,sentry_version:iB,...t&&{sentry_client:`${t.name}/${t.version}`}})}function oB(e,t={}){const r=typeof t=="string"?t:t.tunnel,n=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return r||`${aB(e)}?${sB(e,n)}`}function cB(e,t){const r=aM(e);if(!r)return"";const n=`${jM(r)}embed/error-page/`;let i=`dsn=${Ga(r)}`;for(const a in t)if(a!=="dsn"&&a!=="onClose")if(a==="user"){const s=t.user;if(!s)continue;s.name&&(i+=`&name=${encodeURIComponent(s.name)}`),s.email&&(i+=`&email=${encodeURIComponent(s.email)}`)}else i+=`&${encodeURIComponent(a)}=${encodeURIComponent(t[a])}`;return`${n}?${i}`}const T0=[];function uB(e){const t={};return e.forEach(r=>{const{name:n}=r,i=t[n];i&&!i.isDefaultInstance&&r.isDefaultInstance||(t[n]=r)}),Object.keys(t).map(r=>t[r])}function lB(e){const t=e.defaultIntegrations||[],r=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let n;Array.isArray(r)?n=[...t,...r]:typeof r=="function"?n=uE(r(t)):n=t;const i=uB(n),a=fB(i,s=>s.name==="Debug");if(a!==-1){const[s]=i.splice(a,1);i.push(s)}return i}function dB(e,t){const r={};return t.forEach(n=>{n&&DM(e,n,r)}),r}function w0(e,t){for(const r of t)r&&r.afterAllSetup&&r.afterAllSetup(e)}function DM(e,t,r){if(r[t.name]){jt&&Re.log(`Integration skipped because it was already installed: ${t.name}`);return}if(r[t.name]=t,T0.indexOf(t.name)===-1&&(t.setupOnce(Rq,vn),T0.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),e.on&&typeof t.preprocessEvent=="function"){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,a)=>n(i,a,e))}if(e.addEventProcessor&&typeof t.processEvent=="function"){const n=t.processEvent.bind(t),i=Object.assign((a,s)=>n(a,s,e),{id:t.name});e.addEventProcessor(i)}jt&&Re.log(`Integration installed: ${t.name}`)}function fB(e,t){for(let r=0;r<e.length;r++)if(t(e[r])===!0)return r;return-1}function $i(e,t){return Object.assign(function(...n){return t(...n)},{id:e})}function pB(e){let t="";for(const r of e){const n=Object.entries(r.tags),i=n.length>0?`|#${n.map(([a,s])=>`${a}:${s}`).join(",")}`:"";t+=`${r.name}@${r.unit}:${r.metric}|${r.metricType}${i}|T${r.timestamp}
|
|
12
|
-
`}return t}function mB(e,t,r,n){const i={sent_at:new Date().toISOString()};r&&r.sdk&&(i.sdk={name:r.sdk.name,version:r.sdk.version}),n&&t&&(i.dsn=Ga(t));const a=hB(e);return Xa(i,[a])}function hB(e){const t=pB(e);return[{type:"statsd",length:t.length},t]}const I0="Not capturing exception because it's already been captured.";class yB{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=aM(t.dsn):jt&&Re.warn("No DSN provided, client will not send events."),this._dsn){const r=oB(this._dsn,t);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:r})}}captureException(t,r,n){if(l0(t)){jt&&Re.log(I0);return}let i=r&&r.event_id;return this._process(this.eventFromException(t,r).then(a=>this._captureEvent(a,r,n)).then(a=>{i=a})),i}captureMessage(t,r,n,i){let a=n&&n.event_id;const s=aE(t)?t:String(t),o=sE(t)?this.eventFromMessage(s,r,n):this.eventFromException(t,n);return this._process(o.then(c=>this._captureEvent(c,n,i)).then(c=>{a=c})),a}captureEvent(t,r,n){if(r&&r.originalException&&l0(r.originalException)){jt&&Re.log(I0);return}let i=r&&r.event_id;const s=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,r,s||n).then(o=>{i=o})),i}captureSession(t){typeof t.release!="string"?jt&&Re.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),Fa(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const r=this._transport;return r?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then(n=>r.flush(t).then(i=>n&&i))):xs(!0)}close(t){return this.flush(t).then(r=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),r))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return jt&&Re.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){const r=this._integrations[t.name];DM(this,t,this._integrations),r||w0(this,[t])}sendEvent(t,r={}){this.emit("beforeSendEvent",t,r);let n=nB(t,this._dsn,this._options._metadata,this._options.tunnel);for(const a of r.attachments||[])n=mq(n,gq(a,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(n);i&&i.then(a=>this.emit("afterSendEvent",t,a),null)}sendSession(t){const r=rB(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(r)}recordDroppedEvent(t,r,n){if(this._options.sendClientReports){const i=typeof n=="number"?n:1,a=`${t}:${r}`;jt&&Re.log(`Recording outcome: "${a}"${i>1?` (${i} times)`:""}`),this._outcomes[a]=(this._outcomes[a]||0)+i}}captureAggregateMetrics(t){jt&&Re.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const r=mB(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(r)}on(t,r){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(r)}emit(t,...r){this._hooks[t]&&this._hooks[t].forEach(n=>n(...r))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=dB(this,t),w0(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,r){let n=!1,i=!1;const a=r.exception&&r.exception.values;if(a){i=!0;for(const c of a){const l=c.mechanism;if(l&&l.handled===!1){n=!0;break}}}const s=t.status==="ok";(s&&t.errors===0||s&&n)&&(Fa(t,{...n&&{status:"crashed"},errors:t.errors||Number(i||n)}),this.captureSession(t))}_isClientDoneProcessing(t){return new qr(r=>{let n=0;const i=1,a=setInterval(()=>{this._numProcessing==0?(clearInterval(a),r(!0)):(n+=i,t&&n>=t&&(clearInterval(a),r(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,r,n,i=Yd()){const a=this.getOptions(),s=Object.keys(this._integrations);return!r.integrations&&s.length>0&&(r.integrations=s),this.emit("preprocessEvent",t,r),Mq(a,t,r,n,this,i).then(o=>{if(o===null)return o;const c={...i.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(o.contexts&&o.contexts.trace)&&c){const{traceId:u,spanId:d,parentSpanId:f,dsc:p}=c;o.contexts={trace:{trace_id:u,span_id:d,parent_span_id:f},...o.contexts};const y=p||OM(u,this,n);o.sdkProcessingMetadata={dynamicSamplingContext:y,...o.sdkProcessingMetadata}}return o})}_captureEvent(t,r={},n){return this._processEvent(t,r,n).then(i=>i.event_id,i=>{if(jt){const a=i;a.logLevel==="log"?Re.log(a.message):Re.warn(a)}})}_processEvent(t,r,n){const i=this.getOptions(),{sampleRate:a}=i,s=$M(t),o=LM(t),c=t.type||"error",l=`before send for type \`${c}\``;if(o&&typeof a=="number"&&Math.random()>a)return this.recordDroppedEvent("sample_rate","error",t),dE(new Un(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"));const u=c==="replay_event"?"replay":c,f=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,r,n,f).then(p=>{if(p===null)throw this.recordDroppedEvent("event_processor",u,t),new Un("An event processor returned `null`, will not send event.","log");if(r.data&&r.data.__sentry__===!0)return p;const g=_B(i,p,r);return gB(g,l)}).then(p=>{if(p===null){if(this.recordDroppedEvent("before_send",u,t),s){const O=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",O)}throw new Un(`${l} returned \`null\`, will not send event.`,"log")}const y=n&&n.getSession();if(!s&&y&&this._updateSessionFromEvent(y,p),s){const b=p.sdkProcessingMetadata&&p.sdkProcessingMetadata.spanCountBeforeProcessing||0,O=p.spans?p.spans.length:0,m=b-O;m>0&&this.recordDroppedEvent("before_send","span",m)}const g=p.transaction_info;if(s&&g&&p.transaction!==t.transaction){const b="custom";p.transaction_info={...g,source:b}}return this.sendEvent(p,r),p}).then(null,p=>{throw p instanceof Un?p:(this.captureException(p,{data:{__sentry__:!0},originalException:p}),new Un(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
13
|
-
Reason: ${p}`))})}_process(t){this._numProcessing++,t.then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,r=>{jt&&Re.error("Error while sending event:",r)});jt&&Re.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(r=>{const[n,i]=r.split(":");return{reason:n,category:i,quantity:t[r]}})}}function gB(e,t){const r=`${t} must return \`null\` or a valid event.`;if(to(e))return e.then(n=>{if(!Ba(n)&&n!==null)throw new Un(r);return n},n=>{throw new Un(`${t} rejected with ${n}`)});if(!Ba(e)&&e!==null)throw new Un(r);return e}function _B(e,t,r){const{beforeSend:n,beforeSendTransaction:i}=e;if(LM(t)&&n)return n(t,r);if($M(t)&&i){if(t.spans){const a=t.spans.length;t.sdkProcessingMetadata={...t.sdkProcessingMetadata,spanCountBeforeProcessing:a}}return i(t,r)}return t}function LM(e){return e.type===void 0}function $M(e){return e.type==="transaction"}function vB(e,t){t.debug===!0&&(jt?Re.enable():qc(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Bc().update(t.initialScope);const n=new e(t);EB(n),bB(n)}function EB(e){const r=vn().getStackTop();r.client=e,r.scope.setClient(e)}function bB(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}const SB=30;function kM(e,t,r=nq(e.bufferSize||SB)){let n={};const i=s=>r.drain(s);function a(s){const o=[];if(h0(s,(d,f)=>{const p=y0(f);if(wq(n,p)){const y=R0(d,f);e.recordDroppedEvent("ratelimit_backoff",p,y)}else o.push(d)}),o.length===0)return xs();const c=Xa(s[0],o),l=d=>{h0(c,(f,p)=>{const y=R0(f,p);e.recordDroppedEvent(d,y0(p),y)})},u=()=>t({body:hq(c,e.textEncoder)}).then(d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&jt&&Re.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),n=Iq(n,d),d),d=>{throw l("network_error"),d});return r.add(u).then(d=>d,d=>{if(d instanceof Un)return jt&&Re.error("Skipped sending event because buffer is full."),l("queue_overflow"),xs();throw d})}return a.__sentry__baseTransport__=!0,{send:a,flush:i}}function R0(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function qM(e,t,r=[t],n="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:r.map(a=>({name:`${n}:@sentry/${a}`,version:hv})),version:hv}),e._metadata=i}const TB=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],wB=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],BM="InboundFilters",IB=((e={})=>({name:BM,setupOnce(){},processEvent(t,r,n){const i=n.getOptions(),a=RB(e,i);return AB(t,a)?null:t}})),UM=IB;$i(BM,UM);function RB(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:TB],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:wB],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function AB(e,t){return t.ignoreInternal&&jB(e)?(jt&&Re.warn(`Event dropped due to being internal Sentry Error.
|
|
14
|
-
Event: ${wi(e)}`),!0):OB(e,t.ignoreErrors)?(jt&&Re.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
|
|
15
|
-
Event: ${wi(e)}`),!0):NB(e,t.ignoreTransactions)?(jt&&Re.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
|
|
16
|
-
Event: ${wi(e)}`),!0):PB(e,t.denyUrls)?(jt&&Re.warn(`Event dropped due to being matched by \`denyUrls\` option.
|
|
17
|
-
Event: ${wi(e)}.
|
|
18
|
-
Url: ${Md(e)}`),!0):CB(e,t.allowUrls)?!1:(jt&&Re.warn(`Event dropped due to not being matched by \`allowUrls\` option.
|
|
19
|
-
Event: ${wi(e)}.
|
|
20
|
-
Url: ${Md(e)}`),!0)}function OB(e,t){return e.type||!t||!t.length?!1:MB(e).some(r=>kc(r,t))}function NB(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const r=e.transaction;return r?kc(r,t):!1}function PB(e,t){if(!t||!t.length)return!1;const r=Md(e);return r?kc(r,t):!1}function CB(e,t){if(!t||!t.length)return!0;const r=Md(e);return r?kc(r,t):!0}function MB(e){const t=[];e.message&&t.push(e.message);let r;try{r=e.exception.values[e.exception.values.length-1]}catch{}return r&&r.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`)),jt&&t.length===0&&Re.error(`Could not extract message for event ${wi(e)}`),t}function jB(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function DB(e=[]){for(let t=e.length-1;t>=0;t--){const r=e[t];if(r&&r.filename!=="<anonymous>"&&r.filename!=="[native code]")return r.filename||null}return null}function Md(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?DB(t):null}catch{return jt&&Re.error(`Cannot extract url for event ${wi(e)}`),null}}let A0;const FM="FunctionToString",O0=new WeakMap,LB=(()=>({name:FM,setupOnce(){A0=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=cE(this),r=O0.has(Pr())&&t!==void 0?t:this;return A0.apply(r,e)}}catch{}},setup(e){O0.set(e,!0)}})),HM=LB;$i(FM,HM);const ht=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,VM="production";function $B(){return Gd("globalEventProcessors",()=>[])}function gv(e,t,r,n=0){return new qr((i,a)=>{const s=e[n];if(t===null||typeof s!="function")i(t);else{const o=s({...t},r);ht&&s.id&&o===null&&Re.log(`Event processor "${s.id}" dropped event`),to(o)?o.then(c=>gv(e,c,r,n+1).then(i)).then(null,a):gv(e,o,r,n+1).then(i).then(null,a)}})}function kB(e){const t=Ka(),r={sid:vt(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>BB(r)};return e&&Kd(r,e),r}function Kd(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Ka(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:vt()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const r=e.timestamp-e.started;e.duration=r>=0?r:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function qB(e,t){let r={};e.status==="ok"&&(r={status:"exited"}),Kd(e,r)}function BB(e){return Zt({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const UB=0,xM=1;function hE(e){const{spanId:t,traceId:r}=e.spanContext(),{data:n,op:i,parent_span_id:a,status:s,tags:o,origin:c}=Br(e);return Zt({data:n,op:i,parent_span_id:a,span_id:t,status:s,tags:o,trace_id:r,origin:c})}function Xd(e){const{traceId:t,spanId:r}=e.spanContext(),n=yE(e);return fE(t,r,n)}function Jd(e){return typeof e=="number"?N0(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?N0(e.getTime()):Ka()}function N0(e){return e>9999999999?e/1e3:e}function Br(e){return FB(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function FB(e){return typeof e.getSpanJSON=="function"}function yE(e){const{traceFlags:t}=e.spanContext();return!!(t&xM)}function no(){return ao().getClient()}function io(){return ao().getScope()}function jd(e){return e.transaction}function gE(e,t,r){const n=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:a}=r&&r.getUser()||{},s=Zt({environment:n.environment||VM,release:n.release,user_segment:a,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",s),s}function Gs(e){const t=no();if(!t)return{};const r=gE(Br(e).trace_id||"",t,io()),n=jd(e);if(!n)return r;const i=n&&n._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:a,source:s}=n.metadata;a!=null&&(r.sample_rate=`${a}`);const o=Br(n);return s&&s!=="url"&&(r.transaction=o.description),r.sampled=String(yE(n)),t.emit&&t.emit("createDsc",r),r}function HB(e,t){const{fingerprint:r,span:n,breadcrumbs:i,sdkProcessingMetadata:a}=t;VB(e,t),n&&zB(e,n),WB(e,r),xB(e,i),GB(e,a)}function VB(e,t){const{extra:r,tags:n,user:i,contexts:a,level:s,transactionName:o}=t,c=Zt(r);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=Zt(n);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const u=Zt(i);u&&Object.keys(u).length&&(e.user={...u,...e.user});const d=Zt(a);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),s&&(e.level=s),o&&(e.transaction=o)}function xB(e,t){const r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0}function GB(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function zB(e,t){e.contexts={trace:hE(t),...e.contexts};const r=jd(t);if(r){e.sdkProcessingMetadata={dynamicSamplingContext:Gs(t),...e.sdkProcessingMetadata};const n=Br(r).description;n&&(e.tags={transaction:n,...e.tags})}}function WB(e,t){e.fingerprint=e.fingerprint?uE(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const YB=100;class ws{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=P0()}static clone(t){return t?t.clone():new ws}clone(){const t=new ws;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&Kd(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,r){return this._tags={...this._tags,[t]:r},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,r){return this._extra={...this._extra,[t]:r},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,r){return r===null?delete this._contexts[t]:this._contexts[t]=r,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const r=typeof t=="function"?t(this):t;if(r instanceof ws){const n=r.getScopeData();this._tags={...this._tags,...n.tags},this._extra={...this._extra,...n.extra},this._contexts={...this._contexts,...n.contexts},n.user&&Object.keys(n.user).length&&(this._user=n.user),n.level&&(this._level=n.level),n.fingerprint.length&&(this._fingerprint=n.fingerprint),r.getRequestSession()&&(this._requestSession=r.getRequestSession()),n.propagationContext&&(this._propagationContext=n.propagationContext)}else if(Ba(r)){const n=t;this._tags={...this._tags,...n.tags},this._extra={...this._extra,...n.extra},this._contexts={...this._contexts,...n.contexts},n.user&&(this._user=n.user),n.level&&(this._level=n.level),n.fingerprint&&(this._fingerprint=n.fingerprint),n.requestSession&&(this._requestSession=n.requestSession),n.propagationContext&&(this._propagationContext=n.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=P0(),this}addBreadcrumb(t,r){const n=typeof r=="number"?r:YB;if(n<=0)return this;const i={timestamp:Ya(),...t},a=this._breadcrumbs;return a.push(i),this._breadcrumbs=a.length>n?a.slice(-n):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:r,_contexts:n,_tags:i,_extra:a,_user:s,_level:o,_fingerprint:c,_eventProcessors:l,_propagationContext:u,_sdkProcessingMetadata:d,_transactionName:f,_span:p}=this;return{breadcrumbs:t,attachments:r,contexts:n,tags:i,extra:a,user:s,level:o,fingerprint:c||[],eventProcessors:l,propagationContext:u,sdkProcessingMetadata:d,transactionName:f,span:p}}applyToEvent(t,r={},n=[]){HB(t,this.getScopeData());const i=[...n,...$B(),...this._eventProcessors];return gv(i,t,r)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,r){const n=r&&r.event_id?r.event_id:vt();if(!this._client)return Re.warn("No client configured on scope - will not capture exception!"),n;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...r,event_id:n},this),n}captureMessage(t,r,n){const i=n&&n.event_id?n.event_id:vt();if(!this._client)return Re.warn("No client configured on scope - will not capture message!"),i;const a=new Error(t);return this._client.captureMessage(t,r,{originalException:t,syntheticException:a,...n,event_id:i},this),i}captureEvent(t,r){const n=r&&r.event_id?r.event_id:vt();return this._client?(this._client.captureEvent(t,{...r,event_id:n},this),n):(Re.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function P0(){return{traceId:vt(),spanId:vt().substring(16)}}const KB="7.120.3",GM=parseFloat(KB),XB=100;class zM{constructor(t,r,n,i=GM){this._version=i;let a;r?a=r:(a=new ws,a.setClient(t));let s;n?s=n:(s=new ws,s.setClient(t)),this._stack=[{scope:a}],t&&this.bindClient(t),this._isolationScope=s}isOlderThan(t){return this._version<t}bindClient(t){const r=this.getStackTop();r.client=t,r.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(t){const r=this.pushScope();let n;try{n=t(r)}catch(i){throw this.popScope(),i}return to(n)?n.then(i=>(this.popScope(),i),i=>{throw this.popScope(),i}):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,r){const n=this._lastEventId=r&&r.event_id?r.event_id:vt(),i=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:i,...r,event_id:n}),n}captureMessage(t,r,n){const i=this._lastEventId=n&&n.event_id?n.event_id:vt(),a=new Error(t);return this.getScope().captureMessage(t,r,{originalException:t,syntheticException:a,...n,event_id:i}),i}captureEvent(t,r){const n=r&&r.event_id?r.event_id:vt();return t.type||(this._lastEventId=n),this.getScope().captureEvent(t,{...r,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(t,r){const{scope:n,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:s=XB}=i.getOptions&&i.getOptions()||{};if(s<=0)return;const c={timestamp:Ya(),...t},l=a?qc(()=>a(c,r)):c;l!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",l,r),n.addBreadcrumb(l,s))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,r){this.getScope().setTag(t,r),this.getIsolationScope().setTag(t,r)}setExtra(t,r){this.getScope().setExtra(t,r),this.getIsolationScope().setExtra(t,r)}setContext(t,r){this.getScope().setContext(t,r),this.getIsolationScope().setContext(t,r)}configureScope(t){const{scope:r,client:n}=this.getStackTop();n&&t(r)}run(t){const r=C0(this);try{t(this)}finally{C0(r)}}getIntegration(t){const r=this.getClient();if(!r)return null;try{return r.getIntegration(t)}catch{return ht&&Re.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,r){const n=this._callExtensionMethod("startTransaction",t,r);return ht&&!n&&(this.getClient()?Re.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
|
|
21
|
-
Sentry.addTracingExtensions();
|
|
22
|
-
Sentry.init({...});
|
|
23
|
-
`):Re.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const r=this.getStackTop().scope,n=r.getSession();n&&qB(n),this._sendSessionUpdate(),r.setSession()}startSession(t){const{scope:r,client:n}=this.getStackTop(),{release:i,environment:a=VM}=n&&n.getOptions()||{},{userAgent:s}=ct.navigator||{},o=kB({release:i,environment:a,user:r.getUser(),...s&&{userAgent:s},...t}),c=r.getSession&&r.getSession();return c&&c.status==="ok"&&Kd(c,{status:"exited"}),this.endSession(),r.setSession(o),o}shouldSendDefaultPii(){const t=this.getClient(),r=t&&t.getOptions();return!!(r&&r.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:r}=this.getStackTop(),n=t.getSession();n&&r&&r.captureSession&&r.captureSession(n)}_callExtensionMethod(t,...r){const i=Uc().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,r);ht&&Re.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function Uc(){return ct.__SENTRY__=ct.__SENTRY__||{extensions:{},hub:void 0},ct}function C0(e){const t=Uc(),r=_v(t);return WM(t,e),r}function ao(){const e=Uc();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return JB(e)}function _E(){return ao().getIsolationScope()}function JB(e=Uc()){return(!QB(e)||_v(e).isOlderThan(GM))&&WM(e,new zM),_v(e)}function QB(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function _v(e){return Gd("hub",()=>new zM,e)}function WM(e,t){if(!e)return!1;const r=e.__SENTRY__=e.__SENTRY__||{};return r.hub=t,!0}function Va(e){return ao().getScope().getTransaction()}let M0=!1;function ZB(){M0||(M0=!0,pM(vv),mM(vv))}function vv(){const e=Va();if(e){const t="internal_error";ht&&Re.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}vv.tag="sentry_tracingErrorCallback";var j0;(function(e){e.Ok="ok";const r="deadline_exceeded";e.DeadlineExceeded=r;const n="unauthenticated";e.Unauthenticated=n;const i="permission_denied";e.PermissionDenied=i;const a="not_found";e.NotFound=a;const s="resource_exhausted";e.ResourceExhausted=s;const o="invalid_argument";e.InvalidArgument=o;const c="unimplemented";e.Unimplemented=c;const l="unavailable";e.Unavailable=l;const u="internal_error";e.InternalError=u;const d="unknown_error";e.UnknownError=d;const f="cancelled";e.Cancelled=f;const p="already_exists";e.AlreadyExists=p;const y="failed_precondition";e.FailedPrecondition=y;const g="aborted";e.Aborted=g;const b="out_of_range";e.OutOfRange=b;const O="data_loss";e.DataLoss=O})(j0||(j0={}));function eU(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}function vE(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const r=eU(t);r!=="unknown_error"&&e.setStatus(r)}function so(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=no(),r=e||t&&t.getOptions();return!!r&&(r.enableTracing||"tracesSampleRate"in r||"tracesSampler"in r)}function YM(e){if(!so())return;const t=nU(e),r=ao(),n=e.scope?e.scope.getSpan():tU();if(e.onlyIfParent&&!n)return;const s=(e.scope||io()).clone();return rU(r,{parentSpan:n,spanContext:t,forceTransaction:e.forceTransaction,scope:s})}function tU(){return io().getSpan()}function rU(e,{parentSpan:t,spanContext:r,forceTransaction:n,scope:i}){if(!so())return;const a=_E();let s;if(t&&!n)s=t.startChild(r);else if(t){const o=Gs(t),{traceId:c,spanId:l}=t.spanContext(),u=yE(t);s=e.startTransaction({traceId:c,parentSpanId:l,parentSampled:u,...r,metadata:{dynamicSamplingContext:o,...r.metadata}})}else{const{traceId:o,dsc:c,parentSpanId:l,sampled:u}={...a.getPropagationContext(),...i.getPropagationContext()};s=e.startTransaction({traceId:o,parentSpanId:l,parentSampled:u,...r,metadata:{dynamicSamplingContext:c,...r.metadata}})}return i.setSpan(s),iU(s,i,a),s}function nU(e){if(e.startTime){const t={...e};return t.startTimestamp=Jd(e.startTime),delete t.startTime,t}return e}const KM="_sentryScope",XM="_sentryIsolationScope";function iU(e,t,r){e&&(Ua(e,XM,r),Ua(e,KM,t))}function aU(e){return{scope:e[KM],isolationScope:e[XM]}}const Is="sentry.source",Es="sentry.sample_rate",Qu="sentry.op",bs="sentry.origin",sU="profile_id";class JM{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class Qd{constructor(t={}){this._traceId=t.traceId||vt(),this._spanId=t.spanId||vt().substring(16),this._startTime=t.startTimestamp||Ka(),this.tags=t.tags?{...t.tags}:{},this.data=t.data?{...t.data}:{},this.instrumenter=t.instrumenter||"sentry",this._attributes={},this.setAttributes({[bs]:t.origin||"manual",[Qu]:t.op,...t.attributes}),this._name=t.name||t.description,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.status&&(this._status=t.status),t.endTimestamp&&(this._endTime=t.endTimestamp),t.exclusiveTime!==void 0&&(this._exclusiveTime=t.exclusiveTime),this._measurements=t.measurements?{...t.measurements}:{}}get name(){return this._name||""}set name(t){this.updateName(t)}get description(){return this._name}set description(t){this._name=t}get traceId(){return this._traceId}set traceId(t){this._traceId=t}get spanId(){return this._spanId}set spanId(t){this._spanId=t}set parentSpanId(t){this._parentSpanId=t}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(t){this._sampled=t}get attributes(){return this._attributes}set attributes(t){this._attributes=t}get startTimestamp(){return this._startTime}set startTimestamp(t){this._startTime=t}get endTimestamp(){return this._endTime}set endTimestamp(t){this._endTime=t}get status(){return this._status}set status(t){this._status=t}get op(){return this._attributes[Qu]}set op(t){this.setAttribute(Qu,t)}get origin(){return this._attributes[bs]}set origin(t){this.setAttribute(bs,t)}spanContext(){const{_spanId:t,_traceId:r,_sampled:n}=this;return{spanId:t,traceId:r,traceFlags:n?xM:UB}}startChild(t){const r=new Qd({...t,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});r.spanRecorder=this.spanRecorder,r.spanRecorder&&r.spanRecorder.add(r);const n=jd(this);if(r.transaction=n,ht&&n){const i=t&&t.op||"< unknown op >",a=Br(r).description||"< unknown name >",s=n.spanContext().spanId,o=`[Tracing] Starting '${i}' span on transaction '${a}' (${s}).`;Re.log(o),this._logMessage=o}return r}setTag(t,r){return this.tags={...this.tags,[t]:r},this}setData(t,r){return this.data={...this.data,[t]:r},this}setAttribute(t,r){r===void 0?delete this._attributes[t]:this._attributes[t]=r}setAttributes(t){Object.keys(t).forEach(r=>this.setAttribute(r,t[r]))}setStatus(t){return this._status=t,this}setHttpStatus(t){return vE(this,t),this}setName(t){this.updateName(t)}updateName(t){return this._name=t,this}isSuccess(){return this._status==="ok"}finish(t){return this.end(t)}end(t){if(this._endTime)return;const r=jd(this);if(ht&&r&&r.spanContext().spanId!==this._spanId){const n=this._logMessage;n&&Re.log(n.replace("Starting","Finishing"))}this._endTime=Jd(t)}toTraceparent(){return Xd(this)}toContext(){return Zt({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(t){return this.data=t.data||{},this._name=t.name||t.description,this._endTime=t.endTimestamp,this.op=t.op,this._parentSpanId=t.parentSpanId,this._sampled=t.sampled,this._spanId=t.spanId||this._spanId,this._startTime=t.startTimestamp||this._startTime,this._status=t.status,this.tags=t.tags||{},this._traceId=t.traceId||this._traceId,this}getTraceContext(){return hE(this)}getSpanJSON(){return Zt({data:this._getData(),description:this._name,op:this._attributes[Qu],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[bs],_metrics_summary:void 0,profile_id:this._attributes[sU],exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:t,_attributes:r}=this,n=Object.keys(t).length>0,i=Object.keys(r).length>0;if(!(!n&&!i))return n&&i?{...t,...r}:n?t:r}}class QM extends Qd{constructor(t,r){super(t),this._contexts={},this._hub=r||ao(),this._name=t.name||"",this._metadata={...t.metadata},this._trimEnd=t.trimEnd,this.transaction=this;const n=this._metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(t){this.setName(t)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[Is]&&{source:this._attributes[Is]},...this._attributes[Es]&&{sampleRate:this._attributes[Es]}}}set metadata(t){this._metadata=t}setName(t,r="custom"){this._name=t,this.setAttribute(Is,r)}updateName(t){return this._name=t,this}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new JM(t)),this.spanRecorder.add(this)}setContext(t,r){r===null?delete this._contexts[t]:this._contexts[t]=r}setMeasurement(t,r,n=""){this._measurements[t]={value:r,unit:n}}setMetadata(t){this._metadata={...this._metadata,...t}}end(t){const r=Jd(t),n=this._finishTransaction(r);if(n)return this._hub.captureEvent(n)}toContext(){const t=super.toContext();return Zt({...t,name:this._name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this._name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){return Gs(this)}setHub(t){this._hub=t}getProfileId(){if(this._contexts!==void 0&&this._contexts.profile!==void 0)return this._contexts.profile.profile_id}_finishTransaction(t){if(this._endTime!==void 0)return;this._name||(ht&&Re.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(t);const r=this._hub.getClient();if(r&&r.emit&&r.emit("finishTransaction",this),this._sampled!==!0){ht&&Re.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),r&&r.recordDroppedEvent("sample_rate","transaction");return}const n=this.spanRecorder?this.spanRecorder.spans.filter(u=>u!==this&&Br(u).timestamp):[];if(this._trimEnd&&n.length>0){const u=n.map(d=>Br(d).timestamp).filter(Boolean);this._endTime=u.reduce((d,f)=>d>f?d:f)}const{scope:i,isolationScope:a}=aU(this),{metadata:s}=this,{source:o}=s,c={contexts:{...this._contexts,trace:hE(this)},spans:n,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...s,capturedSpanScope:i,capturedSpanIsolationScope:a,...Zt({dynamicSamplingContext:Gs(this)})},_metrics_summary:void 0,...o&&{transaction_info:{source:o}}};return Object.keys(this._measurements).length>0&&(ht&&Re.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),c.measurements=this._measurements),ht&&Re.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),c}}const bd={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},oU="finishReason",cs=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class cU extends JM{constructor(t,r,n,i){super(i),this._pushActivity=t,this._popActivity=r,this.transactionSpanId=n}add(t){if(t.spanContext().spanId!==this.transactionSpanId){const r=t.end;t.end=(...n)=>(this._popActivity(t.spanContext().spanId),r.apply(t,n)),Br(t).timestamp===void 0&&this._pushActivity(t.spanContext().spanId)}super.add(t)}}class uU extends QM{constructor(t,r,n=bd.idleTimeout,i=bd.finalTimeout,a=bd.heartbeatInterval,s=!1,o=!1){super(t,r),this._idleHub=r,this._idleTimeout=n,this._finalTimeout=i,this._heartbeatInterval=a,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=cs[4],this._autoFinishAllowed=!o,s&&(ht&&Re.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),r.getScope().setSpan(this)),o||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=cs[3],this.end())},this._finalTimeout)}end(t){const r=Jd(t);if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setAttribute(oU,this._finishReason),this.spanRecorder){ht&&Re.log("[Tracing] finishing IdleTransaction",new Date(r*1e3).toISOString(),this.op);for(const n of this._beforeFinishCallbacks)n(this,r);this.spanRecorder.spans=this.spanRecorder.spans.filter(n=>{if(n.spanContext().spanId===this.spanContext().spanId)return!0;Br(n).timestamp||(n.setStatus("cancelled"),n.end(r),ht&&Re.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(n,void 0,2)));const{start_timestamp:i,timestamp:a}=Br(n),s=i&&i<r,o=(this._finalTimeout+this._idleTimeout)/1e3,c=a&&i&&a-i<o;if(ht){const l=JSON.stringify(n,void 0,2);s?c||Re.log("[Tracing] discarding Span since it finished after Transaction final timeout",l):Re.log("[Tracing] discarding Span since it happened after Transaction was finished",l)}return s&&c}),ht&&Re.log("[Tracing] flushing IdleTransaction")}else ht&&Re.log("[Tracing] No active IdleTransaction");if(this._onScope){const n=this._idleHub.getScope();n.getTransaction()===this&&n.setSpan(void 0)}return super.end(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){if(!this.spanRecorder){const r=i=>{this._finished||this._pushActivity(i)},n=i=>{this._finished||this._popActivity(i)};this.spanRecorder=new cU(r,n,this.spanContext().spanId,t),ht&&Re.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:r}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=r===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=cs[5],this.end(t)))}setFinishReason(t){this._finishReason=t}sendAutoFinishSignal(){this._autoFinishAllowed||(ht&&Re.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=cs[1],this.end(t))},this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),ht&&Re.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,ht&&Re.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(ht&&Re.log(`[Tracing] popActivity ${t}`),delete this.activities[t],ht&&Re.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const r=Ka();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=cs[5],this.end(r)):this._restartIdleTimeout(r+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?this._autoFinishAllowed&&(ht&&Re.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=cs[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){ht&&Re.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function ZM(e,t,r){if(!so(t))return e.sampled=!1,e;if(e.sampled!==void 0)return e.setAttribute(Es,Number(e.sampled)),e;let n;return typeof t.tracesSampler=="function"?(n=t.tracesSampler(r),e.setAttribute(Es,Number(n))):r.parentSampled!==void 0?n=r.parentSampled:typeof t.tracesSampleRate<"u"?(n=t.tracesSampleRate,e.setAttribute(Es,Number(n))):(n=1,e.setAttribute(Es,n)),ej(n)?n?(e.sampled=Math.random()<n,e.sampled?(ht&&Re.log(`[Tracing] starting ${e.op} transaction - ${Br(e).description}`),e):(ht&&Re.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),e)):(ht&&Re.log(`[Tracing] Discarding transaction because ${typeof t.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),e.sampled=!1,e):(ht&&Re.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function ej(e){return tM(e)||!(typeof e=="number"||typeof e=="boolean")?(ht&&Re.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e<0||e>1?(ht&&Re.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function lU(){const t=this.getScope().getSpan();return t?{"sentry-trace":Xd(t)}:{}}function dU(e,t){const r=this.getClient(),n=r&&r.getOptions()||{},i=n.instrumenter||"sentry",a=e.instrumenter||"sentry";i!==a&&(ht&&Re.error(`A transaction was started with instrumenter=\`${a}\`, but the SDK is configured with the \`${i}\` instrumenter.
|
|
24
|
-
The transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),e.sampled=!1);let s=new QM(e,this);return s=ZM(s,n,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...t}),s.isRecording()&&s.initSpanRecorder(n._experiments&&n._experiments.maxSpans),r&&r.emit&&r.emit("startTransaction",s),s}function D0(e,t,r,n,i,a,s,o=!1){const c=e.getClient(),l=c&&c.getOptions()||{};let u=new uU(t,e,r,n,s,i,o);return u=ZM(u,l,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...a}),u.isRecording()&&u.initSpanRecorder(l._experiments&&l._experiments.maxSpans),c&&c.emit&&c.emit("startTransaction",u),u}function fU(){const e=Uc();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=dU),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=lU),ZB())}function pU(e,t,r){const n=Va();n&&n.setMeasurement(e,t,r)}function mU(e,t){const r={sent_at:new Date().toISOString()};t&&(r.dsn=Ga(t));const n=e.map(hU);return Xa(r,n)}function hU(e){return[{type:"span"},e]}const Dt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Je=ct;function yU(){Je.document?Je.document.addEventListener("visibilitychange",()=>{const e=Va();if(Je.document.hidden&&e){const t="cancelled",{op:r,status:n}=Br(e);Dt&&Re.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${r}`),n||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}}):Dt&&Re.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const Fc=(e,t,r)=>{let n,i;return a=>{t.value>=0&&(a||r)&&(i=t.value-(n||0),(i||n===void 0)&&(n=t.value,t.delta=i,e(t)))}},gU=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,_U=()=>{const e=Je.performance.timing,t=Je.performance.navigation.type,r={entryType:"navigation",startTime:0,type:t==2?"back_forward":t===1?"reload":"navigate"};for(const n in e)n!=="navigationStart"&&n!=="toJSON"&&(r[n]=Math.max(e[n]-e.navigationStart,0));return r},Zd=()=>Je.__WEB_VITALS_POLYFILL__?Je.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||_U()):Je.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],EE=()=>{const e=Zd();return e&&e.activationStart||0},Hc=(e,t)=>{const r=Zd();let n="navigate";return r&&(Je.document&&Je.document.prerendering||EE()>0?n="prerender":n=r.type.replace(/_/g,"-")),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:gU(),navigationType:n}},oo=(e,t,r)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const n=new PerformanceObserver(i=>{t(i.getEntries())});return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch{}},Vc=(e,t)=>{const r=n=>{(n.type==="pagehide"||Je.document.visibilityState==="hidden")&&(e(n),t&&(removeEventListener("visibilitychange",r,!0),removeEventListener("pagehide",r,!0)))};Je.document&&(addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0))},vU=(e,t={})=>{const r=Hc("CLS",0);let n,i=0,a=[];const s=c=>{c.forEach(l=>{if(!l.hadRecentInput){const u=a[0],d=a[a.length-1];i&&a.length!==0&&l.startTime-d.startTime<1e3&&l.startTime-u.startTime<5e3?(i+=l.value,a.push(l)):(i=l.value,a=[l]),i>r.value&&(r.value=i,r.entries=a,n&&n())}})},o=oo("layout-shift",s);if(o){n=Fc(e,r,t.reportAllChanges);const c=()=>{s(o.takeRecords()),n(!0)};return Vc(c),c}};let Dd=-1;const EU=()=>{Je.document&&Je.document.visibilityState&&(Dd=Je.document.visibilityState==="hidden"&&!Je.document.prerendering?0:1/0)},bU=()=>{Vc(({timeStamp:e})=>{Dd=e},!0)},bE=()=>(Dd<0&&(EU(),bU()),{get firstHiddenTime(){return Dd}}),SU=e=>{const t=bE(),r=Hc("FID");let n;const i=o=>{o.startTime<t.firstHiddenTime&&(r.value=o.processingStart-o.startTime,r.entries.push(o),n(!0))},a=o=>{o.forEach(i)},s=oo("first-input",a);n=Fc(e,r),s&&Vc(()=>{a(s.takeRecords()),s.disconnect()},!0)};let tj=0,Yf=1/0,Zu=0;const TU=e=>{e.forEach(t=>{t.interactionId&&(Yf=Math.min(Yf,t.interactionId),Zu=Math.max(Zu,t.interactionId),tj=Zu?(Zu-Yf)/7+1:0)})};let Ev;const wU=()=>Ev?tj:performance.interactionCount||0,IU=()=>{"interactionCount"in performance||Ev||(Ev=oo("event",TU,{type:"event",buffered:!0,durationThreshold:0}))},rj=()=>wU(),L0=10,oi=[],Kf={},$0=e=>{const t=oi[oi.length-1],r=Kf[e.interactionId];if(r||oi.length<L0||e.duration>t.latency){if(r)r.entries.push(e),r.latency=Math.max(r.latency,e.duration);else{const n={id:e.interactionId,latency:e.duration,entries:[e]};Kf[n.id]=n,oi.push(n)}oi.sort((n,i)=>i.latency-n.latency),oi.splice(L0).forEach(n=>{delete Kf[n.id]})}},RU=()=>{const e=Math.min(oi.length-1,Math.floor(rj()/50));return oi[e]},AU=(e,t)=>{t=t||{},IU();const r=Hc("INP");let n;const i=s=>{s.forEach(c=>{c.interactionId&&$0(c),c.entryType==="first-input"&&!oi.some(u=>u.entries.some(d=>c.duration===d.duration&&c.startTime===d.startTime))&&$0(c)});const o=RU();o&&o.latency!==r.value&&(r.value=o.latency,r.entries=o.entries,n())},a=oo("event",i,{durationThreshold:t.durationThreshold||40});n=Fc(e,r,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),Vc(()=>{i(a.takeRecords()),r.value<0&&rj()>0&&(r.value=0,r.entries=[]),n(!0)}))},k0={},OU=e=>{const t=bE(),r=Hc("LCP");let n;const i=s=>{const o=s[s.length-1];if(o){const c=Math.max(o.startTime-EE(),0);c<t.firstHiddenTime&&(r.value=c,r.entries=[o],n())}},a=oo("largest-contentful-paint",i);if(a){n=Fc(e,r);const s=()=>{k0[r.id]||(i(a.takeRecords()),a.disconnect(),k0[r.id]=!0,n(!0))};return["keydown","click"].forEach(o=>{Je.document&&addEventListener(o,s,{once:!0,capture:!0})}),Vc(s,!0),s}},bv=e=>{Je.document&&(Je.document.prerendering?addEventListener("prerenderingchange",()=>bv(e),!0):Je.document.readyState!=="complete"?addEventListener("load",()=>bv(e),!0):setTimeout(e,0))},NU=(e,t)=>{t=t||{};const r=Hc("TTFB"),n=Fc(e,r,t.reportAllChanges);bv(()=>{const i=Zd();if(i){if(r.value=Math.max(i.responseStart-EE(),0),r.value<0||r.value>performance.now())return;r.entries=[i],n(!0)}})},pc={},Ld={};let nj,ij,aj,sj,oj;function PU(e,t=!1){return xc("cls",e,LU,nj,t)}function CU(e,t=!1){return xc("lcp",e,kU,aj,t)}function MU(e){return xc("ttfb",e,qU,sj)}function jU(e){return xc("fid",e,$U,ij)}function DU(e){return xc("inp",e,BU,oj)}function Tc(e,t){return cj(e,t),Ld[e]||(UU(e),Ld[e]=!0),uj(e,t)}function co(e,t){const r=pc[e];if(!(!r||!r.length))for(const n of r)try{n(t)}catch(i){Dt&&Re.error(`Error while triggering instrumentation handler.
|
|
25
|
-
Type: ${e}
|
|
26
|
-
Name: ${fi(n)}
|
|
27
|
-
Error:`,i)}}function LU(){return vU(e=>{co("cls",{metric:e}),nj=e},{reportAllChanges:!0})}function $U(){return SU(e=>{co("fid",{metric:e}),ij=e})}function kU(){return OU(e=>{co("lcp",{metric:e}),aj=e})}function qU(){return NU(e=>{co("ttfb",{metric:e}),sj=e})}function BU(){return AU(e=>{co("inp",{metric:e}),oj=e})}function xc(e,t,r,n,i=!1){cj(e,t);let a;return Ld[e]||(a=r(),Ld[e]=!0),n&&t({metric:n}),uj(e,t,i?a:void 0)}function UU(e){const t={};e==="event"&&(t.durationThreshold=0),oo(e,r=>{co(e,{entries:r})},t)}function cj(e,t){pc[e]=pc[e]||[],pc[e].push(t)}function uj(e,t,r){return()=>{r&&r();const n=pc[e];if(!n)return;const i=n.indexOf(t);i!==-1&&n.splice(i,1)}}function Xf(e){return typeof e=="number"&&isFinite(e)}function zs(e,{startTimestamp:t,...r}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...r})}const FU=2147483647;function er(e){return e/1e3}function SE(){return Je&&Je.addEventListener&&Je.performance}let q0=0,Yt={},Dn,mc;function HU(){const e=SE();if(e&&tn){e.mark&&Je.performance.mark("sentry-tracing-init");const t=YU(),r=zU(),n=WU(),i=KU();return()=>{t(),r(),n(),i()}}return()=>{}}function VU(){Tc("longtask",({entries:e})=>{for(const t of e){const r=Va();if(!r)return;const n=er(tn+t.startTime),i=er(t.duration);r.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+i})}})}function xU(){Tc("event",({entries:e})=>{for(const t of e){const r=Va();if(!r)return;if(t.name==="click"){const n=er(tn+t.startTime),i=er(t.duration),a={description:Vs(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+i},s=nM(t.target);s&&(a.attributes={"ui.component_name":s}),r.startChild(a)}}})}function GU(e,t){if(SE()&&tn){const n=XU(e,t);return()=>{n()}}return()=>{}}function zU(){return PU(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Dt&&Re.log("[Measurements] Adding CLS"),Yt.cls={value:e.value,unit:""},mc=t)},!0)}function WU(){return CU(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Dt&&Re.log("[Measurements] Adding LCP"),Yt.lcp={value:e.value,unit:"millisecond"},Dn=t)},!0)}function YU(){return jU(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const r=er(tn),n=er(t.startTime);Dt&&Re.log("[Measurements] Adding FID"),Yt.fid={value:e.value,unit:"millisecond"},Yt["mark.fid"]={value:r+n,unit:"second"}})}function KU(){return MU(({metric:e})=>{e.entries[e.entries.length-1]&&(Dt&&Re.log("[Measurements] Adding TTFB"),Yt.ttfb={value:e.value,unit:"millisecond"})})}const B0={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function XU(e,t){return DU(({metric:r})=>{if(r.value===void 0)return;const n=r.entries.find(T=>T.duration===r.value&&B0[T.name]!==void 0),i=no();if(!n||!i)return;const a=B0[n.name],s=i.getOptions(),o=er(tn+n.startTime),c=er(r.value),l=n.interactionId!==void 0?e[n.interactionId]:void 0;if(l===void 0)return;const{routeName:u,parentContext:d,activeTransaction:f,user:p,replayId:y}=l,g=p!==void 0?p.email||p.id||p.ip_address:void 0,b=f!==void 0?f.getProfileId():void 0,O=new Qd({startTimestamp:o,endTimestamp:o+c,op:`ui.interaction.${a}`,name:Vs(n.target),attributes:{release:s.release,environment:s.environment,transaction:u,...g!==void 0&&g!==""?{user:g}:{},...b!==void 0?{profile_id:b}:{},...y!==void 0?{replay_id:y}:{}},exclusiveTime:r.value,measurements:{inp:{value:r.value,unit:"millisecond"}}}),m=aF(d,s,t);if(m&&Math.random()<m){const T=O?mU([O],i.getDsn()):void 0,I=i&&i.getTransport();I&&T&&I.send(T).then(null,h=>{Dt&&Re.error("Error while sending interaction:",h)});return}})}function JU(e){const t=SE();if(!t||!Je.performance.getEntries||!tn)return;Dt&&Re.log("[Tracing] Adding & adjusting spans using Performance API");const r=er(tn),n=t.getEntries(),{op:i,start_timestamp:a}=Br(e);if(n.slice(q0).forEach(s=>{const o=er(s.startTime),c=er(s.duration);if(!(e.op==="navigation"&&a&&r+o<a))switch(s.entryType){case"navigation":{ZU(e,s,r);break}case"mark":case"paint":case"measure":{QU(e,s,o,c,r);const l=bE(),u=s.startTime<l.firstHiddenTime;s.name==="first-paint"&&u&&(Dt&&Re.log("[Measurements] Adding FP"),Yt.fp={value:s.startTime,unit:"millisecond"}),s.name==="first-contentful-paint"&&u&&(Dt&&Re.log("[Measurements] Adding FCP"),Yt.fcp={value:s.startTime,unit:"millisecond"});break}case"resource":{tF(e,s,s.name,o,c,r);break}}}),q0=Math.max(n.length-1,0),rF(e),i==="pageload"){iF(Yt),["fcp","fp","lcp"].forEach(o=>{if(!Yt[o]||!a||r>=a)return;const c=Yt[o].value,l=r+er(c),u=Math.abs((l-a)*1e3),d=u-c;Dt&&Re.log(`[Measurements] Normalized ${o} from ${c} to ${u} (${d})`),Yt[o].value=u});const s=Yt["mark.fid"];s&&Yt.fid&&(zs(e,{description:"first input delay",endTimestamp:s.value+er(Yt.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:s.value}),delete Yt["mark.fid"]),"fcp"in Yt||delete Yt.cls,Object.keys(Yt).forEach(o=>{pU(o,Yt[o].value,Yt[o].unit)}),nF(e)}Dn=void 0,mc=void 0,Yt={}}function QU(e,t,r,n,i){const a=i+r,s=a+n;return zs(e,{description:t.name,endTimestamp:s,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:a}),a}function ZU(e,t,r){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(n=>{el(e,t,n,r)}),el(e,t,"secureConnection",r,"TLS/SSL","connectEnd"),el(e,t,"fetch",r,"cache","domainLookupStart"),el(e,t,"domainLookup",r,"DNS"),eF(e,t,r)}function el(e,t,r,n,i,a){const s=a?t[a]:t[`${r}End`],o=t[`${r}Start`];!o||!s||zs(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||r,startTimestamp:n+er(o),endTimestamp:n+er(s)})}function eF(e,t,r){t.responseEnd&&(zs(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:r+er(t.requestStart),endTimestamp:r+er(t.responseEnd)}),zs(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:r+er(t.responseStart),endTimestamp:r+er(t.responseEnd)}))}function tF(e,t,r,n,i,a){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const s=ka(r),o={};Jf(o,t,"transferSize","http.response_transfer_size"),Jf(o,t,"encodedBodySize","http.response_content_length"),Jf(o,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(o["resource.render_blocking_status"]=t.renderBlockingStatus),s.protocol&&(o["url.scheme"]=s.protocol.split(":").pop()),s.host&&(o["server.address"]=s.host),o["url.same_origin"]=r.includes(Je.location.origin);const c=a+n,l=c+i;zs(e,{description:r.replace(Je.location.origin,""),endTimestamp:l,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:c,data:o})}function rF(e){const t=Je.navigator;if(!t)return;const r=t.connection;r&&(r.effectiveType&&e.setTag("effectiveConnectionType",r.effectiveType),r.type&&e.setTag("connectionType",r.type),Xf(r.rtt)&&(Yt["connection.rtt"]={value:r.rtt,unit:"millisecond"})),Xf(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),Xf(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}function nF(e){Dn&&(Dt&&Re.log("[Measurements] Adding LCP Data"),Dn.element&&e.setTag("lcp.element",Vs(Dn.element)),Dn.id&&e.setTag("lcp.id",Dn.id),Dn.url&&e.setTag("lcp.url",Dn.url.trim().slice(0,200)),e.setTag("lcp.size",Dn.size)),mc&&mc.sources&&(Dt&&Re.log("[Measurements] Adding CLS Data"),mc.sources.forEach((t,r)=>e.setTag(`cls.source.${r+1}`,Vs(t.node))))}function Jf(e,t,r,n){const i=t[r];i!=null&&i<FU&&(e[n]=i)}function iF(e){const t=Zd();if(!t)return;const{responseStart:r,requestStart:n}=t;n<=r&&(Dt&&Re.log("[Measurements] Adding TTFB Request Time"),e["ttfb.requestTime"]={value:r-n,unit:"millisecond"})}function aF(e,t,r){if(!so(t))return!1;let n;return e!==void 0&&typeof t.tracesSampler=="function"?n=t.tracesSampler({transactionContext:e,name:e.name,parentSampled:e.parentSampled,attributes:{...e.data,...e.attributes},location:Je.location}):e!==void 0&&e.sampled!==void 0?n=e.sampled:typeof t.tracesSampleRate<"u"?n=t.tracesSampleRate:n=1,ej(n)?n===!0?r:n===!1?0:n*r:(Dt&&Re.warn("[Tracing] Discarding interaction span because of invalid sample rate."),!1)}function sF(e,t,r,n,i="auto.http.browser"){if(!so()||!e.fetchData)return;const a=t(e.fetchData.url);if(e.endTimestamp&&a){const p=e.fetchData.__span;if(!p)return;const y=n[p];y&&(uF(y,e),delete n[p]);return}const s=io(),o=no(),{method:c,url:l}=e.fetchData,u=cF(l),d=u?ka(u).host:void 0,f=a?YM({name:`${c} ${l}`,onlyIfParent:!0,attributes:{url:l,type:"fetch","http.method":c,"http.url":u,"server.address":d,[bs]:i},op:"http.client"}):void 0;if(f&&(e.fetchData.__span=f.spanContext().spanId,n[f.spanContext().spanId]=f),r(e.fetchData.url)&&o){const p=e.args[0];e.args[1]=e.args[1]||{};const y=e.args[1];y.headers=oF(p,o,s,y,f)}return f}function oF(e,t,r,n,i){const a=i||r.getSpan(),s=_E(),{traceId:o,spanId:c,sampled:l,dsc:u}={...s.getPropagationContext(),...r.getPropagationContext()},d=a?Xd(a):fE(o,c,l),f=vM(u||(a?Gs(a):gE(o,t,r))),p=n.headers||(typeof Request<"u"&&di(e,Request)?e.headers:void 0);if(p)if(typeof Headers<"u"&&di(p,Headers)){const y=new Headers(p);return y.append("sentry-trace",d),f&&y.append(pv,f),y}else if(Array.isArray(p)){const y=[...p,["sentry-trace",d]];return f&&y.push([pv,f]),y}else{const y="baggage"in p?p.baggage:void 0,g=[];return Array.isArray(y)?g.push(...y):y&&g.push(y),f&&g.push(f),{...p,"sentry-trace":d,baggage:g.length>0?g.join(","):void 0}}else return{"sentry-trace":d,baggage:f}}function cF(e){try{return new URL(e).href}catch{return}}function uF(e,t){if(t.response){vE(e,t.response.status);const r=t.response&&t.response.headers&&t.response.headers.get("content-length");if(r){const n=parseInt(r);n>0&&e.setAttribute("http.response_content_length",n)}}else t.error&&e.setStatus("internal_error");e.end()}const Sv=["localhost",/^\/(?!\/)/],Tv={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:Sv,tracePropagationTargets:Sv};function lF(e){const{traceFetch:t,traceXHR:r,tracePropagationTargets:n,tracingOrigins:i,shouldCreateSpanForRequest:a,enableHTTPTimings:s}={traceFetch:Tv.traceFetch,traceXHR:Tv.traceXHR,...e},o=typeof a=="function"?a:u=>!0,c=u=>mF(u,n||i),l={};t&&fM(u=>{const d=sF(u,o,c,l);if(d){const f=lj(u.fetchData.url),p=f?ka(f).host:void 0;d.setAttributes({"http.url":f,"server.address":p})}s&&d&&U0(d)}),r&&hM(u=>{const d=hF(u,o,c,l);s&&d&&U0(d)})}function dF(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function U0(e){const{url:t}=Br(e).data||{};if(!t||typeof t!="string")return;const r=Tc("resource",({entries:n})=>{n.forEach(i=>{dF(i)&&i.name.endsWith(t)&&(pF(i).forEach(s=>e.setAttribute(...s)),setTimeout(r))})})}function fF(e){let t="unknown",r="unknown",n="";for(const i of e){if(i==="/"){[t,r]=e.split("/");break}if(!isNaN(Number(i))){t=n==="h"?"http":n,r=e.split(n)[1];break}n+=i}return n===e&&(t=n),{name:t,version:r}}function Cn(e=0){return((tn||performance.timeOrigin)+e)/1e3}function pF(e){const{name:t,version:r}=fF(e.nextHopProtocol),n=[];return n.push(["network.protocol.version",r],["network.protocol.name",t]),tn?[...n,["http.request.redirect_start",Cn(e.redirectStart)],["http.request.fetch_start",Cn(e.fetchStart)],["http.request.domain_lookup_start",Cn(e.domainLookupStart)],["http.request.domain_lookup_end",Cn(e.domainLookupEnd)],["http.request.connect_start",Cn(e.connectStart)],["http.request.secure_connection_start",Cn(e.secureConnectionStart)],["http.request.connection_end",Cn(e.connectEnd)],["http.request.request_start",Cn(e.requestStart)],["http.request.response_start",Cn(e.responseStart)],["http.request.response_end",Cn(e.responseEnd)]]:n}function mF(e,t){return kc(e,t||Sv)}function hF(e,t,r,n){const i=e.xhr,a=i&&i[vs];if(!so()||!i||i.__sentry_own_request__||!a)return;const s=t(a.url);if(e.endTimestamp&&s){const p=i.__sentry_xhr_span_id__;if(!p)return;const y=n[p];y&&a.status_code!==void 0&&(vE(y,a.status_code),y.end(),delete n[p]);return}const o=io(),c=_E(),l=lj(a.url),u=l?ka(l).host:void 0,d=s?YM({name:`${a.method} ${a.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":a.method,"http.url":l,url:a.url,"server.address":u,[bs]:"auto.http.browser"},op:"http.client"}):void 0;d&&(i.__sentry_xhr_span_id__=d.spanContext().spanId,n[i.__sentry_xhr_span_id__]=d);const f=no();if(i.setRequestHeader&&r(a.url)&&f){const{traceId:p,spanId:y,sampled:g,dsc:b}={...c.getPropagationContext(),...o.getPropagationContext()},O=d?Xd(d):fE(p,y,g),m=vM(b||(d?Gs(d):gE(p,f,o)));yF(i,O,m)}return d}function yF(e,t,r){try{e.setRequestHeader("sentry-trace",t),r&&e.setRequestHeader(pv,r)}catch{}}function lj(e){try{return new URL(e,Je.location.origin).href}catch{return}}function gF(e,t=!0,r=!0){if(!Je||!Je.location){Dt&&Re.warn("Could not initialize routing instrumentation due to invalid location");return}let n=Je.location.href,i;t&&(i=e({name:Je.location.pathname,startTimestamp:tn?tn/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),r&&lE(({to:a,from:s})=>{if(s===void 0&&n&&n.indexOf(a)!==-1){n=void 0;return}s!==a&&(n=void 0,i&&(Dt&&Re.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.end()),i=e({name:Je.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}const _F="BrowserTracing",vF={...bd,markBackgroundTransactions:!0,routingInstrumentation:gF,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...Tv},F0=10;class EF{constructor(t){this.name=_F,this._hasSetTracePropagationTargets=!1,fU(),Dt&&(this._hasSetTracePropagationTargets=!!(t&&(t.tracePropagationTargets||t.tracingOrigins))),this.options={...vF,...t},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=HU(),this._interactionIdToRouteNameMapping={},this.options.enableInp&&GU(this._interactionIdToRouteNameMapping,this.options.interactionsSampleRate),this.options.enableLongTask&&VU(),this.options._experiments.enableInteractions&&xU(),this._latestRoute={name:void 0,context:void 0}}setupOnce(t,r){this._getCurrentHub=r;const i=r().getClient(),a=i&&i.getOptions(),{routingInstrumentation:s,startTransactionOnLocationChange:o,startTransactionOnPageLoad:c,markBackgroundTransactions:l,traceFetch:u,traceXHR:d,shouldCreateSpanForRequest:f,enableHTTPTimings:p,_experiments:y}=this.options,g=a&&a.tracePropagationTargets,b=g||this.options.tracePropagationTargets;Dt&&this._hasSetTracePropagationTargets&&g&&Re.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),s(O=>{const m=this._createRouteTransaction(O);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(m,O,r),m},c,o),l&&yU(),y.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),lF({traceFetch:u,traceXHR:d,tracePropagationTargets:b,shouldCreateSpanForRequest:f,enableHTTPTimings:p})}_createRouteTransaction(t){if(!this._getCurrentHub){Dt&&Re.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`);return}const r=this._getCurrentHub(),{beforeNavigate:n,idleTimeout:i,finalTimeout:a,heartbeatInterval:s}=this.options,o=t.op==="pageload";let c;if(o){const p=o?H0("sentry-trace"):"",y=o?H0("baggage"):void 0,{traceId:g,dsc:b,parentSpanId:O,sampled:m}=pq(p,y);c={traceId:g,parentSpanId:O,parentSampled:m,...t,metadata:{...t.metadata,dynamicSamplingContext:b},trimEnd:!0}}else c={trimEnd:!0,...t};const l=typeof n=="function"?n(c):c,u=l===void 0?{...c,sampled:!1}:l;u.metadata=u.name!==c.name?{...u.metadata,source:"custom"}:u.metadata,this._latestRoute.name=u.name,this._latestRoute.context=u,u.sampled===!1&&Dt&&Re.log(`[Tracing] Will not send ${u.op} transaction because of beforeNavigate.`),Dt&&Re.log(`[Tracing] Starting ${u.op} transaction on scope`);const{location:d}=Je,f=D0(r,u,i,a,!0,{location:d},s,o);return o&&Je.document&&(Je.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(Je.document.readyState)&&f.sendAutoFinishSignal()}),["interactive","complete"].includes(Je.document.readyState)&&f.sendAutoFinishSignal()),f.registerBeforeFinishCallback(p=>{this._collectWebVitals(),JU(p)}),f}_registerInteractionListener(){let t;const r=()=>{const{idleTimeout:n,finalTimeout:i,heartbeatInterval:a}=this.options,s="ui.action.click",o=Va();if(o&&o.op&&["navigation","pageload"].includes(o.op)){Dt&&Re.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`);return}if(t&&(t.setFinishReason("interactionInterrupted"),t.end(),t=void 0),!this._getCurrentHub){Dt&&Re.warn(`[Tracing] Did not create ${s} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRoute.name){Dt&&Re.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}const c=this._getCurrentHub(),{location:l}=Je,u={name:this._latestRoute.name,op:s,trimEnd:!0,data:{[Is]:this._latestRoute.context?bF(this._latestRoute.context):"url"}};t=D0(c,u,n,i,!0,{location:l},a)};["click"].forEach(n=>{Je.document&&addEventListener(n,r,{once:!1,capture:!0})})}_registerInpInteractionListener(){const t=({entries:r})=>{const n=no(),i=n!==void 0&&n.getIntegrationByName!==void 0?n.getIntegrationByName("Replay"):void 0,a=i!==void 0?i.getReplayId():void 0,s=Va(),o=io(),c=o!==void 0?o.getUser():void 0;r.forEach(l=>{if(SF(l)){const u=l.interactionId;if(u===void 0)return;const d=this._interactionIdToRouteNameMapping[u],f=l.duration,p=l.startTime,y=Object.keys(this._interactionIdToRouteNameMapping),g=y.length>0?y.reduce((b,O)=>this._interactionIdToRouteNameMapping[b].duration<this._interactionIdToRouteNameMapping[O].duration?b:O):void 0;if(l.entryType==="first-input"&&y.map(O=>this._interactionIdToRouteNameMapping[O]).some(O=>O.duration===f&&O.startTime===p)||!u)return;if(d)d.duration=Math.max(d.duration,f);else if(y.length<F0||g===void 0||f>this._interactionIdToRouteNameMapping[g].duration){const b=this._latestRoute.name,O=this._latestRoute.context;b&&O&&(g&&Object.keys(this._interactionIdToRouteNameMapping).length>=F0&&delete this._interactionIdToRouteNameMapping[g],this._interactionIdToRouteNameMapping[u]={routeName:b,duration:f,parentContext:O,user:c,activeTransaction:s,replayId:a,startTime:p})}}})};Tc("event",t),Tc("first-input",t)}}function H0(e){const t=bk(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function bF(e){const t=e.attributes&&e.attributes[Is],r=e.data&&e.data[Is],n=e.metadata&&e.metadata.source;return t||r||n}function SF(e){return"duration"in e}const pt=ct;let wv=0;function dj(){return wv>0}function TF(){wv++,setTimeout(()=>{wv--})}function Ws(e,t={},r){if(typeof e!="function")return e;try{const i=e.__sentry_wrapped__;if(i)return typeof i=="function"?i:e;if(cE(e))return e}catch{return e}const n=function(){const i=Array.prototype.slice.call(arguments);try{const a=i.map(s=>Ws(s,t));return e.apply(this,a)}catch(a){throw TF(),wM(s=>{s.addEventProcessor(o=>(t.mechanism&&(sv(o,void 0),Ec(o,t.mechanism)),o.extra={...o.extra,arguments:i},o)),mE(a)}),a}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}catch{}sM(n,e),Ua(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get(){return e.name}})}catch{}return n}const en=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function fj(e,t){const r=TE(e,t),n={type:t&&t.name,value:AF(t)};return r.length&&(n.stacktrace={frames:r}),n.type===void 0&&n.value===""&&(n.value="Unrecoverable error caught"),n}function wF(e,t,r,n){const i=Pr(),a=i&&i.getOptions().normalizeDepth,s={exception:{values:[{type:xd(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:PF(t,{isUnhandledRejection:n})}]},extra:{__serialized__:yM(t,a)}};if(r){const o=TE(e,r);o.length&&(s.exception.values[0].stacktrace={frames:o})}return s}function Qf(e,t){return{exception:{values:[fj(e,t)]}}}function TE(e,t){const r=t.stacktrace||t.stack||"",n=RF(t);try{return e(r,n)}catch{}return[]}const IF=/Minified React error #\d+;/i;function RF(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(IF.test(e.message))return 1}return 0}function AF(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function OF(e,t,r,n){const i=r&&r.syntheticException||void 0,a=wE(e,t,i,n);return Ec(a),a.level="error",r&&r.event_id&&(a.event_id=r.event_id),xs(a)}function NF(e,t,r="info",n,i){const a=n&&n.syntheticException||void 0,s=Iv(e,t,a,i);return s.level=r,n&&n.event_id&&(s.event_id=n.event_id),xs(s)}function wE(e,t,r,n,i){let a;if(iE(t)&&t.error)return Qf(e,t.error);if(t0(t)||dk(t)){const s=t;if("stack"in t)a=Qf(e,t);else{const o=s.name||(t0(s)?"DOMError":"DOMException"),c=s.message?`${o}: ${s.message}`:o;a=Iv(e,c,r,n),sv(a,c)}return"code"in s&&(a.tags={...a.tags,"DOMException.code":`${s.code}`}),a}return nE(t)?Qf(e,t):Ba(t)||xd(t)?(a=wF(e,t,r,i),Ec(a,{synthetic:!0}),a):(a=Iv(e,t,r,n),sv(a,`${t}`),Ec(a,{synthetic:!0}),a)}function Iv(e,t,r,n){const i={};if(n&&r){const a=TE(e,r);a.length&&(i.exception={values:[{value:t,stacktrace:{frames:a}}]})}if(aE(t)){const{__sentry_template_string__:a,__sentry_template_values__:s}=t;return i.logentry={message:a,params:s},i}return i.message=t,i}function PF(e,{isUnhandledRejection:t}){const r=Nk(e),n=t?"promise rejection":"exception";return iE(e)?`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``:xd(e)?`Event \`${CF(e)}\` (type=${e.type}) captured as ${n}`:`Object captured as ${n} with keys: ${r}`}function CF(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function MF(e,{metadata:t,tunnel:r,dsn:n}){const i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!r&&!!n&&{dsn:Ga(n)}},a=jF(e);return Xa(i,[a])}function jF(e){return[{type:"user_report"},e]}class DF extends yB{constructor(t){const r=pt.SENTRY_SDK_SOURCE||Jk();qM(t,"browser",["browser"],r),super(t),t.sendClientReports&&pt.document&&pt.document.addEventListener("visibilitychange",()=>{pt.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,r){return OF(this._options.stackParser,t,r,this._options.attachStacktrace)}eventFromMessage(t,r="info",n){return NF(this._options.stackParser,t,r,n,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){en&&Re.warn("SDK not enabled, will not capture user feedback.");return}const r=MF(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(r)}_prepareEvent(t,r,n){return t.platform=t.platform||"javascript",super._prepareEvent(t,r,n)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){en&&Re.log("No outcomes to send");return}if(!this._dsn){en&&Re.log("No dsn provided, will not send outcomes");return}en&&Re.log("Sending outcomes:",t);const r=Eq(t,this._options.tunnel&&Ga(this._dsn));this._sendEnvelope(r)}}let Ho;function LF(){if(Ho)return Ho;if(lv(pt.fetch))return Ho=pt.fetch.bind(pt);const e=pt.document;let t=pt.fetch;if(e&&typeof e.createElement=="function")try{const r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r);const n=r.contentWindow;n&&n.fetch&&(t=n.fetch),e.head.removeChild(r)}catch(r){en&&Re.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return Ho=t.bind(pt)}function $F(){Ho=void 0}function kF(e,t=LF()){let r=0,n=0;function i(a){const s=a.body.length;r+=s,n++;const o={body:a.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:r<=6e4&&n<15,...e.fetchOptions};try{return t(e.url,o).then(c=>(r-=s,n--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return $F(),r-=s,n--,dE(c)}}return kM(e,i)}const qF=4;function BF(e){function t(r){return new qr((n,i)=>{const a=new XMLHttpRequest;a.onerror=i,a.onreadystatechange=()=>{a.readyState===qF&&n({statusCode:a.status,headers:{"x-sentry-rate-limits":a.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":a.getResponseHeader("Retry-After")}})},a.open("POST",e.url);for(const s in e.headers)Object.prototype.hasOwnProperty.call(e.headers,s)&&a.setRequestHeader(s,e.headers[s]);a.send(r.body)})}return kM(e,t)}const ef="?",UF=30,FF=40,HF=50;function IE(e,t,r,n){const i={filename:e,function:t,in_app:!0};return r!==void 0&&(i.lineno=r),n!==void 0&&(i.colno=n),i}const VF=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,xF=/\((\S*)(?::(\d+))(?::(\d+))\)/,GF=e=>{const t=VF.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const a=xF.exec(t[2]);a&&(t[2]=a[1],t[3]=a[2],t[4]=a[3])}const[n,i]=pj(t[1]||ef,t[2]);return IE(i,n,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},zF=[UF,GF],WF=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,YF=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,KF=e=>{const t=WF.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=YF.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let n=t[3],i=t[1]||ef;return[i,n]=pj(i,n),IE(n,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},XF=[HF,KF],JF=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,QF=e=>{const t=JF.exec(e);return t?IE(t[2],t[1]||ef,+t[3],t[4]?+t[4]:void 0):void 0},ZF=[FF,QF],e4=[zF,XF,ZF],t4=uM(...e4),pj=(e,t)=>{const r=e.indexOf("safari-extension")!==-1,n=e.indexOf("safari-web-extension")!==-1;return r||n?[e.indexOf("@")!==-1?e.split("@")[0]:ef,r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},tl=1024,mj="Breadcrumbs",r4=((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:mj,setupOnce(){},setup(r){t.console&&jk(a4(r)),t.dom&&$k(i4(r,t.dom)),t.xhr&&hM(s4(r)),t.fetch&&fM(o4(r)),t.history&&lE(c4(r)),t.sentry&&r.on&&r.on("beforeSendEvent",n4(r))}}}),hj=r4;$i(mj,hj);function n4(e){return function(r){Pr()===e&&Ha({category:`sentry.${r.type==="transaction"?"transaction":"event"}`,event_id:r.event_id,level:r.level,message:wi(r)},{event:r})}}function i4(e,t){return function(n){if(Pr()!==e)return;let i,a,s=typeof t=="object"?t.serializeAttribute:void 0,o=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;o&&o>tl&&(en&&Re.warn(`\`dom.maxStringLength\` cannot exceed ${tl}, but a value of ${o} was configured. Sentry will use ${tl} instead.`),o=tl),typeof s=="string"&&(s=[s]);try{const l=n.event,u=u4(l)?l.target:l;i=Vs(u,{keyAttrs:s,maxStringLength:o}),a=nM(u)}catch{i="<unknown>"}if(i.length===0)return;const c={category:`ui.${n.name}`,message:i};a&&(c.data={"ui.component_name":a}),Ha(c,{event:n.event,name:n.name,global:n.global})}}function a4(e){return function(r){if(Pr()!==e)return;const n={category:"console",data:{arguments:r.args,logger:"console"},level:aq(r.level),message:r0(r.args," ")};if(r.level==="assert")if(r.args[0]===!1)n.message=`Assertion failed: ${r0(r.args.slice(1)," ")||"console.assert"}`,n.data.arguments=r.args.slice(1);else return;Ha(n,{input:r.args,level:r.level})}}function s4(e){return function(r){if(Pr()!==e)return;const{startTimestamp:n,endTimestamp:i}=r,a=r.xhr[vs];if(!n||!i||!a)return;const{method:s,url:o,status_code:c,body:l}=a,u={method:s,url:o,status_code:c},d={xhr:r.xhr,input:l,startTimestamp:n,endTimestamp:i};Ha({category:"xhr",data:u,type:"http"},d)}}function o4(e){return function(r){if(Pr()!==e)return;const{startTimestamp:n,endTimestamp:i}=r;if(i&&!(r.fetchData.url.match(/sentry_key/)&&r.fetchData.method==="POST"))if(r.error){const a=r.fetchData,s={data:r.error,input:r.args,startTimestamp:n,endTimestamp:i};Ha({category:"fetch",data:a,level:"error",type:"http"},s)}else{const a=r.response,s={...r.fetchData,status_code:a&&a.status},o={input:r.args,response:a,startTimestamp:n,endTimestamp:i};Ha({category:"fetch",data:s,type:"http"},o)}}}function c4(e){return function(r){if(Pr()!==e)return;let n=r.from,i=r.to;const a=ka(pt.location.href);let s=n?ka(n):void 0;const o=ka(i);(!s||!s.path)&&(s=a),a.protocol===o.protocol&&a.host===o.host&&(i=o.relative),a.protocol===s.protocol&&a.host===s.host&&(n=s.relative),Ha({category:"navigation",data:{from:n,to:i}})}}function u4(e){return!!e&&!!e.target}const yj="Dedupe",l4=(()=>{let e;return{name:yj,setupOnce(){},processEvent(t){if(t.type)return t;try{if(d4(t,e))return en&&Re.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),gj=l4;$i(yj,gj);function d4(e,t){return t?!!(f4(e,t)||p4(e,t)):!1}function f4(e,t){const r=e.message,n=t.message;return!(!r&&!n||r&&!n||!r&&n||r!==n||!vj(e,t)||!_j(e,t))}function p4(e,t){const r=V0(t),n=V0(e);return!(!r||!n||r.type!==n.type||r.value!==n.value||!vj(e,t)||!_j(e,t))}function _j(e,t){let r=x0(e),n=x0(t);if(!r&&!n)return!0;if(r&&!n||!r&&n||(r=r,n=n,n.length!==r.length))return!1;for(let i=0;i<n.length;i++){const a=n[i],s=r[i];if(a.filename!==s.filename||a.lineno!==s.lineno||a.colno!==s.colno||a.function!==s.function)return!1}return!0}function vj(e,t){let r=e.fingerprint,n=t.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;r=r,n=n;try{return r.join("")===n.join("")}catch{return!1}}function V0(e){return e.exception&&e.exception.values&&e.exception.values[0]}function x0(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch{return}}const Ej="GlobalHandlers",m4=((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:Ej,setupOnce(){Error.stackTraceLimit=50},setup(r){t.onerror&&(h4(r),G0("onerror")),t.onunhandledrejection&&(y4(r),G0("onunhandledrejection"))}}}),bj=m4;$i(Ej,bj);function h4(e){pM(t=>{const{stackParser:r,attachStacktrace:n}=Tj();if(Pr()!==e||dj())return;const{msg:i,url:a,line:s,column:o,error:c}=t,l=c===void 0&&Hn(i)?v4(i,a,s,o):Sj(wE(r,c||i,void 0,n,!1),a,s,o);l.level="error",TM(l,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function y4(e){mM(t=>{const{stackParser:r,attachStacktrace:n}=Tj();if(Pr()!==e||dj())return;const i=g4(t),a=sE(i)?_4(i):wE(r,i,void 0,n,!0);a.level="error",TM(a,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function g4(e){if(sE(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return e}function _4(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function v4(e,t,r,n){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let a=iE(e)?e.message:e,s="Error";const o=a.match(i);return o&&(s=o[1],a=o[2]),Sj({exception:{values:[{type:s,value:a}]}},t,r,n)}function Sj(e,t,r,n){const i=e.exception=e.exception||{},a=i.values=i.values||[],s=a[0]=a[0]||{},o=s.stacktrace=s.stacktrace||{},c=o.frames=o.frames||[],l=isNaN(parseInt(n,10))?void 0:n,u=isNaN(parseInt(r,10))?void 0:r,d=Hn(t)&&t.length>0?t:Ek();return c.length===0&&c.push({colno:l,filename:d,function:"?",in_app:!0,lineno:u}),e}function G0(e){en&&Re.log(`Global Handler attached: ${e}`)}function Tj(){const e=Pr();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const wj="HttpContext",E4=(()=>({name:wj,setupOnce(){},preprocessEvent(e){if(!pt.navigator&&!pt.location&&!pt.document)return;const t=e.request&&e.request.url||pt.location&&pt.location.href,{referrer:r}=pt.document||{},{userAgent:n}=pt.navigator||{},i={...e.request&&e.request.headers,...r&&{Referer:r},...n&&{"User-Agent":n}},a={...e.request,...t&&{url:t},headers:i};e.request=a}})),Ij=E4;$i(wj,Ij);const b4="cause",S4=5,Rj="LinkedErrors",T4=((e={})=>{const t=e.limit||S4,r=e.key||b4;return{name:Rj,setupOnce(){},preprocessEvent(n,i,a){const s=a.getOptions();yk(fj,s.stackParser,s.maxValueLength,r,t,n,i)}}}),Aj=T4;$i(Rj,Aj);const w4=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Oj="TryCatch",I4=((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:Oj,setupOnce(){t.setTimeout&&mr(pt,"setTimeout",z0),t.setInterval&&mr(pt,"setInterval",z0),t.requestAnimationFrame&&mr(pt,"requestAnimationFrame",R4),t.XMLHttpRequest&&"XMLHttpRequest"in pt&&mr(XMLHttpRequest.prototype,"send",A4);const r=t.eventTarget;r&&(Array.isArray(r)?r:w4).forEach(O4)}}}),Nj=I4;$i(Oj,Nj);function z0(e){return function(...t){const r=t[0];return t[0]=Ws(r,{mechanism:{data:{function:fi(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function R4(e){return function(t){return e.apply(this,[Ws(t,{mechanism:{data:{function:"requestAnimationFrame",handler:fi(e)},handled:!1,type:"instrument"}})])}}function A4(e){return function(...t){const r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in r&&typeof r[i]=="function"&&mr(r,i,function(a){const s={mechanism:{data:{function:i,handler:fi(a)},handled:!1,type:"instrument"}},o=cE(a);return o&&(s.mechanism.data.handler=fi(o)),Ws(a,s)})}),e.apply(this,t)}}function O4(e){const t=pt,r=t[e]&&t[e].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(mr(r,"addEventListener",function(n){return function(i,a,s){try{typeof a.handleEvent=="function"&&(a.handleEvent=Ws(a.handleEvent,{mechanism:{data:{function:"handleEvent",handler:fi(a),target:e},handled:!1,type:"instrument"}}))}catch{}return n.apply(this,[i,Ws(a,{mechanism:{data:{function:"addEventListener",handler:fi(a),target:e},handled:!1,type:"instrument"}}),s])}}),mr(r,"removeEventListener",function(n){return function(i,a,s){const o=a;try{const c=o&&o.__sentry_wrapped__;c&&n.call(this,i,c,s)}catch{}return n.call(this,i,o,s)}}))}const N4=[UM(),HM(),Nj(),hj(),bj(),Aj(),gj(),Ij()];function P4(e){return[...N4]}function C4(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=P4()),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),pt.SENTRY_RELEASE&&pt.SENTRY_RELEASE.id&&(e.release=pt.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:Ck(e.stackParser||t4),integrations:lB(e),transport:e.transport||(dM()?kF:BF)};vB(DF,t),e.autoSessionTracking&&M4()}const W0=(e={},t=vn())=>{if(!pt.document){en&&Re.error("Global document not defined in showReportDialog call");return}const{client:r,scope:n}=t.getStackTop(),i=e.dsn||r&&r.getDsn();if(!i){en&&Re.error("DSN not configured for showReportDialog call");return}n&&(e.user={...n.getUser(),...e.user}),e.eventId||(e.eventId=t.lastEventId());const a=pt.document.createElement("script");a.async=!0,a.crossOrigin="anonymous",a.src=cB(i,e),e.onLoad&&(a.onload=e.onLoad);const{onClose:s}=e;if(s){const c=l=>{if(l.data==="__sentry_reportdialog_closed__")try{s()}finally{pt.removeEventListener("message",c)}};pt.addEventListener("message",c)}const o=pt.document.head||pt.document.body;o?o.appendChild(a):en&&Re.error("Not injecting report dialog. No injection point found in HTML")};function M4(){if(typeof pt.document>"u"){en&&Re.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}_0({ignoreDuration:!0}),v0(),lE(({from:e,to:t})=>{e!==void 0&&e!==t&&(_0({ignoreDuration:!0}),v0())})}function j4(e){const t={...e};qM(t,"react"),C4(t)}var Zf={exports:{}},Et={};/** @license React v16.13.1
|
|
28
|
-
* react-is.production.min.js
|
|
29
|
-
*
|
|
30
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
31
|
-
*
|
|
32
|
-
* This source code is licensed under the MIT license found in the
|
|
33
|
-
* LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/var Y0;function D4(){if(Y0)return Et;Y0=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,O=e?Symbol.for("react.responder"):60118,m=e?Symbol.for("react.scope"):60119;function T(h){if(typeof h=="object"&&h!==null){var v=h.$$typeof;switch(v){case t:switch(h=h.type,h){case c:case l:case n:case a:case i:case d:return h;default:switch(h=h&&h.$$typeof,h){case o:case u:case y:case p:case s:return h;default:return v}}case r:return v}}}function I(h){return T(h)===l}return Et.AsyncMode=c,Et.ConcurrentMode=l,Et.ContextConsumer=o,Et.ContextProvider=s,Et.Element=t,Et.ForwardRef=u,Et.Fragment=n,Et.Lazy=y,Et.Memo=p,Et.Portal=r,Et.Profiler=a,Et.StrictMode=i,Et.Suspense=d,Et.isAsyncMode=function(h){return I(h)||T(h)===c},Et.isConcurrentMode=I,Et.isContextConsumer=function(h){return T(h)===o},Et.isContextProvider=function(h){return T(h)===s},Et.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===t},Et.isForwardRef=function(h){return T(h)===u},Et.isFragment=function(h){return T(h)===n},Et.isLazy=function(h){return T(h)===y},Et.isMemo=function(h){return T(h)===p},Et.isPortal=function(h){return T(h)===r},Et.isProfiler=function(h){return T(h)===a},Et.isStrictMode=function(h){return T(h)===i},Et.isSuspense=function(h){return T(h)===d},Et.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===n||h===l||h===a||h===i||h===d||h===f||typeof h=="object"&&h!==null&&(h.$$typeof===y||h.$$typeof===p||h.$$typeof===s||h.$$typeof===o||h.$$typeof===u||h.$$typeof===b||h.$$typeof===O||h.$$typeof===m||h.$$typeof===g)},Et.typeOf=T,Et}var K0;function L4(){return K0||(K0=1,Zf.exports=D4()),Zf.exports}var ep,X0;function $4(){if(X0)return ep;X0=1;var e=L4(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[e.ForwardRef]=n,a[e.Memo]=i;function s(y){return e.isMemo(y)?i:a[y.$$typeof]||t}var o=Object.defineProperty,c=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function p(y,g,b){if(typeof g!="string"){if(f){var O=d(g);O&&O!==f&&p(y,O,b)}var m=c(g);l&&(m=m.concat(l(g)));for(var T=s(y),I=s(g),h=0;h<m.length;++h){var v=m[h];if(!r[v]&&!(b&&b[v])&&!(I&&I[v])&&!(T&&T[v])){var E=u(g,v);try{o(y,v,E)}catch{}}}}return y}return ep=p,ep}$4();const k4=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function q4(e){const t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}const J0={componentStack:null,error:null,eventId:null};function B4(e,t){const r=new WeakMap;function n(i,a){if(!r.has(i)){if(i.cause)return r.set(i,!0),n(i.cause,a);i.cause=a}}n(e,t)}class $d extends ve.Component{constructor(t){super(t),$d.prototype.__init.call(this),this.state=J0,this._openFallbackReportDialog=!0;const r=Pr();r&&r.on&&t.showDialog&&(this._openFallbackReportDialog=!1,r.on("afterSendEvent",n=>{!n.type&&n.event_id===this._lastEventId&&W0({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(t,{componentStack:r}){const{beforeCapture:n,onError:i,showDialog:a,dialogOptions:s}=this.props;wM(o=>{if(q4(ve.version)&&nE(t)){const l=new Error(t.message);l.name=`React ErrorBoundary ${t.name}`,l.stack=r,B4(t,l)}n&&n(o,t,r);const c=mE(t,{captureContext:{contexts:{react:{componentStack:r}}},mechanism:{handled:!!this.props.fallback}});i&&i(t,r,c),a&&(this._lastEventId=c,this._openFallbackReportDialog&&W0({...s,eventId:c})),this.setState({error:t,componentStack:r,eventId:c})})}componentDidMount(){const{onMount:t}=this.props;t&&t()}componentWillUnmount(){const{error:t,componentStack:r,eventId:n}=this.state,{onUnmount:i}=this.props;i&&i(t,r,n)}__init(){this.resetErrorBoundary=()=>{const{onReset:t}=this.props,{error:r,componentStack:n,eventId:i}=this.state;t&&t(r,n,i),this.setState(J0)}}render(){const{fallback:t,children:r}=this.props,n=this.state;if(n.error){let i;return typeof t=="function"?i=t({error:n.error,componentStack:n.componentStack,resetError:this.resetErrorBoundary,eventId:n.eventId}):i=t,ve.isValidElement(i)?i:(t&&k4&&Re.warn("fallback did not produce a valid ReactElement"),null)}return typeof r=="function"?r():r}}const U4=ve.lazy(()=>ar(()=>import("./index-QnApYtWL.js"),__vite__mapDeps([0,1,2,3,4,5])).then(e=>({default:e.Navbar})));function F4(e){return C.jsx(ve.Suspense,{fallback:C.jsx("div",{className:"topnav-skeleton","aria-hidden":!0}),children:C.jsx(U4,{...e})})}const H4={},Q0=e=>{let t;const r=new Set,n=(u,d)=>{const f=typeof u=="function"?u(t):u;if(!Object.is(f,t)){const p=t;t=d??(typeof f!="object"||f===null)?f:Object.assign({},t,f),r.forEach(y=>y(t,p))}},i=()=>t,c={setState:n,getState:i,getInitialState:()=>l,subscribe:u=>(r.add(u),()=>r.delete(u)),destroy:()=>{(H4?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},l=t=e(n,i,c);return c},V4=e=>e?Q0(e):Q0;var tp={exports:{}},rp={},np={exports:{}},ip={};/**
|
|
35
|
-
* @license React
|
|
36
|
-
* use-sync-external-store-shim.production.js
|
|
37
|
-
*
|
|
38
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
39
|
-
*
|
|
40
|
-
* This source code is licensed under the MIT license found in the
|
|
41
|
-
* LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/var Z0;function x4(){if(Z0)return ip;Z0=1;var e=qC();function t(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,i=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function o(d,f){var p=f(),y=n({inst:{value:p,getSnapshot:f}}),g=y[0].inst,b=y[1];return a(function(){g.value=p,g.getSnapshot=f,c(g)&&b({inst:g})},[d,p,f]),i(function(){return c(g)&&b({inst:g}),d(function(){c(g)&&b({inst:g})})},[d]),s(p),p}function c(d){var f=d.getSnapshot;d=d.value;try{var p=f();return!r(d,p)}catch{return!0}}function l(d,f){return f()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:o;return ip.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,ip}var eS;function G4(){return eS||(eS=1,np.exports=x4()),np.exports}/**
|
|
43
|
-
* @license React
|
|
44
|
-
* use-sync-external-store-shim/with-selector.production.js
|
|
45
|
-
*
|
|
46
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
47
|
-
*
|
|
48
|
-
* This source code is licensed under the MIT license found in the
|
|
49
|
-
* LICENSE file in the root directory of this source tree.
|
|
50
|
-
*/var tS;function z4(){if(tS)return rp;tS=1;var e=qC(),t=G4();function r(l,u){return l===u&&(l!==0||1/l===1/u)||l!==l&&u!==u}var n=typeof Object.is=="function"?Object.is:r,i=t.useSyncExternalStore,a=e.useRef,s=e.useEffect,o=e.useMemo,c=e.useDebugValue;return rp.useSyncExternalStoreWithSelector=function(l,u,d,f,p){var y=a(null);if(y.current===null){var g={hasValue:!1,value:null};y.current=g}else g=y.current;y=o(function(){function O(v){if(!m){if(m=!0,T=v,v=f(v),p!==void 0&&g.hasValue){var E=g.value;if(p(E,v))return I=E}return I=v}if(E=I,n(T,v))return E;var N=f(v);return p!==void 0&&p(E,N)?(T=v,E):(T=v,I=N)}var m=!1,T,I,h=d===void 0?null:d;return[function(){return O(u())},h===null?void 0:function(){return O(h())}]},[u,d,f,p]);var b=i(l,y[0],y[1]);return s(function(){g.hasValue=!0,g.value=b},[b]),c(b),b},rp}var rS;function W4(){return rS||(rS=1,tp.exports=z4()),tp.exports}var Y4=W4();const K4=Vd(Y4),Pj={},{useDebugValue:X4}=BC,{useSyncExternalStoreWithSelector:J4}=K4;let nS=!1;const Q4=e=>e;function Z4(e,t=Q4,r){(Pj?"production":void 0)!=="production"&&r&&!nS&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),nS=!0);const n=J4(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return X4(n),n}const iS=e=>{(Pj?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?V4(e):e,r=(n,i)=>Z4(t,n,i);return Object.assign(r,t),r},Ja=e=>e?iS(e):iS;var an={},Ui={},Fi={},ap={},sn={},rl={exports:{}},sp={},Qn={},Hi={},op={},cp={},up={},aS;function wc(){return aS||(aS=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(m){if(super(),!e.IDENTIFIER.test(m))throw new Error("CodeGen: name must be a valid identifier");this.str=m}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(m){super(),this._items=typeof m=="string"?[m]:m}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const m=this._items[0];return m===""||m==='""'}get str(){var m;return(m=this._str)!==null&&m!==void 0?m:this._str=this._items.reduce((T,I)=>`${T}${I}`,"")}get names(){var m;return(m=this._names)!==null&&m!==void 0?m:this._names=this._items.reduce((T,I)=>(I instanceof r&&(T[I.str]=(T[I.str]||0)+1),T),{})}}e._Code=n,e.nil=new n("");function i(O,...m){const T=[O[0]];let I=0;for(;I<m.length;)o(T,m[I]),T.push(O[++I]);return new n(T)}e._=i;const a=new n("+");function s(O,...m){const T=[p(O[0])];let I=0;for(;I<m.length;)T.push(a),o(T,m[I]),T.push(a,p(O[++I]));return c(T),new n(T)}e.str=s;function o(O,m){m instanceof n?O.push(...m._items):m instanceof r?O.push(m):O.push(d(m))}e.addCodeArg=o;function c(O){let m=1;for(;m<O.length-1;){if(O[m]===a){const T=l(O[m-1],O[m+1]);if(T!==void 0){O.splice(m-1,3,T);continue}O[m++]="+"}m++}}function l(O,m){if(m==='""')return O;if(O==='""')return m;if(typeof O=="string")return m instanceof r||O[O.length-1]!=='"'?void 0:typeof m!="string"?`${O.slice(0,-1)}${m}"`:m[0]==='"'?O.slice(0,-1)+m.slice(1):void 0;if(typeof m=="string"&&m[0]==='"'&&!(O instanceof r))return`"${O}${m.slice(1)}`}function u(O,m){return m.emptyStr()?O:O.emptyStr()?m:s`${O}${m}`}e.strConcat=u;function d(O){return typeof O=="number"||typeof O=="boolean"||O===null?O:p(Array.isArray(O)?O.join(","):O)}function f(O){return new n(p(O))}e.stringify=f;function p(O){return JSON.stringify(O).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=p;function y(O){return typeof O=="string"&&e.IDENTIFIER.test(O)?new n(`.${O}`):i`[${O}]`}e.getProperty=y;function g(O){if(typeof O=="string"&&e.IDENTIFIER.test(O))return new n(`${O}`);throw new Error(`CodeGen: invalid export name: ${O}, use explicit $id name mapping`)}e.getEsmExportName=g;function b(O){return new n(O.toString())}e.regexpCode=b})(up)),up}var lp={},sS;function oS(){return sS||(sS=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=wc();class r extends Error{constructor(l){super(`CodeGen: "code" for ${l} not defined`),this.value=l.value}}var n;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(n||(e.UsedValueState=n={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class i{constructor({prefixes:l,parent:u}={}){this._names={},this._prefixes=l,this._parent=u}toName(l){return l instanceof t.Name?l:this.name(l)}name(l){return new t.Name(this._newName(l))}_newName(l){const u=this._names[l]||this._nameGroup(l);return`${l}${u.index++}`}_nameGroup(l){var u,d;if(!((d=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||d===void 0)&&d.has(l)||this._prefixes&&!this._prefixes.has(l))throw new Error(`CodeGen: prefix "${l}" is not allowed in this scope`);return this._names[l]={prefix:l,index:0}}}e.Scope=i;class a extends t.Name{constructor(l,u){super(u),this.prefix=l}setValue(l,{property:u,itemIndex:d}){this.value=l,this.scopePath=(0,t._)`.${new t.Name(u)}[${d}]`}}e.ValueScopeName=a;const s=(0,t._)`\n`;class o extends i{constructor(l){super(l),this._values={},this._scope=l.scope,this.opts={...l,_n:l.lines?s:t.nil}}get(){return this._scope}name(l){return new a(l,this._newName(l))}value(l,u){var d;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const f=this.toName(l),{prefix:p}=f,y=(d=u.key)!==null&&d!==void 0?d:u.ref;let g=this._values[p];if(g){const m=g.get(y);if(m)return m}else g=this._values[p]=new Map;g.set(y,f);const b=this._scope[p]||(this._scope[p]=[]),O=b.length;return b[O]=u.ref,f.setValue(u,{property:p,itemIndex:O}),f}getValue(l,u){const d=this._values[l];if(d)return d.get(u)}scopeRefs(l,u=this._values){return this._reduceValues(u,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,t._)`${l}${d.scopePath}`})}scopeCode(l=this._values,u,d){return this._reduceValues(l,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},u,d)}_reduceValues(l,u,d={},f){let p=t.nil;for(const y in l){const g=l[y];if(!g)continue;const b=d[y]=d[y]||new Map;g.forEach(O=>{if(b.has(O))return;b.set(O,n.Started);let m=u(O);if(m){const T=this.opts.es5?e.varKinds.var:e.varKinds.const;p=(0,t._)`${p}${T} ${O} = ${m};${this.opts._n}`}else if(m=f==null?void 0:f(O))p=(0,t._)`${p}${m}${this.opts._n}`;else throw new r(O);b.set(O,n.Completed)})}return p}}e.ValueScope=o})(lp)),lp}var cS;function Ke(){return cS||(cS=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=wc(),r=oS();var n=wc();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var i=oS();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class a{optimizeNodes(){return this}optimizeNames(P,$){return this}}class s extends a{constructor(P,$,ee){super(),this.varKind=P,this.name=$,this.rhs=ee}render({es5:P,_n:$}){const ee=P?r.varKinds.var:this.varKind,Ee=this.rhs===void 0?"":` = ${this.rhs}`;return`${ee} ${this.name}${Ee};`+$}optimizeNames(P,$){if(P[this.name.str])return this.rhs&&(this.rhs=F(this.rhs,P,$)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class o extends a{constructor(P,$,ee){super(),this.lhs=P,this.rhs=$,this.sideEffects=ee}render({_n:P}){return`${this.lhs} = ${this.rhs};`+P}optimizeNames(P,$){if(!(this.lhs instanceof t.Name&&!P[this.lhs.str]&&!this.sideEffects))return this.rhs=F(this.rhs,P,$),this}get names(){const P=this.lhs instanceof t.Name?{}:{...this.lhs.names};return B(P,this.rhs)}}class c extends o{constructor(P,$,ee,Ee){super(P,ee,Ee),this.op=$}render({_n:P}){return`${this.lhs} ${this.op}= ${this.rhs};`+P}}class l extends a{constructor(P){super(),this.label=P,this.names={}}render({_n:P}){return`${this.label}:`+P}}class u extends a{constructor(P){super(),this.label=P,this.names={}}render({_n:P}){return`break${this.label?` ${this.label}`:""};`+P}}class d extends a{constructor(P){super(),this.error=P}render({_n:P}){return`throw ${this.error};`+P}get names(){return this.error.names}}class f extends a{constructor(P){super(),this.code=P}render({_n:P}){return`${this.code};`+P}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(P,$){return this.code=F(this.code,P,$),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class p extends a{constructor(P=[]){super(),this.nodes=P}render(P){return this.nodes.reduce(($,ee)=>$+ee.render(P),"")}optimizeNodes(){const{nodes:P}=this;let $=P.length;for(;$--;){const ee=P[$].optimizeNodes();Array.isArray(ee)?P.splice($,1,...ee):ee?P[$]=ee:P.splice($,1)}return P.length>0?this:void 0}optimizeNames(P,$){const{nodes:ee}=this;let Ee=ee.length;for(;Ee--;){const he=ee[Ee];he.optimizeNames(P,$)||(te(P,he.names),ee.splice(Ee,1))}return ee.length>0?this:void 0}get names(){return this.nodes.reduce((P,$)=>k(P,$.names),{})}}class y extends p{render(P){return"{"+P._n+super.render(P)+"}"+P._n}}class g extends p{}class b extends y{}b.kind="else";class O extends y{constructor(P,$){super($),this.condition=P}render(P){let $=`if(${this.condition})`+super.render(P);return this.else&&($+="else "+this.else.render(P)),$}optimizeNodes(){super.optimizeNodes();const P=this.condition;if(P===!0)return this.nodes;let $=this.else;if($){const ee=$.optimizeNodes();$=this.else=Array.isArray(ee)?new b(ee):ee}if($)return P===!1?$ instanceof O?$:$.nodes:this.nodes.length?this:new O(ie(P),$ instanceof O?[$]:$.nodes);if(!(P===!1||!this.nodes.length))return this}optimizeNames(P,$){var ee;if(this.else=(ee=this.else)===null||ee===void 0?void 0:ee.optimizeNames(P,$),!!(super.optimizeNames(P,$)||this.else))return this.condition=F(this.condition,P,$),this}get names(){const P=super.names;return B(P,this.condition),this.else&&k(P,this.else.names),P}}O.kind="if";class m extends y{}m.kind="for";class T extends m{constructor(P){super(),this.iteration=P}render(P){return`for(${this.iteration})`+super.render(P)}optimizeNames(P,$){if(super.optimizeNames(P,$))return this.iteration=F(this.iteration,P,$),this}get names(){return k(super.names,this.iteration.names)}}class I extends m{constructor(P,$,ee,Ee){super(),this.varKind=P,this.name=$,this.from=ee,this.to=Ee}render(P){const $=P.es5?r.varKinds.var:this.varKind,{name:ee,from:Ee,to:he}=this;return`for(${$} ${ee}=${Ee}; ${ee}<${he}; ${ee}++)`+super.render(P)}get names(){const P=B(super.names,this.from);return B(P,this.to)}}class h extends m{constructor(P,$,ee,Ee){super(),this.loop=P,this.varKind=$,this.name=ee,this.iterable=Ee}render(P){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(P)}optimizeNames(P,$){if(super.optimizeNames(P,$))return this.iterable=F(this.iterable,P,$),this}get names(){return k(super.names,this.iterable.names)}}class v extends y{constructor(P,$,ee){super(),this.name=P,this.args=$,this.async=ee}render(P){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(P)}}v.kind="func";class E extends p{render(P){return"return "+super.render(P)}}E.kind="return";class N extends y{render(P){let $="try"+super.render(P);return this.catch&&($+=this.catch.render(P)),this.finally&&($+=this.finally.render(P)),$}optimizeNodes(){var P,$;return super.optimizeNodes(),(P=this.catch)===null||P===void 0||P.optimizeNodes(),($=this.finally)===null||$===void 0||$.optimizeNodes(),this}optimizeNames(P,$){var ee,Ee;return super.optimizeNames(P,$),(ee=this.catch)===null||ee===void 0||ee.optimizeNames(P,$),(Ee=this.finally)===null||Ee===void 0||Ee.optimizeNames(P,$),this}get names(){const P=super.names;return this.catch&&k(P,this.catch.names),this.finally&&k(P,this.finally.names),P}}class M extends y{constructor(P){super(),this.error=P}render(P){return`catch(${this.error})`+super.render(P)}}M.kind="catch";class q extends y{render(P){return"finally"+super.render(P)}}q.kind="finally";class H{constructor(P,$={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...$,_n:$.lines?`
|
|
51
|
-
`:""},this._extScope=P,this._scope=new r.Scope({parent:P}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(P){return this._scope.name(P)}scopeName(P){return this._extScope.name(P)}scopeValue(P,$){const ee=this._extScope.value(P,$);return(this._values[ee.prefix]||(this._values[ee.prefix]=new Set)).add(ee),ee}getScopeValue(P,$){return this._extScope.getValue(P,$)}scopeRefs(P){return this._extScope.scopeRefs(P,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(P,$,ee,Ee){const he=this._scope.toName($);return ee!==void 0&&Ee&&(this._constants[he.str]=ee),this._leafNode(new s(P,he,ee)),he}const(P,$,ee){return this._def(r.varKinds.const,P,$,ee)}let(P,$,ee){return this._def(r.varKinds.let,P,$,ee)}var(P,$,ee){return this._def(r.varKinds.var,P,$,ee)}assign(P,$,ee){return this._leafNode(new o(P,$,ee))}add(P,$){return this._leafNode(new c(P,e.operators.ADD,$))}code(P){return typeof P=="function"?P():P!==t.nil&&this._leafNode(new f(P)),this}object(...P){const $=["{"];for(const[ee,Ee]of P)$.length>1&&$.push(","),$.push(ee),(ee!==Ee||this.opts.es5)&&($.push(":"),(0,t.addCodeArg)($,Ee));return $.push("}"),new t._Code($)}if(P,$,ee){if(this._blockNode(new O(P)),$&&ee)this.code($).else().code(ee).endIf();else if($)this.code($).endIf();else if(ee)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(P){return this._elseNode(new O(P))}else(){return this._elseNode(new b)}endIf(){return this._endBlockNode(O,b)}_for(P,$){return this._blockNode(P),$&&this.code($).endFor(),this}for(P,$){return this._for(new T(P),$)}forRange(P,$,ee,Ee,he=this.opts.es5?r.varKinds.var:r.varKinds.let){const Se=this._scope.toName(P);return this._for(new I(he,Se,$,ee),()=>Ee(Se))}forOf(P,$,ee,Ee=r.varKinds.const){const he=this._scope.toName(P);if(this.opts.es5){const Se=$ instanceof t.Name?$:this.var("_arr",$);return this.forRange("_i",0,(0,t._)`${Se}.length`,we=>{this.var(he,(0,t._)`${Se}[${we}]`),ee(he)})}return this._for(new h("of",Ee,he,$),()=>ee(he))}forIn(P,$,ee,Ee=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(P,(0,t._)`Object.keys(${$})`,ee);const he=this._scope.toName(P);return this._for(new h("in",Ee,he,$),()=>ee(he))}endFor(){return this._endBlockNode(m)}label(P){return this._leafNode(new l(P))}break(P){return this._leafNode(new u(P))}return(P){const $=new E;if(this._blockNode($),this.code(P),$.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(E)}try(P,$,ee){if(!$&&!ee)throw new Error('CodeGen: "try" without "catch" and "finally"');const Ee=new N;if(this._blockNode(Ee),this.code(P),$){const he=this.name("e");this._currNode=Ee.catch=new M(he),$(he)}return ee&&(this._currNode=Ee.finally=new q,this.code(ee)),this._endBlockNode(M,q)}throw(P){return this._leafNode(new d(P))}block(P,$){return this._blockStarts.push(this._nodes.length),P&&this.code(P).endBlock($),this}endBlock(P){const $=this._blockStarts.pop();if($===void 0)throw new Error("CodeGen: not in self-balancing block");const ee=this._nodes.length-$;if(ee<0||P!==void 0&&ee!==P)throw new Error(`CodeGen: wrong number of nodes: ${ee} vs ${P} expected`);return this._nodes.length=$,this}func(P,$=t.nil,ee,Ee){return this._blockNode(new v(P,$,ee)),Ee&&this.code(Ee).endFunc(),this}endFunc(){return this._endBlockNode(v)}optimize(P=1){for(;P-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(P){return this._currNode.nodes.push(P),this}_blockNode(P){this._currNode.nodes.push(P),this._nodes.push(P)}_endBlockNode(P,$){const ee=this._currNode;if(ee instanceof P||$&&ee instanceof $)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${$?`${P.kind}/${$.kind}`:P.kind}"`)}_elseNode(P){const $=this._currNode;if(!($ instanceof O))throw new Error('CodeGen: "else" without "if"');return this._currNode=$.else=P,this}get _root(){return this._nodes[0]}get _currNode(){const P=this._nodes;return P[P.length-1]}set _currNode(P){const $=this._nodes;$[$.length-1]=P}}e.CodeGen=H;function k(W,P){for(const $ in P)W[$]=(W[$]||0)+(P[$]||0);return W}function B(W,P){return P instanceof t._CodeOrName?k(W,P.names):W}function F(W,P,$){if(W instanceof t.Name)return ee(W);if(!Ee(W))return W;return new t._Code(W._items.reduce((he,Se)=>(Se instanceof t.Name&&(Se=ee(Se)),Se instanceof t._Code?he.push(...Se._items):he.push(Se),he),[]));function ee(he){const Se=$[he.str];return Se===void 0||P[he.str]!==1?he:(delete P[he.str],Se)}function Ee(he){return he instanceof t._Code&&he._items.some(Se=>Se instanceof t.Name&&P[Se.str]===1&&$[Se.str]!==void 0)}}function te(W,P){for(const $ in P)W[$]=(W[$]||0)-(P[$]||0)}function ie(W){return typeof W=="boolean"||typeof W=="number"||W===null?!W:(0,t._)`!${V(W)}`}e.not=ie;const Z=L(e.operators.AND);function X(...W){return W.reduce(Z)}e.and=X;const Y=L(e.operators.OR);function U(...W){return W.reduce(Y)}e.or=U;function L(W){return(P,$)=>P===t.nil?$:$===t.nil?P:(0,t._)`${V(P)} ${W} ${V($)}`}function V(W){return W instanceof t.Name?W:(0,t._)`(${W})`}})(cp)),cp}var Ze={},uS;function mt(){if(uS)return Ze;uS=1,Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.checkStrictMode=Ze.getErrorPath=Ze.Type=Ze.useFunc=Ze.setEvaluated=Ze.evaluatedPropsToName=Ze.mergeEvaluated=Ze.eachItem=Ze.unescapeJsonPointer=Ze.escapeJsonPointer=Ze.escapeFragment=Ze.unescapeFragment=Ze.schemaRefOrVal=Ze.schemaHasRulesButRef=Ze.schemaHasRules=Ze.checkUnknownRules=Ze.alwaysValidSchema=Ze.toHash=void 0;const e=Ke(),t=wc();function r(h){const v={};for(const E of h)v[E]=!0;return v}Ze.toHash=r;function n(h,v){return typeof v=="boolean"?v:Object.keys(v).length===0?!0:(i(h,v),!a(v,h.self.RULES.all))}Ze.alwaysValidSchema=n;function i(h,v=h.schema){const{opts:E,self:N}=h;if(!E.strictSchema||typeof v=="boolean")return;const M=N.RULES.keywords;for(const q in v)M[q]||I(h,`unknown keyword: "${q}"`)}Ze.checkUnknownRules=i;function a(h,v){if(typeof h=="boolean")return!h;for(const E in h)if(v[E])return!0;return!1}Ze.schemaHasRules=a;function s(h,v){if(typeof h=="boolean")return!h;for(const E in h)if(E!=="$ref"&&v.all[E])return!0;return!1}Ze.schemaHasRulesButRef=s;function o({topSchemaRef:h,schemaPath:v},E,N,M){if(!M){if(typeof E=="number"||typeof E=="boolean")return E;if(typeof E=="string")return(0,e._)`${E}`}return(0,e._)`${h}${v}${(0,e.getProperty)(N)}`}Ze.schemaRefOrVal=o;function c(h){return d(decodeURIComponent(h))}Ze.unescapeFragment=c;function l(h){return encodeURIComponent(u(h))}Ze.escapeFragment=l;function u(h){return typeof h=="number"?`${h}`:h.replace(/~/g,"~0").replace(/\//g,"~1")}Ze.escapeJsonPointer=u;function d(h){return h.replace(/~1/g,"/").replace(/~0/g,"~")}Ze.unescapeJsonPointer=d;function f(h,v){if(Array.isArray(h))for(const E of h)v(E);else v(h)}Ze.eachItem=f;function p({mergeNames:h,mergeToName:v,mergeValues:E,resultToName:N}){return(M,q,H,k)=>{const B=H===void 0?q:H instanceof e.Name?(q instanceof e.Name?h(M,q,H):v(M,q,H),H):q instanceof e.Name?(v(M,H,q),q):E(q,H);return k===e.Name&&!(B instanceof e.Name)?N(M,B):B}}Ze.mergeEvaluated={props:p({mergeNames:(h,v,E)=>h.if((0,e._)`${E} !== true && ${v} !== undefined`,()=>{h.if((0,e._)`${v} === true`,()=>h.assign(E,!0),()=>h.assign(E,(0,e._)`${E} || {}`).code((0,e._)`Object.assign(${E}, ${v})`))}),mergeToName:(h,v,E)=>h.if((0,e._)`${E} !== true`,()=>{v===!0?h.assign(E,!0):(h.assign(E,(0,e._)`${E} || {}`),g(h,E,v))}),mergeValues:(h,v)=>h===!0?!0:{...h,...v},resultToName:y}),items:p({mergeNames:(h,v,E)=>h.if((0,e._)`${E} !== true && ${v} !== undefined`,()=>h.assign(E,(0,e._)`${v} === true ? true : ${E} > ${v} ? ${E} : ${v}`)),mergeToName:(h,v,E)=>h.if((0,e._)`${E} !== true`,()=>h.assign(E,v===!0?!0:(0,e._)`${E} > ${v} ? ${E} : ${v}`)),mergeValues:(h,v)=>h===!0?!0:Math.max(h,v),resultToName:(h,v)=>h.var("items",v)})};function y(h,v){if(v===!0)return h.var("props",!0);const E=h.var("props",(0,e._)`{}`);return v!==void 0&&g(h,E,v),E}Ze.evaluatedPropsToName=y;function g(h,v,E){Object.keys(E).forEach(N=>h.assign((0,e._)`${v}${(0,e.getProperty)(N)}`,!0))}Ze.setEvaluated=g;const b={};function O(h,v){return h.scopeValue("func",{ref:v,code:b[v.code]||(b[v.code]=new t._Code(v.code))})}Ze.useFunc=O;var m;(function(h){h[h.Num=0]="Num",h[h.Str=1]="Str"})(m||(Ze.Type=m={}));function T(h,v,E){if(h instanceof e.Name){const N=v===m.Num;return E?N?(0,e._)`"[" + ${h} + "]"`:(0,e._)`"['" + ${h} + "']"`:N?(0,e._)`"/" + ${h}`:(0,e._)`"/" + ${h}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return E?(0,e.getProperty)(h).toString():"/"+u(h)}Ze.getErrorPath=T;function I(h,v,E=h.opts.strictSchema){if(E){if(v=`strict mode: ${v}`,E===!0)throw new Error(v);h.self.logger.warn(v)}}return Ze.checkStrictMode=I,Ze}var nl={},lS;function hi(){if(lS)return nl;lS=1,Object.defineProperty(nl,"__esModule",{value:!0});const e=Ke(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return nl.default=t,nl}var dS;function Gc(){return dS||(dS=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=Ke(),r=mt(),n=hi();e.keywordError={message:({keyword:b})=>(0,t.str)`must pass "${b}" keyword validation`},e.keyword$DataError={message:({keyword:b,schemaType:O})=>O?(0,t.str)`"${b}" keyword must be ${O} ($data)`:(0,t.str)`"${b}" keyword is invalid ($data)`};function i(b,O=e.keywordError,m,T){const{it:I}=b,{gen:h,compositeRule:v,allErrors:E}=I,N=d(b,O,m);T??(v||E)?c(h,N):l(I,(0,t._)`[${N}]`)}e.reportError=i;function a(b,O=e.keywordError,m){const{it:T}=b,{gen:I,compositeRule:h,allErrors:v}=T,E=d(b,O,m);c(I,E),h||v||l(T,n.default.vErrors)}e.reportExtraError=a;function s(b,O){b.assign(n.default.errors,O),b.if((0,t._)`${n.default.vErrors} !== null`,()=>b.if(O,()=>b.assign((0,t._)`${n.default.vErrors}.length`,O),()=>b.assign(n.default.vErrors,null)))}e.resetErrorsCount=s;function o({gen:b,keyword:O,schemaValue:m,data:T,errsCount:I,it:h}){if(I===void 0)throw new Error("ajv implementation error");const v=b.name("err");b.forRange("i",I,n.default.errors,E=>{b.const(v,(0,t._)`${n.default.vErrors}[${E}]`),b.if((0,t._)`${v}.instancePath === undefined`,()=>b.assign((0,t._)`${v}.instancePath`,(0,t.strConcat)(n.default.instancePath,h.errorPath))),b.assign((0,t._)`${v}.schemaPath`,(0,t.str)`${h.errSchemaPath}/${O}`),h.opts.verbose&&(b.assign((0,t._)`${v}.schema`,m),b.assign((0,t._)`${v}.data`,T))})}e.extendErrors=o;function c(b,O){const m=b.const("err",O);b.if((0,t._)`${n.default.vErrors} === null`,()=>b.assign(n.default.vErrors,(0,t._)`[${m}]`),(0,t._)`${n.default.vErrors}.push(${m})`),b.code((0,t._)`${n.default.errors}++`)}function l(b,O){const{gen:m,validateName:T,schemaEnv:I}=b;I.$async?m.throw((0,t._)`new ${b.ValidationError}(${O})`):(m.assign((0,t._)`${T}.errors`,O),m.return(!1))}const u={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function d(b,O,m){const{createErrors:T}=b.it;return T===!1?(0,t._)`{}`:f(b,O,m)}function f(b,O,m={}){const{gen:T,it:I}=b,h=[p(I,m),y(b,m)];return g(b,O,h),T.object(...h)}function p({errorPath:b},{instancePath:O}){const m=O?(0,t.str)`${b}${(0,r.getErrorPath)(O,r.Type.Str)}`:b;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,m)]}function y({keyword:b,it:{errSchemaPath:O}},{schemaPath:m,parentSchema:T}){let I=T?O:(0,t.str)`${O}/${b}`;return m&&(I=(0,t.str)`${I}${(0,r.getErrorPath)(m,r.Type.Str)}`),[u.schemaPath,I]}function g(b,{params:O,message:m},T){const{keyword:I,data:h,schemaValue:v,it:E}=b,{opts:N,propertyName:M,topSchemaRef:q,schemaPath:H}=E;T.push([u.keyword,I],[u.params,typeof O=="function"?O(b):O||(0,t._)`{}`]),N.messages&&T.push([u.message,typeof m=="function"?m(b):m]),N.verbose&&T.push([u.schema,v],[u.parentSchema,(0,t._)`${q}${H}`],[n.default.data,h]),M&&T.push([u.propertyName,M])}})(op)),op}var fS;function e3(){if(fS)return Hi;fS=1,Object.defineProperty(Hi,"__esModule",{value:!0}),Hi.boolOrEmptySchema=Hi.topBoolOrEmptySchema=void 0;const e=Gc(),t=Ke(),r=hi(),n={message:"boolean schema is false"};function i(o){const{gen:c,schema:l,validateName:u}=o;l===!1?s(o,!1):typeof l=="object"&&l.$async===!0?c.return(r.default.data):(c.assign((0,t._)`${u}.errors`,null),c.return(!0))}Hi.topBoolOrEmptySchema=i;function a(o,c){const{gen:l,schema:u}=o;u===!1?(l.var(c,!1),s(o)):l.var(c,!0)}Hi.boolOrEmptySchema=a;function s(o,c){const{gen:l,data:u}=o,d={gen:l,keyword:"false schema",data:u,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:o};(0,e.reportError)(d,n,void 0,c)}return Hi}var ur={},Vi={},pS;function Cj(){if(pS)return Vi;pS=1,Object.defineProperty(Vi,"__esModule",{value:!0}),Vi.getRules=Vi.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function r(i){return typeof i=="string"&&t.has(i)}Vi.isJSONType=r;function n(){const i={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...i,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},i.number,i.string,i.array,i.object],post:{rules:[]},all:{},keywords:{}}}return Vi.getRules=n,Vi}var Zn={},mS;function Mj(){if(mS)return Zn;mS=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.shouldUseRule=Zn.shouldUseGroup=Zn.schemaHasRulesForType=void 0;function e({schema:n,self:i},a){const s=i.RULES.types[a];return s&&s!==!0&&t(n,s)}Zn.schemaHasRulesForType=e;function t(n,i){return i.rules.some(a=>r(n,a))}Zn.shouldUseGroup=t;function r(n,i){var a;return n[i.keyword]!==void 0||((a=i.definition.implements)===null||a===void 0?void 0:a.some(s=>n[s]!==void 0))}return Zn.shouldUseRule=r,Zn}var hS;function kd(){if(hS)return ur;hS=1,Object.defineProperty(ur,"__esModule",{value:!0}),ur.reportTypeError=ur.checkDataTypes=ur.checkDataType=ur.coerceAndCheckDataType=ur.getJSONTypes=ur.getSchemaTypes=ur.DataType=void 0;const e=Cj(),t=Mj(),r=Gc(),n=Ke(),i=mt();var a;(function(m){m[m.Correct=0]="Correct",m[m.Wrong=1]="Wrong"})(a||(ur.DataType=a={}));function s(m){const T=o(m.type);if(T.includes("null")){if(m.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!T.length&&m.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');m.nullable===!0&&T.push("null")}return T}ur.getSchemaTypes=s;function o(m){const T=Array.isArray(m)?m:m?[m]:[];if(T.every(e.isJSONType))return T;throw new Error("type must be JSONType or JSONType[]: "+T.join(","))}ur.getJSONTypes=o;function c(m,T){const{gen:I,data:h,opts:v}=m,E=u(T,v.coerceTypes),N=T.length>0&&!(E.length===0&&T.length===1&&(0,t.schemaHasRulesForType)(m,T[0]));if(N){const M=y(T,h,v.strictNumbers,a.Wrong);I.if(M,()=>{E.length?d(m,T,E):b(m)})}return N}ur.coerceAndCheckDataType=c;const l=new Set(["string","number","integer","boolean","null"]);function u(m,T){return T?m.filter(I=>l.has(I)||T==="array"&&I==="array"):[]}function d(m,T,I){const{gen:h,data:v,opts:E}=m,N=h.let("dataType",(0,n._)`typeof ${v}`),M=h.let("coerced",(0,n._)`undefined`);E.coerceTypes==="array"&&h.if((0,n._)`${N} == 'object' && Array.isArray(${v}) && ${v}.length == 1`,()=>h.assign(v,(0,n._)`${v}[0]`).assign(N,(0,n._)`typeof ${v}`).if(y(T,v,E.strictNumbers),()=>h.assign(M,v))),h.if((0,n._)`${M} !== undefined`);for(const H of I)(l.has(H)||H==="array"&&E.coerceTypes==="array")&&q(H);h.else(),b(m),h.endIf(),h.if((0,n._)`${M} !== undefined`,()=>{h.assign(v,M),f(m,M)});function q(H){switch(H){case"string":h.elseIf((0,n._)`${N} == "number" || ${N} == "boolean"`).assign(M,(0,n._)`"" + ${v}`).elseIf((0,n._)`${v} === null`).assign(M,(0,n._)`""`);return;case"number":h.elseIf((0,n._)`${N} == "boolean" || ${v} === null
|
|
52
|
-
|| (${N} == "string" && ${v} && ${v} == +${v})`).assign(M,(0,n._)`+${v}`);return;case"integer":h.elseIf((0,n._)`${N} === "boolean" || ${v} === null
|
|
53
|
-
|| (${N} === "string" && ${v} && ${v} == +${v} && !(${v} % 1))`).assign(M,(0,n._)`+${v}`);return;case"boolean":h.elseIf((0,n._)`${v} === "false" || ${v} === 0 || ${v} === null`).assign(M,!1).elseIf((0,n._)`${v} === "true" || ${v} === 1`).assign(M,!0);return;case"null":h.elseIf((0,n._)`${v} === "" || ${v} === 0 || ${v} === false`),h.assign(M,null);return;case"array":h.elseIf((0,n._)`${N} === "string" || ${N} === "number"
|
|
54
|
-
|| ${N} === "boolean" || ${v} === null`).assign(M,(0,n._)`[${v}]`)}}}function f({gen:m,parentData:T,parentDataProperty:I},h){m.if((0,n._)`${T} !== undefined`,()=>m.assign((0,n._)`${T}[${I}]`,h))}function p(m,T,I,h=a.Correct){const v=h===a.Correct?n.operators.EQ:n.operators.NEQ;let E;switch(m){case"null":return(0,n._)`${T} ${v} null`;case"array":E=(0,n._)`Array.isArray(${T})`;break;case"object":E=(0,n._)`${T} && typeof ${T} == "object" && !Array.isArray(${T})`;break;case"integer":E=N((0,n._)`!(${T} % 1) && !isNaN(${T})`);break;case"number":E=N();break;default:return(0,n._)`typeof ${T} ${v} ${m}`}return h===a.Correct?E:(0,n.not)(E);function N(M=n.nil){return(0,n.and)((0,n._)`typeof ${T} == "number"`,M,I?(0,n._)`isFinite(${T})`:n.nil)}}ur.checkDataType=p;function y(m,T,I,h){if(m.length===1)return p(m[0],T,I,h);let v;const E=(0,i.toHash)(m);if(E.array&&E.object){const N=(0,n._)`typeof ${T} != "object"`;v=E.null?N:(0,n._)`!${T} || ${N}`,delete E.null,delete E.array,delete E.object}else v=n.nil;E.number&&delete E.integer;for(const N in E)v=(0,n.and)(v,p(N,T,I,h));return v}ur.checkDataTypes=y;const g={message:({schema:m})=>`must be ${m}`,params:({schema:m,schemaValue:T})=>typeof m=="string"?(0,n._)`{type: ${m}}`:(0,n._)`{type: ${T}}`};function b(m){const T=O(m);(0,r.reportError)(T,g)}ur.reportTypeError=b;function O(m){const{gen:T,data:I,schema:h}=m,v=(0,i.schemaRefOrVal)(m,h,"type");return{gen:T,keyword:"type",data:I,schema:h.type,schemaCode:v,schemaValue:v,parentSchema:h,params:{},it:m}}return ur}var Eo={},yS;function t3(){if(yS)return Eo;yS=1,Object.defineProperty(Eo,"__esModule",{value:!0}),Eo.assignDefaults=void 0;const e=Ke(),t=mt();function r(i,a){const{properties:s,items:o}=i.schema;if(a==="object"&&s)for(const c in s)n(i,c,s[c].default);else a==="array"&&Array.isArray(o)&&o.forEach((c,l)=>n(i,l,c.default))}Eo.assignDefaults=r;function n(i,a,s){const{gen:o,compositeRule:c,data:l,opts:u}=i;if(s===void 0)return;const d=(0,e._)`${l}${(0,e.getProperty)(a)}`;if(c){(0,t.checkStrictMode)(i,`default is ignored for: ${d}`);return}let f=(0,e._)`${d} === undefined`;u.useDefaults==="empty"&&(f=(0,e._)`${f} || ${d} === null || ${d} === ""`),o.if(f,(0,e._)`${d} = ${(0,e.stringify)(s)}`)}return Eo}var on={},Tt={},gS;function En(){if(gS)return Tt;gS=1,Object.defineProperty(Tt,"__esModule",{value:!0}),Tt.validateUnion=Tt.validateArray=Tt.usePattern=Tt.callValidateCode=Tt.schemaProperties=Tt.allSchemaProperties=Tt.noPropertyInData=Tt.propertyInData=Tt.isOwnProperty=Tt.hasPropFunc=Tt.reportMissingProp=Tt.checkMissingProp=Tt.checkReportMissingProp=void 0;const e=Ke(),t=mt(),r=hi(),n=mt();function i(m,T){const{gen:I,data:h,it:v}=m;I.if(u(I,h,T,v.opts.ownProperties),()=>{m.setParams({missingProperty:(0,e._)`${T}`},!0),m.error()})}Tt.checkReportMissingProp=i;function a({gen:m,data:T,it:{opts:I}},h,v){return(0,e.or)(...h.map(E=>(0,e.and)(u(m,T,E,I.ownProperties),(0,e._)`${v} = ${E}`)))}Tt.checkMissingProp=a;function s(m,T){m.setParams({missingProperty:T},!0),m.error()}Tt.reportMissingProp=s;function o(m){return m.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}Tt.hasPropFunc=o;function c(m,T,I){return(0,e._)`${o(m)}.call(${T}, ${I})`}Tt.isOwnProperty=c;function l(m,T,I,h){const v=(0,e._)`${T}${(0,e.getProperty)(I)} !== undefined`;return h?(0,e._)`${v} && ${c(m,T,I)}`:v}Tt.propertyInData=l;function u(m,T,I,h){const v=(0,e._)`${T}${(0,e.getProperty)(I)} === undefined`;return h?(0,e.or)(v,(0,e.not)(c(m,T,I))):v}Tt.noPropertyInData=u;function d(m){return m?Object.keys(m).filter(T=>T!=="__proto__"):[]}Tt.allSchemaProperties=d;function f(m,T){return d(T).filter(I=>!(0,t.alwaysValidSchema)(m,T[I]))}Tt.schemaProperties=f;function p({schemaCode:m,data:T,it:{gen:I,topSchemaRef:h,schemaPath:v,errorPath:E},it:N},M,q,H){const k=H?(0,e._)`${m}, ${T}, ${h}${v}`:T,B=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,E)],[r.default.parentData,N.parentData],[r.default.parentDataProperty,N.parentDataProperty],[r.default.rootData,r.default.rootData]];N.opts.dynamicRef&&B.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const F=(0,e._)`${k}, ${I.object(...B)}`;return q!==e.nil?(0,e._)`${M}.call(${q}, ${F})`:(0,e._)`${M}(${F})`}Tt.callValidateCode=p;const y=(0,e._)`new RegExp`;function g({gen:m,it:{opts:T}},I){const h=T.unicodeRegExp?"u":"",{regExp:v}=T.code,E=v(I,h);return m.scopeValue("pattern",{key:E.toString(),ref:E,code:(0,e._)`${v.code==="new RegExp"?y:(0,n.useFunc)(m,v)}(${I}, ${h})`})}Tt.usePattern=g;function b(m){const{gen:T,data:I,keyword:h,it:v}=m,E=T.name("valid");if(v.allErrors){const M=T.let("valid",!0);return N(()=>T.assign(M,!1)),M}return T.var(E,!0),N(()=>T.break()),E;function N(M){const q=T.const("len",(0,e._)`${I}.length`);T.forRange("i",0,q,H=>{m.subschema({keyword:h,dataProp:H,dataPropType:t.Type.Num},E),T.if((0,e.not)(E),M)})}}Tt.validateArray=b;function O(m){const{gen:T,schema:I,keyword:h,it:v}=m;if(!Array.isArray(I))throw new Error("ajv implementation error");if(I.some(q=>(0,t.alwaysValidSchema)(v,q))&&!v.opts.unevaluated)return;const N=T.let("valid",!1),M=T.name("_valid");T.block(()=>I.forEach((q,H)=>{const k=m.subschema({keyword:h,schemaProp:H,compositeRule:!0},M);T.assign(N,(0,e._)`${N} || ${M}`),m.mergeValidEvaluated(k,M)||T.if((0,e.not)(N))})),m.result(N,()=>m.reset(),()=>m.error(!0))}return Tt.validateUnion=O,Tt}var _S;function r3(){if(_S)return on;_S=1,Object.defineProperty(on,"__esModule",{value:!0}),on.validateKeywordUsage=on.validSchemaType=on.funcKeywordCode=on.macroKeywordCode=void 0;const e=Ke(),t=hi(),r=En(),n=Gc();function i(f,p){const{gen:y,keyword:g,schema:b,parentSchema:O,it:m}=f,T=p.macro.call(m.self,b,O,m),I=l(y,g,T);m.opts.validateSchema!==!1&&m.self.validateSchema(T,!0);const h=y.name("valid");f.subschema({schema:T,schemaPath:e.nil,errSchemaPath:`${m.errSchemaPath}/${g}`,topSchemaRef:I,compositeRule:!0},h),f.pass(h,()=>f.error(!0))}on.macroKeywordCode=i;function a(f,p){var y;const{gen:g,keyword:b,schema:O,parentSchema:m,$data:T,it:I}=f;c(I,p);const h=!T&&p.compile?p.compile.call(I.self,O,m,I):p.validate,v=l(g,b,h),E=g.let("valid");f.block$data(E,N),f.ok((y=p.valid)!==null&&y!==void 0?y:E);function N(){if(p.errors===!1)H(),p.modifying&&s(f),k(()=>f.error());else{const B=p.async?M():q();p.modifying&&s(f),k(()=>o(f,B))}}function M(){const B=g.let("ruleErrs",null);return g.try(()=>H((0,e._)`await `),F=>g.assign(E,!1).if((0,e._)`${F} instanceof ${I.ValidationError}`,()=>g.assign(B,(0,e._)`${F}.errors`),()=>g.throw(F))),B}function q(){const B=(0,e._)`${v}.errors`;return g.assign(B,null),H(e.nil),B}function H(B=p.async?(0,e._)`await `:e.nil){const F=I.opts.passContext?t.default.this:t.default.self,te=!("compile"in p&&!T||p.schema===!1);g.assign(E,(0,e._)`${B}${(0,r.callValidateCode)(f,v,F,te)}`,p.modifying)}function k(B){var F;g.if((0,e.not)((F=p.valid)!==null&&F!==void 0?F:E),B)}}on.funcKeywordCode=a;function s(f){const{gen:p,data:y,it:g}=f;p.if(g.parentData,()=>p.assign(y,(0,e._)`${g.parentData}[${g.parentDataProperty}]`))}function o(f,p){const{gen:y}=f;y.if((0,e._)`Array.isArray(${p})`,()=>{y.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${p} : ${t.default.vErrors}.concat(${p})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,n.extendErrors)(f)},()=>f.error())}function c({schemaEnv:f},p){if(p.async&&!f.$async)throw new Error("async keyword in sync schema")}function l(f,p,y){if(y===void 0)throw new Error(`keyword "${p}" failed to compile`);return f.scopeValue("keyword",typeof y=="function"?{ref:y}:{ref:y,code:(0,e.stringify)(y)})}function u(f,p,y=!1){return!p.length||p.some(g=>g==="array"?Array.isArray(f):g==="object"?f&&typeof f=="object"&&!Array.isArray(f):typeof f==g||y&&typeof f>"u")}on.validSchemaType=u;function d({schema:f,opts:p,self:y,errSchemaPath:g},b,O){if(Array.isArray(b.keyword)?!b.keyword.includes(O):b.keyword!==O)throw new Error("ajv implementation error");const m=b.dependencies;if(m!=null&&m.some(T=>!Object.prototype.hasOwnProperty.call(f,T)))throw new Error(`parent schema must have dependencies of ${O}: ${m.join(",")}`);if(b.validateSchema&&!b.validateSchema(f[O])){const I=`keyword "${O}" value is invalid at path "${g}": `+y.errorsText(b.validateSchema.errors);if(p.validateSchema==="log")y.logger.error(I);else throw new Error(I)}}return on.validateKeywordUsage=d,on}var ei={},vS;function n3(){if(vS)return ei;vS=1,Object.defineProperty(ei,"__esModule",{value:!0}),ei.extendSubschemaMode=ei.extendSubschemaData=ei.getSubschema=void 0;const e=Ke(),t=mt();function r(a,{keyword:s,schemaProp:o,schema:c,schemaPath:l,errSchemaPath:u,topSchemaRef:d}){if(s!==void 0&&c!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(s!==void 0){const f=a.schema[s];return o===void 0?{schema:f,schemaPath:(0,e._)`${a.schemaPath}${(0,e.getProperty)(s)}`,errSchemaPath:`${a.errSchemaPath}/${s}`}:{schema:f[o],schemaPath:(0,e._)`${a.schemaPath}${(0,e.getProperty)(s)}${(0,e.getProperty)(o)}`,errSchemaPath:`${a.errSchemaPath}/${s}/${(0,t.escapeFragment)(o)}`}}if(c!==void 0){if(l===void 0||u===void 0||d===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:c,schemaPath:l,topSchemaRef:d,errSchemaPath:u}}throw new Error('either "keyword" or "schema" must be passed')}ei.getSubschema=r;function n(a,s,{dataProp:o,dataPropType:c,data:l,dataTypes:u,propertyName:d}){if(l!==void 0&&o!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:f}=s;if(o!==void 0){const{errorPath:y,dataPathArr:g,opts:b}=s,O=f.let("data",(0,e._)`${s.data}${(0,e.getProperty)(o)}`,!0);p(O),a.errorPath=(0,e.str)`${y}${(0,t.getErrorPath)(o,c,b.jsPropertySyntax)}`,a.parentDataProperty=(0,e._)`${o}`,a.dataPathArr=[...g,a.parentDataProperty]}if(l!==void 0){const y=l instanceof e.Name?l:f.let("data",l,!0);p(y),d!==void 0&&(a.propertyName=d)}u&&(a.dataTypes=u);function p(y){a.data=y,a.dataLevel=s.dataLevel+1,a.dataTypes=[],s.definedProperties=new Set,a.parentData=s.data,a.dataNames=[...s.dataNames,y]}}ei.extendSubschemaData=n;function i(a,{jtdDiscriminator:s,jtdMetadata:o,compositeRule:c,createErrors:l,allErrors:u}){c!==void 0&&(a.compositeRule=c),l!==void 0&&(a.createErrors=l),u!==void 0&&(a.allErrors=u),a.jtdDiscriminator=s,a.jtdMetadata=o}return ei.extendSubschemaMode=i,ei}var Ir={},dp,ES;function RE(){return ES||(ES=1,dp=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,a;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(a=Object.keys(t),n=a.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[i]))return!1;for(i=n;i--!==0;){var s=a[i];if(!e(t[s],r[s]))return!1}return!0}return t!==t&&r!==r}),dp}var fp={exports:{}},bS;function i3(){if(bS)return fp.exports;bS=1;var e=fp.exports=function(n,i,a){typeof i=="function"&&(a=i,i={}),a=i.cb||a;var s=typeof a=="function"?a:a.pre||function(){},o=a.post||function(){};t(i,s,o,n,"",n)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function t(n,i,a,s,o,c,l,u,d,f){if(s&&typeof s=="object"&&!Array.isArray(s)){i(s,o,c,l,u,d,f);for(var p in s){var y=s[p];if(Array.isArray(y)){if(p in e.arrayKeywords)for(var g=0;g<y.length;g++)t(n,i,a,y[g],o+"/"+p+"/"+g,c,o,p,s,g)}else if(p in e.propsKeywords){if(y&&typeof y=="object")for(var b in y)t(n,i,a,y[b],o+"/"+p+"/"+r(b),c,o,p,s,b)}else(p in e.keywords||n.allKeys&&!(p in e.skipKeywords))&&t(n,i,a,y,o+"/"+p,c,o,p,s)}a(s,o,c,l,u,d,f)}}function r(n){return n.replace(/~/g,"~0").replace(/\//g,"~1")}return fp.exports}var SS;function tf(){if(SS)return Ir;SS=1,Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.getSchemaRefs=Ir.resolveUrl=Ir.normalizeId=Ir._getFullPath=Ir.getFullPath=Ir.inlineRef=void 0;const e=mt(),t=RE(),r=i3(),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function i(g,b=!0){return typeof g=="boolean"?!0:b===!0?!s(g):b?o(g)<=b:!1}Ir.inlineRef=i;const a=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(g){for(const b in g){if(a.has(b))return!0;const O=g[b];if(Array.isArray(O)&&O.some(s)||typeof O=="object"&&s(O))return!0}return!1}function o(g){let b=0;for(const O in g){if(O==="$ref")return 1/0;if(b++,!n.has(O)&&(typeof g[O]=="object"&&(0,e.eachItem)(g[O],m=>b+=o(m)),b===1/0))return 1/0}return b}function c(g,b="",O){O!==!1&&(b=d(b));const m=g.parse(b);return l(g,m)}Ir.getFullPath=c;function l(g,b){return g.serialize(b).split("#")[0]+"#"}Ir._getFullPath=l;const u=/#\/?$/;function d(g){return g?g.replace(u,""):""}Ir.normalizeId=d;function f(g,b,O){return O=d(O),g.resolve(b,O)}Ir.resolveUrl=f;const p=/^[a-z_][-a-z0-9._]*$/i;function y(g,b){if(typeof g=="boolean")return{};const{schemaId:O,uriResolver:m}=this.opts,T=d(g[O]||b),I={"":T},h=c(m,T,!1),v={},E=new Set;return r(g,{allKeys:!0},(q,H,k,B)=>{if(B===void 0)return;const F=h+H;let te=I[B];typeof q[O]=="string"&&(te=ie.call(this,q[O])),Z.call(this,q.$anchor),Z.call(this,q.$dynamicAnchor),I[H]=te;function ie(X){const Y=this.opts.uriResolver.resolve;if(X=d(te?Y(te,X):X),E.has(X))throw M(X);E.add(X);let U=this.refs[X];return typeof U=="string"&&(U=this.refs[U]),typeof U=="object"?N(q,U.schema,X):X!==d(F)&&(X[0]==="#"?(N(q,v[X],X),v[X]=q):this.refs[X]=F),X}function Z(X){if(typeof X=="string"){if(!p.test(X))throw new Error(`invalid anchor "${X}"`);ie.call(this,`#${X}`)}}}),v;function N(q,H,k){if(H!==void 0&&!t(q,H))throw M(k)}function M(q){return new Error(`reference "${q}" resolves to more than one schema`)}}return Ir.getSchemaRefs=y,Ir}var TS;function zc(){if(TS)return Qn;TS=1,Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.getData=Qn.KeywordCxt=Qn.validateFunctionCode=void 0;const e=e3(),t=kd(),r=Mj(),n=kd(),i=t3(),a=r3(),s=n3(),o=Ke(),c=hi(),l=tf(),u=mt(),d=Gc();function f(ae){if(h(ae)&&(E(ae),I(ae))){b(ae);return}p(ae,()=>(0,e.topBoolOrEmptySchema)(ae))}Qn.validateFunctionCode=f;function p({gen:ae,validateName:ue,schema:fe,schemaEnv:pe,opts:be},Ae){be.code.es5?ae.func(ue,(0,o._)`${c.default.data}, ${c.default.valCxt}`,pe.$async,()=>{ae.code((0,o._)`"use strict"; ${m(fe,be)}`),g(ae,be),ae.code(Ae)}):ae.func(ue,(0,o._)`${c.default.data}, ${y(be)}`,pe.$async,()=>ae.code(m(fe,be)).code(Ae))}function y(ae){return(0,o._)`{${c.default.instancePath}="", ${c.default.parentData}, ${c.default.parentDataProperty}, ${c.default.rootData}=${c.default.data}${ae.dynamicRef?(0,o._)`, ${c.default.dynamicAnchors}={}`:o.nil}}={}`}function g(ae,ue){ae.if(c.default.valCxt,()=>{ae.var(c.default.instancePath,(0,o._)`${c.default.valCxt}.${c.default.instancePath}`),ae.var(c.default.parentData,(0,o._)`${c.default.valCxt}.${c.default.parentData}`),ae.var(c.default.parentDataProperty,(0,o._)`${c.default.valCxt}.${c.default.parentDataProperty}`),ae.var(c.default.rootData,(0,o._)`${c.default.valCxt}.${c.default.rootData}`),ue.dynamicRef&&ae.var(c.default.dynamicAnchors,(0,o._)`${c.default.valCxt}.${c.default.dynamicAnchors}`)},()=>{ae.var(c.default.instancePath,(0,o._)`""`),ae.var(c.default.parentData,(0,o._)`undefined`),ae.var(c.default.parentDataProperty,(0,o._)`undefined`),ae.var(c.default.rootData,c.default.data),ue.dynamicRef&&ae.var(c.default.dynamicAnchors,(0,o._)`{}`)})}function b(ae){const{schema:ue,opts:fe,gen:pe}=ae;p(ae,()=>{fe.$comment&&ue.$comment&&B(ae),q(ae),pe.let(c.default.vErrors,null),pe.let(c.default.errors,0),fe.unevaluated&&O(ae),N(ae),F(ae)})}function O(ae){const{gen:ue,validateName:fe}=ae;ae.evaluated=ue.const("evaluated",(0,o._)`${fe}.evaluated`),ue.if((0,o._)`${ae.evaluated}.dynamicProps`,()=>ue.assign((0,o._)`${ae.evaluated}.props`,(0,o._)`undefined`)),ue.if((0,o._)`${ae.evaluated}.dynamicItems`,()=>ue.assign((0,o._)`${ae.evaluated}.items`,(0,o._)`undefined`))}function m(ae,ue){const fe=typeof ae=="object"&&ae[ue.schemaId];return fe&&(ue.code.source||ue.code.process)?(0,o._)`/*# sourceURL=${fe} */`:o.nil}function T(ae,ue){if(h(ae)&&(E(ae),I(ae))){v(ae,ue);return}(0,e.boolOrEmptySchema)(ae,ue)}function I({schema:ae,self:ue}){if(typeof ae=="boolean")return!ae;for(const fe in ae)if(ue.RULES.all[fe])return!0;return!1}function h(ae){return typeof ae.schema!="boolean"}function v(ae,ue){const{schema:fe,gen:pe,opts:be}=ae;be.$comment&&fe.$comment&&B(ae),H(ae),k(ae);const Ae=pe.const("_errs",c.default.errors);N(ae,Ae),pe.var(ue,(0,o._)`${Ae} === ${c.default.errors}`)}function E(ae){(0,u.checkUnknownRules)(ae),M(ae)}function N(ae,ue){if(ae.opts.jtd)return ie(ae,[],!1,ue);const fe=(0,t.getSchemaTypes)(ae.schema),pe=(0,t.coerceAndCheckDataType)(ae,fe);ie(ae,fe,!pe,ue)}function M(ae){const{schema:ue,errSchemaPath:fe,opts:pe,self:be}=ae;ue.$ref&&pe.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(ue,be.RULES)&&be.logger.warn(`$ref: keywords ignored in schema at path "${fe}"`)}function q(ae){const{schema:ue,opts:fe}=ae;ue.default!==void 0&&fe.useDefaults&&fe.strictSchema&&(0,u.checkStrictMode)(ae,"default is ignored in the schema root")}function H(ae){const ue=ae.schema[ae.opts.schemaId];ue&&(ae.baseId=(0,l.resolveUrl)(ae.opts.uriResolver,ae.baseId,ue))}function k(ae){if(ae.schema.$async&&!ae.schemaEnv.$async)throw new Error("async schema in sync schema")}function B({gen:ae,schemaEnv:ue,schema:fe,errSchemaPath:pe,opts:be}){const Ae=fe.$comment;if(be.$comment===!0)ae.code((0,o._)`${c.default.self}.logger.log(${Ae})`);else if(typeof be.$comment=="function"){const qe=(0,o.str)`${pe}/$comment`,We=ae.scopeValue("root",{ref:ue.root});ae.code((0,o._)`${c.default.self}.opts.$comment(${Ae}, ${qe}, ${We}.schema)`)}}function F(ae){const{gen:ue,schemaEnv:fe,validateName:pe,ValidationError:be,opts:Ae}=ae;fe.$async?ue.if((0,o._)`${c.default.errors} === 0`,()=>ue.return(c.default.data),()=>ue.throw((0,o._)`new ${be}(${c.default.vErrors})`)):(ue.assign((0,o._)`${pe}.errors`,c.default.vErrors),Ae.unevaluated&&te(ae),ue.return((0,o._)`${c.default.errors} === 0`))}function te({gen:ae,evaluated:ue,props:fe,items:pe}){fe instanceof o.Name&&ae.assign((0,o._)`${ue}.props`,fe),pe instanceof o.Name&&ae.assign((0,o._)`${ue}.items`,pe)}function ie(ae,ue,fe,pe){const{gen:be,schema:Ae,data:qe,allErrors:We,opts:tt,self:Xe}=ae,{RULES:ut}=Xe;if(Ae.$ref&&(tt.ignoreKeywordsWithRef||!(0,u.schemaHasRulesButRef)(Ae,ut))){be.block(()=>Ee(ae,"$ref",ut.all.$ref.definition));return}tt.jtd||X(ae,ue),be.block(()=>{for(const It of ut.rules)Ht(It);Ht(ut.post)});function Ht(It){(0,r.shouldUseGroup)(Ae,It)&&(It.type?(be.if((0,n.checkDataType)(It.type,qe,tt.strictNumbers)),Z(ae,It),ue.length===1&&ue[0]===It.type&&fe&&(be.else(),(0,n.reportTypeError)(ae)),be.endIf()):Z(ae,It),We||be.if((0,o._)`${c.default.errors} === ${pe||0}`))}}function Z(ae,ue){const{gen:fe,schema:pe,opts:{useDefaults:be}}=ae;be&&(0,i.assignDefaults)(ae,ue.type),fe.block(()=>{for(const Ae of ue.rules)(0,r.shouldUseRule)(pe,Ae)&&Ee(ae,Ae.keyword,Ae.definition,ue.type)})}function X(ae,ue){ae.schemaEnv.meta||!ae.opts.strictTypes||(Y(ae,ue),ae.opts.allowUnionTypes||U(ae,ue),L(ae,ae.dataTypes))}function Y(ae,ue){if(ue.length){if(!ae.dataTypes.length){ae.dataTypes=ue;return}ue.forEach(fe=>{W(ae.dataTypes,fe)||$(ae,`type "${fe}" not allowed by context "${ae.dataTypes.join(",")}"`)}),P(ae,ue)}}function U(ae,ue){ue.length>1&&!(ue.length===2&&ue.includes("null"))&&$(ae,"use allowUnionTypes to allow union type keyword")}function L(ae,ue){const fe=ae.self.RULES.all;for(const pe in fe){const be=fe[pe];if(typeof be=="object"&&(0,r.shouldUseRule)(ae.schema,be)){const{type:Ae}=be.definition;Ae.length&&!Ae.some(qe=>V(ue,qe))&&$(ae,`missing type "${Ae.join(",")}" for keyword "${pe}"`)}}}function V(ae,ue){return ae.includes(ue)||ue==="number"&&ae.includes("integer")}function W(ae,ue){return ae.includes(ue)||ue==="integer"&&ae.includes("number")}function P(ae,ue){const fe=[];for(const pe of ae.dataTypes)W(ue,pe)?fe.push(pe):ue.includes("integer")&&pe==="number"&&fe.push("integer");ae.dataTypes=fe}function $(ae,ue){const fe=ae.schemaEnv.baseId+ae.errSchemaPath;ue+=` at "${fe}" (strictTypes)`,(0,u.checkStrictMode)(ae,ue,ae.opts.strictTypes)}class ee{constructor(ue,fe,pe){if((0,a.validateKeywordUsage)(ue,fe,pe),this.gen=ue.gen,this.allErrors=ue.allErrors,this.keyword=pe,this.data=ue.data,this.schema=ue.schema[pe],this.$data=fe.$data&&ue.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(ue,this.schema,pe,this.$data),this.schemaType=fe.schemaType,this.parentSchema=ue.schema,this.params={},this.it=ue,this.def=fe,this.$data)this.schemaCode=ue.gen.const("vSchema",we(this.$data,ue));else if(this.schemaCode=this.schemaValue,!(0,a.validSchemaType)(this.schema,fe.schemaType,fe.allowUndefined))throw new Error(`${pe} value must be ${JSON.stringify(fe.schemaType)}`);("code"in fe?fe.trackErrors:fe.errors!==!1)&&(this.errsCount=ue.gen.const("_errs",c.default.errors))}result(ue,fe,pe){this.failResult((0,o.not)(ue),fe,pe)}failResult(ue,fe,pe){this.gen.if(ue),pe?pe():this.error(),fe?(this.gen.else(),fe(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(ue,fe){this.failResult((0,o.not)(ue),void 0,fe)}fail(ue){if(ue===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(ue),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(ue){if(!this.$data)return this.fail(ue);const{schemaCode:fe}=this;this.fail((0,o._)`${fe} !== undefined && (${(0,o.or)(this.invalid$data(),ue)})`)}error(ue,fe,pe){if(fe){this.setParams(fe),this._error(ue,pe),this.setParams({});return}this._error(ue,pe)}_error(ue,fe){(ue?d.reportExtraError:d.reportError)(this,this.def.error,fe)}$dataError(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}ok(ue){this.allErrors||this.gen.if(ue)}setParams(ue,fe){fe?Object.assign(this.params,ue):this.params=ue}block$data(ue,fe,pe=o.nil){this.gen.block(()=>{this.check$data(ue,pe),fe()})}check$data(ue=o.nil,fe=o.nil){if(!this.$data)return;const{gen:pe,schemaCode:be,schemaType:Ae,def:qe}=this;pe.if((0,o.or)((0,o._)`${be} === undefined`,fe)),ue!==o.nil&&pe.assign(ue,!0),(Ae.length||qe.validateSchema)&&(pe.elseIf(this.invalid$data()),this.$dataError(),ue!==o.nil&&pe.assign(ue,!1)),pe.else()}invalid$data(){const{gen:ue,schemaCode:fe,schemaType:pe,def:be,it:Ae}=this;return(0,o.or)(qe(),We());function qe(){if(pe.length){if(!(fe instanceof o.Name))throw new Error("ajv implementation error");const tt=Array.isArray(pe)?pe:[pe];return(0,o._)`${(0,n.checkDataTypes)(tt,fe,Ae.opts.strictNumbers,n.DataType.Wrong)}`}return o.nil}function We(){if(be.validateSchema){const tt=ue.scopeValue("validate$data",{ref:be.validateSchema});return(0,o._)`!${tt}(${fe})`}return o.nil}}subschema(ue,fe){const pe=(0,s.getSubschema)(this.it,ue);(0,s.extendSubschemaData)(pe,this.it,ue),(0,s.extendSubschemaMode)(pe,ue);const be={...this.it,...pe,items:void 0,props:void 0};return T(be,fe),be}mergeEvaluated(ue,fe){const{it:pe,gen:be}=this;pe.opts.unevaluated&&(pe.props!==!0&&ue.props!==void 0&&(pe.props=u.mergeEvaluated.props(be,ue.props,pe.props,fe)),pe.items!==!0&&ue.items!==void 0&&(pe.items=u.mergeEvaluated.items(be,ue.items,pe.items,fe)))}mergeValidEvaluated(ue,fe){const{it:pe,gen:be}=this;if(pe.opts.unevaluated&&(pe.props!==!0||pe.items!==!0))return be.if(fe,()=>this.mergeEvaluated(ue,o.Name)),!0}}Qn.KeywordCxt=ee;function Ee(ae,ue,fe,pe){const be=new ee(ae,fe,ue);"code"in fe?fe.code(be,pe):be.$data&&fe.validate?(0,a.funcKeywordCode)(be,fe):"macro"in fe?(0,a.macroKeywordCode)(be,fe):(fe.compile||fe.validate)&&(0,a.funcKeywordCode)(be,fe)}const he=/^\/(?:[^~]|~0|~1)*$/,Se=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function we(ae,{dataLevel:ue,dataNames:fe,dataPathArr:pe}){let be,Ae;if(ae==="")return c.default.rootData;if(ae[0]==="/"){if(!he.test(ae))throw new Error(`Invalid JSON-pointer: ${ae}`);be=ae,Ae=c.default.rootData}else{const Xe=Se.exec(ae);if(!Xe)throw new Error(`Invalid JSON-pointer: ${ae}`);const ut=+Xe[1];if(be=Xe[2],be==="#"){if(ut>=ue)throw new Error(tt("property/index",ut));return pe[ue-ut]}if(ut>ue)throw new Error(tt("data",ut));if(Ae=fe[ue-ut],!be)return Ae}let qe=Ae;const We=be.split("/");for(const Xe of We)Xe&&(Ae=(0,o._)`${Ae}${(0,o.getProperty)((0,u.unescapeJsonPointer)(Xe))}`,qe=(0,o._)`${qe} && ${Ae}`);return qe;function tt(Xe,ut){return`Cannot access ${Xe} ${ut} levels up, current level is ${ue}`}}return Qn.getData=we,Qn}var il={},wS;function AE(){if(wS)return il;wS=1,Object.defineProperty(il,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return il.default=e,il}var al={},IS;function rf(){if(IS)return al;IS=1,Object.defineProperty(al,"__esModule",{value:!0});const e=tf();class t extends Error{constructor(n,i,a,s){super(s||`can't resolve reference ${a} from id ${i}`),this.missingRef=(0,e.resolveUrl)(n,i,a),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(n,this.missingRef))}}return al.default=t,al}var xr={},RS;function OE(){if(RS)return xr;RS=1,Object.defineProperty(xr,"__esModule",{value:!0}),xr.resolveSchema=xr.getCompilingSchema=xr.resolveRef=xr.compileSchema=xr.SchemaEnv=void 0;const e=Ke(),t=AE(),r=hi(),n=tf(),i=mt(),a=zc();class s{constructor(O){var m;this.refs={},this.dynamicAnchors={};let T;typeof O.schema=="object"&&(T=O.schema),this.schema=O.schema,this.schemaId=O.schemaId,this.root=O.root||this,this.baseId=(m=O.baseId)!==null&&m!==void 0?m:(0,n.normalizeId)(T==null?void 0:T[O.schemaId||"$id"]),this.schemaPath=O.schemaPath,this.localRefs=O.localRefs,this.meta=O.meta,this.$async=T==null?void 0:T.$async,this.refs={}}}xr.SchemaEnv=s;function o(b){const O=u.call(this,b);if(O)return O;const m=(0,n.getFullPath)(this.opts.uriResolver,b.root.baseId),{es5:T,lines:I}=this.opts.code,{ownProperties:h}=this.opts,v=new e.CodeGen(this.scope,{es5:T,lines:I,ownProperties:h});let E;b.$async&&(E=v.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const N=v.scopeName("validate");b.validateName=N;const M={gen:v,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:v.scopeValue("schema",this.opts.code.source===!0?{ref:b.schema,code:(0,e.stringify)(b.schema)}:{ref:b.schema}),validateName:N,ValidationError:E,schema:b.schema,schemaEnv:b,rootId:m,baseId:b.baseId||m,schemaPath:e.nil,errSchemaPath:b.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let q;try{this._compilations.add(b),(0,a.validateFunctionCode)(M),v.optimize(this.opts.code.optimize);const H=v.toString();q=`${v.scopeRefs(r.default.scope)}return ${H}`,this.opts.code.process&&(q=this.opts.code.process(q,b));const B=new Function(`${r.default.self}`,`${r.default.scope}`,q)(this,this.scope.get());if(this.scope.value(N,{ref:B}),B.errors=null,B.schema=b.schema,B.schemaEnv=b,b.$async&&(B.$async=!0),this.opts.code.source===!0&&(B.source={validateName:N,validateCode:H,scopeValues:v._values}),this.opts.unevaluated){const{props:F,items:te}=M;B.evaluated={props:F instanceof e.Name?void 0:F,items:te instanceof e.Name?void 0:te,dynamicProps:F instanceof e.Name,dynamicItems:te instanceof e.Name},B.source&&(B.source.evaluated=(0,e.stringify)(B.evaluated))}return b.validate=B,b}catch(H){throw delete b.validate,delete b.validateName,q&&this.logger.error("Error compiling schema, function code:",q),H}finally{this._compilations.delete(b)}}xr.compileSchema=o;function c(b,O,m){var T;m=(0,n.resolveUrl)(this.opts.uriResolver,O,m);const I=b.refs[m];if(I)return I;let h=f.call(this,b,m);if(h===void 0){const v=(T=b.localRefs)===null||T===void 0?void 0:T[m],{schemaId:E}=this.opts;v&&(h=new s({schema:v,schemaId:E,root:b,baseId:O}))}if(h!==void 0)return b.refs[m]=l.call(this,h)}xr.resolveRef=c;function l(b){return(0,n.inlineRef)(b.schema,this.opts.inlineRefs)?b.schema:b.validate?b:o.call(this,b)}function u(b){for(const O of this._compilations)if(d(O,b))return O}xr.getCompilingSchema=u;function d(b,O){return b.schema===O.schema&&b.root===O.root&&b.baseId===O.baseId}function f(b,O){let m;for(;typeof(m=this.refs[O])=="string";)O=m;return m||this.schemas[O]||p.call(this,b,O)}function p(b,O){const m=this.opts.uriResolver.parse(O),T=(0,n._getFullPath)(this.opts.uriResolver,m);let I=(0,n.getFullPath)(this.opts.uriResolver,b.baseId,void 0);if(Object.keys(b.schema).length>0&&T===I)return g.call(this,m,b);const h=(0,n.normalizeId)(T),v=this.refs[h]||this.schemas[h];if(typeof v=="string"){const E=p.call(this,b,v);return typeof(E==null?void 0:E.schema)!="object"?void 0:g.call(this,m,E)}if(typeof(v==null?void 0:v.schema)=="object"){if(v.validate||o.call(this,v),h===(0,n.normalizeId)(O)){const{schema:E}=v,{schemaId:N}=this.opts,M=E[N];return M&&(I=(0,n.resolveUrl)(this.opts.uriResolver,I,M)),new s({schema:E,schemaId:N,root:b,baseId:I})}return g.call(this,m,v)}}xr.resolveSchema=p;const y=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function g(b,{baseId:O,schema:m,root:T}){var I;if(((I=b.fragment)===null||I===void 0?void 0:I[0])!=="/")return;for(const E of b.fragment.slice(1).split("/")){if(typeof m=="boolean")return;const N=m[(0,i.unescapeFragment)(E)];if(N===void 0)return;m=N;const M=typeof m=="object"&&m[this.opts.schemaId];!y.has(E)&&M&&(O=(0,n.resolveUrl)(this.opts.uriResolver,O,M))}let h;if(typeof m!="boolean"&&m.$ref&&!(0,i.schemaHasRulesButRef)(m,this.RULES)){const E=(0,n.resolveUrl)(this.opts.uriResolver,O,m.$ref);h=p.call(this,T,E)}const{schemaId:v}=this.opts;if(h=h||new s({schema:m,schemaId:v,root:T,baseId:O}),h.schema!==h.root.schema)return h}return xr}const a3="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",s3="Meta-schema for $data reference (JSON AnySchema extension proposal)",o3="object",c3=["$data"],u3={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},l3=!1,d3={$id:a3,description:s3,type:o3,required:c3,properties:u3,additionalProperties:l3};var sl={},bo={exports:{}},pp,AS;function jj(){if(AS)return pp;AS=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),r=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),n=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),i=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function a(h){let v="",E=0,N=0;for(N=0;N<h.length;N++)if(E=h[N].charCodeAt(0),E!==48){if(!(E>=48&&E<=57||E>=65&&E<=70||E>=97&&E<=102))return"";v+=h[N];break}for(N+=1;N<h.length;N++){if(E=h[N].charCodeAt(0),!(E>=48&&E<=57||E>=65&&E<=70||E>=97&&E<=102))return"";v+=h[N]}return v}const s=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function o(h){return h.length=0,!0}function c(h,v,E){if(h.length){const N=a(h);if(N!=="")v.push(N);else return E.error=!0,!1;h.length=0}return!0}function l(h){let v=0;const E={error:!1,address:"",zone:""},N=[],M=[];let q=!1,H=!1,k=c;for(let B=0;B<h.length;B++){const F=h[B];if(!(F==="["||F==="]"))if(F===":"){if(q===!0&&(H=!0),!k(M,N,E))break;if(++v>7){E.error=!0;break}B>0&&h[B-1]===":"&&(q=!0),N.push(":");continue}else if(F==="%"){if(!k(M,N,E))break;k=o}else{M.push(F);continue}}return M.length&&(k===o?E.zone=M.join(""):H?N.push(M.join("")):N.push(a(M))),E.address=N.join(""),E}function u(h){if(d(h,":")<2)return{host:h,isIPV6:!1};const v=l(h);if(v.error)return{host:h,isIPV6:!1};{let E=v.address,N=v.address;return v.zone&&(E+="%"+v.zone,N+="%25"+v.zone),{host:E,isIPV6:!0,escapedHost:N}}}function d(h,v){let E=0;for(let N=0;N<h.length;N++)h[N]===v&&E++;return E}function f(h){let v=h;const E=[];let N=-1,M=0;for(;M=v.length;){if(M===1){if(v===".")break;if(v==="/"){E.push("/");break}else{E.push(v);break}}else if(M===2){if(v[0]==="."){if(v[1]===".")break;if(v[1]==="/"){v=v.slice(2);continue}}else if(v[0]==="/"&&(v[1]==="."||v[1]==="/")){E.push("/");break}}else if(M===3&&v==="/.."){E.length!==0&&E.pop(),E.push("/");break}if(v[0]==="."){if(v[1]==="."){if(v[2]==="/"){v=v.slice(3);continue}}else if(v[1]==="/"){v=v.slice(2);continue}}else if(v[0]==="/"&&v[1]==="."){if(v[2]==="/"){v=v.slice(2);continue}else if(v[2]==="."&&v[3]==="/"){v=v.slice(3),E.length!==0&&E.pop();continue}}if((N=v.indexOf("/",1))===-1){E.push(v);break}else E.push(v.slice(0,N)),v=v.slice(N)}return E.join("")}const p={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},y=/[@/?#:]/g,g=/[@/?#]/g;function b(h,v){const E=v?g:y;return E.lastIndex=0,h.replace(E,N=>p[N])}function O(h,v=!1){if(h.indexOf("%")===-1)return h;let E="";for(let N=0;N<h.length;N++){if(h[N]==="%"&&N+2<h.length){const M=h.slice(N+1,N+3);if(r(M)){const q=M.toUpperCase(),H=String.fromCharCode(parseInt(q,16));v&&n(H)?E+=H:E+="%"+q,N+=2;continue}}E+=h[N]}return E}function m(h){let v="";for(let E=0;E<h.length;E++){if(h[E]==="%"&&E+2<h.length){const N=h.slice(E+1,E+3);if(r(N)){const M=N.toUpperCase(),q=String.fromCharCode(parseInt(M,16));q!=="."&&n(q)?v+=q:v+="%"+M,E+=2;continue}}i(h[E])?v+=h[E]:v+=escape(h[E])}return v}function T(h){let v="";for(let E=0;E<h.length;E++){if(h[E]==="%"&&E+2<h.length){const N=h.slice(E+1,E+3);if(r(N)){v+="%"+N.toUpperCase(),E+=2;continue}}v+=escape(h[E])}return v}function I(h){const v=[];if(h.userinfo!==void 0&&(v.push(h.userinfo),v.push("@")),h.host!==void 0){let E=unescape(h.host);if(!t(E)){const N=u(E);N.isIPV6===!0?E=`[${N.escapedHost}]`:E=b(E,!1)}v.push(E)}return(typeof h.port=="number"||typeof h.port=="string")&&(v.push(":"),v.push(String(h.port))),v.length?v.join(""):void 0}return pp={nonSimpleDomain:s,recomposeAuthority:I,reescapeHostDelimiters:b,normalizePercentEncoding:O,normalizePathEncoding:m,escapePreservingEscapes:T,removeDotSegments:f,isIPv4:t,isUUID:e,normalizeIPv6:u,stringArrayToHexStripped:a},pp}var mp,OS;function f3(){if(OS)return mp;OS=1;const{isUUID:e}=jj(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function n(h){return r.indexOf(h)!==-1}function i(h){return h.secure===!0?!0:h.secure===!1?!1:h.scheme?h.scheme.length===3&&(h.scheme[0]==="w"||h.scheme[0]==="W")&&(h.scheme[1]==="s"||h.scheme[1]==="S")&&(h.scheme[2]==="s"||h.scheme[2]==="S"):!1}function a(h){return h.host||(h.error=h.error||"HTTP URIs must have a host."),h}function s(h){const v=String(h.scheme).toLowerCase()==="https";return(h.port===(v?443:80)||h.port==="")&&(h.port=void 0),h.path||(h.path="/"),h}function o(h){return h.secure=i(h),h.resourceName=(h.path||"/")+(h.query?"?"+h.query:""),h.path=void 0,h.query=void 0,h}function c(h){if((h.port===(i(h)?443:80)||h.port==="")&&(h.port=void 0),typeof h.secure=="boolean"&&(h.scheme=h.secure?"wss":"ws",h.secure=void 0),h.resourceName){const[v,E]=h.resourceName.split("?");h.path=v&&v!=="/"?v:void 0,h.query=E,h.resourceName=void 0}return h.fragment=void 0,h}function l(h,v){if(!h.path)return h.error="URN can not be parsed",h;const E=h.path.match(t);if(E){const N=v.scheme||h.scheme||"urn";h.nid=E[1].toLowerCase(),h.nss=E[2];const M=`${N}:${v.nid||h.nid}`,q=I(M);h.path=void 0,q&&(h=q.parse(h,v))}else h.error=h.error||"URN can not be parsed.";return h}function u(h,v){if(h.nid===void 0)throw new Error("URN without nid cannot be serialized");const E=v.scheme||h.scheme||"urn",N=h.nid.toLowerCase(),M=`${E}:${v.nid||N}`,q=I(M);q&&(h=q.serialize(h,v));const H=h,k=h.nss;return H.path=`${N||v.nid}:${k}`,v.skipEscape=!0,H}function d(h,v){const E=h;return E.uuid=E.nss,E.nss=void 0,!v.tolerant&&(!E.uuid||!e(E.uuid))&&(E.error=E.error||"UUID is not valid."),E}function f(h){const v=h;return v.nss=(h.uuid||"").toLowerCase(),v}const p={scheme:"http",domainHost:!0,parse:a,serialize:s},y={scheme:"https",domainHost:p.domainHost,parse:a,serialize:s},g={scheme:"ws",domainHost:!0,parse:o,serialize:c},b={scheme:"wss",domainHost:g.domainHost,parse:g.parse,serialize:g.serialize},T={http:p,https:y,ws:g,wss:b,urn:{scheme:"urn",parse:l,serialize:u,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:d,serialize:f,skipNormalize:!0}};Object.setPrototypeOf(T,null);function I(h){return h&&(T[h]||T[h.toLowerCase()])||void 0}return mp={wsIsSecure:i,SCHEMES:T,isValidSchemeName:n,getSchemeHandler:I},mp}var NS;function p3(){if(NS)return bo.exports;NS=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:n,normalizePathEncoding:i,escapePreservingEscapes:a,reescapeHostDelimiters:s,isIPv4:o,nonSimpleDomain:c}=jj(),{SCHEMES:l,getSchemeHandler:u}=f3();function d(N,M){return typeof N=="string"?N=I(N,M):typeof N=="object"&&(N=T(g(N,M),M)),N}function f(N,M,q){const H=q?Object.assign({scheme:"null"},q):{scheme:"null"},k=p(T(N,H),T(M,H),H,!0);return H.skipEscape=!0,g(k,H)}function p(N,M,q,H){const k={};return H||(N=T(g(N,q),q),M=T(g(M,q),q)),q=q||{},!q.tolerant&&M.scheme?(k.scheme=M.scheme,k.userinfo=M.userinfo,k.host=M.host,k.port=M.port,k.path=t(M.path||""),k.query=M.query):(M.userinfo!==void 0||M.host!==void 0||M.port!==void 0?(k.userinfo=M.userinfo,k.host=M.host,k.port=M.port,k.path=t(M.path||""),k.query=M.query):(M.path?(M.path[0]==="/"?k.path=t(M.path):((N.userinfo!==void 0||N.host!==void 0||N.port!==void 0)&&!N.path?k.path="/"+M.path:N.path?k.path=N.path.slice(0,N.path.lastIndexOf("/")+1)+M.path:k.path=M.path,k.path=t(k.path)),k.query=M.query):(k.path=N.path,M.query!==void 0?k.query=M.query:k.query=N.query),k.userinfo=N.userinfo,k.host=N.host,k.port=N.port),k.scheme=N.scheme),k.fragment=M.fragment,k}function y(N,M,q){const H=v(N,q),k=v(M,q);return H!==void 0&&k!==void 0&&H.toLowerCase()===k.toLowerCase()}function g(N,M){const q={host:N.host,scheme:N.scheme,userinfo:N.userinfo,port:N.port,path:N.path,query:N.query,nid:N.nid,nss:N.nss,uuid:N.uuid,fragment:N.fragment,reference:N.reference,resourceName:N.resourceName,secure:N.secure,error:""},H=Object.assign({},M),k=[],B=u(H.scheme||q.scheme);B&&B.serialize&&B.serialize(q,H),q.path!==void 0&&(H.skipEscape?q.path=n(q.path):(q.path=a(q.path),q.scheme!==void 0&&(q.path=q.path.split("%3A").join(":")))),H.reference!=="suffix"&&q.scheme&&k.push(q.scheme,":");const F=r(q);if(F!==void 0&&(H.reference!=="suffix"&&k.push("//"),k.push(F),q.path&&q.path[0]!=="/"&&k.push("/")),q.path!==void 0){let te=q.path;!H.absolutePath&&(!B||!B.absolutePath)&&(te=t(te)),F===void 0&&te[0]==="/"&&te[1]==="/"&&(te="/%2F"+te.slice(2)),k.push(te)}return q.query!==void 0&&k.push("?",q.query),q.fragment!==void 0&&k.push("#",q.fragment),k.join("")}const b=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function O(N,M){if(M[2]!==void 0&&N.path&&N.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof N.port=="number"&&(N.port<0||N.port>65535))return"URI port is malformed."}function m(N,M){const q=Object.assign({},M),H={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let k=!1,B=!1;q.reference==="suffix"&&(q.scheme?N=q.scheme+":"+N:N="//"+N);const F=N.match(b);if(F){H.scheme=F[1],H.userinfo=F[3],H.host=F[4],H.port=parseInt(F[5],10),H.path=F[6]||"",H.query=F[7],H.fragment=F[8],isNaN(H.port)&&(H.port=F[5]);const te=O(H,F);if(te!==void 0&&(H.error=H.error||te,k=!0),H.host)if(o(H.host)===!1){const X=e(H.host);H.host=X.host.toLowerCase(),B=X.isIPV6}else B=!0;H.scheme===void 0&&H.userinfo===void 0&&H.host===void 0&&H.port===void 0&&H.query===void 0&&!H.path?H.reference="same-document":H.scheme===void 0?H.reference="relative":H.fragment===void 0?H.reference="absolute":H.reference="uri",q.reference&&q.reference!=="suffix"&&q.reference!==H.reference&&(H.error=H.error||"URI is not a "+q.reference+" reference.");const ie=u(q.scheme||H.scheme);if(!q.unicodeSupport&&(!ie||!ie.unicodeSupport)&&H.host&&(q.domainHost||ie&&ie.domainHost)&&B===!1&&c(H.host))try{H.host=new URL("http://"+H.host).hostname}catch(Z){H.error=H.error||"Host's domain name can not be converted to ASCII: "+Z}if((!ie||ie&&!ie.skipNormalize)&&(N.indexOf("%")!==-1&&(H.scheme!==void 0&&(H.scheme=unescape(H.scheme)),H.host!==void 0&&(H.host=s(unescape(H.host),B))),H.path&&(H.path=i(H.path)),H.fragment))try{H.fragment=encodeURI(decodeURIComponent(H.fragment))}catch{H.error=H.error||"URI malformed"}ie&&ie.parse&&ie.parse(H,q)}else H.error=H.error||"URI can not be parsed.";return{parsed:H,malformedAuthorityOrPort:k}}function T(N,M){return m(N,M).parsed}function I(N,M){return h(N,M).normalized}function h(N,M){const{parsed:q,malformedAuthorityOrPort:H}=m(N,M);return{normalized:H?N:g(q,M),malformedAuthorityOrPort:H}}function v(N,M){if(typeof N=="string"){const{normalized:q,malformedAuthorityOrPort:H}=h(N,M);return H?void 0:q}if(typeof N=="object")return g(N,M)}const E={SCHEMES:l,normalize:d,resolve:f,resolveComponent:p,equal:y,serialize:g,parse:T};return bo.exports=E,bo.exports.default=E,bo.exports.fastUri=E,bo.exports}var PS;function m3(){if(PS)return sl;PS=1,Object.defineProperty(sl,"__esModule",{value:!0});const e=p3();return e.code='require("ajv/dist/runtime/uri").default',sl.default=e,sl}var CS;function h3(){return CS||(CS=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=zc();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=Ke();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=AE(),i=rf(),a=Cj(),s=OE(),o=Ke(),c=tf(),l=kd(),u=mt(),d=d3,f=m3(),p=(U,L)=>new RegExp(U,L);p.code="new RegExp";const y=["removeAdditional","useDefaults","coerceTypes"],g=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),b={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},O={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},m=200;function T(U){var L,V,W,P,$,ee,Ee,he,Se,we,ae,ue,fe,pe,be,Ae,qe,We,tt,Xe,ut,Ht,It,tr,Rt;const hr=U.strict,yr=(L=U.code)===null||L===void 0?void 0:L.optimize,yt=yr===!0||yr===void 0?1:yr||0,Hr=(W=(V=U.code)===null||V===void 0?void 0:V.regExp)!==null&&W!==void 0?W:p,D=(P=U.uriResolver)!==null&&P!==void 0?P:f.default;return{strictSchema:(ee=($=U.strictSchema)!==null&&$!==void 0?$:hr)!==null&&ee!==void 0?ee:!0,strictNumbers:(he=(Ee=U.strictNumbers)!==null&&Ee!==void 0?Ee:hr)!==null&&he!==void 0?he:!0,strictTypes:(we=(Se=U.strictTypes)!==null&&Se!==void 0?Se:hr)!==null&&we!==void 0?we:"log",strictTuples:(ue=(ae=U.strictTuples)!==null&&ae!==void 0?ae:hr)!==null&&ue!==void 0?ue:"log",strictRequired:(pe=(fe=U.strictRequired)!==null&&fe!==void 0?fe:hr)!==null&&pe!==void 0?pe:!1,code:U.code?{...U.code,optimize:yt,regExp:Hr}:{optimize:yt,regExp:Hr},loopRequired:(be=U.loopRequired)!==null&&be!==void 0?be:m,loopEnum:(Ae=U.loopEnum)!==null&&Ae!==void 0?Ae:m,meta:(qe=U.meta)!==null&&qe!==void 0?qe:!0,messages:(We=U.messages)!==null&&We!==void 0?We:!0,inlineRefs:(tt=U.inlineRefs)!==null&&tt!==void 0?tt:!0,schemaId:(Xe=U.schemaId)!==null&&Xe!==void 0?Xe:"$id",addUsedSchema:(ut=U.addUsedSchema)!==null&&ut!==void 0?ut:!0,validateSchema:(Ht=U.validateSchema)!==null&&Ht!==void 0?Ht:!0,validateFormats:(It=U.validateFormats)!==null&&It!==void 0?It:!0,unicodeRegExp:(tr=U.unicodeRegExp)!==null&&tr!==void 0?tr:!0,int32range:(Rt=U.int32range)!==null&&Rt!==void 0?Rt:!0,uriResolver:D}}class I{constructor(L={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,L=this.opts={...L,...T(L)};const{es5:V,lines:W}=this.opts.code;this.scope=new o.ValueScope({scope:{},prefixes:g,es5:V,lines:W}),this.logger=k(L.logger);const P=L.validateFormats;L.validateFormats=!1,this.RULES=(0,a.getRules)(),h.call(this,b,L,"NOT SUPPORTED"),h.call(this,O,L,"DEPRECATED","warn"),this._metaOpts=q.call(this),L.formats&&N.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),L.keywords&&M.call(this,L.keywords),typeof L.meta=="object"&&this.addMetaSchema(L.meta),E.call(this),L.validateFormats=P}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:L,meta:V,schemaId:W}=this.opts;let P=d;W==="id"&&(P={...d},P.id=P.$id,delete P.$id),V&&L&&this.addMetaSchema(P,P[W],!1)}defaultMeta(){const{meta:L,schemaId:V}=this.opts;return this.opts.defaultMeta=typeof L=="object"?L[V]||L:void 0}validate(L,V){let W;if(typeof L=="string"){if(W=this.getSchema(L),!W)throw new Error(`no schema with key or ref "${L}"`)}else W=this.compile(L);const P=W(V);return"$async"in W||(this.errors=W.errors),P}compile(L,V){const W=this._addSchema(L,V);return W.validate||this._compileSchemaEnv(W)}compileAsync(L,V){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:W}=this.opts;return P.call(this,L,V);async function P(we,ae){await $.call(this,we.$schema);const ue=this._addSchema(we,ae);return ue.validate||ee.call(this,ue)}async function $(we){we&&!this.getSchema(we)&&await P.call(this,{$ref:we},!0)}async function ee(we){try{return this._compileSchemaEnv(we)}catch(ae){if(!(ae instanceof i.default))throw ae;return Ee.call(this,ae),await he.call(this,ae.missingSchema),ee.call(this,we)}}function Ee({missingSchema:we,missingRef:ae}){if(this.refs[we])throw new Error(`AnySchema ${we} is loaded but ${ae} cannot be resolved`)}async function he(we){const ae=await Se.call(this,we);this.refs[we]||await $.call(this,ae.$schema),this.refs[we]||this.addSchema(ae,we,V)}async function Se(we){const ae=this._loading[we];if(ae)return ae;try{return await(this._loading[we]=W(we))}finally{delete this._loading[we]}}}addSchema(L,V,W,P=this.opts.validateSchema){if(Array.isArray(L)){for(const ee of L)this.addSchema(ee,void 0,W,P);return this}let $;if(typeof L=="object"){const{schemaId:ee}=this.opts;if($=L[ee],$!==void 0&&typeof $!="string")throw new Error(`schema ${ee} must be string`)}return V=(0,c.normalizeId)(V||$),this._checkUnique(V),this.schemas[V]=this._addSchema(L,W,V,P,!0),this}addMetaSchema(L,V,W=this.opts.validateSchema){return this.addSchema(L,V,!0,W),this}validateSchema(L,V){if(typeof L=="boolean")return!0;let W;if(W=L.$schema,W!==void 0&&typeof W!="string")throw new Error("$schema must be a string");if(W=W||this.opts.defaultMeta||this.defaultMeta(),!W)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const P=this.validate(W,L);if(!P&&V){const $="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error($);else throw new Error($)}return P}getSchema(L){let V;for(;typeof(V=v.call(this,L))=="string";)L=V;if(V===void 0){const{schemaId:W}=this.opts,P=new s.SchemaEnv({schema:{},schemaId:W});if(V=s.resolveSchema.call(this,P,L),!V)return;this.refs[L]=V}return V.validate||this._compileSchemaEnv(V)}removeSchema(L){if(L instanceof RegExp)return this._removeAllSchemas(this.schemas,L),this._removeAllSchemas(this.refs,L),this;switch(typeof L){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const V=v.call(this,L);return typeof V=="object"&&this._cache.delete(V.schema),delete this.schemas[L],delete this.refs[L],this}case"object":{const V=L;this._cache.delete(V);let W=L[this.opts.schemaId];return W&&(W=(0,c.normalizeId)(W),delete this.schemas[W],delete this.refs[W]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(L){for(const V of L)this.addKeyword(V);return this}addKeyword(L,V){let W;if(typeof L=="string")W=L,typeof V=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),V.keyword=W);else if(typeof L=="object"&&V===void 0){if(V=L,W=V.keyword,Array.isArray(W)&&!W.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(F.call(this,W,V),!V)return(0,u.eachItem)(W,$=>te.call(this,$)),this;Z.call(this,V);const P={...V,type:(0,l.getJSONTypes)(V.type),schemaType:(0,l.getJSONTypes)(V.schemaType)};return(0,u.eachItem)(W,P.type.length===0?$=>te.call(this,$,P):$=>P.type.forEach(ee=>te.call(this,$,P,ee))),this}getKeyword(L){const V=this.RULES.all[L];return typeof V=="object"?V.definition:!!V}removeKeyword(L){const{RULES:V}=this;delete V.keywords[L],delete V.all[L];for(const W of V.rules){const P=W.rules.findIndex($=>$.keyword===L);P>=0&&W.rules.splice(P,1)}return this}addFormat(L,V){return typeof V=="string"&&(V=new RegExp(V)),this.formats[L]=V,this}errorsText(L=this.errors,{separator:V=", ",dataVar:W="data"}={}){return!L||L.length===0?"No errors":L.map(P=>`${W}${P.instancePath} ${P.message}`).reduce((P,$)=>P+V+$)}$dataMetaSchema(L,V){const W=this.RULES.all;L=JSON.parse(JSON.stringify(L));for(const P of V){const $=P.split("/").slice(1);let ee=L;for(const Ee of $)ee=ee[Ee];for(const Ee in W){const he=W[Ee];if(typeof he!="object")continue;const{$data:Se}=he.definition,we=ee[Ee];Se&&we&&(ee[Ee]=Y(we))}}return L}_removeAllSchemas(L,V){for(const W in L){const P=L[W];(!V||V.test(W))&&(typeof P=="string"?delete L[W]:P&&!P.meta&&(this._cache.delete(P.schema),delete L[W]))}}_addSchema(L,V,W,P=this.opts.validateSchema,$=this.opts.addUsedSchema){let ee;const{schemaId:Ee}=this.opts;if(typeof L=="object")ee=L[Ee];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof L!="boolean")throw new Error("schema must be object or boolean")}let he=this._cache.get(L);if(he!==void 0)return he;W=(0,c.normalizeId)(ee||W);const Se=c.getSchemaRefs.call(this,L,W);return he=new s.SchemaEnv({schema:L,schemaId:Ee,meta:V,baseId:W,localRefs:Se}),this._cache.set(he.schema,he),$&&!W.startsWith("#")&&(W&&this._checkUnique(W),this.refs[W]=he),P&&this.validateSchema(L,!0),he}_checkUnique(L){if(this.schemas[L]||this.refs[L])throw new Error(`schema with key or id "${L}" already exists`)}_compileSchemaEnv(L){if(L.meta?this._compileMetaSchema(L):s.compileSchema.call(this,L),!L.validate)throw new Error("ajv implementation error");return L.validate}_compileMetaSchema(L){const V=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,L)}finally{this.opts=V}}}I.ValidationError=n.default,I.MissingRefError=i.default,e.default=I;function h(U,L,V,W="error"){for(const P in U){const $=P;$ in L&&this.logger[W](`${V}: option ${P}. ${U[$]}`)}}function v(U){return U=(0,c.normalizeId)(U),this.schemas[U]||this.refs[U]}function E(){const U=this.opts.schemas;if(U)if(Array.isArray(U))this.addSchema(U);else for(const L in U)this.addSchema(U[L],L)}function N(){for(const U in this.opts.formats){const L=this.opts.formats[U];L&&this.addFormat(U,L)}}function M(U){if(Array.isArray(U)){this.addVocabulary(U);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const L in U){const V=U[L];V.keyword||(V.keyword=L),this.addKeyword(V)}}function q(){const U={...this.opts};for(const L of y)delete U[L];return U}const H={log(){},warn(){},error(){}};function k(U){if(U===!1)return H;if(U===void 0)return console;if(U.log&&U.warn&&U.error)return U;throw new Error("logger must implement log, warn and error methods")}const B=/^[a-z_$][a-z0-9_$:-]*$/i;function F(U,L){const{RULES:V}=this;if((0,u.eachItem)(U,W=>{if(V.keywords[W])throw new Error(`Keyword ${W} is already defined`);if(!B.test(W))throw new Error(`Keyword ${W} has invalid name`)}),!!L&&L.$data&&!("code"in L||"validate"in L))throw new Error('$data keyword must have "code" or "validate" function')}function te(U,L,V){var W;const P=L==null?void 0:L.post;if(V&&P)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:$}=this;let ee=P?$.post:$.rules.find(({type:he})=>he===V);if(ee||(ee={type:V,rules:[]},$.rules.push(ee)),$.keywords[U]=!0,!L)return;const Ee={keyword:U,definition:{...L,type:(0,l.getJSONTypes)(L.type),schemaType:(0,l.getJSONTypes)(L.schemaType)}};L.before?ie.call(this,ee,Ee,L.before):ee.rules.push(Ee),$.all[U]=Ee,(W=L.implements)===null||W===void 0||W.forEach(he=>this.addKeyword(he))}function ie(U,L,V){const W=U.rules.findIndex(P=>P.keyword===V);W>=0?U.rules.splice(W,0,L):(U.rules.push(L),this.logger.warn(`rule ${V} is not defined`))}function Z(U){let{metaSchema:L}=U;L!==void 0&&(U.$data&&this.opts.$data&&(L=Y(L)),U.validateSchema=this.compile(L,!0))}const X={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Y(U){return{anyOf:[U,X]}}})(sp)),sp}var ol={},cl={},ul={},MS;function y3(){if(MS)return ul;MS=1,Object.defineProperty(ul,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return ul.default=e,ul}var Ei={},jS;function g3(){if(jS)return Ei;jS=1,Object.defineProperty(Ei,"__esModule",{value:!0}),Ei.callRef=Ei.getValidate=void 0;const e=rf(),t=En(),r=Ke(),n=hi(),i=OE(),a=mt(),s={keyword:"$ref",schemaType:"string",code(l){const{gen:u,schema:d,it:f}=l,{baseId:p,schemaEnv:y,validateName:g,opts:b,self:O}=f,{root:m}=y;if((d==="#"||d==="#/")&&p===m.baseId)return I();const T=i.resolveRef.call(O,m,p,d);if(T===void 0)throw new e.default(f.opts.uriResolver,p,d);if(T instanceof i.SchemaEnv)return h(T);return v(T);function I(){if(y===m)return c(l,g,y,y.$async);const E=u.scopeValue("root",{ref:m});return c(l,(0,r._)`${E}.validate`,m,m.$async)}function h(E){const N=o(l,E);c(l,N,E,E.$async)}function v(E){const N=u.scopeValue("schema",b.code.source===!0?{ref:E,code:(0,r.stringify)(E)}:{ref:E}),M=u.name("valid"),q=l.subschema({schema:E,dataTypes:[],schemaPath:r.nil,topSchemaRef:N,errSchemaPath:d},M);l.mergeEvaluated(q),l.ok(M)}}};function o(l,u){const{gen:d}=l;return u.validate?d.scopeValue("validate",{ref:u.validate}):(0,r._)`${d.scopeValue("wrapper",{ref:u})}.validate`}Ei.getValidate=o;function c(l,u,d,f){const{gen:p,it:y}=l,{allErrors:g,schemaEnv:b,opts:O}=y,m=O.passContext?n.default.this:r.nil;f?T():I();function T(){if(!b.$async)throw new Error("async schema referenced by sync schema");const E=p.let("valid");p.try(()=>{p.code((0,r._)`await ${(0,t.callValidateCode)(l,u,m)}`),v(u),g||p.assign(E,!0)},N=>{p.if((0,r._)`!(${N} instanceof ${y.ValidationError})`,()=>p.throw(N)),h(N),g||p.assign(E,!1)}),l.ok(E)}function I(){l.result((0,t.callValidateCode)(l,u,m),()=>v(u),()=>h(u))}function h(E){const N=(0,r._)`${E}.errors`;p.assign(n.default.vErrors,(0,r._)`${n.default.vErrors} === null ? ${N} : ${n.default.vErrors}.concat(${N})`),p.assign(n.default.errors,(0,r._)`${n.default.vErrors}.length`)}function v(E){var N;if(!y.opts.unevaluated)return;const M=(N=d==null?void 0:d.validate)===null||N===void 0?void 0:N.evaluated;if(y.props!==!0)if(M&&!M.dynamicProps)M.props!==void 0&&(y.props=a.mergeEvaluated.props(p,M.props,y.props));else{const q=p.var("props",(0,r._)`${E}.evaluated.props`);y.props=a.mergeEvaluated.props(p,q,y.props,r.Name)}if(y.items!==!0)if(M&&!M.dynamicItems)M.items!==void 0&&(y.items=a.mergeEvaluated.items(p,M.items,y.items));else{const q=p.var("items",(0,r._)`${E}.evaluated.items`);y.items=a.mergeEvaluated.items(p,q,y.items,r.Name)}}}return Ei.callRef=c,Ei.default=s,Ei}var DS;function _3(){if(DS)return cl;DS=1,Object.defineProperty(cl,"__esModule",{value:!0});const e=y3(),t=g3(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return cl.default=r,cl}var ll={},dl={},LS;function v3(){if(LS)return dl;LS=1,Object.defineProperty(dl,"__esModule",{value:!0});const e=Ke(),t=e.operators,r={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},n={message:({keyword:a,schemaCode:s})=>(0,e.str)`must be ${r[a].okStr} ${s}`,params:({keyword:a,schemaCode:s})=>(0,e._)`{comparison: ${r[a].okStr}, limit: ${s}}`},i={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(a){const{keyword:s,data:o,schemaCode:c}=a;a.fail$data((0,e._)`${o} ${r[s].fail} ${c} || isNaN(${o})`)}};return dl.default=i,dl}var fl={},$S;function E3(){if($S)return fl;$S=1,Object.defineProperty(fl,"__esModule",{value:!0});const e=Ke(),r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:n})=>(0,e.str)`must be multiple of ${n}`,params:({schemaCode:n})=>(0,e._)`{multipleOf: ${n}}`},code(n){const{gen:i,data:a,schemaCode:s,it:o}=n,c=o.opts.multipleOfPrecision,l=i.let("res"),u=c?(0,e._)`Math.abs(Math.round(${l}) - ${l}) > 1e-${c}`:(0,e._)`${l} !== parseInt(${l})`;n.fail$data((0,e._)`(${s} === 0 || (${l} = ${a}/${s}, ${u}))`)}};return fl.default=r,fl}var pl={},ml={},kS;function b3(){if(kS)return ml;kS=1,Object.defineProperty(ml,"__esModule",{value:!0});function e(t){const r=t.length;let n=0,i=0,a;for(;i<r;)n++,a=t.charCodeAt(i++),a>=55296&&a<=56319&&i<r&&(a=t.charCodeAt(i),(a&64512)===56320&&i++);return n}return ml.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',ml}var qS;function S3(){if(qS)return pl;qS=1,Object.defineProperty(pl,"__esModule",{value:!0});const e=Ke(),t=mt(),r=b3(),i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:a,schemaCode:s}){const o=a==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${o} than ${s} characters`},params:({schemaCode:a})=>(0,e._)`{limit: ${a}}`},code(a){const{keyword:s,data:o,schemaCode:c,it:l}=a,u=s==="maxLength"?e.operators.GT:e.operators.LT,d=l.opts.unicode===!1?(0,e._)`${o}.length`:(0,e._)`${(0,t.useFunc)(a.gen,r.default)}(${o})`;a.fail$data((0,e._)`${d} ${u} ${c}`)}};return pl.default=i,pl}var hl={},BS;function T3(){if(BS)return hl;BS=1,Object.defineProperty(hl,"__esModule",{value:!0});const e=En(),t=mt(),r=Ke(),i={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:a})=>(0,r.str)`must match pattern "${a}"`,params:({schemaCode:a})=>(0,r._)`{pattern: ${a}}`},code(a){const{gen:s,data:o,$data:c,schema:l,schemaCode:u,it:d}=a,f=d.opts.unicodeRegExp?"u":"";if(c){const{regExp:p}=d.opts.code,y=p.code==="new RegExp"?(0,r._)`new RegExp`:(0,t.useFunc)(s,p),g=s.let("valid");s.try(()=>s.assign(g,(0,r._)`${y}(${u}, ${f}).test(${o})`),()=>s.assign(g,!1)),a.fail$data((0,r._)`!${g}`)}else{const p=(0,e.usePattern)(a,l);a.fail$data((0,r._)`!${p}.test(${o})`)}}};return hl.default=i,hl}var yl={},US;function w3(){if(US)return yl;US=1,Object.defineProperty(yl,"__esModule",{value:!0});const e=Ke(),r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:i}){const a=n==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${a} than ${i} properties`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:i,data:a,schemaCode:s}=n,o=i==="maxProperties"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`Object.keys(${a}).length ${o} ${s}`)}};return yl.default=r,yl}var gl={},FS;function I3(){if(FS)return gl;FS=1,Object.defineProperty(gl,"__esModule",{value:!0});const e=En(),t=Ke(),r=mt(),i={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:a}})=>(0,t.str)`must have required property '${a}'`,params:({params:{missingProperty:a}})=>(0,t._)`{missingProperty: ${a}}`},code(a){const{gen:s,schema:o,schemaCode:c,data:l,$data:u,it:d}=a,{opts:f}=d;if(!u&&o.length===0)return;const p=o.length>=f.loopRequired;if(d.allErrors?y():g(),f.strictRequired){const m=a.parentSchema.properties,{definedProperties:T}=a.it;for(const I of o)if((m==null?void 0:m[I])===void 0&&!T.has(I)){const h=d.schemaEnv.baseId+d.errSchemaPath,v=`required property "${I}" is not defined at "${h}" (strictRequired)`;(0,r.checkStrictMode)(d,v,d.opts.strictRequired)}}function y(){if(p||u)a.block$data(t.nil,b);else for(const m of o)(0,e.checkReportMissingProp)(a,m)}function g(){const m=s.let("missing");if(p||u){const T=s.let("valid",!0);a.block$data(T,()=>O(m,T)),a.ok(T)}else s.if((0,e.checkMissingProp)(a,o,m)),(0,e.reportMissingProp)(a,m),s.else()}function b(){s.forOf("prop",c,m=>{a.setParams({missingProperty:m}),s.if((0,e.noPropertyInData)(s,l,m,f.ownProperties),()=>a.error())})}function O(m,T){a.setParams({missingProperty:m}),s.forOf(m,c,()=>{s.assign(T,(0,e.propertyInData)(s,l,m,f.ownProperties)),s.if((0,t.not)(T),()=>{a.error(),s.break()})},t.nil)}}};return gl.default=i,gl}var _l={},HS;function R3(){if(HS)return _l;HS=1,Object.defineProperty(_l,"__esModule",{value:!0});const e=Ke(),r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:i}){const a=n==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${a} than ${i} items`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:i,data:a,schemaCode:s}=n,o=i==="maxItems"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`${a}.length ${o} ${s}`)}};return _l.default=r,_l}var vl={},El={},VS;function NE(){if(VS)return El;VS=1,Object.defineProperty(El,"__esModule",{value:!0});const e=RE();return e.code='require("ajv/dist/runtime/equal").default',El.default=e,El}var xS;function A3(){if(xS)return vl;xS=1,Object.defineProperty(vl,"__esModule",{value:!0});const e=kd(),t=Ke(),r=mt(),n=NE(),a={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:s,j:o}})=>(0,t.str)`must NOT have duplicate items (items ## ${o} and ${s} are identical)`,params:({params:{i:s,j:o}})=>(0,t._)`{i: ${s}, j: ${o}}`},code(s){const{gen:o,data:c,$data:l,schema:u,parentSchema:d,schemaCode:f,it:p}=s;if(!l&&!u)return;const y=o.let("valid"),g=d.items?(0,e.getSchemaTypes)(d.items):[];s.block$data(y,b,(0,t._)`${f} === false`),s.ok(y);function b(){const I=o.let("i",(0,t._)`${c}.length`),h=o.let("j");s.setParams({i:I,j:h}),o.assign(y,!0),o.if((0,t._)`${I} > 1`,()=>(O()?m:T)(I,h))}function O(){return g.length>0&&!g.some(I=>I==="object"||I==="array")}function m(I,h){const v=o.name("item"),E=(0,e.checkDataTypes)(g,v,p.opts.strictNumbers,e.DataType.Wrong),N=o.const("indices",(0,t._)`{}`);o.for((0,t._)`;${I}--;`,()=>{o.let(v,(0,t._)`${c}[${I}]`),o.if(E,(0,t._)`continue`),g.length>1&&o.if((0,t._)`typeof ${v} == "string"`,(0,t._)`${v} += "_"`),o.if((0,t._)`typeof ${N}[${v}] == "number"`,()=>{o.assign(h,(0,t._)`${N}[${v}]`),s.error(),o.assign(y,!1).break()}).code((0,t._)`${N}[${v}] = ${I}`)})}function T(I,h){const v=(0,r.useFunc)(o,n.default),E=o.name("outer");o.label(E).for((0,t._)`;${I}--;`,()=>o.for((0,t._)`${h} = ${I}; ${h}--;`,()=>o.if((0,t._)`${v}(${c}[${I}], ${c}[${h}])`,()=>{s.error(),o.assign(y,!1).break(E)})))}}};return vl.default=a,vl}var bl={},GS;function O3(){if(GS)return bl;GS=1,Object.defineProperty(bl,"__esModule",{value:!0});const e=Ke(),t=mt(),r=NE(),i={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:a})=>(0,e._)`{allowedValue: ${a}}`},code(a){const{gen:s,data:o,$data:c,schemaCode:l,schema:u}=a;c||u&&typeof u=="object"?a.fail$data((0,e._)`!${(0,t.useFunc)(s,r.default)}(${o}, ${l})`):a.fail((0,e._)`${u} !== ${o}`)}};return bl.default=i,bl}var Sl={},zS;function N3(){if(zS)return Sl;zS=1,Object.defineProperty(Sl,"__esModule",{value:!0});const e=Ke(),t=mt(),r=NE(),i={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:a})=>(0,e._)`{allowedValues: ${a}}`},code(a){const{gen:s,data:o,$data:c,schema:l,schemaCode:u,it:d}=a;if(!c&&l.length===0)throw new Error("enum must have non-empty array");const f=l.length>=d.opts.loopEnum;let p;const y=()=>p??(p=(0,t.useFunc)(s,r.default));let g;if(f||c)g=s.let("valid"),a.block$data(g,b);else{if(!Array.isArray(l))throw new Error("ajv implementation error");const m=s.const("vSchema",u);g=(0,e.or)(...l.map((T,I)=>O(m,I)))}a.pass(g);function b(){s.assign(g,!1),s.forOf("v",u,m=>s.if((0,e._)`${y()}(${o}, ${m})`,()=>s.assign(g,!0).break()))}function O(m,T){const I=l[T];return typeof I=="object"&&I!==null?(0,e._)`${y()}(${o}, ${m}[${T}])`:(0,e._)`${o} === ${I}`}}};return Sl.default=i,Sl}var WS;function P3(){if(WS)return ll;WS=1,Object.defineProperty(ll,"__esModule",{value:!0});const e=v3(),t=E3(),r=S3(),n=T3(),i=w3(),a=I3(),s=R3(),o=A3(),c=O3(),l=N3(),u=[e.default,t.default,r.default,n.default,i.default,a.default,s.default,o.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},c.default,l.default];return ll.default=u,ll}var Tl={},us={},YS;function Dj(){if(YS)return us;YS=1,Object.defineProperty(us,"__esModule",{value:!0}),us.validateAdditionalItems=void 0;const e=Ke(),t=mt(),n={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:a}})=>(0,e.str)`must NOT have more than ${a} items`,params:({params:{len:a}})=>(0,e._)`{limit: ${a}}`},code(a){const{parentSchema:s,it:o}=a,{items:c}=s;if(!Array.isArray(c)){(0,t.checkStrictMode)(o,'"additionalItems" is ignored when "items" is not an array of schemas');return}i(a,c)}};function i(a,s){const{gen:o,schema:c,data:l,keyword:u,it:d}=a;d.items=!0;const f=o.const("len",(0,e._)`${l}.length`);if(c===!1)a.setParams({len:s.length}),a.pass((0,e._)`${f} <= ${s.length}`);else if(typeof c=="object"&&!(0,t.alwaysValidSchema)(d,c)){const y=o.var("valid",(0,e._)`${f} <= ${s.length}`);o.if((0,e.not)(y),()=>p(y)),a.ok(y)}function p(y){o.forRange("i",s.length,f,g=>{a.subschema({keyword:u,dataProp:g,dataPropType:t.Type.Num},y),d.allErrors||o.if((0,e.not)(y),()=>o.break())})}}return us.validateAdditionalItems=i,us.default=n,us}var wl={},ls={},KS;function Lj(){if(KS)return ls;KS=1,Object.defineProperty(ls,"__esModule",{value:!0}),ls.validateTuple=void 0;const e=Ke(),t=mt(),r=En(),n={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(a){const{schema:s,it:o}=a;if(Array.isArray(s))return i(a,"additionalItems",s);o.items=!0,!(0,t.alwaysValidSchema)(o,s)&&a.ok((0,r.validateArray)(a))}};function i(a,s,o=a.schema){const{gen:c,parentSchema:l,data:u,keyword:d,it:f}=a;g(l),f.opts.unevaluated&&o.length&&f.items!==!0&&(f.items=t.mergeEvaluated.items(c,o.length,f.items));const p=c.name("valid"),y=c.const("len",(0,e._)`${u}.length`);o.forEach((b,O)=>{(0,t.alwaysValidSchema)(f,b)||(c.if((0,e._)`${y} > ${O}`,()=>a.subschema({keyword:d,schemaProp:O,dataProp:O},p)),a.ok(p))});function g(b){const{opts:O,errSchemaPath:m}=f,T=o.length,I=T===b.minItems&&(T===b.maxItems||b[s]===!1);if(O.strictTuples&&!I){const h=`"${d}" is ${T}-tuple, but minItems or maxItems/${s} are not specified or different at path "${m}"`;(0,t.checkStrictMode)(f,h,O.strictTuples)}}}return ls.validateTuple=i,ls.default=n,ls}var XS;function C3(){if(XS)return wl;XS=1,Object.defineProperty(wl,"__esModule",{value:!0});const e=Lj(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return wl.default=t,wl}var Il={},JS;function M3(){if(JS)return Il;JS=1,Object.defineProperty(Il,"__esModule",{value:!0});const e=Ke(),t=mt(),r=En(),n=Dj(),a={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:s}})=>(0,e.str)`must NOT have more than ${s} items`,params:({params:{len:s}})=>(0,e._)`{limit: ${s}}`},code(s){const{schema:o,parentSchema:c,it:l}=s,{prefixItems:u}=c;l.items=!0,!(0,t.alwaysValidSchema)(l,o)&&(u?(0,n.validateAdditionalItems)(s,u):s.ok((0,r.validateArray)(s)))}};return Il.default=a,Il}var Rl={},QS;function j3(){if(QS)return Rl;QS=1,Object.defineProperty(Rl,"__esModule",{value:!0});const e=Ke(),t=mt(),n={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:i,max:a}})=>a===void 0?(0,e.str)`must contain at least ${i} valid item(s)`:(0,e.str)`must contain at least ${i} and no more than ${a} valid item(s)`,params:({params:{min:i,max:a}})=>a===void 0?(0,e._)`{minContains: ${i}}`:(0,e._)`{minContains: ${i}, maxContains: ${a}}`},code(i){const{gen:a,schema:s,parentSchema:o,data:c,it:l}=i;let u,d;const{minContains:f,maxContains:p}=o;l.opts.next?(u=f===void 0?1:f,d=p):u=1;const y=a.const("len",(0,e._)`${c}.length`);if(i.setParams({min:u,max:d}),d===void 0&&u===0){(0,t.checkStrictMode)(l,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(d!==void 0&&u>d){(0,t.checkStrictMode)(l,'"minContains" > "maxContains" is always invalid'),i.fail();return}if((0,t.alwaysValidSchema)(l,s)){let T=(0,e._)`${y} >= ${u}`;d!==void 0&&(T=(0,e._)`${T} && ${y} <= ${d}`),i.pass(T);return}l.items=!0;const g=a.name("valid");d===void 0&&u===1?O(g,()=>a.if(g,()=>a.break())):u===0?(a.let(g,!0),d!==void 0&&a.if((0,e._)`${c}.length > 0`,b)):(a.let(g,!1),b()),i.result(g,()=>i.reset());function b(){const T=a.name("_valid"),I=a.let("count",0);O(T,()=>a.if(T,()=>m(I)))}function O(T,I){a.forRange("i",0,y,h=>{i.subschema({keyword:"contains",dataProp:h,dataPropType:t.Type.Num,compositeRule:!0},T),I()})}function m(T){a.code((0,e._)`${T}++`),d===void 0?a.if((0,e._)`${T} >= ${u}`,()=>a.assign(g,!0).break()):(a.if((0,e._)`${T} > ${d}`,()=>a.assign(g,!1).break()),u===1?a.assign(g,!0):a.if((0,e._)`${T} >= ${u}`,()=>a.assign(g,!0)))}}};return Rl.default=n,Rl}var hp={},ZS;function D3(){return ZS||(ZS=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Ke(),r=mt(),n=En();e.error={message:({params:{property:c,depsCount:l,deps:u}})=>{const d=l===1?"property":"properties";return(0,t.str)`must have ${d} ${u} when property ${c} is present`},params:({params:{property:c,depsCount:l,deps:u,missingProperty:d}})=>(0,t._)`{property: ${c},
|
|
55
|
-
missingProperty: ${d},
|
|
56
|
-
depsCount: ${l},
|
|
57
|
-
deps: ${u}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(c){const[l,u]=a(c);s(c,l),o(c,u)}};function a({schema:c}){const l={},u={};for(const d in c){if(d==="__proto__")continue;const f=Array.isArray(c[d])?l:u;f[d]=c[d]}return[l,u]}function s(c,l=c.schema){const{gen:u,data:d,it:f}=c;if(Object.keys(l).length===0)return;const p=u.let("missing");for(const y in l){const g=l[y];if(g.length===0)continue;const b=(0,n.propertyInData)(u,d,y,f.opts.ownProperties);c.setParams({property:y,depsCount:g.length,deps:g.join(", ")}),f.allErrors?u.if(b,()=>{for(const O of g)(0,n.checkReportMissingProp)(c,O)}):(u.if((0,t._)`${b} && (${(0,n.checkMissingProp)(c,g,p)})`),(0,n.reportMissingProp)(c,p),u.else())}}e.validatePropertyDeps=s;function o(c,l=c.schema){const{gen:u,data:d,keyword:f,it:p}=c,y=u.name("valid");for(const g in l)(0,r.alwaysValidSchema)(p,l[g])||(u.if((0,n.propertyInData)(u,d,g,p.opts.ownProperties),()=>{const b=c.subschema({keyword:f,schemaProp:g},y);c.mergeValidEvaluated(b,y)},()=>u.var(y,!0)),c.ok(y))}e.validateSchemaDeps=o,e.default=i})(hp)),hp}var Al={},e1;function L3(){if(e1)return Al;e1=1,Object.defineProperty(Al,"__esModule",{value:!0});const e=Ke(),t=mt(),n={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:i})=>(0,e._)`{propertyName: ${i.propertyName}}`},code(i){const{gen:a,schema:s,data:o,it:c}=i;if((0,t.alwaysValidSchema)(c,s))return;const l=a.name("valid");a.forIn("key",o,u=>{i.setParams({propertyName:u}),i.subschema({keyword:"propertyNames",data:u,dataTypes:["string"],propertyName:u,compositeRule:!0},l),a.if((0,e.not)(l),()=>{i.error(!0),c.allErrors||a.break()})}),i.ok(l)}};return Al.default=n,Al}var Ol={},t1;function $j(){if(t1)return Ol;t1=1,Object.defineProperty(Ol,"__esModule",{value:!0});const e=En(),t=Ke(),r=hi(),n=mt(),a={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:s})=>(0,t._)`{additionalProperty: ${s.additionalProperty}}`},code(s){const{gen:o,schema:c,parentSchema:l,data:u,errsCount:d,it:f}=s;if(!d)throw new Error("ajv implementation error");const{allErrors:p,opts:y}=f;if(f.props=!0,y.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(f,c))return;const g=(0,e.allSchemaProperties)(l.properties),b=(0,e.allSchemaProperties)(l.patternProperties);O(),s.ok((0,t._)`${d} === ${r.default.errors}`);function O(){o.forIn("key",u,v=>{!g.length&&!b.length?I(v):o.if(m(v),()=>I(v))})}function m(v){let E;if(g.length>8){const N=(0,n.schemaRefOrVal)(f,l.properties,"properties");E=(0,e.isOwnProperty)(o,N,v)}else g.length?E=(0,t.or)(...g.map(N=>(0,t._)`${v} === ${N}`)):E=t.nil;return b.length&&(E=(0,t.or)(E,...b.map(N=>(0,t._)`${(0,e.usePattern)(s,N)}.test(${v})`))),(0,t.not)(E)}function T(v){o.code((0,t._)`delete ${u}[${v}]`)}function I(v){if(y.removeAdditional==="all"||y.removeAdditional&&c===!1){T(v);return}if(c===!1){s.setParams({additionalProperty:v}),s.error(),p||o.break();return}if(typeof c=="object"&&!(0,n.alwaysValidSchema)(f,c)){const E=o.name("valid");y.removeAdditional==="failing"?(h(v,E,!1),o.if((0,t.not)(E),()=>{s.reset(),T(v)})):(h(v,E),p||o.if((0,t.not)(E),()=>o.break()))}}function h(v,E,N){const M={keyword:"additionalProperties",dataProp:v,dataPropType:n.Type.Str};N===!1&&Object.assign(M,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(M,E)}}};return Ol.default=a,Ol}var Nl={},r1;function $3(){if(r1)return Nl;r1=1,Object.defineProperty(Nl,"__esModule",{value:!0});const e=zc(),t=En(),r=mt(),n=$j(),i={keyword:"properties",type:"object",schemaType:"object",code(a){const{gen:s,schema:o,parentSchema:c,data:l,it:u}=a;u.opts.removeAdditional==="all"&&c.additionalProperties===void 0&&n.default.code(new e.KeywordCxt(u,n.default,"additionalProperties"));const d=(0,t.allSchemaProperties)(o);for(const b of d)u.definedProperties.add(b);u.opts.unevaluated&&d.length&&u.props!==!0&&(u.props=r.mergeEvaluated.props(s,(0,r.toHash)(d),u.props));const f=d.filter(b=>!(0,r.alwaysValidSchema)(u,o[b]));if(f.length===0)return;const p=s.name("valid");for(const b of f)y(b)?g(b):(s.if((0,t.propertyInData)(s,l,b,u.opts.ownProperties)),g(b),u.allErrors||s.else().var(p,!0),s.endIf()),a.it.definedProperties.add(b),a.ok(p);function y(b){return u.opts.useDefaults&&!u.compositeRule&&o[b].default!==void 0}function g(b){a.subschema({keyword:"properties",schemaProp:b,dataProp:b},p)}}};return Nl.default=i,Nl}var Pl={},n1;function k3(){if(n1)return Pl;n1=1,Object.defineProperty(Pl,"__esModule",{value:!0});const e=En(),t=Ke(),r=mt(),n=mt(),i={keyword:"patternProperties",type:"object",schemaType:"object",code(a){const{gen:s,schema:o,data:c,parentSchema:l,it:u}=a,{opts:d}=u,f=(0,e.allSchemaProperties)(o),p=f.filter(I=>(0,r.alwaysValidSchema)(u,o[I]));if(f.length===0||p.length===f.length&&(!u.opts.unevaluated||u.props===!0))return;const y=d.strictSchema&&!d.allowMatchingProperties&&l.properties,g=s.name("valid");u.props!==!0&&!(u.props instanceof t.Name)&&(u.props=(0,n.evaluatedPropsToName)(s,u.props));const{props:b}=u;O();function O(){for(const I of f)y&&m(I),u.allErrors?T(I):(s.var(g,!0),T(I),s.if(g))}function m(I){for(const h in y)new RegExp(I).test(h)&&(0,r.checkStrictMode)(u,`property ${h} matches pattern ${I} (use allowMatchingProperties)`)}function T(I){s.forIn("key",c,h=>{s.if((0,t._)`${(0,e.usePattern)(a,I)}.test(${h})`,()=>{const v=p.includes(I);v||a.subschema({keyword:"patternProperties",schemaProp:I,dataProp:h,dataPropType:n.Type.Str},g),u.opts.unevaluated&&b!==!0?s.assign((0,t._)`${b}[${h}]`,!0):!v&&!u.allErrors&&s.if((0,t.not)(g),()=>s.break())})})}}};return Pl.default=i,Pl}var Cl={},i1;function q3(){if(i1)return Cl;i1=1,Object.defineProperty(Cl,"__esModule",{value:!0});const e=mt(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:n,schema:i,it:a}=r;if((0,e.alwaysValidSchema)(a,i)){r.fail();return}const s=n.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),r.failResult(s,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return Cl.default=t,Cl}var Ml={},a1;function B3(){if(a1)return Ml;a1=1,Object.defineProperty(Ml,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:En().validateUnion,error:{message:"must match a schema in anyOf"}};return Ml.default=t,Ml}var jl={},s1;function U3(){if(s1)return jl;s1=1,Object.defineProperty(jl,"__esModule",{value:!0});const e=Ke(),t=mt(),n={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:i})=>(0,e._)`{passingSchemas: ${i.passing}}`},code(i){const{gen:a,schema:s,parentSchema:o,it:c}=i;if(!Array.isArray(s))throw new Error("ajv implementation error");if(c.opts.discriminator&&o.discriminator)return;const l=s,u=a.let("valid",!1),d=a.let("passing",null),f=a.name("_valid");i.setParams({passing:d}),a.block(p),i.result(u,()=>i.reset(),()=>i.error(!0));function p(){l.forEach((y,g)=>{let b;(0,t.alwaysValidSchema)(c,y)?a.var(f,!0):b=i.subschema({keyword:"oneOf",schemaProp:g,compositeRule:!0},f),g>0&&a.if((0,e._)`${f} && ${u}`).assign(u,!1).assign(d,(0,e._)`[${d}, ${g}]`).else(),a.if(f,()=>{a.assign(u,!0),a.assign(d,g),b&&i.mergeEvaluated(b,e.Name)})})}}};return jl.default=n,jl}var Dl={},o1;function F3(){if(o1)return Dl;o1=1,Object.defineProperty(Dl,"__esModule",{value:!0});const e=mt(),t={keyword:"allOf",schemaType:"array",code(r){const{gen:n,schema:i,it:a}=r;if(!Array.isArray(i))throw new Error("ajv implementation error");const s=n.name("valid");i.forEach((o,c)=>{if((0,e.alwaysValidSchema)(a,o))return;const l=r.subschema({keyword:"allOf",schemaProp:c},s);r.ok(s),r.mergeEvaluated(l)})}};return Dl.default=t,Dl}var Ll={},c1;function H3(){if(c1)return Ll;c1=1,Object.defineProperty(Ll,"__esModule",{value:!0});const e=Ke(),t=mt(),n={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:a})=>(0,e.str)`must match "${a.ifClause}" schema`,params:({params:a})=>(0,e._)`{failingKeyword: ${a.ifClause}}`},code(a){const{gen:s,parentSchema:o,it:c}=a;o.then===void 0&&o.else===void 0&&(0,t.checkStrictMode)(c,'"if" without "then" and "else" is ignored');const l=i(c,"then"),u=i(c,"else");if(!l&&!u)return;const d=s.let("valid",!0),f=s.name("_valid");if(p(),a.reset(),l&&u){const g=s.let("ifClause");a.setParams({ifClause:g}),s.if(f,y("then",g),y("else",g))}else l?s.if(f,y("then")):s.if((0,e.not)(f),y("else"));a.pass(d,()=>a.error(!0));function p(){const g=a.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},f);a.mergeEvaluated(g)}function y(g,b){return()=>{const O=a.subschema({keyword:g},f);s.assign(d,f),a.mergeValidEvaluated(O,d),b?s.assign(b,(0,e._)`${g}`):a.setParams({ifClause:g})}}}};function i(a,s){const o=a.schema[s];return o!==void 0&&!(0,t.alwaysValidSchema)(a,o)}return Ll.default=n,Ll}var $l={},u1;function V3(){if(u1)return $l;u1=1,Object.defineProperty($l,"__esModule",{value:!0});const e=mt(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:n,it:i}){n.if===void 0&&(0,e.checkStrictMode)(i,`"${r}" without "if" is ignored`)}};return $l.default=t,$l}var l1;function x3(){if(l1)return Tl;l1=1,Object.defineProperty(Tl,"__esModule",{value:!0});const e=Dj(),t=C3(),r=Lj(),n=M3(),i=j3(),a=D3(),s=L3(),o=$j(),c=$3(),l=k3(),u=q3(),d=B3(),f=U3(),p=F3(),y=H3(),g=V3();function b(O=!1){const m=[u.default,d.default,f.default,p.default,y.default,g.default,s.default,o.default,a.default,c.default,l.default];return O?m.push(t.default,n.default):m.push(e.default,r.default),m.push(i.default),m}return Tl.default=b,Tl}var kl={},ql={},d1;function G3(){if(d1)return ql;d1=1,Object.defineProperty(ql,"__esModule",{value:!0});const e=Ke(),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:n})=>(0,e.str)`must match format "${n}"`,params:({schemaCode:n})=>(0,e._)`{format: ${n}}`},code(n,i){const{gen:a,data:s,$data:o,schema:c,schemaCode:l,it:u}=n,{opts:d,errSchemaPath:f,schemaEnv:p,self:y}=u;if(!d.validateFormats)return;o?g():b();function g(){const O=a.scopeValue("formats",{ref:y.formats,code:d.code.formats}),m=a.const("fDef",(0,e._)`${O}[${l}]`),T=a.let("fType"),I=a.let("format");a.if((0,e._)`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>a.assign(T,(0,e._)`${m}.type || "string"`).assign(I,(0,e._)`${m}.validate`),()=>a.assign(T,(0,e._)`"string"`).assign(I,m)),n.fail$data((0,e.or)(h(),v()));function h(){return d.strictSchema===!1?e.nil:(0,e._)`${l} && !${I}`}function v(){const E=p.$async?(0,e._)`(${m}.async ? await ${I}(${s}) : ${I}(${s}))`:(0,e._)`${I}(${s})`,N=(0,e._)`(typeof ${I} == "function" ? ${E} : ${I}.test(${s}))`;return(0,e._)`${I} && ${I} !== true && ${T} === ${i} && !${N}`}}function b(){const O=y.formats[c];if(!O){h();return}if(O===!0)return;const[m,T,I]=v(O);m===i&&n.pass(E());function h(){if(d.strictSchema===!1){y.logger.warn(N());return}throw new Error(N());function N(){return`unknown format "${c}" ignored in schema at path "${f}"`}}function v(N){const M=N instanceof RegExp?(0,e.regexpCode)(N):d.code.formats?(0,e._)`${d.code.formats}${(0,e.getProperty)(c)}`:void 0,q=a.scopeValue("formats",{key:c,ref:N,code:M});return typeof N=="object"&&!(N instanceof RegExp)?[N.type||"string",N.validate,(0,e._)`${q}.validate`]:["string",N,q]}function E(){if(typeof O=="object"&&!(O instanceof RegExp)&&O.async){if(!p.$async)throw new Error("async format in sync schema");return(0,e._)`await ${I}(${s})`}return typeof T=="function"?(0,e._)`${I}(${s})`:(0,e._)`${I}.test(${s})`}}}};return ql.default=r,ql}var f1;function z3(){if(f1)return kl;f1=1,Object.defineProperty(kl,"__esModule",{value:!0});const t=[G3().default];return kl.default=t,kl}var xi={},p1;function W3(){return p1||(p1=1,Object.defineProperty(xi,"__esModule",{value:!0}),xi.contentVocabulary=xi.metadataVocabulary=void 0,xi.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],xi.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),xi}var m1;function Y3(){if(m1)return ol;m1=1,Object.defineProperty(ol,"__esModule",{value:!0});const e=_3(),t=P3(),r=x3(),n=z3(),i=W3(),a=[e.default,t.default,(0,r.default)(),n.default,i.metadataVocabulary,i.contentVocabulary];return ol.default=a,ol}var Bl={},So={},h1;function K3(){if(h1)return So;h1=1,Object.defineProperty(So,"__esModule",{value:!0}),So.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(So.DiscrError=e={})),So}var y1;function X3(){if(y1)return Bl;y1=1,Object.defineProperty(Bl,"__esModule",{value:!0});const e=Ke(),t=K3(),r=OE(),n=rf(),i=mt(),s={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:o,tagName:c}})=>o===t.DiscrError.Tag?`tag "${c}" must be string`:`value of tag "${c}" must be in oneOf`,params:({params:{discrError:o,tag:c,tagName:l}})=>(0,e._)`{error: ${o}, tag: ${l}, tagValue: ${c}}`},code(o){const{gen:c,data:l,schema:u,parentSchema:d,it:f}=o,{oneOf:p}=d;if(!f.opts.discriminator)throw new Error("discriminator: requires discriminator option");const y=u.propertyName;if(typeof y!="string")throw new Error("discriminator: requires propertyName");if(u.mapping)throw new Error("discriminator: mapping is not supported");if(!p)throw new Error("discriminator: requires oneOf keyword");const g=c.let("valid",!1),b=c.const("tag",(0,e._)`${l}${(0,e.getProperty)(y)}`);c.if((0,e._)`typeof ${b} == "string"`,()=>O(),()=>o.error(!1,{discrError:t.DiscrError.Tag,tag:b,tagName:y})),o.ok(g);function O(){const I=T();c.if(!1);for(const h in I)c.elseIf((0,e._)`${b} === ${h}`),c.assign(g,m(I[h]));c.else(),o.error(!1,{discrError:t.DiscrError.Mapping,tag:b,tagName:y}),c.endIf()}function m(I){const h=c.name("valid"),v=o.subschema({keyword:"oneOf",schemaProp:I},h);return o.mergeEvaluated(v,e.Name),h}function T(){var I;const h={},v=N(d);let E=!0;for(let H=0;H<p.length;H++){let k=p[H];if(k!=null&&k.$ref&&!(0,i.schemaHasRulesButRef)(k,f.self.RULES)){const F=k.$ref;if(k=r.resolveRef.call(f.self,f.schemaEnv.root,f.baseId,F),k instanceof r.SchemaEnv&&(k=k.schema),k===void 0)throw new n.default(f.opts.uriResolver,f.baseId,F)}const B=(I=k==null?void 0:k.properties)===null||I===void 0?void 0:I[y];if(typeof B!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${y}"`);E=E&&(v||N(k)),M(B,H)}if(!E)throw new Error(`discriminator: "${y}" must be required`);return h;function N({required:H}){return Array.isArray(H)&&H.includes(y)}function M(H,k){if(H.const)q(H.const,k);else if(H.enum)for(const B of H.enum)q(B,k);else throw new Error(`discriminator: "properties/${y}" must have "const" or "enum"`)}function q(H,k){if(typeof H!="string"||H in h)throw new Error(`discriminator: "${y}" values must be unique strings`);h[H]=k}}}};return Bl.default=s,Bl}const J3="http://json-schema.org/draft-07/schema#",Q3="http://json-schema.org/draft-07/schema#",Z3="Core schema meta-schema",eH={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},tH=["object","boolean"],rH={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},nH={$schema:J3,$id:Q3,title:Z3,definitions:eH,type:tH,properties:rH,default:!0};var g1;function PE(){return g1||(g1=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=h3(),n=Y3(),i=X3(),a=nH,s=["/properties"],o="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(y=>this.addVocabulary(y)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const y=this.opts.$data?this.$dataMetaSchema(a,s):a;this.addMetaSchema(y,o,!1),this.refs["http://json-schema.org/schema"]=o}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(o)?o:void 0)}}t.Ajv=c,e.exports=t=c,e.exports.Ajv=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var l=zc();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=Ke();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var d=AE();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=rf();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(rl,rl.exports)),rl.exports}var Vo={exports:{}},xo={exports:{}},Go={exports:{}},Ul={exports:{}},_1;function iH(){return _1||(_1=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=Ke(),n=["undefined","string","number","object","function","boolean","symbol"];function i(){return{keyword:"typeof",schemaType:["string","array"],code(a){const{data:s,schema:o,schemaValue:c}=a;a.fail(typeof o=="string"?(0,r._)`typeof ${s} != ${o}`:(0,r._)`${c}.indexOf(typeof ${s}) < 0`)},metaSchema:{anyOf:[{type:"string",enum:n},{type:"array",items:{type:"string",enum:n}}]}}}t.default=i,e.exports=i})(Ul,Ul.exports)),Ul.exports}var v1=Go.exports,E1;function aH(){return E1||(E1=1,(function(e,t){var r=v1&&v1.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(iH()),i=a=>a.addKeyword((0,n.default)());t.default=i,e.exports=i})(Go,Go.exports)),Go.exports}var zo={exports:{}},kj={},nf={};nf.byteLength=cH;nf.toByteArray=lH;nf.fromByteArray=pH;var Fn=[],Xr=[],sH=typeof Uint8Array<"u"?Uint8Array:Array,yp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var ds=0,oH=yp.length;ds<oH;++ds)Fn[ds]=yp[ds],Xr[yp.charCodeAt(ds)]=ds;Xr[45]=62;Xr[95]=63;function qj(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function cH(e){var t=qj(e),r=t[0],n=t[1];return(r+n)*3/4-n}function uH(e,t,r){return(t+r)*3/4-r}function lH(e){var t,r=qj(e),n=r[0],i=r[1],a=new sH(uH(e,n,i)),s=0,o=i>0?n-4:n,c;for(c=0;c<o;c+=4)t=Xr[e.charCodeAt(c)]<<18|Xr[e.charCodeAt(c+1)]<<12|Xr[e.charCodeAt(c+2)]<<6|Xr[e.charCodeAt(c+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=t&255;return i===2&&(t=Xr[e.charCodeAt(c)]<<2|Xr[e.charCodeAt(c+1)]>>4,a[s++]=t&255),i===1&&(t=Xr[e.charCodeAt(c)]<<10|Xr[e.charCodeAt(c+1)]<<4|Xr[e.charCodeAt(c+2)]>>2,a[s++]=t>>8&255,a[s++]=t&255),a}function dH(e){return Fn[e>>18&63]+Fn[e>>12&63]+Fn[e>>6&63]+Fn[e&63]}function fH(e,t,r){for(var n,i=[],a=t;a<r;a+=3)n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),i.push(dH(n));return i.join("")}function pH(e){for(var t,r=e.length,n=r%3,i=[],a=16383,s=0,o=r-n;s<o;s+=a)i.push(fH(e,s,s+a>o?o:s+a));return n===1?(t=e[r-1],i.push(Fn[t>>2]+Fn[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(Fn[t>>10]+Fn[t>>4&63]+Fn[t<<2&63]+"=")),i.join("")}var CE={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */CE.read=function(e,t,r,n,i){var a,s,o=i*8-n-1,c=(1<<o)-1,l=c>>1,u=-7,d=r?i-1:0,f=r?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-u)-1,p>>=-u,u+=o;u>0;a=a*256+e[t+d],d+=f,u-=8);for(s=a&(1<<-u)-1,a>>=-u,u+=n;u>0;s=s*256+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else{if(a===c)return s?NaN:(p?-1:1)*(1/0);s=s+Math.pow(2,n),a=a-l}return(p?-1:1)*s*Math.pow(2,a-n)};CE.write=function(e,t,r,n,i,a){var s,o,c,l=a*8-i-1,u=(1<<l)-1,d=u>>1,f=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,y=n?1:-1,g=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+d>=1?t+=f/c:t+=f*Math.pow(2,1-d),t*c>=2&&(s++,c/=2),s+d>=u?(o=0,s=u):s+d>=1?(o=(t*c-1)*Math.pow(2,i),s=s+d):(o=t*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;e[r+p]=o&255,p+=y,o/=256,i-=8);for(s=s<<i|o,l+=i;l>0;e[r+p]=s&255,p+=y,s/=256,l-=8);e[r+p-y]|=g*128};/*!
|
|
58
|
-
* The buffer module from node.js, for the browser.
|
|
59
|
-
*
|
|
60
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
61
|
-
* @license MIT
|
|
62
|
-
*/(function(e){const t=nf,r=CE,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=u,e.SlowBuffer=h,e.INSPECT_MAX_BYTES=50;const i=2147483647;e.kMaxLength=i;const{Uint8Array:a,ArrayBuffer:s,SharedArrayBuffer:o}=globalThis;u.TYPED_ARRAY_SUPPORT=c(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function c(){try{const D=new a(1),w={foo:function(){return 42}};return Object.setPrototypeOf(w,a.prototype),Object.setPrototypeOf(D,w),D.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function l(D){if(D>i)throw new RangeError('The value "'+D+'" is invalid for option "size"');const w=new a(D);return Object.setPrototypeOf(w,u.prototype),w}function u(D,w,A){if(typeof D=="number"){if(typeof w=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return y(D)}return d(D,w,A)}u.poolSize=8192;function d(D,w,A){if(typeof D=="string")return g(D,w);if(s.isView(D))return O(D);if(D==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof D);if(Rt(D,s)||D&&Rt(D.buffer,s)||typeof o<"u"&&(Rt(D,o)||D&&Rt(D.buffer,o)))return m(D,w,A);if(typeof D=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const K=D.valueOf&&D.valueOf();if(K!=null&&K!==D)return u.from(K,w,A);const de=T(D);if(de)return de;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof D[Symbol.toPrimitive]=="function")return u.from(D[Symbol.toPrimitive]("string"),w,A);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof D)}u.from=function(D,w,A){return d(D,w,A)},Object.setPrototypeOf(u.prototype,a.prototype),Object.setPrototypeOf(u,a);function f(D){if(typeof D!="number")throw new TypeError('"size" argument must be of type number');if(D<0)throw new RangeError('The value "'+D+'" is invalid for option "size"')}function p(D,w,A){return f(D),D<=0?l(D):w!==void 0?typeof A=="string"?l(D).fill(w,A):l(D).fill(w):l(D)}u.alloc=function(D,w,A){return p(D,w,A)};function y(D){return f(D),l(D<0?0:I(D)|0)}u.allocUnsafe=function(D){return y(D)},u.allocUnsafeSlow=function(D){return y(D)};function g(D,w){if((typeof w!="string"||w==="")&&(w="utf8"),!u.isEncoding(w))throw new TypeError("Unknown encoding: "+w);const A=v(D,w)|0;let K=l(A);const de=K.write(D,w);return de!==A&&(K=K.slice(0,de)),K}function b(D){const w=D.length<0?0:I(D.length)|0,A=l(w);for(let K=0;K<w;K+=1)A[K]=D[K]&255;return A}function O(D){if(Rt(D,a)){const w=new a(D);return m(w.buffer,w.byteOffset,w.byteLength)}return b(D)}function m(D,w,A){if(w<0||D.byteLength<w)throw new RangeError('"offset" is outside of buffer bounds');if(D.byteLength<w+(A||0))throw new RangeError('"length" is outside of buffer bounds');let K;return w===void 0&&A===void 0?K=new a(D):A===void 0?K=new a(D,w):K=new a(D,w,A),Object.setPrototypeOf(K,u.prototype),K}function T(D){if(u.isBuffer(D)){const w=I(D.length)|0,A=l(w);return A.length===0||D.copy(A,0,0,w),A}if(D.length!==void 0)return typeof D.length!="number"||hr(D.length)?l(0):b(D);if(D.type==="Buffer"&&Array.isArray(D.data))return b(D.data)}function I(D){if(D>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return D|0}function h(D){return+D!=D&&(D=0),u.alloc(+D)}u.isBuffer=function(w){return w!=null&&w._isBuffer===!0&&w!==u.prototype},u.compare=function(w,A){if(Rt(w,a)&&(w=u.from(w,w.offset,w.byteLength)),Rt(A,a)&&(A=u.from(A,A.offset,A.byteLength)),!u.isBuffer(w)||!u.isBuffer(A))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(w===A)return 0;let K=w.length,de=A.length;for(let _e=0,Ie=Math.min(K,de);_e<Ie;++_e)if(w[_e]!==A[_e]){K=w[_e],de=A[_e];break}return K<de?-1:de<K?1:0},u.isEncoding=function(w){switch(String(w).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(w,A){if(!Array.isArray(w))throw new TypeError('"list" argument must be an Array of Buffers');if(w.length===0)return u.alloc(0);let K;if(A===void 0)for(A=0,K=0;K<w.length;++K)A+=w[K].length;const de=u.allocUnsafe(A);let _e=0;for(K=0;K<w.length;++K){let Ie=w[K];if(Rt(Ie,a))_e+Ie.length>de.length?(u.isBuffer(Ie)||(Ie=u.from(Ie)),Ie.copy(de,_e)):a.prototype.set.call(de,Ie,_e);else if(u.isBuffer(Ie))Ie.copy(de,_e);else throw new TypeError('"list" argument must be an Array of Buffers');_e+=Ie.length}return de};function v(D,w){if(u.isBuffer(D))return D.length;if(s.isView(D)||Rt(D,s))return D.byteLength;if(typeof D!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof D);const A=D.length,K=arguments.length>2&&arguments[2]===!0;if(!K&&A===0)return 0;let de=!1;for(;;)switch(w){case"ascii":case"latin1":case"binary":return A;case"utf8":case"utf-8":return Xe(D).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A*2;case"hex":return A>>>1;case"base64":return It(D).length;default:if(de)return K?-1:Xe(D).length;w=(""+w).toLowerCase(),de=!0}}u.byteLength=v;function E(D,w,A){let K=!1;if((w===void 0||w<0)&&(w=0),w>this.length||((A===void 0||A>this.length)&&(A=this.length),A<=0)||(A>>>=0,w>>>=0,A<=w))return"";for(D||(D="utf8");;)switch(D){case"hex":return V(this,w,A);case"utf8":case"utf-8":return Z(this,w,A);case"ascii":return U(this,w,A);case"latin1":case"binary":return L(this,w,A);case"base64":return ie(this,w,A);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,w,A);default:if(K)throw new TypeError("Unknown encoding: "+D);D=(D+"").toLowerCase(),K=!0}}u.prototype._isBuffer=!0;function N(D,w,A){const K=D[w];D[w]=D[A],D[A]=K}u.prototype.swap16=function(){const w=this.length;if(w%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let A=0;A<w;A+=2)N(this,A,A+1);return this},u.prototype.swap32=function(){const w=this.length;if(w%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let A=0;A<w;A+=4)N(this,A,A+3),N(this,A+1,A+2);return this},u.prototype.swap64=function(){const w=this.length;if(w%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let A=0;A<w;A+=8)N(this,A,A+7),N(this,A+1,A+6),N(this,A+2,A+5),N(this,A+3,A+4);return this},u.prototype.toString=function(){const w=this.length;return w===0?"":arguments.length===0?Z(this,0,w):E.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(w){if(!u.isBuffer(w))throw new TypeError("Argument must be a Buffer");return this===w?!0:u.compare(this,w)===0},u.prototype.inspect=function(){let w="";const A=e.INSPECT_MAX_BYTES;return w=this.toString("hex",0,A).replace(/(.{2})/g,"$1 ").trim(),this.length>A&&(w+=" ... "),"<Buffer "+w+">"},n&&(u.prototype[n]=u.prototype.inspect),u.prototype.compare=function(w,A,K,de,_e){if(Rt(w,a)&&(w=u.from(w,w.offset,w.byteLength)),!u.isBuffer(w))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof w);if(A===void 0&&(A=0),K===void 0&&(K=w?w.length:0),de===void 0&&(de=0),_e===void 0&&(_e=this.length),A<0||K>w.length||de<0||_e>this.length)throw new RangeError("out of range index");if(de>=_e&&A>=K)return 0;if(de>=_e)return-1;if(A>=K)return 1;if(A>>>=0,K>>>=0,de>>>=0,_e>>>=0,this===w)return 0;let Ie=_e-de,Qe=K-A;const Lt=Math.min(Ie,Qe),At=this.slice(de,_e),$t=w.slice(A,K);for(let it=0;it<Lt;++it)if(At[it]!==$t[it]){Ie=At[it],Qe=$t[it];break}return Ie<Qe?-1:Qe<Ie?1:0};function M(D,w,A,K,de){if(D.length===0)return-1;if(typeof A=="string"?(K=A,A=0):A>2147483647?A=2147483647:A<-2147483648&&(A=-2147483648),A=+A,hr(A)&&(A=de?0:D.length-1),A<0&&(A=D.length+A),A>=D.length){if(de)return-1;A=D.length-1}else if(A<0)if(de)A=0;else return-1;if(typeof w=="string"&&(w=u.from(w,K)),u.isBuffer(w))return w.length===0?-1:q(D,w,A,K,de);if(typeof w=="number")return w=w&255,typeof a.prototype.indexOf=="function"?de?a.prototype.indexOf.call(D,w,A):a.prototype.lastIndexOf.call(D,w,A):q(D,[w],A,K,de);throw new TypeError("val must be string, number or Buffer")}function q(D,w,A,K,de){let _e=1,Ie=D.length,Qe=w.length;if(K!==void 0&&(K=String(K).toLowerCase(),K==="ucs2"||K==="ucs-2"||K==="utf16le"||K==="utf-16le")){if(D.length<2||w.length<2)return-1;_e=2,Ie/=2,Qe/=2,A/=2}function Lt($t,it){return _e===1?$t[it]:$t.readUInt16BE(it*_e)}let At;if(de){let $t=-1;for(At=A;At<Ie;At++)if(Lt(D,At)===Lt(w,$t===-1?0:At-$t)){if($t===-1&&($t=At),At-$t+1===Qe)return $t*_e}else $t!==-1&&(At-=At-$t),$t=-1}else for(A+Qe>Ie&&(A=Ie-Qe),At=A;At>=0;At--){let $t=!0;for(let it=0;it<Qe;it++)if(Lt(D,At+it)!==Lt(w,it)){$t=!1;break}if($t)return At}return-1}u.prototype.includes=function(w,A,K){return this.indexOf(w,A,K)!==-1},u.prototype.indexOf=function(w,A,K){return M(this,w,A,K,!0)},u.prototype.lastIndexOf=function(w,A,K){return M(this,w,A,K,!1)};function H(D,w,A,K){A=Number(A)||0;const de=D.length-A;K?(K=Number(K),K>de&&(K=de)):K=de;const _e=w.length;K>_e/2&&(K=_e/2);let Ie;for(Ie=0;Ie<K;++Ie){const Qe=parseInt(w.substr(Ie*2,2),16);if(hr(Qe))return Ie;D[A+Ie]=Qe}return Ie}function k(D,w,A,K){return tr(Xe(w,D.length-A),D,A,K)}function B(D,w,A,K){return tr(ut(w),D,A,K)}function F(D,w,A,K){return tr(It(w),D,A,K)}function te(D,w,A,K){return tr(Ht(w,D.length-A),D,A,K)}u.prototype.write=function(w,A,K,de){if(A===void 0)de="utf8",K=this.length,A=0;else if(K===void 0&&typeof A=="string")de=A,K=this.length,A=0;else if(isFinite(A))A=A>>>0,isFinite(K)?(K=K>>>0,de===void 0&&(de="utf8")):(de=K,K=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const _e=this.length-A;if((K===void 0||K>_e)&&(K=_e),w.length>0&&(K<0||A<0)||A>this.length)throw new RangeError("Attempt to write outside buffer bounds");de||(de="utf8");let Ie=!1;for(;;)switch(de){case"hex":return H(this,w,A,K);case"utf8":case"utf-8":return k(this,w,A,K);case"ascii":case"latin1":case"binary":return B(this,w,A,K);case"base64":return F(this,w,A,K);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return te(this,w,A,K);default:if(Ie)throw new TypeError("Unknown encoding: "+de);de=(""+de).toLowerCase(),Ie=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ie(D,w,A){return w===0&&A===D.length?t.fromByteArray(D):t.fromByteArray(D.slice(w,A))}function Z(D,w,A){A=Math.min(D.length,A);const K=[];let de=w;for(;de<A;){const _e=D[de];let Ie=null,Qe=_e>239?4:_e>223?3:_e>191?2:1;if(de+Qe<=A){let Lt,At,$t,it;switch(Qe){case 1:_e<128&&(Ie=_e);break;case 2:Lt=D[de+1],(Lt&192)===128&&(it=(_e&31)<<6|Lt&63,it>127&&(Ie=it));break;case 3:Lt=D[de+1],At=D[de+2],(Lt&192)===128&&(At&192)===128&&(it=(_e&15)<<12|(Lt&63)<<6|At&63,it>2047&&(it<55296||it>57343)&&(Ie=it));break;case 4:Lt=D[de+1],At=D[de+2],$t=D[de+3],(Lt&192)===128&&(At&192)===128&&($t&192)===128&&(it=(_e&15)<<18|(Lt&63)<<12|(At&63)<<6|$t&63,it>65535&&it<1114112&&(Ie=it))}}Ie===null?(Ie=65533,Qe=1):Ie>65535&&(Ie-=65536,K.push(Ie>>>10&1023|55296),Ie=56320|Ie&1023),K.push(Ie),de+=Qe}return Y(K)}const X=4096;function Y(D){const w=D.length;if(w<=X)return String.fromCharCode.apply(String,D);let A="",K=0;for(;K<w;)A+=String.fromCharCode.apply(String,D.slice(K,K+=X));return A}function U(D,w,A){let K="";A=Math.min(D.length,A);for(let de=w;de<A;++de)K+=String.fromCharCode(D[de]&127);return K}function L(D,w,A){let K="";A=Math.min(D.length,A);for(let de=w;de<A;++de)K+=String.fromCharCode(D[de]);return K}function V(D,w,A){const K=D.length;(!w||w<0)&&(w=0),(!A||A<0||A>K)&&(A=K);let de="";for(let _e=w;_e<A;++_e)de+=yr[D[_e]];return de}function W(D,w,A){const K=D.slice(w,A);let de="";for(let _e=0;_e<K.length-1;_e+=2)de+=String.fromCharCode(K[_e]+K[_e+1]*256);return de}u.prototype.slice=function(w,A){const K=this.length;w=~~w,A=A===void 0?K:~~A,w<0?(w+=K,w<0&&(w=0)):w>K&&(w=K),A<0?(A+=K,A<0&&(A=0)):A>K&&(A=K),A<w&&(A=w);const de=this.subarray(w,A);return Object.setPrototypeOf(de,u.prototype),de};function P(D,w,A){if(D%1!==0||D<0)throw new RangeError("offset is not uint");if(D+w>A)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(w,A,K){w=w>>>0,A=A>>>0,K||P(w,A,this.length);let de=this[w],_e=1,Ie=0;for(;++Ie<A&&(_e*=256);)de+=this[w+Ie]*_e;return de},u.prototype.readUintBE=u.prototype.readUIntBE=function(w,A,K){w=w>>>0,A=A>>>0,K||P(w,A,this.length);let de=this[w+--A],_e=1;for(;A>0&&(_e*=256);)de+=this[w+--A]*_e;return de},u.prototype.readUint8=u.prototype.readUInt8=function(w,A){return w=w>>>0,A||P(w,1,this.length),this[w]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(w,A){return w=w>>>0,A||P(w,2,this.length),this[w]|this[w+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(w,A){return w=w>>>0,A||P(w,2,this.length),this[w]<<8|this[w+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(w,A){return w=w>>>0,A||P(w,4,this.length),(this[w]|this[w+1]<<8|this[w+2]<<16)+this[w+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(w,A){return w=w>>>0,A||P(w,4,this.length),this[w]*16777216+(this[w+1]<<16|this[w+2]<<8|this[w+3])},u.prototype.readBigUInt64LE=yt(function(w){w=w>>>0,Ae(w,"offset");const A=this[w],K=this[w+7];(A===void 0||K===void 0)&&qe(w,this.length-8);const de=A+this[++w]*2**8+this[++w]*2**16+this[++w]*2**24,_e=this[++w]+this[++w]*2**8+this[++w]*2**16+K*2**24;return BigInt(de)+(BigInt(_e)<<BigInt(32))}),u.prototype.readBigUInt64BE=yt(function(w){w=w>>>0,Ae(w,"offset");const A=this[w],K=this[w+7];(A===void 0||K===void 0)&&qe(w,this.length-8);const de=A*2**24+this[++w]*2**16+this[++w]*2**8+this[++w],_e=this[++w]*2**24+this[++w]*2**16+this[++w]*2**8+K;return(BigInt(de)<<BigInt(32))+BigInt(_e)}),u.prototype.readIntLE=function(w,A,K){w=w>>>0,A=A>>>0,K||P(w,A,this.length);let de=this[w],_e=1,Ie=0;for(;++Ie<A&&(_e*=256);)de+=this[w+Ie]*_e;return _e*=128,de>=_e&&(de-=Math.pow(2,8*A)),de},u.prototype.readIntBE=function(w,A,K){w=w>>>0,A=A>>>0,K||P(w,A,this.length);let de=A,_e=1,Ie=this[w+--de];for(;de>0&&(_e*=256);)Ie+=this[w+--de]*_e;return _e*=128,Ie>=_e&&(Ie-=Math.pow(2,8*A)),Ie},u.prototype.readInt8=function(w,A){return w=w>>>0,A||P(w,1,this.length),this[w]&128?(255-this[w]+1)*-1:this[w]},u.prototype.readInt16LE=function(w,A){w=w>>>0,A||P(w,2,this.length);const K=this[w]|this[w+1]<<8;return K&32768?K|4294901760:K},u.prototype.readInt16BE=function(w,A){w=w>>>0,A||P(w,2,this.length);const K=this[w+1]|this[w]<<8;return K&32768?K|4294901760:K},u.prototype.readInt32LE=function(w,A){return w=w>>>0,A||P(w,4,this.length),this[w]|this[w+1]<<8|this[w+2]<<16|this[w+3]<<24},u.prototype.readInt32BE=function(w,A){return w=w>>>0,A||P(w,4,this.length),this[w]<<24|this[w+1]<<16|this[w+2]<<8|this[w+3]},u.prototype.readBigInt64LE=yt(function(w){w=w>>>0,Ae(w,"offset");const A=this[w],K=this[w+7];(A===void 0||K===void 0)&&qe(w,this.length-8);const de=this[w+4]+this[w+5]*2**8+this[w+6]*2**16+(K<<24);return(BigInt(de)<<BigInt(32))+BigInt(A+this[++w]*2**8+this[++w]*2**16+this[++w]*2**24)}),u.prototype.readBigInt64BE=yt(function(w){w=w>>>0,Ae(w,"offset");const A=this[w],K=this[w+7];(A===void 0||K===void 0)&&qe(w,this.length-8);const de=(A<<24)+this[++w]*2**16+this[++w]*2**8+this[++w];return(BigInt(de)<<BigInt(32))+BigInt(this[++w]*2**24+this[++w]*2**16+this[++w]*2**8+K)}),u.prototype.readFloatLE=function(w,A){return w=w>>>0,A||P(w,4,this.length),r.read(this,w,!0,23,4)},u.prototype.readFloatBE=function(w,A){return w=w>>>0,A||P(w,4,this.length),r.read(this,w,!1,23,4)},u.prototype.readDoubleLE=function(w,A){return w=w>>>0,A||P(w,8,this.length),r.read(this,w,!0,52,8)},u.prototype.readDoubleBE=function(w,A){return w=w>>>0,A||P(w,8,this.length),r.read(this,w,!1,52,8)};function $(D,w,A,K,de,_e){if(!u.isBuffer(D))throw new TypeError('"buffer" argument must be a Buffer instance');if(w>de||w<_e)throw new RangeError('"value" argument is out of bounds');if(A+K>D.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(w,A,K,de){if(w=+w,A=A>>>0,K=K>>>0,!de){const Qe=Math.pow(2,8*K)-1;$(this,w,A,K,Qe,0)}let _e=1,Ie=0;for(this[A]=w&255;++Ie<K&&(_e*=256);)this[A+Ie]=w/_e&255;return A+K},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(w,A,K,de){if(w=+w,A=A>>>0,K=K>>>0,!de){const Qe=Math.pow(2,8*K)-1;$(this,w,A,K,Qe,0)}let _e=K-1,Ie=1;for(this[A+_e]=w&255;--_e>=0&&(Ie*=256);)this[A+_e]=w/Ie&255;return A+K},u.prototype.writeUint8=u.prototype.writeUInt8=function(w,A,K){return w=+w,A=A>>>0,K||$(this,w,A,1,255,0),this[A]=w&255,A+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(w,A,K){return w=+w,A=A>>>0,K||$(this,w,A,2,65535,0),this[A]=w&255,this[A+1]=w>>>8,A+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(w,A,K){return w=+w,A=A>>>0,K||$(this,w,A,2,65535,0),this[A]=w>>>8,this[A+1]=w&255,A+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(w,A,K){return w=+w,A=A>>>0,K||$(this,w,A,4,4294967295,0),this[A+3]=w>>>24,this[A+2]=w>>>16,this[A+1]=w>>>8,this[A]=w&255,A+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(w,A,K){return w=+w,A=A>>>0,K||$(this,w,A,4,4294967295,0),this[A]=w>>>24,this[A+1]=w>>>16,this[A+2]=w>>>8,this[A+3]=w&255,A+4};function ee(D,w,A,K,de){be(w,K,de,D,A,7);let _e=Number(w&BigInt(4294967295));D[A++]=_e,_e=_e>>8,D[A++]=_e,_e=_e>>8,D[A++]=_e,_e=_e>>8,D[A++]=_e;let Ie=Number(w>>BigInt(32)&BigInt(4294967295));return D[A++]=Ie,Ie=Ie>>8,D[A++]=Ie,Ie=Ie>>8,D[A++]=Ie,Ie=Ie>>8,D[A++]=Ie,A}function Ee(D,w,A,K,de){be(w,K,de,D,A,7);let _e=Number(w&BigInt(4294967295));D[A+7]=_e,_e=_e>>8,D[A+6]=_e,_e=_e>>8,D[A+5]=_e,_e=_e>>8,D[A+4]=_e;let Ie=Number(w>>BigInt(32)&BigInt(4294967295));return D[A+3]=Ie,Ie=Ie>>8,D[A+2]=Ie,Ie=Ie>>8,D[A+1]=Ie,Ie=Ie>>8,D[A]=Ie,A+8}u.prototype.writeBigUInt64LE=yt(function(w,A=0){return ee(this,w,A,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=yt(function(w,A=0){return Ee(this,w,A,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(w,A,K,de){if(w=+w,A=A>>>0,!de){const Lt=Math.pow(2,8*K-1);$(this,w,A,K,Lt-1,-Lt)}let _e=0,Ie=1,Qe=0;for(this[A]=w&255;++_e<K&&(Ie*=256);)w<0&&Qe===0&&this[A+_e-1]!==0&&(Qe=1),this[A+_e]=(w/Ie>>0)-Qe&255;return A+K},u.prototype.writeIntBE=function(w,A,K,de){if(w=+w,A=A>>>0,!de){const Lt=Math.pow(2,8*K-1);$(this,w,A,K,Lt-1,-Lt)}let _e=K-1,Ie=1,Qe=0;for(this[A+_e]=w&255;--_e>=0&&(Ie*=256);)w<0&&Qe===0&&this[A+_e+1]!==0&&(Qe=1),this[A+_e]=(w/Ie>>0)-Qe&255;return A+K},u.prototype.writeInt8=function(w,A,K){return w=+w,A=A>>>0,K||$(this,w,A,1,127,-128),w<0&&(w=255+w+1),this[A]=w&255,A+1},u.prototype.writeInt16LE=function(w,A,K){return w=+w,A=A>>>0,K||$(this,w,A,2,32767,-32768),this[A]=w&255,this[A+1]=w>>>8,A+2},u.prototype.writeInt16BE=function(w,A,K){return w=+w,A=A>>>0,K||$(this,w,A,2,32767,-32768),this[A]=w>>>8,this[A+1]=w&255,A+2},u.prototype.writeInt32LE=function(w,A,K){return w=+w,A=A>>>0,K||$(this,w,A,4,2147483647,-2147483648),this[A]=w&255,this[A+1]=w>>>8,this[A+2]=w>>>16,this[A+3]=w>>>24,A+4},u.prototype.writeInt32BE=function(w,A,K){return w=+w,A=A>>>0,K||$(this,w,A,4,2147483647,-2147483648),w<0&&(w=4294967295+w+1),this[A]=w>>>24,this[A+1]=w>>>16,this[A+2]=w>>>8,this[A+3]=w&255,A+4},u.prototype.writeBigInt64LE=yt(function(w,A=0){return ee(this,w,A,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=yt(function(w,A=0){return Ee(this,w,A,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function he(D,w,A,K,de,_e){if(A+K>D.length)throw new RangeError("Index out of range");if(A<0)throw new RangeError("Index out of range")}function Se(D,w,A,K,de){return w=+w,A=A>>>0,de||he(D,w,A,4),r.write(D,w,A,K,23,4),A+4}u.prototype.writeFloatLE=function(w,A,K){return Se(this,w,A,!0,K)},u.prototype.writeFloatBE=function(w,A,K){return Se(this,w,A,!1,K)};function we(D,w,A,K,de){return w=+w,A=A>>>0,de||he(D,w,A,8),r.write(D,w,A,K,52,8),A+8}u.prototype.writeDoubleLE=function(w,A,K){return we(this,w,A,!0,K)},u.prototype.writeDoubleBE=function(w,A,K){return we(this,w,A,!1,K)},u.prototype.copy=function(w,A,K,de){if(!u.isBuffer(w))throw new TypeError("argument should be a Buffer");if(K||(K=0),!de&&de!==0&&(de=this.length),A>=w.length&&(A=w.length),A||(A=0),de>0&&de<K&&(de=K),de===K||w.length===0||this.length===0)return 0;if(A<0)throw new RangeError("targetStart out of bounds");if(K<0||K>=this.length)throw new RangeError("Index out of range");if(de<0)throw new RangeError("sourceEnd out of bounds");de>this.length&&(de=this.length),w.length-A<de-K&&(de=w.length-A+K);const _e=de-K;return this===w&&typeof a.prototype.copyWithin=="function"?this.copyWithin(A,K,de):a.prototype.set.call(w,this.subarray(K,de),A),_e},u.prototype.fill=function(w,A,K,de){if(typeof w=="string"){if(typeof A=="string"?(de=A,A=0,K=this.length):typeof K=="string"&&(de=K,K=this.length),de!==void 0&&typeof de!="string")throw new TypeError("encoding must be a string");if(typeof de=="string"&&!u.isEncoding(de))throw new TypeError("Unknown encoding: "+de);if(w.length===1){const Ie=w.charCodeAt(0);(de==="utf8"&&Ie<128||de==="latin1")&&(w=Ie)}}else typeof w=="number"?w=w&255:typeof w=="boolean"&&(w=Number(w));if(A<0||this.length<A||this.length<K)throw new RangeError("Out of range index");if(K<=A)return this;A=A>>>0,K=K===void 0?this.length:K>>>0,w||(w=0);let _e;if(typeof w=="number")for(_e=A;_e<K;++_e)this[_e]=w;else{const Ie=u.isBuffer(w)?w:u.from(w,de),Qe=Ie.length;if(Qe===0)throw new TypeError('The value "'+w+'" is invalid for argument "value"');for(_e=0;_e<K-A;++_e)this[_e+A]=Ie[_e%Qe]}return this};const ae={};function ue(D,w,A){ae[D]=class extends A{constructor(){super(),Object.defineProperty(this,"message",{value:w.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${D}]`,this.stack,delete this.name}get code(){return D}set code(de){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:de,writable:!0})}toString(){return`${this.name} [${D}]: ${this.message}`}}}ue("ERR_BUFFER_OUT_OF_BOUNDS",function(D){return D?`${D} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ue("ERR_INVALID_ARG_TYPE",function(D,w){return`The "${D}" argument must be of type number. Received type ${typeof w}`},TypeError),ue("ERR_OUT_OF_RANGE",function(D,w,A){let K=`The value of "${D}" is out of range.`,de=A;return Number.isInteger(A)&&Math.abs(A)>2**32?de=fe(String(A)):typeof A=="bigint"&&(de=String(A),(A>BigInt(2)**BigInt(32)||A<-(BigInt(2)**BigInt(32)))&&(de=fe(de)),de+="n"),K+=` It must be ${w}. Received ${de}`,K},RangeError);function fe(D){let w="",A=D.length;const K=D[0]==="-"?1:0;for(;A>=K+4;A-=3)w=`_${D.slice(A-3,A)}${w}`;return`${D.slice(0,A)}${w}`}function pe(D,w,A){Ae(w,"offset"),(D[w]===void 0||D[w+A]===void 0)&&qe(w,D.length-(A+1))}function be(D,w,A,K,de,_e){if(D>A||D<w){const Ie=typeof w=="bigint"?"n":"";let Qe;throw w===0||w===BigInt(0)?Qe=`>= 0${Ie} and < 2${Ie} ** ${(_e+1)*8}${Ie}`:Qe=`>= -(2${Ie} ** ${(_e+1)*8-1}${Ie}) and < 2 ** ${(_e+1)*8-1}${Ie}`,new ae.ERR_OUT_OF_RANGE("value",Qe,D)}pe(K,de,_e)}function Ae(D,w){if(typeof D!="number")throw new ae.ERR_INVALID_ARG_TYPE(w,"number",D)}function qe(D,w,A){throw Math.floor(D)!==D?(Ae(D,A),new ae.ERR_OUT_OF_RANGE("offset","an integer",D)):w<0?new ae.ERR_BUFFER_OUT_OF_BOUNDS:new ae.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${w}`,D)}const We=/[^+/0-9A-Za-z-_]/g;function tt(D){if(D=D.split("=")[0],D=D.trim().replace(We,""),D.length<2)return"";for(;D.length%4!==0;)D=D+"=";return D}function Xe(D,w){w=w||1/0;let A;const K=D.length;let de=null;const _e=[];for(let Ie=0;Ie<K;++Ie){if(A=D.charCodeAt(Ie),A>55295&&A<57344){if(!de){if(A>56319){(w-=3)>-1&&_e.push(239,191,189);continue}else if(Ie+1===K){(w-=3)>-1&&_e.push(239,191,189);continue}de=A;continue}if(A<56320){(w-=3)>-1&&_e.push(239,191,189),de=A;continue}A=(de-55296<<10|A-56320)+65536}else de&&(w-=3)>-1&&_e.push(239,191,189);if(de=null,A<128){if((w-=1)<0)break;_e.push(A)}else if(A<2048){if((w-=2)<0)break;_e.push(A>>6|192,A&63|128)}else if(A<65536){if((w-=3)<0)break;_e.push(A>>12|224,A>>6&63|128,A&63|128)}else if(A<1114112){if((w-=4)<0)break;_e.push(A>>18|240,A>>12&63|128,A>>6&63|128,A&63|128)}else throw new Error("Invalid code point")}return _e}function ut(D){const w=[];for(let A=0;A<D.length;++A)w.push(D.charCodeAt(A)&255);return w}function Ht(D,w){let A,K,de;const _e=[];for(let Ie=0;Ie<D.length&&!((w-=2)<0);++Ie)A=D.charCodeAt(Ie),K=A>>8,de=A%256,_e.push(de),_e.push(K);return _e}function It(D){return t.toByteArray(tt(D))}function tr(D,w,A,K){let de;for(de=0;de<K&&!(de+A>=w.length||de>=D.length);++de)w[de+A]=D[de];return de}function Rt(D,w){return D instanceof w||D!=null&&D.constructor!=null&&D.constructor.name!=null&&D.constructor.name===w.name}function hr(D){return D!==D}const yr=(function(){const D="0123456789abcdef",w=new Array(256);for(let A=0;A<16;++A){const K=A*16;for(let de=0;de<16;++de)w[K+de]=D[A]+D[de]}return w})();function yt(D){return typeof BigInt>"u"?Hr:D}function Hr(){throw new Error("BigInt not supported")}})(kj);const b1=kj.Buffer;var Fl={exports:{}},S1;function mH(){return S1||(S1=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r={Object,Array,Function,Number,String,Date,RegExp};typeof b1<"u"&&(r.Buffer=b1),typeof Promise<"u"&&(r.Promise=Promise);const n=Object.assign(i,{CONSTRUCTORS:r});function i(){return{keyword:"instanceof",schemaType:["string","array"],compile(s){if(typeof s=="string"){const o=a(s);return c=>c instanceof o}if(Array.isArray(s)){const o=s.map(a);return c=>{for(const l of o)if(c instanceof l)return!0;return!1}}throw new Error("ajv implementation error")},metaSchema:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}}}function a(s){const o=r[s];if(o)return o;throw new Error(`invalid "instanceof" keyword value ${s}`)}t.default=n,e.exports=n})(Fl,Fl.exports)),Fl.exports}var T1=zo.exports,w1;function hH(){return w1||(w1=1,(function(e,t){var r=T1&&T1.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(mH()),i=a=>a.addKeyword((0,n.default)());t.default=i,e.exports=i})(zo,zo.exports)),zo.exports}var Wo={exports:{}},Yo={exports:{}},Hl={},I1;function Bj(){if(I1)return Hl;I1=1,Object.defineProperty(Hl,"__esModule",{value:!0});function e(t){return()=>({keyword:t,type:"number",schemaType:"array",macro:function([n,i]){return r(n,i),t==="range"?{minimum:n,maximum:i}:{exclusiveMinimum:n,exclusiveMaximum:i}},metaSchema:{type:"array",minItems:2,maxItems:2,items:{type:"number"}}});function r(n,i){if(n>i||t==="exclusiveRange"&&n===i)throw new Error("There are no numbers in range")}}return Hl.default=e,Hl}var R1=Yo.exports,A1;function yH(){return A1||(A1=1,(function(e,t){var r=R1&&R1.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const i=(0,r(Bj()).default)("range");t.default=i,e.exports=i})(Yo,Yo.exports)),Yo.exports}var O1=Wo.exports,N1;function gH(){return N1||(N1=1,(function(e,t){var r=O1&&O1.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(yH()),i=a=>a.addKeyword((0,n.default)());t.default=i,e.exports=i})(Wo,Wo.exports)),Wo.exports}var Ko={exports:{}},Xo={exports:{}},P1=Xo.exports,C1;function _H(){return C1||(C1=1,(function(e,t){var r=P1&&P1.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const i=(0,r(Bj()).default)("exclusiveRange");t.default=i,e.exports=i})(Xo,Xo.exports)),Xo.exports}var M1=Ko.exports,j1;function vH(){return j1||(j1=1,(function(e,t){var r=M1&&M1.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(_H()),i=a=>a.addKeyword((0,n.default)());t.default=i,e.exports=i})(Ko,Ko.exports)),Ko.exports}var Jo={exports:{}},Vl={exports:{}},Gi={},D1;function af(){if(D1)return Gi;D1=1,Object.defineProperty(Gi,"__esModule",{value:!0}),Gi.usePattern=Gi.metaSchemaRef=void 0;const e=Ke(),t="http://json-schema.org/schema";function r({defaultMeta:i}={}){return i===!1?{}:{$ref:i||t}}Gi.metaSchemaRef=r;function n({gen:i,it:{opts:a}},s,o=a.unicodeRegExp?"u":""){const c=new RegExp(s,o);return i.scopeValue("pattern",{key:c.toString(),ref:c,code:(0,e._)`new RegExp(${s}, ${o})`})}return Gi.usePattern=n,Gi}var L1;function EH(){return L1||(L1=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=Ke(),n=af(),i={type:"object",properties:{pattern:{type:"string"},flags:{type:"string",nullable:!0}},required:["pattern"],additionalProperties:!1},a=/^\/(.*)\/([gimuy]*)$/;function s(){return{keyword:"regexp",type:"string",schemaType:["string","object"],code(o){const{data:c,schema:l}=o,u=d(l);o.pass((0,r._)`${u}.test(${c})`);function d(f){if(typeof f=="object")return(0,n.usePattern)(o,f.pattern,f.flags);const p=a.exec(f);if(p)return(0,n.usePattern)(o,p[1],p[2]);throw new Error("cannot parse string into RegExp")}},metaSchema:{anyOf:[{type:"string"},i]}}}t.default=s,e.exports=s})(Vl,Vl.exports)),Vl.exports}var $1=Jo.exports,k1;function bH(){return k1||(k1=1,(function(e,t){var r=$1&&$1.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(EH()),i=a=>a.addKeyword((0,n.default)());t.default=i,e.exports=i})(Jo,Jo.exports)),Jo.exports}var Qo={exports:{}},xl={exports:{}},q1;function SH(){return q1||(q1=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=Ke(),n={trimStart:c=>c.trimStart(),trimEnd:c=>c.trimEnd(),trimLeft:c=>c.trimStart(),trimRight:c=>c.trimEnd(),trim:c=>c.trim(),toLowerCase:c=>c.toLowerCase(),toUpperCase:c=>c.toUpperCase(),toEnumCase:(c,l)=>(l==null?void 0:l.hash[o(c)])||c},i=Object.assign(a,{transform:n});function a(){return{keyword:"transform",schemaType:"array",before:"enum",code(c){const{gen:l,data:u,schema:d,parentSchema:f,it:p}=c,{parentData:y,parentDataProperty:g}=p,b=d;if(!b.length)return;let O;if(b.includes("toEnumCase")){const T=s(f);O=l.scopeValue("obj",{ref:T,code:(0,r.stringify)(T)})}l.if((0,r._)`typeof ${u} == "string" && ${y} !== undefined`,()=>{l.assign(u,m(b.slice())),l.assign((0,r._)`${y}[${g}]`,u)});function m(T){if(!T.length)return u;const I=T.pop();if(!(I in n))throw new Error(`transform: unknown transformation ${I}`);const h=l.scopeValue("func",{ref:n[I],code:(0,r._)`require("ajv-keywords/dist/definitions/transform").transform${(0,r.getProperty)(I)}`}),v=m(T);return O&&I==="toEnumCase"?(0,r._)`${h}(${v}, ${O})`:(0,r._)`${h}(${v})`}},metaSchema:{type:"array",items:{type:"string",enum:Object.keys(n)}}}}function s(c){const l={hash:{}};if(!c.enum)throw new Error('transform: "toEnumCase" requires "enum"');for(const u of c.enum){if(typeof u!="string")continue;const d=o(u);if(l.hash[d])throw new Error('transform: "toEnumCase" requires all lowercased "enum" values to be unique');l.hash[d]=u}return l}function o(c){return c.toLowerCase()}t.default=i,e.exports=i})(xl,xl.exports)),xl.exports}var B1=Qo.exports,U1;function TH(){return U1||(U1=1,(function(e,t){var r=B1&&B1.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(SH()),i=a=>a.addKeyword((0,n.default)());t.default=i,e.exports=i})(Qo,Qo.exports)),Qo.exports}var Zo={exports:{}},Gl={exports:{}},F1;function wH(){return F1||(F1=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=RE(),n=["number","integer","string","boolean","null"];function i(){return{keyword:"uniqueItemProperties",type:"array",schemaType:"array",compile(s,o){const c=a(s,o);return l=>{if(l.length<=1)return!0;for(let u=0;u<s.length;u++){const d=s[u];if(c[u]){const f={};for(const p of l){if(!p||typeof p!="object")continue;let y=p[d];if(!(y&&typeof y=="object")){if(typeof y=="string"&&(y='"'+y),f[y])return!1;f[y]=!0}}}else for(let f=l.length;f--;){const p=l[f];if(!(!p||typeof p!="object"))for(let y=f;y--;){const g=l[y];if(g&&typeof g=="object"&&r(p[d],g[d]))return!1}}}return!0}},metaSchema:{type:"array",items:{type:"string"}}}}t.default=i;function a(s,o){return s.map(c=>{var l,u,d;const f=(d=(u=(l=o.items)===null||l===void 0?void 0:l.properties)===null||u===void 0?void 0:u[c])===null||d===void 0?void 0:d.type;return Array.isArray(f)?!f.includes("object")&&!f.includes("array"):n.includes(f)})}e.exports=i})(Gl,Gl.exports)),Gl.exports}var H1=Zo.exports,V1;function IH(){return V1||(V1=1,(function(e,t){var r=H1&&H1.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(wH()),i=a=>a.addKeyword((0,n.default)());t.default=i,e.exports=i})(Zo,Zo.exports)),Zo.exports}var ec={exports:{}},zl={exports:{}},x1;function RH(){return x1||(x1=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(){return{keyword:"allRequired",type:"object",schemaType:"boolean",macro(n,i){if(!n)return!0;const a=Object.keys(i.properties);return a.length===0?!0:{required:a}},dependencies:["properties"]}}t.default=r,e.exports=r})(zl,zl.exports)),zl.exports}var G1=ec.exports,z1;function AH(){return z1||(z1=1,(function(e,t){var r=G1&&G1.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(RH()),i=a=>a.addKeyword((0,n.default)());t.default=i,e.exports=i})(ec,ec.exports)),ec.exports}var tc={exports:{}},rc={exports:{}},Wl={},W1;function Uj(){if(W1)return Wl;W1=1,Object.defineProperty(Wl,"__esModule",{value:!0});function e(t){return()=>({keyword:t,type:"object",schemaType:"array",macro(r){return r.length===0?!0:r.length===1?{required:r}:{[t==="anyRequired"?"anyOf":"oneOf"]:r.map(i=>({required:[i]}))}},metaSchema:{type:"array",items:{type:"string"}}})}return Wl.default=e,Wl}var Y1=rc.exports,K1;function OH(){return K1||(K1=1,(function(e,t){var r=Y1&&Y1.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const i=(0,r(Uj()).default)("anyRequired");t.default=i,e.exports=i})(rc,rc.exports)),rc.exports}var X1=tc.exports,J1;function NH(){return J1||(J1=1,(function(e,t){var r=X1&&X1.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(OH()),i=a=>a.addKeyword((0,n.default)());t.default=i,e.exports=i})(tc,tc.exports)),tc.exports}var nc={exports:{}},ic={exports:{}},Q1=ic.exports,Z1;function PH(){return Z1||(Z1=1,(function(e,t){var r=Q1&&Q1.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const i=(0,r(Uj()).default)("oneRequired");t.default=i,e.exports=i})(ic,ic.exports)),ic.exports}var eT=nc.exports,tT;function CH(){return tT||(tT=1,(function(e,t){var r=eT&&eT.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(PH()),i=a=>a.addKeyword((0,n.default)());t.default=i,e.exports=i})(nc,nc.exports)),nc.exports}var ac={exports:{}},Yl={exports:{}},rT;function MH(){return rT||(rT=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=Ke(),n=af(),i={message:({params:{missingPattern:s}})=>(0,r.str)`should have property matching pattern '${s}'`,params:({params:{missingPattern:s}})=>(0,r._)`{missingPattern: ${s}}`};function a(){return{keyword:"patternRequired",type:"object",schemaType:"array",error:i,code(s){const{gen:o,schema:c,data:l}=s;if(c.length===0)return;const u=o.let("valid",!0);for(const f of c)d(f);function d(f){const p=o.let("matched",!1);o.forIn("key",l,y=>{o.assign(p,(0,r._)`${(0,n.usePattern)(s,f)}.test(${y})`),o.if(p,()=>o.break())}),s.setParams({missingPattern:f}),o.assign(u,(0,r.and)(u,p)),s.pass(u)}},metaSchema:{type:"array",items:{type:"string",format:"regex"},uniqueItems:!0}}}t.default=a,e.exports=a})(Yl,Yl.exports)),Yl.exports}var nT=ac.exports,iT;function jH(){return iT||(iT=1,(function(e,t){var r=nT&&nT.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(MH()),i=a=>a.addKeyword((0,n.default)());t.default=i,e.exports=i})(ac,ac.exports)),ac.exports}var sc={exports:{}},Kl={exports:{}},aT;function DH(){return aT||(aT=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(){return{keyword:"prohibited",type:"object",schemaType:"array",macro:function(n){return n.length===0?!0:n.length===1?{not:{required:n}}:{not:{anyOf:n.map(i=>({required:[i]}))}}},metaSchema:{type:"array",items:{type:"string"}}}}t.default=r,e.exports=r})(Kl,Kl.exports)),Kl.exports}var sT=sc.exports,oT;function LH(){return oT||(oT=1,(function(e,t){var r=sT&&sT.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(DH()),i=a=>a.addKeyword((0,n.default)());t.default=i,e.exports=i})(sc,sc.exports)),sc.exports}var oc={exports:{}},Xl={exports:{}},cT;function $H(){return cT||(cT=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=af();function n(s){return{keyword:"deepProperties",type:"object",schemaType:"object",macro:function(o){const c=[];for(const l in o)c.push(i(l,o[l]));return{allOf:c}},metaSchema:{type:"object",propertyNames:{type:"string",format:"json-pointer"},additionalProperties:(0,r.metaSchemaRef)(s)}}}t.default=n;function i(s,o){const c=s.split("/"),l={};let u=l;for(let d=1;d<c.length;d++){let f=c[d];const p=d===c.length-1;f=a(f);const y=u.properties={};let g;if(/[0-9]+/.test(f)){let b=+f;for(g=u.items=[],u.type=["object","array"];b--;)g.push({})}else u.type="object";u=p?o:{},y[f]=u,g&&g.push(u)}return l}function a(s){return s.replace(/~1/g,"/").replace(/~0/g,"~")}e.exports=n})(Xl,Xl.exports)),Xl.exports}var uT=oc.exports,lT;function kH(){return lT||(lT=1,(function(e,t){var r=uT&&uT.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const n=r($H()),i=(a,s)=>a.addKeyword((0,n.default)(s));t.default=i,e.exports=i})(oc,oc.exports)),oc.exports}var cc={exports:{}},Jl={exports:{}},dT;function qH(){return dT||(dT=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=Ke();function n(){return{keyword:"deepRequired",type:"object",schemaType:"array",code(a){const{schema:s,data:o}=a,c=s.map(u=>(0,r._)`(${l(u)}) === undefined`);a.fail((0,r.or)(...c));function l(u){if(u==="")throw new Error("empty JSON pointer not allowed");const d=u.split("/");let f=o;const p=d.map((y,g)=>g?f=(0,r._)`${f}${(0,r.getProperty)(i(y))}`:f);return(0,r.and)(...p)}},metaSchema:{type:"array",items:{type:"string",format:"json-pointer"}}}}t.default=n;function i(a){return a.replace(/~1/g,"/").replace(/~0/g,"~")}e.exports=n})(Jl,Jl.exports)),Jl.exports}var fT=cc.exports,pT;function BH(){return pT||(pT=1,(function(e,t){var r=fT&&fT.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(qH()),i=a=>a.addKeyword((0,n.default)());t.default=i,e.exports=i})(cc,cc.exports)),cc.exports}var uc={exports:{}},Ql={exports:{}},mT;function UH(){return mT||(mT=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r={},n={timestamp:()=>()=>Date.now(),datetime:()=>()=>new Date().toISOString(),date:()=>()=>new Date().toISOString().slice(0,10),time:()=>()=>new Date().toISOString().slice(11),random:()=>()=>Math.random(),randomint:u=>{var d;const f=(d=u==null?void 0:u.max)!==null&&d!==void 0?d:2;return()=>Math.floor(Math.random()*f)},seq:u=>{var d;const f=(d=u==null?void 0:u.name)!==null&&d!==void 0?d:"";return r[f]||(r[f]=0),()=>r[f]++}},i=Object.assign(a,{DEFAULTS:n});function a(){return{keyword:"dynamicDefaults",type:"object",schemaType:["string","object"],modifying:!0,valid:!0,compile(u,d,f){if(!f.opts.useDefaults||f.compositeRule)return()=>!0;const p={};for(const g in u)p[g]=s(u[g]);const y=f.opts.useDefaults==="empty";return g=>{for(const b in u)(g[b]===void 0||y&&(g[b]===null||g[b]===""))&&(g[b]=p[b]());return!0}},metaSchema:{type:"object",additionalProperties:{anyOf:[{type:"string"},{type:"object",additionalProperties:!1,required:["func","args"],properties:{func:{type:"string"},args:{type:"object"}}}]}}}}function s(u){return typeof u=="object"?o(u):c(u)}function o({func:u,args:d}){const f=n[u];return l(u,f),f(d)}function c(u=""){const d=n[u];return l(u,d),d()}function l(u,d){if(!d)throw new Error(`invalid "dynamicDefaults" keyword property value: ${u}`)}t.default=i,e.exports=i})(Ql,Ql.exports)),Ql.exports}var hT=uc.exports,yT;function FH(){return yT||(yT=1,(function(e,t){var r=hT&&hT.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(UH()),i=a=>a.addKeyword((0,n.default)());t.default=i,e.exports=i})(uc,uc.exports)),uc.exports}var lc={exports:{}},Zl={exports:{}},gT;function HH(){return gT||(gT=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=Ke(),n=af(),i={message:({params:{schemaProp:s}})=>s?(0,r.str)`should match case "${s}" schema`:(0,r.str)`should match default case schema`,params:({params:{schemaProp:s}})=>s?(0,r._)`{failingCase: ${s}}`:(0,r._)`{failingDefault: true}`};function a(s){const o=(0,n.metaSchemaRef)(s);return[{keyword:"select",schemaType:["string","number","boolean","null"],$data:!0,error:i,dependencies:["selectCases"],code(c){const{gen:l,schemaCode:u,parentSchema:d}=c;c.block$data(r.nil,()=>{const f=l.let("valid",!0),p=l.name("_valid"),y=l.const("value",(0,r._)`${u} === null ? "null" : ${u}`);l.if(!1);for(const g in d.selectCases){c.setParams({schemaProp:g}),l.elseIf((0,r._)`"" + ${y} == ${g}`);const b=c.subschema({keyword:"selectCases",schemaProp:g},p);c.mergeEvaluated(b,r.Name),l.assign(f,p)}if(l.else(),d.selectDefault!==void 0){c.setParams({schemaProp:void 0});const g=c.subschema({keyword:"selectDefault"},p);c.mergeEvaluated(g,r.Name),l.assign(f,p)}l.endIf(),c.pass(f)})}},{keyword:"selectCases",dependencies:["select"],metaSchema:{type:"object",additionalProperties:o}},{keyword:"selectDefault",dependencies:["select","selectCases"],metaSchema:o}]}t.default=a,e.exports=a})(Zl,Zl.exports)),Zl.exports}var _T=lc.exports,vT;function VH(){return vT||(vT=1,(function(e,t){var r=_T&&_T.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(HH()),i=(a,s)=>((0,n.default)(s).forEach(o=>a.addKeyword(o)),a);t.default=i,e.exports=i})(lc,lc.exports)),lc.exports}var ET=xo.exports,bT;function xH(){return bT||(bT=1,(function(e,t){var r=ET&&ET.__importDefault||function(I){return I&&I.__esModule?I:{default:I}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(aH()),i=r(hH()),a=r(gH()),s=r(vH()),o=r(bH()),c=r(TH()),l=r(IH()),u=r(AH()),d=r(NH()),f=r(CH()),p=r(jH()),y=r(LH()),g=r(kH()),b=r(BH()),O=r(FH()),m=r(VH()),T={typeof:n.default,instanceof:i.default,range:a.default,exclusiveRange:s.default,regexp:o.default,transform:c.default,uniqueItemProperties:l.default,allRequired:u.default,anyRequired:d.default,oneRequired:f.default,patternRequired:p.default,prohibited:y.default,deepProperties:g.default,deepRequired:b.default,dynamicDefaults:O.default,select:m.default};t.default=T,e.exports=T})(xo,xo.exports)),xo.exports}var ST=Vo.exports,TT;function Fj(){return TT||(TT=1,(function(e,t){var r=ST&&ST.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(xH()),i=(s,o)=>{if(Array.isArray(o)){for(const c of o)a(c)(s);return s}if(o)return a(o)(s),s;for(o in n.default)a(o)(s);return s};i.get=a;function a(s){const o=n.default[s];if(!o)throw new Error("Unknown keyword "+s);return o}t.default=i,e.exports=i,e.exports.default=i})(Vo,Vo.exports)),Vo.exports}var ed={exports:{}},wT;function Hj(){return wT||(wT=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=PE(),n=Ke(),i=wc(),a=zc(),s=Gc(),o=hi(),c="errorMessage",l=new r.Name("emUsed"),u={required:"missingProperty",dependencies:"property",dependentRequired:"property"},d=/\$\{[^}]+\}/,f=/\$\{([^}]+)\}/g,p=/^""\s*\+\s*|\s*\+\s*""$/g;function y(b){return{keyword:c,schemaType:["string","object"],post:!0,code(O){const{gen:m,data:T,schema:I,schemaValue:h,it:v}=O;if(v.createErrors===!1)return;const E=I,N=n.strConcat(o.default.instancePath,v.errorPath);m.if(r._`${o.default.errors} > 0`,()=>{if(typeof E=="object"){const[W,P]=q(E);P&&H(P),W&&k(W),B(M(E))}const V=typeof E=="string"?E:E._;V&&F(V),b.keepErrors||te()});function M({properties:V,items:W}){const P={};if(V){P.props={};for(const $ in V)P.props[$]=[]}if(W){P.items={};for(let $=0;$<W.length;$++)P.items[$]=[]}return P}function q(V){let W,P;for(const $ in V){if($==="properties"||$==="items")continue;const ee=V[$];if(typeof ee=="object"){W||(W={});const Ee=W[$]={};for(const he in ee)Ee[he]=[]}else P||(P={}),P[$]=[]}return[W,P]}function H(V){const W=m.const("emErrors",r.stringify(V)),P=m.const("templates",Y(V,I));m.forOf("err",o.default.vErrors,he=>m.if(ie(he,W),()=>m.code(r._`${W}[${he}.keyword].push(${he})`).assign(r._`${he}.${l}`,!0)));const{singleError:$}=b;if($){const he=m.let("message",r._`""`),Se=m.let("paramsErrors",r._`[]`);ee(we=>{m.if(he,()=>m.code(r._`${he} += ${typeof $=="string"?$:";"}`)),m.code(r._`${he} += ${Ee(we)}`),m.assign(Se,r._`${Se}.concat(${W}[${we}])`)}),s.reportError(O,{message:he,params:r._`{errors: ${Se}}`})}else ee(he=>s.reportError(O,{message:Ee(he),params:r._`{errors: ${W}[${he}]}`}));function ee(he){m.forIn("key",W,Se=>m.if(r._`${W}[${Se}].length`,()=>he(Se)))}function Ee(he){return r._`${he} in ${P} ? ${P}[${he}]() : ${h}[${he}]`}}function k(V){const W=m.const("emErrors",r.stringify(V)),P=[];for(const Se in V)P.push([Se,Y(V[Se],I[Se])]);const $=m.const("templates",m.object(...P)),ee=m.scopeValue("obj",{ref:u,code:r.stringify(u)}),Ee=m.let("emPropParams"),he=m.let("emParamsErrors");m.forOf("err",o.default.vErrors,Se=>m.if(ie(Se,W),()=>{m.assign(Ee,r._`${ee}[${Se}.keyword]`),m.assign(he,r._`${W}[${Se}.keyword][${Se}.params[${Ee}]]`),m.if(he,()=>m.code(r._`${he}.push(${Se})`).assign(r._`${Se}.${l}`,!0))})),m.forIn("key",W,Se=>m.forIn("keyProp",r._`${W}[${Se}]`,we=>{m.assign(he,r._`${W}[${Se}][${we}]`),m.if(r._`${he}.length`,()=>{const ae=m.const("tmpl",r._`${$}[${Se}] && ${$}[${Se}][${we}]`);s.reportError(O,{message:r._`${ae} ? ${ae}() : ${h}[${Se}][${we}]`,params:r._`{errors: ${he}}`})})}))}function B(V){const{props:W,items:P}=V;if(!W&&!P)return;const $=r._`typeof ${T} == "object"`,ee=r._`Array.isArray(${T})`,Ee=m.let("emErrors");let he,Se;const we=m.let("templates");W&&P?(he=m.let("emChildKwd"),m.if($),m.if(ee,()=>{ae(P,I.items),m.assign(he,r.str`items`)},()=>{ae(W,I.properties),m.assign(he,r.str`properties`)}),Se=r._`[${he}]`):P?(m.if(ee),ae(P,I.items),Se=r._`.items`):W&&(m.if(n.and($,n.not(ee))),ae(W,I.properties),Se=r._`.properties`),m.forOf("err",o.default.vErrors,ue=>Z(ue,Ee,fe=>m.code(r._`${Ee}[${fe}].push(${ue})`).assign(r._`${ue}.${l}`,!0))),m.forIn("key",Ee,ue=>m.if(r._`${Ee}[${ue}].length`,()=>{s.reportError(O,{message:r._`${ue} in ${we} ? ${we}[${ue}]() : ${h}${Se}[${ue}]`,params:r._`{errors: ${Ee}[${ue}]}`}),m.assign(r._`${o.default.vErrors}[${o.default.errors}-1].instancePath`,r._`${N} + "/" + ${ue}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})),m.endIf();function ae(ue,fe){m.assign(Ee,r.stringify(ue)),m.assign(we,Y(ue,fe))}}function F(V){const W=m.const("emErrs",r._`[]`);m.forOf("err",o.default.vErrors,P=>m.if(X(P),()=>m.code(r._`${W}.push(${P})`).assign(r._`${P}.${l}`,!0))),m.if(r._`${W}.length`,()=>s.reportError(O,{message:U(V),params:r._`{errors: ${W}}`}))}function te(){const V=m.const("emErrs",r._`[]`);m.forOf("err",o.default.vErrors,W=>m.if(r._`!${W}.${l}`,()=>m.code(r._`${V}.push(${W})`))),m.assign(o.default.vErrors,V).assign(o.default.errors,r._`${V}.length`)}function ie(V,W){return n.and(r._`${V}.keyword !== ${c}`,r._`!${V}.${l}`,r._`${V}.instancePath === ${N}`,r._`${V}.keyword in ${W}`,r._`${V}.schemaPath.indexOf(${v.errSchemaPath}) === 0`,r._`/^\\/[^\\/]*$/.test(${V}.schemaPath.slice(${v.errSchemaPath.length}))`)}function Z(V,W,P){m.if(n.and(r._`${V}.keyword !== ${c}`,r._`!${V}.${l}`,r._`${V}.instancePath.indexOf(${N}) === 0`),()=>{const $=m.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:r._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),ee=m.const("emMatches",r._`${$}.exec(${V}.instancePath.slice(${N}.length))`),Ee=m.const("emChild",r._`${ee} && ${ee}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);m.if(r._`${Ee} !== undefined && ${Ee} in ${W}`,()=>P(Ee))})}function X(V){return n.and(r._`${V}.keyword !== ${c}`,r._`!${V}.${l}`,n.or(r._`${V}.instancePath === ${N}`,n.and(r._`${V}.instancePath.indexOf(${N}) === 0`,r._`${V}.instancePath[${N}.length] === "/"`)),r._`${V}.schemaPath.indexOf(${v.errSchemaPath}) === 0`,r._`${V}.schemaPath[${v.errSchemaPath}.length] === "/"`)}function Y(V,W){const P=[];for(const $ in V){const ee=W[$];d.test(ee)&&P.push([$,L(ee)])}return m.object(...P)}function U(V){return d.test(V)?new i._Code(i.safeStringify(V).replace(f,(W,P)=>`" + JSON.stringify(${a.getData(P,v)}) + "`).replace(p,"")):r.stringify(V)}function L(V){return r._`function(){return ${U(V)}}`}},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}const g=(b,O={})=>{if(!b.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(b.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return b.addKeyword(y(O))};t.default=g,e.exports=g,e.exports.default=g})(ed,ed.exports)),ed.exports}var IT;function Ne(){if(IT)return sn;IT=1;var e=sn&&sn.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(sn,"__esModule",{value:!0}),sn.validateType=sn.generateLazyValidator=sn.Ajv=void 0;const t=e(PE());sn.Ajv=t.default;const r=e(Fj()),n=e(Hj());function i(s,o){let c=null;const l=(u,d)=>{if(!c){const f=new t.default({$data:!0,allErrors:!0});(0,r.default)(f),(0,n.default)(f,{singleError:!0}),o==null||o.forEach(p=>f.addKeyword(p)),c=f.compile(s),Object.defineProperty(l,"errors",{get(){return c==null?void 0:c.errors}})}return c(u,d)};return l}sn.generateLazyValidator=i;function a(s,o){return s.validate(o)}return sn.validateType=a,sn}var RT;function GH(){return RT||(RT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SceneUpdate=e.SCENE_UPDATE=void 0;const t=Ne();e.SCENE_UPDATE="SCENE_UPDATE",(function(r){r.schema={type:"object",properties:{type:{type:"string",enum:[e.SCENE_UPDATE]},payload:{type:"object",properties:{sceneId:{type:"string"},sceneType:{type:"string"}},additionalProperties:!1,required:["sceneId","sceneType"]}},required:["payload","type"]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.SceneUpdate||(e.SceneUpdate={}))})(ap)),ap}var gp={},AT;function zH(){return AT||(AT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Update=e.UPDATE=void 0;const t=Ne();e.UPDATE="update",(function(r){r.schema={type:"object",properties:{type:{type:"string",enum:[e.UPDATE]}},required:["type"]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.Update||(e.Update={}))})(gp)),gp}var OT;function WH(){return OT||(OT=1,(function(e){var t=Fi&&Fi.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=Fi&&Fi.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(GH(),e),r(zH(),e)})(Fi)),Fi}var zi={},_p={},NT;function YH(){return NT||(NT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProjectType=void 0;const t=Ne();(function(r){r.SCENE="scene",r.SMART_ITEM="smart-item",r.PORTABLE_EXPERIENCE="portable-experience",r.LIBRARY="library"})(e.ProjectType||(e.ProjectType={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.ProjectType||(e.ProjectType={}))})(_p)),_p}var vp={},Ep={},PT;function sf(){return PT||(PT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Rarity=void 0;const t=Ne();(function(r){r.UNIQUE="unique",r.MYTHIC="mythic",r.EXOTIC="exotic",r.LEGENDARY="legendary",r.EPIC="epic",r.RARE="rare",r.UNCOMMON="uncommon",r.COMMON="common"})(e.Rarity||(e.Rarity={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema);const n={[r.UNIQUE]:1,[r.MYTHIC]:10,[r.EXOTIC]:50,[r.LEGENDARY]:100,[r.EPIC]:1e3,[r.RARE]:5e3,[r.UNCOMMON]:1e4,[r.COMMON]:1e5},i={[r.UNIQUE]:"#FFE617",[r.MYTHIC]:"#FB7DE3",[r.EXOTIC]:"#E4FFB8",[r.LEGENDARY]:"#A657ED",[r.EPIC]:"#6397F2",[r.RARE]:"#3AD682",[r.UNCOMMON]:"#FF8563",[r.COMMON]:"#D4E0E0"},a={[r.UNIQUE]:"#FFB626",[r.MYTHIC]:"#FF63E1",[r.EXOTIC]:"#CAFF73",[r.LEGENDARY]:"#842DDA",[r.EPIC]:"#3D85E6",[r.RARE]:"#36CF75",[r.UNCOMMON]:"#ED6D4F",[r.COMMON]:"#ABC1C1"};function s(u){return n[u]}r.getMaxSupply=s;function o(u){return a[u]}r.getColor=o;function c(){return[r.UNIQUE,r.MYTHIC,r.EXOTIC,r.LEGENDARY,r.EPIC,r.RARE,r.UNCOMMON,r.COMMON]}r.getRarities=c;function l(u){return[i[u],a[u]]}r.getGradient=l})(e.Rarity||(e.Rarity={}))})(Ep)),Ep}var bp={},CT;function Qa(){return CT||(CT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableCategory=void 0;const t=Ne();(function(r){r.EYEBROWS="eyebrows",r.EYES="eyes",r.FACIAL_HAIR="facial_hair",r.HAIR="hair",r.BODY_SHAPE="body_shape",r.MOUTH="mouth",r.UPPER_BODY="upper_body",r.LOWER_BODY="lower_body",r.FEET="feet",r.EARRING="earring",r.EYEWEAR="eyewear",r.HAT="hat",r.HELMET="helmet",r.MASK="mask",r.TIARA="tiara",r.TOP_HEAD="top_head",r.SKIN="skin",r.HANDS_WEAR="hands_wear"})(e.WearableCategory||(e.WearableCategory={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.WearableCategory||(e.WearableCategory={}))})(bp)),bp}var Sp={},MT;function of(){return MT||(MT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpringBonesData=e.SpringBoneParams=void 0;const t=Ne();var r;(function(n){n.schema={type:"object",properties:{stiffness:{type:"number",minimum:0,maximum:4},gravityPower:{type:"number",minimum:0,maximum:2},gravityDir:{type:"array",items:[{type:"number",minimum:-10,maximum:10},{type:"number",minimum:-10,maximum:10},{type:"number",minimum:-10,maximum:10}],minItems:3,maxItems:3},drag:{type:"number",minimum:0,maximum:1},center:{type:"string",nullable:!0},isRoot:{type:"boolean",nullable:!0}},required:["stiffness","gravityPower","gravityDir","drag"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(r=e.SpringBoneParams||(e.SpringBoneParams={})),(function(n){n.schema={type:"object",properties:{version:{type:"integer",enum:[1]},models:{type:"object",additionalProperties:{type:"object",additionalProperties:r.schema,required:[]},required:[]}},required:["version","models"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.SpringBonesData||(e.SpringBonesData={}))})(Sp)),Sp}var Tp={},wp={},jT;function ME(){return jT||(jT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BodyShape=void 0;const t=Ne();(function(r){r.MALE="urn:decentraland:off-chain:base-avatars:BaseMale",r.FEMALE="urn:decentraland:off-chain:base-avatars:BaseFemale"})(e.BodyShape||(e.BodyShape={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.BodyShape||(e.BodyShape={}))})(wp)),wp}var Ip={},Rp={},DT;function Vj(){return DT||(DT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BodyPartCategory=void 0;const t=Ne();(function(r){r.HEAD="head",r.HANDS="hands"})(e.BodyPartCategory||(e.BodyPartCategory={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.BodyPartCategory||(e.BodyPartCategory={}))})(Rp)),Rp}var LT;function jE(){return LT||(LT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HideableWearableCategory=void 0;const t=Qa(),r=Ne(),n=Vj();(function(i){i.schema={oneOf:[Object.assign({},t.WearableCategory.schema),Object.assign({},n.BodyPartCategory.schema)]},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.HideableWearableCategory||(e.HideableWearableCategory={}))})(Ip)),Ip}var $T;function DE(){return $T||($T=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableRepresentation=void 0;const t=Ne(),r=ME(),n=jE();(function(i){i.schema={type:"object",properties:{bodyShapes:{type:"array",items:r.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}}},overrideHides:{type:"array",items:n.HideableWearableCategory.schema},overrideReplaces:{type:"array",items:n.HideableWearableCategory.schema}},required:["bodyShapes","mainFile","contents","overrideHides","overrideReplaces"]},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.WearableRepresentation||(e.WearableRepresentation={}))})(Tp)),Tp}var Wi={},Yi={},Ap={},Op={},kT;function Za(){return kT||(kT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.IPFSv1=e.IPFSv2=e.EthAddress=e.Color3=void 0;const t=Ne();(function(r){r.schema={type:"object",required:["r","g","b"],properties:{r:{type:"number",minimum:0,maximum:1},g:{type:"number",minimum:0,maximum:1},b:{type:"number",minimum:0,maximum:1}}};const n=(0,t.generateLazyValidator)(r.schema);r.validate=i=>n(i)})(e.Color3||(e.Color3={})),(function(r){r.schema={type:"string",pattern:"^0x[a-fA-F0-9]{40}$"};const n=new RegExp(r.schema.pattern);r.validate=i=>n.test(i)})(e.EthAddress||(e.EthAddress={})),(function(r){r.schema={type:"string",pattern:"^(ba)[a-zA-Z0-9]{57}$"};const n=new RegExp(r.schema.pattern);r.validate=i=>n.test(i)})(e.IPFSv2||(e.IPFSv2={})),(function(r){r.schema={type:"string",pattern:"^(Qm)[a-zA-Z0-9]{44}$"};const n=new RegExp(r.schema.pattern);r.validate=i=>n.test(i)})(e.IPFSv1||(e.IPFSv1={}))})(Op)),Op}var qT;function xj(){return qT||(qT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Avatar=e.Link=e.LinkUrl=e.AvatarInfo=e.Snapshots=void 0;const t=Qa(),r=Za(),n=Ne();var i;(function(c){c.schema={type:"object",required:["face256","body"],properties:{face256:r.IPFSv2.schema,body:r.IPFSv2.schema}},c.validate=(0,n.generateLazyValidator)(c.schema)})(i=e.Snapshots||(e.Snapshots={}));var a;(function(c){c.schema={type:"object",required:["bodyShape","eyes","hair","skin"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:r.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:r.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:r.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:t.WearableCategory.schema},emotes:{type:"array",items:{type:"object",properties:{slot:{type:"number"},urn:{type:"string"}},required:["slot","urn"]},nullable:!0},snapshots:Object.assign(Object.assign({},i.schema),{nullable:!0})},additionalProperties:!0},c.validate=(0,n.generateLazyValidator)(c.schema)})(a=e.AvatarInfo||(e.AvatarInfo={}));var s;(function(c){c.schema={type:"string",maxLength:2083,pattern:"^(?:https?):\\/\\/[^\\s/$.?#].[^\\s]*$"};const l=new RegExp(c.schema.pattern,"i");c.validate=u=>l.test(u)})(s=e.LinkUrl||(e.LinkUrl={}));var o;(function(c){c.schema={type:"object",required:["title","url"],properties:{title:{type:"string"},url:s.schema}}})(o=e.Link||(e.Link={})),(function(c){c.schema={type:"object",required:["name","description","ethAddress","version","tutorialStep","avatar","hasClaimedName"],properties:{userId:{type:"string"},name:{type:"string"},nameColor:Object.assign(Object.assign({},r.Color3.schema),{nullable:!0}),description:{type:"string"},links:{type:"array",maxItems:5,items:o.schema,nullable:!0},country:{nullable:!0,type:"string"},employmentStatus:{nullable:!0,type:"string"},gender:{nullable:!0,type:"string"},pronouns:{nullable:!0,type:"string"},relationshipStatus:{nullable:!0,type:"string"},sexualOrientation:{nullable:!0,type:"string"},language:{nullable:!0,type:"string"},profession:{nullable:!0,type:"string"},birthdate:{nullable:!0,type:"number"},realName:{nullable:!0,type:"string"},hobbies:{nullable:!0,type:"string"},ethAddress:r.EthAddress.schema,version:{type:"number"},tutorialStep:{type:"number"},email:{type:"string",nullable:!0},blocked:{type:"array",items:{type:"string"},nullable:!0},muted:{type:"array",items:{type:"string"},nullable:!0},interests:{type:"array",items:{type:"string"},nullable:!0},hasClaimedName:{type:"boolean"},hasConnectedWeb3:{type:"boolean",nullable:!0},avatar:a.schema},additionalProperties:!0},c.validate=(0,n.generateLazyValidator)(c.schema)})(e.Avatar||(e.Avatar={}))})(Ap)),Ap}var Np={},BT;function KH(){return BT||(BT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Profile=void 0;const t=Ne(),r=xj();(function(n){n.schema={type:"object",required:["avatars"],properties:{avatars:{type:"array",items:r.Avatar.schema}},additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.Profile||(e.Profile={}))})(Np)),Np}var UT;function XH(){return UT||(UT=1,(function(e){var t=Yi&&Yi.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=Yi&&Yi.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(xj(),e),r(KH(),e)})(Yi)),Yi}var Pp={},Cp={},FT;function Gj(){return FT||(FT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FeatureToggles=e.portableExperiencesToggles=e.toggles=void 0;const t=Ne();e.toggles=["enabled","disabled"],e.portableExperiencesToggles=[...e.toggles,"hideUi"],(function(r){r.schema={type:"object",properties:{voiceChat:{type:"string",enum:e.toggles,nullable:!0},portableExperiences:{type:"string",enum:e.portableExperiencesToggles,nullable:!0,errorMessage:`valid options are ${e.portableExperiencesToggles.join(", ")}`},nearbyVoiceChat:{type:"string",enum:e.toggles,nullable:!0,errorMessage:`valid options are ${e.toggles.join(", ")}`}},errorMessage:`valid options are ${e.toggles.join(", ")}`,required:[]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.FeatureToggles||(e.FeatureToggles={}))})(Cp)),Cp}var Mp={},HT;function zj(){return HT||(HT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorldConfiguration=void 0;const t=Ne();(function(r){r.schema={type:"object",properties:{name:{type:"string",nullable:!0},skybox:{type:"number",nullable:!0},minimapVisible:{type:"boolean",nullable:!0},miniMapConfig:{type:"object",nullable:!0,properties:{visible:{type:"boolean",nullable:!0},dataImage:{type:"string",nullable:!0},estateImage:{type:"string",nullable:!0}}},skyboxConfig:{type:"object",nullable:!0,properties:{fixedTime:{type:"number",nullable:!0},textures:{type:"array",nullable:!0,items:{type:"string"},oneOf:[{minItems:0,maxItems:0},{minItems:1,maxItems:1},{minItems:6,maxItems:6}],errorMessage:"customSkybox must be an array of 0, 1 or 6 strings"}}},fixedAdapter:{type:"string",nullable:!0},placesConfig:{type:"object",nullable:!0,properties:{optOut:{type:"boolean",nullable:!0}}}},required:[]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.WorldConfiguration||(e.WorldConfiguration={}))})(Mp)),Mp}var jp={},VT;function Wj(){return VT||(VT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SceneParcels=void 0;const t=Ne();(function(r){r.schema={description:'Describes a scene, a set of parcels whose content is treated as the same entity. A list of parcels is listed, for which one of them is considered the "base" for positioning purposes.',type:"object",properties:{base:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},parcels:{type:"array",items:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},minItems:1}},additionalProperties:!0,required:["base","parcels"]},r.schemaValidator=(0,t.generateLazyValidator)(r.schema),r.validate=n=>r.schemaValidator(n)&&n.parcels.includes(n.base)})(e.SceneParcels||(e.SceneParcels={}))})(jp)),jp}var Dp={},To={},xT;function LE(){return xT||(xT=1,Object.defineProperty(To,"__esModule",{value:!0}),To.displayableProperties=void 0,To.displayableProperties={menuBarIcon:{description:"Name of the file used as icon for the MenuBar",type:"string",nullable:!0}}),To}var Lp={},GT;function Yj(){return GT||(GT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Source=void 0;const t=Ne();(function(r){r.schema={type:"object",properties:{version:{type:"number",nullable:!0},origin:{type:"string"},projectId:{type:"string"},point:{type:"object",properties:{x:{type:"integer"},y:{type:"integer"}},nullable:!0,required:["x","y"]},rotation:{type:"string",enum:["north","east","south","west"],nullable:!0},layout:{type:"object",properties:{rows:{type:"integer"},cols:{type:"integer"}},nullable:!0,required:["rows","cols"]},isEmpty:{type:"boolean",nullable:!0}},additionalProperties:!0,required:["origin","projectId"]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.Source||(e.Source={}))})(Lp)),Lp}var $p={},zT;function Kj(){return zT||(zT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpawnPoint=void 0;const t=Ne();(function(r){r.schema={type:"object",properties:{name:{type:"string",nullable:!0},position:{type:"object",oneOf:[{$ref:"#single-position"},{$ref:"#multi-position"}],required:["x","y","z"]},default:{type:"boolean",nullable:!0},cameraTarget:{type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"],nullable:!0}},required:["position"],definitions:{"single-position":{$id:"#single-position",type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"]},"multi-position":{$id:"#multi-position",type:"object",properties:{x:{type:"array",items:{type:"number"},minItems:1},y:{type:"array",items:{type:"number"},minItems:1},z:{type:"array",items:{type:"number"},minItems:1}},required:["x","y","z"]}}},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.SpawnPoint||(e.SpawnPoint={}))})($p)),$p}var WT;function JH(){return WT||(WT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scene=e.RequiredPermission=void 0;const t=Ne(),r=LE(),n=Gj(),i=Wj(),a=Yj(),s=Kj(),o=zj();var c;(function(l){l.ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE="ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE",l.ALLOW_TO_TRIGGER_AVATAR_EMOTE="ALLOW_TO_TRIGGER_AVATAR_EMOTE",l.ALLOW_MEDIA_HOSTNAMES="ALLOW_MEDIA_HOSTNAMES",l.USE_WEB3_API="USE_WEB3_API",l.USE_FETCH="USE_FETCH",l.USE_WEBSOCKET="USE_WEBSOCKET",l.OPEN_EXTERNAL_LINK="OPEN_EXTERNAL_LINK"})(c=e.RequiredPermission||(e.RequiredPermission={})),(function(l){l.schema={type:"object",properties:Object.assign(Object.assign({isPortableExperience:{description:"Define the current scene as a Portable Experience",type:"boolean",nullable:!0},main:{description:"File that contains the entry point of the scene's code",type:"string",minLength:1},scene:i.SceneParcels.schema},r.displayableProperties),{display:{description:"Information related to how should this land be displayed apart from the normal rendering of the scene",type:"object",properties:{title:{description:"A name so other users can identify what the contents of this land should be",type:"string",nullable:!0},favicon:{description:"DEPRECATED. Allow the land owner to set up a favicon to this land",type:"string",nullable:!0},description:{description:"A description that will be shown on client's nav map when the scene is selected",type:"string",nullable:!0},navmapThumbnail:{type:"string",nullable:!0}},nullable:!0,required:[]},owner:{type:"string",nullable:!0},creator:{type:"string",nullable:!0,description:"Wallet address of the creator of the scene",pattern:"^(0x[a-fA-F0-9]{40})?$",errorMessage:"Creator must be a valid wallet address"},contact:{description:"Describe different ways of contacting the land owner",type:"object",properties:{name:{type:"string",nullable:!0},email:{type:"string",nullable:!0},im:{type:"string",nullable:!0},url:{type:"string",nullable:!0}},nullable:!0,required:[]},tags:{type:"array",items:{type:"string",minLength:1},nullable:!0},source:Object.assign(Object.assign({},a.Source.schema),{nullable:!0}),spawnPoints:{type:"array",items:s.SpawnPoint.schema,nullable:!0},requiredPermissions:{type:"array",items:{type:"string",enum:Object.values(c)},uniqueItems:!0,nullable:!0},featureToggles:Object.assign(Object.assign({},n.FeatureToggles.schema),{nullable:!0}),worldConfiguration:Object.assign(Object.assign({},o.WorldConfiguration.schema),{nullable:!0}),allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!0}}),additionalProperties:!0,required:["main","scene"],dependencies:{requiredPermissions:{if:{properties:{requiredPermissions:{type:"array",contains:{const:c.ALLOW_MEDIA_HOSTNAMES}}}},then:{properties:{allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!1,minItems:1}},required:["allowedMediaHostnames"]},else:{properties:{allowedMediaHostnames:{type:["null","array"],nullable:!0,maxItems:0}}}}}},l.validate=(0,t.generateLazyValidator)(l.schema)})(e.Scene||(e.Scene={}))})(Dp)),Dp}var YT;function QH(){return YT||(YT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpawnPoint=e.Source=e.RequiredPermission=e.Scene=e.SceneParcels=e.WorldConfiguration=e.FeatureToggles=void 0;var t=Gj();Object.defineProperty(e,"FeatureToggles",{enumerable:!0,get:function(){return t.FeatureToggles}});var r=zj();Object.defineProperty(e,"WorldConfiguration",{enumerable:!0,get:function(){return r.WorldConfiguration}});var n=Wj();Object.defineProperty(e,"SceneParcels",{enumerable:!0,get:function(){return n.SceneParcels}});var i=JH();Object.defineProperty(e,"Scene",{enumerable:!0,get:function(){return i.Scene}}),Object.defineProperty(e,"RequiredPermission",{enumerable:!0,get:function(){return i.RequiredPermission}});var a=Yj();Object.defineProperty(e,"Source",{enumerable:!0,get:function(){return a.Source}});var s=Kj();Object.defineProperty(e,"SpawnPoint",{enumerable:!0,get:function(){return s.SpawnPoint}})})(Pp)),Pp}var Ki={},kp={},qp={},KT;function Xj(){return KT||(KT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Locale=void 0;const t=Ne();(function(r){r.EN="en",r.ES="es"})(e.Locale||(e.Locale={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.Locale||(e.Locale={}))})(qp)),qp}var XT;function Jj(){return XT||(XT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.I18N=void 0;const t=Ne(),r=Xj();(function(n){n.schema={type:"object",properties:{code:r.Locale.schema,text:{type:"string"}},additionalProperties:!0,required:["code","text"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.I18N||(e.I18N={}))})(kp)),kp}var Bp={},JT;function Qj(){return JT||(JT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Metrics=void 0;const t=Ne();(function(r){r.schema={type:"object",properties:{triangles:{type:"number"},materials:{type:"number"},textures:{type:"number"},meshes:{type:"number"},bodies:{type:"number"},entities:{type:"number"}},required:["triangles","materials","textures","meshes","bodies","entities"]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.Metrics||(e.Metrics={}))})(Bp)),Bp}var Up={},QT;function $E(){return QT||(QT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isStandard=e.standardProperties=void 0;const t=sf(),r=Ne();e.standardProperties={collectionAddress:{type:"string",nullable:!1},rarity:t.Rarity.schema};const n={type:"object",properties:Object.assign({},e.standardProperties),required:["collectionAddress","rarity"]},i=(0,r.generateLazyValidator)(n);function a(s){return i(s)}e.isStandard=a})(Up)),Up}var Fp={},Xi={},Hp={},ZT;function ZH(){return ZT||(ZT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MerkleProof=void 0;const t=Ne();(function(r){r.schema={type:"object",properties:{proof:{type:"array",items:{type:"string"}},index:{type:"number"},hashingKeys:{type:"array",items:{type:"string"}},entityHash:{type:"string"}},required:["entityHash","hashingKeys","index","proof"],additionalProperties:!0},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.MerkleProof||(e.MerkleProof={}))})(Hp)),Hp}var ew;function Zj(){return ew||(ew=1,(function(e){var t=Xi&&Xi.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=Xi&&Xi.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(ZH(),e)})(Xi)),Xi}var Vp={},tw;function kE(){return tw||(tw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createMappingsHelper=e.AddMappingError=e.Mappings=e.Mapping=e.MultipleMapping=e.RangeMapping=e.AnyMapping=e.SingleMapping=e.ContractNetwork=e.MappingType=void 0;const t=Ne();var r;(function(d){d.SINGLE="single",d.ANY="any",d.MULTIPLE="multiple",d.RANGE="range"})(r=e.MappingType||(e.MappingType={}));var n;(function(d){d.MAINNET="mainnet",d.BASE_MAINNET="base_mainnet",d.BASE_SEPOLIA="base_sepolia",d.MONAD_MAINNET="monad_mainnet",d.MONAD_TESTNET="monad_testnet",d.APE_MAINNET="ape_mainnet",d.APE_CALDERA="ape_caldera",d.MATIC="matic",d.SEPOLIA="sepolia",d.AMOY="amoy"})(n=e.ContractNetwork||(e.ContractNetwork={}));var i;(function(d){d.schema={type:"object",properties:{type:{type:"string",const:r.SINGLE},id:{type:"string",pattern:"^[0-9]+$"}},required:["type","id"],additionalProperties:!1},d.validate=(0,t.generateLazyValidator)(d.schema)})(i=e.SingleMapping||(e.SingleMapping={}));var a;(function(d){d.schema={type:"object",properties:{type:{type:"string",const:r.ANY}},required:["type"],additionalProperties:!1},d.validate=(0,t.generateLazyValidator)(d.schema)})(a=e.AnyMapping||(e.AnyMapping={}));var s;(function(d){d._fromLessThanOrEqualTo={keyword:"_fromLessThanOrEqualTo",validate:function(p,y){if(!y||!y.from||!y.to)return!1;let{to:g,from:b}=y;return(typeof b!="bigint"||typeof g!="bigint")&&(b=BigInt(b),g=BigInt(g)),b<=g},errors:!1},d.schema={type:"object",properties:{type:{type:"string",const:r.RANGE},from:{type:"string",pattern:"^[0-9]+$"},to:{type:"string",pattern:"^[0-9]+$"}},required:["type","from","to"],additionalProperties:!1,_fromLessThanOrEqualTo:!0},d.validate=(0,t.generateLazyValidator)(d.schema,[d._fromLessThanOrEqualTo])})(s=e.RangeMapping||(e.RangeMapping={}));var o;(function(d){d.schema={type:"object",properties:{type:{type:"string",const:r.MULTIPLE},ids:{type:"array",items:{type:"string",pattern:"^[0-9]+$"},minItems:1,uniqueItems:!0}},required:["type","ids"],additionalProperties:!1},d.validate=(0,t.generateLazyValidator)(d.schema)})(o=e.MultipleMapping||(e.MultipleMapping={}));var c;(function(d){d.schema={type:"object",properties:{type:{type:"string",enum:Object.values(r)}},required:["type"],oneOf:[i.schema,a.schema,s.schema,o.schema]},d.validate=(0,t.generateLazyValidator)(d.schema,[s._fromLessThanOrEqualTo])})(c=e.Mapping||(e.Mapping={})),(function(d){d._isMappingsValid={keyword:"_isMappingsValid",validate:function(p,y){try{u(y)}catch{return!1}return!0},errors:!1},d.innerSchema={type:"object",patternProperties:{"^0x[0-9a-fA-F]{40}$":{type:"array",items:c.schema}},minProperties:1,required:[],additionalProperties:!1};const f=Object.values(n).reduce((p,y)=>(p[y]=d.innerSchema,p),{});d.schema={type:"object",properties:f,minProperties:1,additionalProperties:!1,_isMappingsValid:!0},d.validate=(0,t.generateLazyValidator)(d.schema,[s._fromLessThanOrEqualTo,d._isMappingsValid])})(e.Mappings||(e.Mappings={}));class l extends Error{constructor(f,p,y){super(f),this.existingMapping=p,this.conflictingMapping=y}}e.AddMappingError=l;function u(d={}){const f={};for(const[h,v]of Object.entries(d)){f[h]={};for(const[E,N]of Object.entries(v))for(const M of N)T(h,E,M)}function p(){return JSON.parse(JSON.stringify(f))}function y(h,v,E){const N=BigInt(h);return N>=BigInt(v)&&N<=BigInt(E)}function g(h,v){switch(v.type){case r.SINGLE:return h.id===v.id;case r.MULTIPLE:return v.ids.includes(h.id);case r.RANGE:return y(h.id,v.from,v.to);default:return!1}}function b(h,v){switch(v.type){case r.SINGLE:return h.ids.includes(v.id);case r.MULTIPLE:return h.ids.some(E=>v.ids.includes(E));case r.RANGE:return h.ids.some(E=>y(E,v.from,v.to));default:return!1}}function O(h,v){switch(v.type){case r.SINGLE:return y(v.id,h.from,h.to);case r.MULTIPLE:return v.ids.some(E=>y(E,h.from,h.to));case r.RANGE:return BigInt(h.from)<=BigInt(v.to)&&BigInt(h.to)>=BigInt(v.from)}}function m(h,v){if(h.type===r.ANY||v.type===r.ANY)return!0;switch(h.type){case r.SINGLE:return g(h,v);case r.MULTIPLE:return b(h,v);case r.RANGE:return O(h,v)}}function T(h,v,E){var N,M;const q=v.toLowerCase();f[h]=(N=f[h])!==null&&N!==void 0?N:{},f[h][q]=(M=f[h][q])!==null&&M!==void 0?M:[];for(const H of f[h][q])if(m(H,E))throw new l(`Cannot add mapping to contract ${q} on network ${h} because it overlaps with existing mapping`,H,E);f[h][q].push(E)}function I(h,v,E){var N;return!((N=f[h])===null||N===void 0)&&N[v]?f[h][v].some(M=>{switch(M.type){case r.SINGLE:return M.id===E;case r.ANY:return!0;case r.MULTIPLE:return M.ids.includes(E);case r.RANGE:return BigInt(E)>=BigInt(M.from)&&BigInt(E)<=BigInt(M.to)}}):!1}return{addMapping:T,getMappings:p,includesNft:I}}e.createMappingsHelper=u})(Vp)),Vp}var rw;function qE(){return rw||(rw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isThirdParty=e.schema=void 0;const t=Ne(),r=Zj(),n=kE();e.schema={type:"object",properties:{merkleProof:r.MerkleProof.schema,content:{type:"object",nullable:!1,additionalProperties:{type:"string"},required:[]},mappings:Object.assign({nullable:!0},n.Mappings.schema)},required:["merkleProof","content"],_containsHashingKeys:!0};const i={keyword:"_containsHashingKeys",validate:function(o,c){var l;const u=c;return!((l=u==null?void 0:u.merkleProof)===null||l===void 0)&&l.hashingKeys?u.merkleProof.hashingKeys.every(d=>u.hasOwnProperty(d)):!1},errors:!1},a=(0,t.generateLazyValidator)(e.schema,[i,n.RangeMapping._fromLessThanOrEqualTo,n.Mappings._isMappingsValid]);function s(o){return a(o)}e.isThirdParty=s})(Fp)),Fp}var xp={},Gp={},cn={},nw;function eD(){if(nw)return cn;nw=1,Object.defineProperty(cn,"__esModule",{value:!0}),cn.isBaseEmote=cn.isBaseAvatar=cn.requiredBaseItemProps=cn.baseItemProperties=void 0;const e=Jj(),t=Qj(),r=LE();cn.baseItemProperties=Object.assign(Object.assign({},r.displayableProperties),{id:{type:"string"},name:{type:"string"},description:{type:"string"},i18n:{type:"array",items:e.I18N.schema,minItems:1,uniqueItemProperties:["code"],errorMessage:'${0#} array should not have duplicates for "code"'},thumbnail:{type:"string"},image:{type:"string"},metrics:Object.assign(Object.assign({},t.Metrics.schema),{nullable:!0})}),cn.requiredBaseItemProps=["id","name","description","i18n","thumbnail","image"];function n(a){if(!a||!a.id)return!1;const s=a.id.split(":"),o=s[1]==="decentraland",c=s[3]==="base-avatars";return s.length===5&&o&&c}cn.isBaseAvatar=n;function i(a){if(!a||!a.id)return!1;const s=a.id.split(":");return s.length===5&&s[1]==="decentraland"&&s[3]==="base-emotes"}return cn.isBaseEmote=i,cn}var iw;function eV(){return iw||(iw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Wearable=void 0;const t=Ne(),r=Qa(),n=DE(),i=eD(),a=$E(),s=qE(),o=jE(),c=kE(),l=of();(function(u){u.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},i.baseItemProperties),a.standardProperties),s.schema.properties.thirdPartyProps),{data:{type:"object",properties:{replaces:{type:"array",items:o.HideableWearableCategory.schema},hides:{type:"array",items:o.HideableWearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.WearableRepresentation.schema,minItems:1},category:r.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:o.HideableWearableCategory.schema},blockVrmExport:{type:"boolean",nullable:!0},outlineCompatible:{type:"boolean",nullable:!0},springBones:Object.assign(Object.assign({},l.SpringBonesData.schema),{nullable:!0})},required:["replaces","hides","tags","representations","category"]}}),additionalProperties:!0,required:[],oneOf:[{required:["id","i18n"],prohibited:["merkleProof","content","collectionAddress","rarity","mappings"],_isBaseAvatar:!0},{required:[...i.requiredBaseItemProps,"data","collectionAddress","rarity"],prohibited:["merkleProof","content","mappings"]},{required:[...i.requiredBaseItemProps,"data","merkleProof","content"],prohibited:["collectionAddress","rarity"],_isThirdParty:!0}],errorMessage:{oneOf:"either standard XOR thirdparty properties conditions must be met"}};const d={keyword:"_isThirdParty",validate:(p,y)=>!p||(0,s.isThirdParty)(y),errors:!1},f={keyword:"_isBaseAvatar",validate:(p,y)=>!p||(0,i.isBaseAvatar)(y),errors:!1};u.validate=(0,t.generateLazyValidator)(u.schema,[d,f,c.RangeMapping._fromLessThanOrEqualTo,c.Mappings._isMappingsValid])})(e.Wearable||(e.Wearable={}))})(Gp)),Gp}var aw;function tV(){return aw||(aw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpringBonesData=e.SpringBoneParams=e.HideableWearableCategory=e.BodyPartCategory=e.WearableCategory=e.Wearable=e.WearableRepresentation=void 0;var t=DE();Object.defineProperty(e,"WearableRepresentation",{enumerable:!0,get:function(){return t.WearableRepresentation}});var r=eV();Object.defineProperty(e,"Wearable",{enumerable:!0,get:function(){return r.Wearable}});var n=Qa();Object.defineProperty(e,"WearableCategory",{enumerable:!0,get:function(){return n.WearableCategory}});var i=Vj();Object.defineProperty(e,"BodyPartCategory",{enumerable:!0,get:function(){return i.BodyPartCategory}});var a=jE();Object.defineProperty(e,"HideableWearableCategory",{enumerable:!0,get:function(){return a.HideableWearableCategory}});var s=of();Object.defineProperty(e,"SpringBoneParams",{enumerable:!0,get:function(){return s.SpringBoneParams}}),Object.defineProperty(e,"SpringBonesData",{enumerable:!0,get:function(){return s.SpringBonesData}})})(xp)),xp}var zp={},Wp={},Yp={},Kp={},sw;function tD(){return sw||(sw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteCategory=void 0;const t=Ne();(function(r){r.DANCE="dance",r.STUNT="stunt",r.GREETINGS="greetings",r.FUN="fun",r.POSES="poses",r.REACTIONS="reactions",r.HORROR="horror",r.MISCELLANEOUS="miscellaneous"})(e.EmoteCategory||(e.EmoteCategory={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.EmoteCategory||(e.EmoteCategory={}))})(Kp)),Kp}var Xp={},ow;function rD(){return ow||(ow=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteRepresentationADR74=void 0;const t=Ne(),r=ME();(function(n){n.schema={type:"object",properties:{bodyShapes:{type:"array",items:r.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}},errorMessage:{contains:"contents should contain mainFile: ${1/mainFile}"}}},required:["bodyShapes","mainFile","contents"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.EmoteRepresentationADR74||(e.EmoteRepresentationADR74={}))})(Xp)),Xp}var Jp={},cw;function nD(){return cw||(cw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.OutcomeGroup=e.StartAnimation=e.EmoteClip=e.ArmatureId=void 0;const t=Ne();var r;(function(i){i.Armature="Armature",i.Armature_Prop="Armature_Prop",i.Armature_Other="Armature_Other"})(r=e.ArmatureId||(e.ArmatureId={})),(function(i){i.schema={type:"string",enum:Object.values(i)},i.validate=(0,t.generateLazyValidator)(i.schema)})(r=e.ArmatureId||(e.ArmatureId={}));var n;(function(i){i.schema={type:"object",properties:{animation:{type:"string",minLength:1,errorMessage:"animation must be a non-empty string (GLB clip name)"}},required:["animation"],additionalProperties:!1,errorMessage:{required:{animation:"animation is required (GLB clip name)"}}},i.validate=(0,t.generateLazyValidator)(i.schema)})(n=e.EmoteClip||(e.EmoteClip={})),(function(i){i.schema={type:"object",properties:{loop:{type:"boolean",errorMessage:"startAnimation.loop must be a boolean"},[r.Armature]:Object.assign(Object.assign({},n.schema),{errorMessage:"startAnimation.Armature is required and must contain valid animation data"}),[r.Armature_Prop]:Object.assign(Object.assign({},n.schema),{nullable:!0,errorMessage:"startAnimation.Armature_Prop must contain valid animation data when provided"}),audio:{type:"string",nullable:!0,errorMessage:"audio must be a string (audio clip filename) when provided"}},required:["loop",r.Armature],additionalProperties:!1,errorMessage:{required:{loop:"startAnimation.loop is required",[r.Armature]:"startAnimation.Armature is required"}}},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.StartAnimation||(e.StartAnimation={})),(function(i){i.schema={type:"object",properties:{title:{type:"string",minLength:1,errorMessage:"outcome.title must be a non-empty string"},loop:{type:"boolean",errorMessage:"outcome.loop must be a boolean"},clips:{type:"object",properties:Object.values(r).reduce((a,s)=>(a[s]=Object.assign(Object.assign({},n.schema),{nullable:!0,errorMessage:`outcome.clips.${s} must contain valid animation data when provided`}),a),{}),additionalProperties:!0,minProperties:1,errorMessage:"outcome.clips must contain at least one armature animation"},audio:{type:"string",nullable:!0,errorMessage:"audio must be a string (audio clip filename) when provided"}},required:["title","loop","clips"],additionalProperties:!1,errorMessage:{required:{title:"outcome.title is required",loop:"outcome.loop is required",clips:"outcome.clips is required"}}},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.OutcomeGroup||(e.OutcomeGroup={}))})(Jp)),Jp}var uw;function iD(){return uw||(uw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteDataADR74=void 0;const t=tD(),r=Ne(),n=rD(),i=nD();(function(a){a.schema={type:"object",properties:{tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.EmoteRepresentationADR74.schema,minItems:1},category:t.EmoteCategory.schema,loop:{type:"boolean"},startAnimation:Object.assign(Object.assign({},i.StartAnimation.schema),{nullable:!0}),randomizeOutcomes:{type:"boolean",nullable:!0},outcomes:{type:"array",items:i.OutcomeGroup.schema,minItems:1,maxItems:3,nullable:!0}},required:["category","tags","representations","loop"],dependencies:{startAnimation:["randomizeOutcomes","outcomes"],randomizeOutcomes:["startAnimation","outcomes"],outcomes:["startAnimation","randomizeOutcomes"]},additionalProperties:!0},a.validate=(0,r.generateLazyValidator)(a.schema)})(e.EmoteDataADR74||(e.EmoteDataADR74={}))})(Yp)),Yp}var lw;function rV(){return lw||(lw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Emote=void 0;const t=aD(),r=Ne(),n=eD(),i=$E(),a=qE(),s=iD();(function(o){o.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},n.baseItemProperties),i.standardProperties),a.schema.properties),{emoteDataADR74:s.EmoteDataADR74.schema}),additionalProperties:!0,required:[...n.requiredBaseItemProps],oneOf:[{required:["emoteDataADR74"],oneOf:[{required:["id","i18n"],prohibited:["merkleProof","content","collectionAddress","rarity"],_isBaseEmote:!0},{required:["collectionAddress","rarity"],prohibited:["merkleProof","content"],errorMessage:"standard properties conditions are not met"},{required:["merkleProof","content","id","name","description","i18n","image","thumbnail","emoteDataADR74"],_isThirdParty:!0,prohibited:["collectionAddress","rarity"],errorMessage:"thirdparty properties conditions are not met"}],errorMessage:{oneOf:"emote should have either standard or thirdparty properties"}}],errorMessage:{oneOf:'emote should have "emoteDataADR74" and match its schema'}};const c={keyword:"_isThirdParty",validate:(u,d)=>!u||(0,t.isThirdParty)(d),errors:!1},l={keyword:"_isBaseEmote",validate:(u,d)=>!u||(0,n.isBaseEmote)(d),errors:!1};o.validate=(0,r.generateLazyValidator)(o.schema,[c,l,t.RangeMapping._fromLessThanOrEqualTo,t.Mappings._isMappingsValid])})(e.Emote||(e.Emote={}))})(Wp)),Wp}var Qp={},dw;function nV(){return dw||(dw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmotePlayMode=void 0;const t=Ne();(function(r){r.SIMPLE="simple",r.LOOP="loop"})(e.EmotePlayMode||(e.EmotePlayMode={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.EmotePlayMode||(e.EmotePlayMode={}))})(Qp)),Qp}var Zp={},fw;function iV(){return fw||(fw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteOutcomeType=void 0;const t=Ne();(function(r){r.SIMPLE_OUTCOME="so",r.MULTIPLE_OUTCOME="mo",r.RANDOM_OUTCOME="ro"})(e.EmoteOutcomeType||(e.EmoteOutcomeType={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.EmoteOutcomeType||(e.EmoteOutcomeType={}))})(Zp)),Zp}var pw;function aV(){return pw||(pw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteOutcomeType=e.EmotePlayMode=e.EmoteCategory=e.StartAnimation=e.OutcomeGroup=e.EmoteClip=e.ArmatureId=e.EmoteDataADR74=e.EmoteRepresentationADR74=e.Emote=void 0;var t=rV();Object.defineProperty(e,"Emote",{enumerable:!0,get:function(){return t.Emote}});var r=rD();Object.defineProperty(e,"EmoteRepresentationADR74",{enumerable:!0,get:function(){return r.EmoteRepresentationADR74}});var n=iD();Object.defineProperty(e,"EmoteDataADR74",{enumerable:!0,get:function(){return n.EmoteDataADR74}});var i=nD();Object.defineProperty(e,"ArmatureId",{enumerable:!0,get:function(){return i.ArmatureId}}),Object.defineProperty(e,"EmoteClip",{enumerable:!0,get:function(){return i.EmoteClip}}),Object.defineProperty(e,"OutcomeGroup",{enumerable:!0,get:function(){return i.OutcomeGroup}}),Object.defineProperty(e,"StartAnimation",{enumerable:!0,get:function(){return i.StartAnimation}});var a=tD();Object.defineProperty(e,"EmoteCategory",{enumerable:!0,get:function(){return a.EmoteCategory}});var s=nV();Object.defineProperty(e,"EmotePlayMode",{enumerable:!0,get:function(){return s.EmotePlayMode}});var o=iV();Object.defineProperty(e,"EmoteOutcomeType",{enumerable:!0,get:function(){return o.EmoteOutcomeType}})})(zp)),zp}var mw;function aD(){return mw||(mw=1,(function(e){var t=Ki&&Ki.__createBinding||(Object.create?(function(l,u,d,f){f===void 0&&(f=d);var p=Object.getOwnPropertyDescriptor(u,d);(!p||("get"in p?!u.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return u[d]}}),Object.defineProperty(l,f,p)}):(function(l,u,d,f){f===void 0&&(f=d),l[f]=u[d]})),r=Ki&&Ki.__exportStar||function(l,u){for(var d in l)d!=="default"&&!Object.prototype.hasOwnProperty.call(u,d)&&t(u,l,d)};Object.defineProperty(e,"__esModule",{value:!0}),e.isThirdParty=e.isStandard=e.BodyShape=e.Metrics=e.Locale=e.I18N=void 0;var n=Jj();Object.defineProperty(e,"I18N",{enumerable:!0,get:function(){return n.I18N}});var i=Xj();Object.defineProperty(e,"Locale",{enumerable:!0,get:function(){return i.Locale}});var a=Qj();Object.defineProperty(e,"Metrics",{enumerable:!0,get:function(){return a.Metrics}});var s=ME();Object.defineProperty(e,"BodyShape",{enumerable:!0,get:function(){return s.BodyShape}});var o=$E();Object.defineProperty(e,"isStandard",{enumerable:!0,get:function(){return o.isStandard}});var c=qE();Object.defineProperty(e,"isThirdParty",{enumerable:!0,get:function(){return c.isThirdParty}}),r(kE(),e),r(tV(),e),r(aV(),e)})(Ki)),Ki}var em={},tm={},hw;function Wc(){return hw||(hw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AuthChain=e.AuthLink=e.AuthLinkType=void 0;const t=Ne();var r;(function(i){i.SIGNER="SIGNER",i.ECDSA_PERSONAL_EPHEMERAL="ECDSA_EPHEMERAL",i.ECDSA_PERSONAL_SIGNED_ENTITY="ECDSA_SIGNED_ENTITY",i.ECDSA_EIP_1654_EPHEMERAL="ECDSA_EIP_1654_EPHEMERAL",i.ECDSA_EIP_1654_SIGNED_ENTITY="ECDSA_EIP_1654_SIGNED_ENTITY"})(r=e.AuthLinkType||(e.AuthLinkType={}));var n;(function(i){i.schema={type:"object",properties:{type:{type:"string",enum:Object.values(r)},payload:{type:"string"},signature:{type:"string",nullable:!0}},required:["payload","type"],if:{properties:{type:{not:{const:r.SIGNER}}}},then:{required:["signature"]},else:{oneOf:[{properties:{signature:{type:"string",const:""}},required:["signature"]},{properties:{signature:{type:"null"}}}]}},i.validate=(0,t.generateLazyValidator)(i.schema)})(n=e.AuthLink||(e.AuthLink={})),(function(i){i.schema={type:"array",items:n.schema,minItems:1},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.AuthChain||(e.AuthChain={}))})(tm)),tm}var yw;function sV(){return yw||(yw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PointerChangesSyncDeployment=e.SnapshotSyncDeployment=void 0;const t=Za(),r=Wc(),n=Ne();(function(i){i.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:r.AuthChain.schema,entityTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:t.IPFSv1.schema}},{properties:{entityId:t.IPFSv2.schema}}],required:["entityId","entityType","pointers","entityTimestamp","authChain"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.SnapshotSyncDeployment||(e.SnapshotSyncDeployment={})),(function(i){i.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:r.AuthChain.schema,entityTimestamp:{type:"number",minimum:0},localTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:t.IPFSv1.schema}},{properties:{entityId:t.IPFSv2.schema}}],required:["entityId","entityType","pointers","localTimestamp","entityTimestamp","authChain"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.PointerChangesSyncDeployment||(e.PointerChangesSyncDeployment={}))})(em)),em}var rm={},nm={},gw;function sD(){return gw||(gw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ContentMapping=void 0;const t=Za(),r=Ne();(function(n){n.schema={type:"object",properties:{file:{type:"string",minLength:1},hash:{type:"string",oneOf:[t.IPFSv1.schema,t.IPFSv2.schema]}},required:["file","hash"]},n.validate=(0,r.generateLazyValidator)(n.schema)})(e.ContentMapping||(e.ContentMapping={}))})(nm)),nm}var _w;function oD(){return _w||(_w=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Entity=e.EntityType=void 0;const t=Za(),r=sD(),n=Ne();(function(i){i.SCENE="scene",i.PROFILE="profile",i.WEARABLE="wearable",i.STORE="store",i.EMOTE="emote",i.OUTFITS="outfits"})(e.EntityType||(e.EntityType={})),(function(i){i.schema={type:"object",properties:{version:{type:"string",enum:["v3"]},id:{type:"string",oneOf:[t.IPFSv1.schema,t.IPFSv2.schema]},type:{type:"string"},pointers:{type:"array",items:{type:"string",minLength:1}},timestamp:{type:"number",minimum:0},content:{type:"array",items:r.ContentMapping.schema},metadata:{type:"object",nullable:!0}},required:["version","id","type","pointers","timestamp","content"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.Entity||(e.Entity={}))})(rm)),rm}var im={},vw;function oV(){return vw||(vw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DeploymentWithAuthChain=void 0;const t=Wc(),r=Ne();(function(n){n.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},localTimestamp:{type:"number",minimum:0},authChain:t.AuthChain.schema},required:["entityId","entityType","pointers","localTimestamp","authChain"]},n.validate=(0,r.generateLazyValidator)(n.schema)})(e.DeploymentWithAuthChain||(e.DeploymentWithAuthChain={}))})(im)),im}var Ji={},am={},Ew;function cV(){return Ew||(Ew=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Outfits=e.Outfit=void 0;const t=Qa(),r=Za(),n=Ne();var i;(function(a){a.schema={type:"object",required:["bodyShape","eyes","hair","skin","wearables"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:r.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:r.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:r.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:t.WearableCategory.schema}},additionalProperties:!0},a.validate=(0,n.generateLazyValidator)(a.schema)})(i=e.Outfit||(e.Outfit={})),(function(a){a.schema={type:"object",required:["outfits","namesForExtraSlots"],properties:{outfits:{type:"array",items:{type:"object",required:["slot","outfit"],properties:{slot:{type:"number"},outfit:i.schema}}},namesForExtraSlots:{type:"array",uniqueItems:!0,items:{type:"string"}}},additionalProperties:!0},a.validate=(0,n.generateLazyValidator)(a.schema)})(e.Outfits||(e.Outfits={}))})(am)),am}var bw;function uV(){return bw||(bw=1,(function(e){var t=Ji&&Ji.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=Ji&&Ji.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(cV(),e)})(Ji)),Ji}var Qi={},sm={},Sw;function cD(){return Sw||(Sw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NotificationOptOutScope=e.NotificationType=void 0,(function(t){t.BADGE_GRANTED="badge_granted",t.BID_ACCEPTED="bid_accepted",t.BID_RECEIVED="bid_received",t.EVENTS_STARTED="events_started",t.EVENTS_STARTS_SOON="events_starts_soon",t.EVENT_CREATED="event_created",t.EVENT_APPROVED="event_approved",t.EVENT_REJECTED="event_rejected",t.EVENT_DELETED="event_deleted",t.GOVERNANCE_ANNOUNCEMENT="governance_announcement",t.GOVERNANCE_AUTHORED_PROPOSAL_FINISHED="governance_authored_proposal_finished",t.GOVERNANCE_COAUTHOR_REQUESTED="governance_coauthor_requested",t.GOVERNANCE_CLIFF_ENDED="governance_cliff_ended",t.GOVERNANCE_NEW_COMMENT_ON_PROJECT_UPDATE="governance_new_comment_on_project_update",t.GOVERNANCE_NEW_COMMENT_ON_PROPOSAL="governance_new_comment_on_proposal",t.GOVERNANCE_PROPOSAL_ENACTED="governance_proposal_enacted",t.GOVERNANCE_VOTING_ENDED_VOTER="governance_voting_ended_voter",t.GOVERNANCE_PITCH_PASSED="governance_pitch_passed",t.GOVERNANCE_TENDER_PASSED="governance_tender_passed",t.GOVERNANCE_WHALE_VOTE="governance_whale_vote",t.GOVERNANCE_VOTED_ON_BEHALF="governance_voted_on_behalf",t.ITEM_SOLD="item_sold",t.ITEM_PUBLISHED="item_published",t.LAND_RENTAL_ENDED="rental_ended",t.LAND_RENTED="rental_started",t.REWARD_ASSIGNED="reward_assignment",t.REWARD_CAMPAIGN_OUT_OF_FUNDS="reward_campaign_out_of_funds",t.REWARD_CAMPAIGN_GAS_PRICE_HIGHER_THAN_EXPECTED="reward_campaign_gas_price_higher_than_expected",t.REWARD_CAMPAIGN_OUT_OF_STOCK="reward_campaign_out_of_stock",t.REWARD_DELAYED="reward_delayed",t.REWARD_IN_PROGRESS="reward_in_progress",t.ROYALTIES_EARNED="royalties_earned",t.SOCIAL_SERVICE_FRIENDSHIP_REQUEST="social_service_friendship_request",t.SOCIAL_SERVICE_FRIENDSHIP_ACCEPTED="social_service_friendship_accepted",t.WORLDS_ACCESS_RESTORED="worlds_access_restored",t.WORLDS_ACCESS_RESTRICTED="worlds_access_restricted",t.WORLDS_MISSING_RESOURCES="worlds_missing_resources",t.WORLDS_PERMISSION_GRANTED="worlds_permission_granted",t.WORLDS_PERMISSION_REVOKED="worlds_permission_revoked",t.CREDITS_GOAL_COMPLETED="credits_goal_completed",t.CREDITS_ON_DEMAND_GRANTED="credits_on_demand_granted",t.STREAMING_KEY_RESET="streaming_key_reset",t.STREAMING_KEY_REVOKE="streaming_key_revoke",t.STREAMING_KEY_EXPIRED="streaming_key_expired",t.STREAMING_TIME_EXCEEDED="streaming_time_exceeded",t.STREAMING_PLACE_UPDATED="streaming_place_updated",t.CREDITS_REMINDER_COMPLETE_GOALS="credits_reminder_complete_goals",t.CREDITS_REMINDER_CLAIM_CREDITS="credits_reminder_claim_credits",t.CREDITS_REMINDER_USAGE="credits_reminder_usage",t.CREDITS_REMINDER_USAGE_24_HOURS="credits_reminder_usage_24_hours",t.CREDITS_REMINDER_DO_NOT_MISS_OUT="credits_reminder_do_not_miss_out",t.CREDITS_NEW_SEASON_REMINDER="credits_new_season_reminder",t.REFERRAL_INVITED_USERS_ACCEPTED="referral_invited_users_accepted",t.REFERRAL_NEW_TIER_REACHED="referral_new_tier_reached",t.COMMUNITY_DELETED="community_deleted",t.COMMUNITY_DELETED_CONTENT_VIOLATION="community_deleted_content_violation",t.COMMUNITY_RENAMED="community_renamed",t.COMMUNITY_MEMBER_BANNED="community_member_banned",t.COMMUNITY_MEMBER_REMOVED="community_member_removed",t.COMMUNITY_REQUEST_TO_JOIN_RECEIVED="community_request_to_join_received",t.COMMUNITY_REQUEST_TO_JOIN_ACCEPTED="community_request_to_join_accepted",t.COMMUNITY_INVITE_RECEIVED="community_invite_received",t.COMMUNITY_OWNERSHIP_TRANSFERRED="community_ownership_transferred",t.COMMUNITY_POST_ADDED="community_post_added",t.COMMUNITY_VOICE_CHAT_STARTED="community_voice_chat_started",t.USER_BANNED_FROM_SCENE="user_banned_from_scene",t.USER_UNBANNED_FROM_SCENE="user_unbanned_from_scene",t.TRANSFER_RECEIVED="transfer_received",t.TIP_RECEIVED="tip_received",t.BANNED="banned",t.BAN_WARNING="ban_warning",t.BAN_LIFTED="ban_lifted"})(e.NotificationType||(e.NotificationType={})),(function(t){t.COMMUNITY="community"})(e.NotificationOptOutScope||(e.NotificationOptOutScope={}))})(sm)),sm}var om={},cm={},Tw;function uD(){return Tw||(Tw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SubscriptionDetails=void 0;const t=Ne(),r=cD(),n={type:"object",required:["email","in_app"],properties:{email:{type:"boolean"},in_app:{type:"boolean"}}},i=Object.values(r.NotificationType).reduce((a,s)=>(a[s]=n,a),{});(function(a){a.schema={type:"object",required:["ignore_all_email","ignore_all_in_app","message_type"],properties:{ignore_all_email:{type:"boolean"},ignore_all_in_app:{type:"boolean"},message_type:{type:"object",required:Object.values(r.NotificationType),additionalProperties:!1,properties:i}}},a.validate=(0,t.generateLazyValidator)(a.schema)})(e.SubscriptionDetails||(e.SubscriptionDetails={}))})(cm)),cm}var um={},ww;function lD(){return ww||(ww=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Email=void 0,(function(t){t.schema={type:"string",pattern:"^[\\w\\-\\.]+@([\\w-]+\\.)+[\\w-]{2,}$"};const r=new RegExp(t.schema.pattern);t.validate=n=>r.test(n)})(e.Email||(e.Email={}))})(um)),um}var Iw;function lV(){return Iw||(Iw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Subscription=void 0;const t=Ne(),r=uD(),n=Za(),i=lD();(function(a){a.schema={type:"object",required:["address","details"],properties:{address:n.EthAddress.schema,email:Object.assign(Object.assign({},i.Email.schema),{nullable:!0}),details:r.SubscriptionDetails.schema}},a.validate=(0,t.generateLazyValidator)(a.schema)})(e.Subscription||(e.Subscription={}))})(om)),om}var Rw;function dV(){return Rw||(Rw=1,(function(e){var t=Qi&&Qi.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=Qi&&Qi.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(cD(),e),r(lV(),e),r(uD(),e)})(Qi)),Qi}var Zi={},lm={},Aw;function Cr(){return Aw||(Aw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Events=void 0,(function(t){(function(r){r.BLOCKCHAIN="blockchain",r.CATALYST_DEPLOYMENT="catalyst-deployment",r.WORLD="world",r.CLIENT="client",r.WEB="web",r.MARKETPLACE="marketplace",r.REWARDS="rewards",r.BADGE="badge",r.ASSET_BUNDLE="asset-bundle",r.SOCIAL_SERVICE="social-service",r.CREDITS_SERVICE="credits-service",r.STREAMING="streaming",r.COMMS="comms",r.REFERRAL="referral",r.COMMUNITY="community",r.CAMERA="camera",r.EVENT="event",r.GOVERNANCE="governance",r.MODERATION="moderation"})(t.Type||(t.Type={})),(function(r){(function(n){n.BID_ACCEPTED="bid-accepted",n.ITEM_SOLD="item-sold",n.RENTAL_ENDED="land-rental-ended",n.RENTAL_STARTED="land-rental-started",n.ROYALTIES_EARNED="royalties-earned",n.COLLECTION_CREATED="collection-created",n.ITEM_PUBLISHED="item-published",n.TRANSFER_RECEIVED="transfer-received",n.TIP_RECEIVED="tip-received"})(r.Blockchain||(r.Blockchain={})),(function(n){n.BID_RECEIVED="bid-received"})(r.Marketplace||(r.Marketplace={})),(function(n){n.SCENE="scene",n.PROFILE="profile",n.WEARABLE="wearable",n.STORE="store",n.EMOTE="emote",n.OUTFITS="outfits"})(r.CatalystDeployment||(r.CatalystDeployment={})),(function(n){n.DEPLOYMENT="deployment",n.WORLD_SETTINGS_CHANGED="world_settings_changed",n.WORLD_SCENES_UNDEPLOYMENT="world_scenes_undeployment",n.WORLD_UNDEPLOYMENT="world_undeployment",n.WORLD_SPAWN_COORDINATE_SET="world_spawn_coordinate_set",n.WORLDS_PERMISSION_GRANTED="worlds_permission_granted",n.WORLDS_PERMISSION_REVOKED="worlds_permission_revoked",n.WORLDS_ACCESS_RESTORED="worlds_access_restored",n.WORLDS_ACCESS_RESTRICTED="worlds_access_restricted",n.WORLDS_MISSING_RESOURCES="worlds_missing_resources"})(r.Worlds||(r.Worlds={})),(function(n){n.LOGGED_IN="logged-in",n.LOGGED_IN_CACHED="logged-in-cached",n.MOVE_TO_PARCEL="move-to-parcel",n.USED_EMOTE="used-emote",n.PASSPORT_OPENED="passport-opened",n.WALKED_DISTANCE="walked-distance",n.VERTICAL_HEIGHT_REACHED="vertical-height-reached"})(r.Client||(r.Client={})),(function(n){n.AUTH_IDENTIFY="auth-identify"})(r.Web||(r.Web={})),(function(n){n.REWARD_IN_PROGRESS="reward-in-progress",n.REWARD_ASSIGNED="reward-assigned",n.CAMPAIGN_OUT_OF_FUNDS="campaign-out-of-funds",n.CAMPAIGN_GAS_PRICE_HIGHER_THAN_EXPECTED="campaign-gas-price-higher-than-expected",n.CAMPAIGN_OUT_OF_STOCK="campaign-out-of-stock",n.REWARD_DELAYED="reward-delayed"})(r.Rewards||(r.Rewards={})),(function(n){n.GRANTED="badge-granted"})(r.Badge||(r.Badge={})),(function(n){n.CONVERTED="converted",n.MANUALLY_QUEUED="manually-queued"})(r.AssetBundle||(r.AssetBundle={})),(function(n){n.FRIENDSHIP_REQUEST="friendship-request",n.FRIENDSHIP_ACCEPTED="friendship-accepted"})(r.SocialService||(r.SocialService={})),(function(n){n.CREDITS_GOAL_COMPLETED="credits-goal-completed",n.COMPLETE_GOALS_REMINDER="complete-goals-reminder",n.CLAIM_CREDITS_REMINDER="claim-credits-reminder",n.DO_NOT_MISS_OUT_REMINDER="do-not-miss-out-reminder",n.USAGE_REMINDER="usage-reminder",n.USAGE_24_HOURS_REMINDER="usage-24-hours-reminder",n.ON_DEMAND_CREDITS_GRANTED="on-demand-credits-granted",n.NEW_SEASON_REMINDER="new-season-reminder"})(r.CreditsService||(r.CreditsService={})),(function(n){n.STREAMING_KEY_RESET="streaming-key-reset",n.STREAMING_KEY_REVOKE="streaming-key-revoke",n.STREAMING_KEY_EXPIRED="streaming-key-expired",n.STREAMING_TIME_EXCEEDED="streaming-time-exceeded",n.STREAMING_PLACE_UPDATED="streaming-place-updated",n.COMMUNITY_STREAMING_ENDED="community-streaming-ended"})(r.Streaming||(r.Streaming={})),(function(n){n.USER_JOINED_ROOM="user-joined-room",n.USER_LEFT_ROOM="user-left-room",n.USER_BANNED_FROM_SCENE="user-banned-from-scene",n.USER_UNBANNED_FROM_SCENE="user-unbanned-from-scene"})(r.Comms||(r.Comms={})),(function(n){n.REFERRAL_INVITED_USERS_ACCEPTED="referral-invited-users-accepted",n.REFERRAL_NEW_TIER_REACHED="referral-new-tier-reached"})(r.Referral||(r.Referral={})),(function(n){n.DELETED="community-deleted",n.DELETED_CONTENT_VIOLATION="community-deleted-content-violation",n.RENAMED="community-renamed",n.MEMBER_BANNED="community-member-banned",n.MEMBER_LEFT="community-member-left",n.MEMBER_REMOVED="community-member-removed",n.REQUEST_TO_JOIN_RECEIVED="community-request-to-join-received",n.REQUEST_TO_JOIN_ACCEPTED="community-request-to-join-accepted",n.INVITE_RECEIVED="community-invite-received",n.OWNERSHIP_TRANSFERRED="community-ownership-transferred",n.POST_ADDED="community-post-added",n.VOICE_CHAT_STARTED="community-voice-chat-started"})(r.Community||(r.Community={})),(function(n){n.PHOTO_TAKEN="photo-taken",n.PHOTO_PRIVACY_CHANGED="photo-privacy-changed"})(r.Camera||(r.Camera={})),(function(n){n.EVENT_CREATED="event-created",n.EVENT_STARTS_SOON="event-starts-soon",n.EVENT_STARTED="event-started",n.EVENT_ENDED="event-ended",n.EVENT_APPROVED="event-approved",n.EVENT_REJECTED="event-rejected",n.EVENT_DELETED="event-deleted"})(r.Event||(r.Event={})),(function(n){n.PROPOSAL_ENACTED="governance_proposal_enacted",n.COAUTHOR_REQUESTED="governance_coauthor_requested",n.PITCH_PASSED="governance_pitch_passed",n.TENDER_PASSED="governance_tender_passed",n.AUTHORED_PROPOSAL_FINISHED="governance_authored_proposal_finished",n.VOTING_ENDED_VOTER="governance_voting_ended_voter",n.NEW_COMMENT_ON_PROPOSAL="governance_new_comment_on_proposal",n.NEW_COMMENT_ON_PROJECT_UPDATED="governance_new_comment_on_project_update",n.WHALE_VOTE="governance_whale_vote",n.VOTED_ON_BEHALF="governance_voted_on_behalf",n.CLIFF_ENDED="governance_cliff_ended"})(r.Governance||(r.Governance={})),(function(n){n.USER_BAN_CREATED="user-ban-created",n.USER_BAN_LIFTED="user-ban-lifted",n.USER_WARNING_CREATED="user-warning-created"})(r.Moderation||(r.Moderation={}))})(t.SubType||(t.SubType={}))})(e.Events||(e.Events={}))})(lm)),lm}var dm={},Ow;function fV(){return Ow||(Ow=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TipReceivedEvent=e.TransferReceivedEvent=e.CollectionCreatedEvent=e.RoyaltiesEarnedEvent=e.RentalStartedEvent=e.RentalEndedEvent=e.ItemPublishedEvent=e.ItemSoldEvent=e.BidAcceptedEvent=void 0;const t=Ne(),r=Cr();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BLOCKCHAIN},subType:{type:"string",const:r.Events.SubType.Blockchain.BID_ACCEPTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},seller:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},price:{type:"string"},title:{type:"string"},description:{type:"string"},network:{type:"string"}},required:["address","image","seller","category","link","price","title","network"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.BidAcceptedEvent||(e.BidAcceptedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BLOCKCHAIN},subType:{type:"string",const:r.Events.SubType.Blockchain.ITEM_SOLD},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},buyer:{type:"string"},seller:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},tokenId:{type:"string"},network:{type:"string"},title:{type:"string"},description:{type:"string"}},required:["address","image","seller","category","link","network","title","description"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.ItemSoldEvent||(e.ItemSoldEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BLOCKCHAIN},subType:{type:"string",const:r.Events.SubType.Blockchain.ITEM_PUBLISHED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{creator:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},itemId:{type:"string"},network:{type:"string"},urn:{type:"string"}},required:["creator","category","itemId","network","urn"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.ItemPublishedEvent||(e.ItemPublishedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BLOCKCHAIN},subType:{type:"string",const:r.Events.SubType.Blockchain.RENTAL_ENDED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},contract:{type:"string"},land:{type:"string",nullable:!0},lessor:{type:"string"},tenant:{type:"string"},operator:{type:"string"},startedAt:{type:"string"},endedAt:{type:"string"},tokenId:{type:"string"},link:{type:"string"},title:{type:"string"},description:{type:"string",nullable:!0}},required:["address","contract","lessor","tenant","operator","startedAt","endedAt","tokenId","link","title"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.RentalEndedEvent||(e.RentalEndedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BLOCKCHAIN},subType:{type:"string",const:r.Events.SubType.Blockchain.RENTAL_STARTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},contract:{type:"string"},land:{type:"string",nullable:!0},lessor:{type:"string"},tenant:{type:"string"},operator:{type:"string"},startedAt:{type:"string"},endedAt:{type:"string"},tokenId:{type:"string"},link:{type:"string"},title:{type:"string"},description:{type:"string",nullable:!0}},required:["address","contract","lessor","tenant","operator","startedAt","endedAt","tokenId","link","title"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.RentalStartedEvent||(e.RentalStartedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BLOCKCHAIN},subType:{type:"string",const:r.Events.SubType.Blockchain.ROYALTIES_EARNED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},royaltiesCut:{type:"string"},royaltiesCollector:{type:"string"},network:{type:"string"},title:{type:"string"},description:{type:"string",nullable:!0}},required:["address","image","category","link","royaltiesCut","royaltiesCollector","network","title"]}},required:["type","subType","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.RoyaltiesEarnedEvent||(e.RoyaltiesEarnedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BLOCKCHAIN},subType:{type:"string",const:r.Events.SubType.Blockchain.COLLECTION_CREATED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{creator:{type:"string"},name:{type:"string"}},required:["creator","name"]}},required:["type","subType","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CollectionCreatedEvent||(e.CollectionCreatedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BLOCKCHAIN},subType:{type:"string",const:r.Events.SubType.Blockchain.TRANSFER_RECEIVED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{senderAddress:{type:"string"},receiverAddress:{type:"string"},tokenUri:{type:"string",nullable:!0}},required:["senderAddress","receiverAddress"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.TransferReceivedEvent||(e.TransferReceivedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BLOCKCHAIN},subType:{type:"string",const:r.Events.SubType.Blockchain.TIP_RECEIVED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{senderAddress:{type:"string"},receiverAddress:{type:"string"},amount:{type:"string"}},required:["senderAddress","receiverAddress","amount"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.TipReceivedEvent||(e.TipReceivedEvent={}))})(dm)),dm}var fm={},Nw;function pV(){return Nw||(Nw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CatalystDeploymentEvent=void 0;const t=Wc(),r=Ne(),n=oD(),i=Cr();(function(a){a.schema={type:"object",properties:{type:{type:"string",const:i.Events.Type.CATALYST_DEPLOYMENT},subType:{type:"string",enum:Object.values(i.Events.SubType.CatalystDeployment)},key:{type:"string"},timestamp:{type:"number",minimum:1},entity:n.Entity.schema,authChain:t.AuthChain.schema},required:["type","subType","entity","authChain","key","timestamp"],additionalProperties:!1},a.validate=(0,r.generateLazyValidator)(a.schema)})(e.CatalystDeploymentEvent||(e.CatalystDeploymentEvent={}))})(fm)),fm}var pm={},Pw;function mV(){return Pw||(Pw=1,Object.defineProperty(pm,"__esModule",{value:!0})),pm}var mm={},Cw;function hV(){return Cw||(Cw=1,Object.defineProperty(mm,"__esModule",{value:!0})),mm}var hm={},Mw;function yV(){return Mw||(Mw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BidReceivedEvent=void 0;const t=Ne(),r=Cr();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.MARKETPLACE},subType:{type:"string",const:r.Events.SubType.Marketplace.BID_RECEIVED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},seller:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},price:{type:"string"},title:{type:"string"},description:{type:"string"},network:{type:"string"}},required:["address","image","seller","category","link","price","title","network"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.BidReceivedEvent||(e.BidReceivedEvent={}))})(hm)),hm}var ym={},wo={},jw;function cf(){if(jw)return wo;jw=1,Object.defineProperty(wo,"__esModule",{value:!0}),wo.createEventSchema=void 0;function e(t,r,n){return{type:"object",properties:{type:{type:"string",const:t},subType:{type:"string",const:r},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:n},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1}}return wo.createEventSchema=e,wo}var Dw;function gV(){return Dw||(Dw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RewardDelayedEvent=e.CampaignOutOfStockEvent=e.CampaignGasPriceHigherThanExpectedEvent=e.CampaignOutOfFundsEvent=e.RewardAssignedEvent=e.RewardInProgressEvent=void 0;const t=Ne(),r=Cr(),n=cf(),i={type:"object",properties:{title:{type:"string"},description:{type:"string"},link:{type:"string",nullable:!0},beneficiary:{type:"string"},tokenName:{type:"string"},tokenImage:{type:"string"},tokenRarity:{type:"string",nullable:!0},tokenCategory:{type:"string",nullable:!0}},required:["title","description","beneficiary","tokenName","tokenImage"],additionalProperties:!1},a={type:"object",properties:{title:{type:"string"},description:{type:"string"},link:{type:"string",nullable:!0},owner:{type:"string"},campaignId:{type:"string"},campaignName:{type:"string"}},required:["title","description","owner","campaignId","campaignName"],additionalProperties:!1};(function(s){s.schema=(0,n.createEventSchema)(r.Events.Type.REWARDS,r.Events.SubType.Rewards.REWARD_IN_PROGRESS,i),s.validate=(0,t.generateLazyValidator)(s.schema)})(e.RewardInProgressEvent||(e.RewardInProgressEvent={})),(function(s){s.schema=(0,n.createEventSchema)(r.Events.Type.REWARDS,r.Events.SubType.Rewards.REWARD_ASSIGNED,i),s.validate=(0,t.generateLazyValidator)(s.schema)})(e.RewardAssignedEvent||(e.RewardAssignedEvent={})),(function(s){s.schema=(0,n.createEventSchema)(r.Events.Type.REWARDS,r.Events.SubType.Rewards.CAMPAIGN_OUT_OF_FUNDS,a),s.validate=(0,t.generateLazyValidator)(s.schema)})(e.CampaignOutOfFundsEvent||(e.CampaignOutOfFundsEvent={})),(function(s){s.schema=(0,n.createEventSchema)(r.Events.Type.REWARDS,r.Events.SubType.Rewards.CAMPAIGN_GAS_PRICE_HIGHER_THAN_EXPECTED,a),s.validate=(0,t.generateLazyValidator)(s.schema)})(e.CampaignGasPriceHigherThanExpectedEvent||(e.CampaignGasPriceHigherThanExpectedEvent={})),(function(s){s.schema=(0,n.createEventSchema)(r.Events.Type.REWARDS,r.Events.SubType.Rewards.CAMPAIGN_OUT_OF_STOCK,a),s.validate=(0,t.generateLazyValidator)(s.schema)})(e.CampaignOutOfStockEvent||(e.CampaignOutOfStockEvent={})),(function(s){s.schema=(0,n.createEventSchema)(r.Events.Type.REWARDS,r.Events.SubType.Rewards.REWARD_DELAYED,i),s.validate=(0,t.generateLazyValidator)(s.schema)})(e.RewardDelayedEvent||(e.RewardDelayedEvent={}))})(ym)),ym}var gm={},Lw;function _V(){return Lw||(Lw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CreditsClaimReminderEvent=e.CreditsDoNotMissOutReminderEvent=e.CreditsUsage24HoursReminderEvent=e.CreditsNewSeasonReminderEvent=e.CreditsUsageReminderEvent=e.CreditsCompleteGoalsReminderEvent=e.CreditsGoalCompletedEvent=e.CreditsOnDemandEvent=e.FriendshipAcceptedEvent=e.FriendshipRequestEvent=e.AssetBundleConversionManuallyQueuedEvent=e.AssetBundleConversionFinishedEvent=e.BadgeGrantedEvent=void 0;const t=Ne(),r=Cr();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BADGE},subType:{type:"string",const:r.Events.SubType.Badge.GRANTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{badgeId:{type:"string"},badgeTierName:{type:"string",nullable:!0},badgeName:{type:"string"},badgeImageUrl:{type:"string"},address:{type:"string"}},required:["badgeId","badgeName","badgeImageUrl","address"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.BadgeGrantedEvent||(e.BadgeGrantedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.ASSET_BUNDLE},subType:{type:"string",const:r.Events.SubType.AssetBundle.CONVERTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{entityId:{type:"string"},platform:{type:"string",enum:["windows","mac","webgl"]},statusCode:{type:"number"},isLods:{type:"boolean"},isWorld:{type:"boolean"},version:{type:"string"}},required:["entityId","platform","statusCode","isLods","isWorld","version"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.AssetBundleConversionFinishedEvent||(e.AssetBundleConversionFinishedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.ASSET_BUNDLE},subType:{type:"string",const:r.Events.SubType.AssetBundle.MANUALLY_QUEUED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{entityId:{type:"string"},platform:{type:"string",enum:["windows","mac","webgl"]},isLods:{type:"boolean"},isPriority:{type:"boolean"},version:{type:"string"}},required:["entityId","platform","isLods"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.AssetBundleConversionManuallyQueuedEvent||(e.AssetBundleConversionManuallyQueuedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.SOCIAL_SERVICE},subType:{type:"string",const:r.Events.SubType.SocialService.FRIENDSHIP_REQUEST},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{requestId:{type:"string"},sender:{type:"object",properties:{address:{type:"string"},name:{type:"string"},profileImageUrl:{type:"string"},hasClaimedName:{type:"boolean"}},required:["address","name","profileImageUrl","hasClaimedName"]},receiver:{type:"object",properties:{address:{type:"string"},name:{type:"string"},profileImageUrl:{type:"string"},hasClaimedName:{type:"boolean"}},required:["address","name","profileImageUrl","hasClaimedName"]},message:{type:"string",nullable:!0}},required:["requestId","sender","receiver"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.FriendshipRequestEvent||(e.FriendshipRequestEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.SOCIAL_SERVICE},subType:{type:"string",const:r.Events.SubType.SocialService.FRIENDSHIP_ACCEPTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{requestId:{type:"string"},sender:{type:"object",properties:{address:{type:"string"},name:{type:"string"},profileImageUrl:{type:"string"},hasClaimedName:{type:"boolean"}},required:["address","name","profileImageUrl","hasClaimedName"]},receiver:{type:"object",properties:{address:{type:"string"},name:{type:"string"},profileImageUrl:{type:"string"},hasClaimedName:{type:"boolean"}},required:["address","name","profileImageUrl","hasClaimedName"]}},required:["requestId","sender","receiver"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.FriendshipAcceptedEvent||(e.FriendshipAcceptedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:r.Events.SubType.CreditsService.ON_DEMAND_CREDITS_GRANTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{creditsGranted:{type:"number",minimum:1},address:{type:"string"},granterAddress:{type:"string"}},required:["creditsGranted","address","granterAddress"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CreditsOnDemandEvent||(e.CreditsOnDemandEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:r.Events.SubType.CreditsService.CREDITS_GOAL_COMPLETED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{goalId:{type:"string"},creditsObtained:{type:"number",minimum:0},seasonId:{type:"number",minimum:1},weekNumber:{type:"number",minimum:1},address:{type:"string"}},required:["goalId","creditsObtained","seasonId","weekNumber","address"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CreditsGoalCompletedEvent||(e.CreditsGoalCompletedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:r.Events.SubType.CreditsService.COMPLETE_GOALS_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},seasonId:{type:"number",minimum:1},weekNumber:{type:"number",minimum:1},pendingGoalIds:{type:"array",items:{type:"string"},minItems:1}},required:["address","seasonId","weekNumber","pendingGoalIds"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CreditsCompleteGoalsReminderEvent||(e.CreditsCompleteGoalsReminderEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:r.Events.SubType.CreditsService.USAGE_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},creditsAmount:{type:"number",minimum:1},expirationDate:{type:"string"},expirationDay:{type:"string"}},required:["address","creditsAmount","expirationDate","expirationDay"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CreditsUsageReminderEvent||(e.CreditsUsageReminderEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:r.Events.SubType.CreditsService.NEW_SEASON_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{addresses:{type:"array",items:{type:"string"}},seasonName:{type:"string"},startDate:{type:"string"},endDate:{type:"string"}},required:["addresses","seasonName","startDate","endDate"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CreditsNewSeasonReminderEvent||(e.CreditsNewSeasonReminderEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:r.Events.SubType.CreditsService.USAGE_24_HOURS_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},creditsAmount:{type:"number",minimum:1},expirationDate:{type:"string"}},required:["address","creditsAmount","expirationDate"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CreditsUsage24HoursReminderEvent||(e.CreditsUsage24HoursReminderEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:r.Events.SubType.CreditsService.DO_NOT_MISS_OUT_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"}},required:["address"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CreditsDoNotMissOutReminderEvent||(e.CreditsDoNotMissOutReminderEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:r.Events.SubType.CreditsService.CLAIM_CREDITS_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},seasonId:{type:"number",minimum:1},weekNumber:{type:"number",minimum:1}},required:["address","seasonId","weekNumber"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CreditsClaimReminderEvent||(e.CreditsClaimReminderEvent={}))})(gm)),gm}var _m={},$w;function vV(){return $w||($w=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CommunityStreamingEndedEvent=e.StreamingPlaceUpdatedEvent=e.StreamingTimeExceededEvent=e.StreamingKeyExpiredEvent=e.StreamingKeyRevokeEvent=e.StreamingKeyResetEvent=void 0;const t=Ne(),r=Cr(),n=cf(),i={type:"object",properties:{title:{type:"string"},description:{type:"string"},position:{type:"string"},worldName:{type:"string",nullable:!0},isWorld:{type:"boolean"},url:{type:"string"},address:{type:"string"},image:{type:"string"}},required:["position","isWorld","url","title","description","address","image"],additionalProperties:!1};(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.STREAMING,r.Events.SubType.Streaming.STREAMING_KEY_RESET,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.StreamingKeyResetEvent||(e.StreamingKeyResetEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.STREAMING,r.Events.SubType.Streaming.STREAMING_KEY_REVOKE,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.StreamingKeyRevokeEvent||(e.StreamingKeyRevokeEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.STREAMING,r.Events.SubType.Streaming.STREAMING_KEY_EXPIRED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.StreamingKeyExpiredEvent||(e.StreamingKeyExpiredEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.STREAMING,r.Events.SubType.Streaming.STREAMING_TIME_EXCEEDED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.StreamingTimeExceededEvent||(e.StreamingTimeExceededEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.STREAMING,r.Events.SubType.Streaming.STREAMING_PLACE_UPDATED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.StreamingPlaceUpdatedEvent||(e.StreamingPlaceUpdatedEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.STREAMING,r.Events.SubType.Streaming.COMMUNITY_STREAMING_ENDED,{type:"object",properties:{communityId:{type:"string"},totalParticipants:{type:"number"}},required:["communityId","totalParticipants"],additionalProperties:!1}),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.CommunityStreamingEndedEvent||(e.CommunityStreamingEndedEvent={}))})(_m)),_m}var vm={},kw;function EV(){return kw||(kw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.UserUnbannedFromSceneEvent=e.UserBannedFromSceneEvent=e.UserLeftRoomEvent=e.UserJoinedRoomEvent=e.RoomType=void 0;const t=Ne(),r=Cr();var n;(function(i){i.PRIVATE_MESSAGE="private-message",i.VOICE_CHAT="voice-chat",i.COMMUNITY_VOICE_CHAT="community-voice-chat",i.ISLAND="island",i.SCENE="scene",i.WORLD="world",i.UNKNOWN="unknown"})(n=e.RoomType||(e.RoomType={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMS},subType:{type:"string",const:r.Events.SubType.Comms.USER_JOINED_ROOM},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{parcel:{type:"string"},sceneId:{type:"string"},userAddress:{type:"string"},realmName:{type:"string"},islandName:{type:"string",nullable:!0},communityId:{type:"string",nullable:!0},voiceChatId:{type:"string",nullable:!0},isWorld:{type:"boolean"},roomType:{type:"string",enum:Object.values(n)}},required:["parcel","sceneId","userAddress","realmName","isWorld","roomType"]}},required:["type","subType","key","timestamp","metadata"]},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.UserJoinedRoomEvent||(e.UserJoinedRoomEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMS},subType:{type:"string",const:r.Events.SubType.Comms.USER_LEFT_ROOM},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{userAddress:{type:"string"},realmName:{type:"string"},isWorld:{type:"boolean"},roomType:{type:"string",enum:Object.values(n)},sceneId:{type:"string",nullable:!0},islandName:{type:"string",nullable:!0},communityId:{type:"string",nullable:!0},voiceChatId:{type:"string",nullable:!0}},required:["isWorld","userAddress","realmName","roomType"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.UserLeftRoomEvent||(e.UserLeftRoomEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMS},subType:{type:"string",const:r.Events.SubType.Comms.USER_BANNED_FROM_SCENE},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{placeTitle:{type:"string"},userAddress:{type:"string"}},required:["placeTitle","userAddress"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.UserBannedFromSceneEvent||(e.UserBannedFromSceneEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMS},subType:{type:"string",const:r.Events.SubType.Comms.USER_UNBANNED_FROM_SCENE},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{placeTitle:{type:"string"},userAddress:{type:"string"}},required:["placeTitle","userAddress"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.UserUnbannedFromSceneEvent||(e.UserUnbannedFromSceneEvent={}))})(vm)),vm}var Em={},qw;function bV(){return qw||(qw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReferralNewTierReachedEvent=e.ReferralInvitedUsersAcceptedEvent=void 0;const t=Ne(),r=Cr(),n=cf(),i={type:"object",properties:{title:{type:"string"},description:{type:"string"},address:{type:"string"},tier:{type:"number",minimum:1},url:{type:"string"},image:{type:"string"},invitedUserAddress:{type:"string"},invitedUsers:{type:"number",minimum:1},rarity:{type:"string",nullable:!0}},required:["address","tier","url","title","description","image","invitedUserAddress"],additionalProperties:!1};(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.REFERRAL,r.Events.SubType.Referral.REFERRAL_INVITED_USERS_ACCEPTED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.ReferralInvitedUsersAcceptedEvent||(e.ReferralInvitedUsersAcceptedEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.REFERRAL,r.Events.SubType.Referral.REFERRAL_NEW_TIER_REACHED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.ReferralNewTierReachedEvent||(e.ReferralNewTierReachedEvent={}))})(Em)),Em}var bm={},Bw;function SV(){return Bw||(Bw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CommunityVoiceChatStartedEvent=e.CommunityOwnershipTransferredEvent=e.CommunityPostAddedEvent=e.CommunityInviteReceivedEvent=e.CommunityRequestToJoinAcceptedEvent=e.CommunityRequestToJoinReceivedEvent=e.CommunityMemberRemovedEvent=e.CommunityMemberLeftEvent=e.CommunityMemberBannedEvent=e.CommunityRenamedEvent=e.CommunityDeletedContentViolationEvent=e.CommunityDeletedEvent=void 0;const t=Ne(),r=Cr();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.DELETED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},name:{type:"string"},memberAddresses:{type:"array",items:{type:"string"}},thumbnailUrl:{type:"string"}},required:["id","name","memberAddresses","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityDeletedEvent||(e.CommunityDeletedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.DELETED_CONTENT_VIOLATION},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},name:{type:"string"},ownerAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["id","name","ownerAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityDeletedContentViolationEvent||(e.CommunityDeletedContentViolationEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.RENAMED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},oldName:{type:"string"},newName:{type:"string"},memberAddresses:{type:"array",items:{type:"string"}},thumbnailUrl:{type:"string"}},required:["id","oldName","newName","memberAddresses","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityRenamedEvent||(e.CommunityRenamedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.MEMBER_BANNED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},name:{type:"string"},memberAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["id","name","memberAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityMemberBannedEvent||(e.CommunityMemberBannedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.MEMBER_LEFT},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},memberAddress:{type:"string"}},required:["id","memberAddress"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityMemberLeftEvent||(e.CommunityMemberLeftEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.MEMBER_REMOVED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},name:{type:"string"},memberAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["id","name","memberAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityMemberRemovedEvent||(e.CommunityMemberRemovedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.REQUEST_TO_JOIN_RECEIVED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},memberAddress:{type:"string"},memberName:{type:"string"},thumbnailUrl:{type:"string"},addressesToNotify:{type:"array",items:{type:"string"}}},required:["communityId","communityName","memberAddress","memberName","thumbnailUrl","addressesToNotify"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityRequestToJoinReceivedEvent||(e.CommunityRequestToJoinReceivedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.REQUEST_TO_JOIN_ACCEPTED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},memberAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["communityId","communityName","memberAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityRequestToJoinAcceptedEvent||(e.CommunityRequestToJoinAcceptedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.INVITE_RECEIVED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},memberAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["communityId","communityName","memberAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityInviteReceivedEvent||(e.CommunityInviteReceivedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.POST_ADDED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},thumbnailUrl:{type:"string"},postId:{type:"string"},authorAddress:{type:"string"},addressesToNotify:{type:"array",items:{type:"string"}}},required:["addressesToNotify","communityId","communityName","thumbnailUrl","postId","authorAddress"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityPostAddedEvent||(e.CommunityPostAddedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.OWNERSHIP_TRANSFERRED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},oldOwnerAddress:{type:"string"},newOwnerAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["communityId","communityName","oldOwnerAddress","newOwnerAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityOwnershipTransferredEvent||(e.CommunityOwnershipTransferredEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.VOICE_CHAT_STARTED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},thumbnailUrl:{type:"string"},addressesToNotify:{type:"array",items:{type:"string"}}},required:["communityId","communityName","thumbnailUrl","addressesToNotify"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityVoiceChatStartedEvent||(e.CommunityVoiceChatStartedEvent={}))})(bm)),bm}var Sm={},Uw;function TV(){return Uw||(Uw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PhotoTakenEvent=e.PhotoPrivacyChangedEvent=void 0;const t=Ne(),r=Cr();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CAMERA},subType:{type:"string",const:r.Events.SubType.Camera.PHOTO_PRIVACY_CHANGED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{userAddress:{type:"string"},photoId:{type:"string"},isPublic:{type:"boolean"}},required:["userAddress","photoId","isPublic"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.PhotoPrivacyChangedEvent||(e.PhotoPrivacyChangedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CAMERA},subType:{type:"string",const:r.Events.SubType.Camera.PHOTO_TAKEN},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{sceneId:{type:"string"},userAddress:{type:"string"},realm:{type:"string"},photoId:{type:"string"},isPublic:{type:"boolean"},users:{type:"array",items:{type:"object",properties:{address:{type:"string"},isEmoting:{type:"boolean"}},required:["address","isEmoting"],additionalProperties:!1}},placeId:{type:"string",nullable:!0}},required:["userAddress","realm","photoId","isPublic","users"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.PhotoTakenEvent||(e.PhotoTakenEvent={}))})(Sm)),Sm}var Tm={},Fw;function wV(){return Fw||(Fw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EventDeletedEvent=e.EventRejectedEvent=e.EventApprovedEvent=e.EventEndedEvent=e.EventCreatedEvent=e.EventStartsSoonEvent=e.EventStartedEvent=void 0;const t=Ne(),r=Cr();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.EVENT},subType:{type:"string",const:r.Events.SubType.Event.EVENT_STARTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{name:{type:"string"},image:{type:"string"},link:{type:"string"},communityId:{type:"string"},communityThumbnail:{type:"string",nullable:!0},title:{type:"string"},description:{type:"string"},attendee:{type:"string"}},required:["name","image","link"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.EventStartedEvent||(e.EventStartedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.EVENT},subType:{type:"string",const:r.Events.SubType.Event.EVENT_STARTS_SOON},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{name:{type:"string"},image:{type:"string"},link:{type:"string"},startsAt:{type:"string"},endsAt:{type:"string"},title:{type:"string"},description:{type:"string"},attendee:{type:"string"}},required:["name","image","link","startsAt","endsAt"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.EventStartsSoonEvent||(e.EventStartsSoonEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.EVENT},subType:{type:"string",const:r.Events.SubType.Event.EVENT_CREATED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{name:{type:"string"},image:{type:"string"},communityId:{type:"string"},communityName:{type:"string"},communityThumbnail:{type:"string",nullable:!0},title:{type:"string"},description:{type:"string"},attendee:{type:"string"}},required:["name","image"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.EventCreatedEvent||(e.EventCreatedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.EVENT},subType:{type:"string",const:r.Events.SubType.Event.EVENT_ENDED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{communityId:{type:"string",nullable:!0},totalAttendees:{type:"number"}},required:["totalAttendees"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.EventEndedEvent||(e.EventEndedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.EVENT},subType:{type:"string",const:r.Events.SubType.Event.EVENT_APPROVED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{host:{type:"string"},title:{type:"string"},description:{type:"string"},image:{type:"string"},link:{type:"string"}},required:["host","title","image","link"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.EventApprovedEvent||(e.EventApprovedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.EVENT},subType:{type:"string",const:r.Events.SubType.Event.EVENT_REJECTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{host:{type:"string"},title:{type:"string"},description:{type:"string"},image:{type:"string"},reason:{type:"string"}},required:["host","title","image","reason"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.EventRejectedEvent||(e.EventRejectedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.EVENT},subType:{type:"string",const:r.Events.SubType.Event.EVENT_DELETED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{host:{type:"string"},title:{type:"string"},description:{type:"string"},image:{type:"string"},reason:{type:"string",nullable:!0}},required:["host","title","image"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.EventDeletedEvent||(e.EventDeletedEvent={}))})(Tm)),Tm}var wm={},Hw;function IV(){return Hw||(Hw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.GovernanceCliffEndedEvent=e.GovernanceVotedOnBehalfEvent=e.GovernanceWhaleVoteEvent=e.GovernanceNewCommentOnProjectUpdatedEvent=e.GovernanceNewCommentOnProposalEvent=e.GovernanceVotingEndedVoterEvent=e.GovernanceAuthoredProposalFinishedEvent=e.GovernanceTenderPassedEvent=e.GovernancePitchPassedEvent=e.GovernanceCoauthorRequestedEvent=e.GovernanceProposalEnactedEvent=void 0;const t=Ne(),r=Cr(),n=cf(),i={type:"object",properties:{proposalId:{type:"string"},proposalTitle:{type:"string"},title:{type:"string"},description:{type:"string"},link:{type:"string"},address:{type:"string"}},required:["proposalId","proposalTitle","title","description","link","address"],additionalProperties:!1};(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.PROPOSAL_ENACTED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceProposalEnactedEvent||(e.GovernanceProposalEnactedEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.COAUTHOR_REQUESTED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceCoauthorRequestedEvent||(e.GovernanceCoauthorRequestedEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.PITCH_PASSED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernancePitchPassedEvent||(e.GovernancePitchPassedEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.TENDER_PASSED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceTenderPassedEvent||(e.GovernanceTenderPassedEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.AUTHORED_PROPOSAL_FINISHED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceAuthoredProposalFinishedEvent||(e.GovernanceAuthoredProposalFinishedEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.VOTING_ENDED_VOTER,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceVotingEndedVoterEvent||(e.GovernanceVotingEndedVoterEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.NEW_COMMENT_ON_PROPOSAL,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceNewCommentOnProposalEvent||(e.GovernanceNewCommentOnProposalEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.NEW_COMMENT_ON_PROJECT_UPDATED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceNewCommentOnProjectUpdatedEvent||(e.GovernanceNewCommentOnProjectUpdatedEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.WHALE_VOTE,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceWhaleVoteEvent||(e.GovernanceWhaleVoteEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.VOTED_ON_BEHALF,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceVotedOnBehalfEvent||(e.GovernanceVotedOnBehalfEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.CLIFF_ENDED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceCliffEndedEvent||(e.GovernanceCliffEndedEvent={}))})(wm)),wm}var Im={},Vw;function RV(){return Vw||(Vw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorldsMissingResourcesEvent=e.WorldsAccessRestrictedEvent=e.WorldsPermissionGrantedEvent=e.WorldsPermissionRevokedEvent=e.WorldsAccessRestoredEvent=e.WorldDeploymentEvent=e.WorldUndeploymentEvent=e.WorldScenesUndeploymentEvent=e.WorldSpawnCoordinateSetEvent=e.WorldSettingsChangedEvent=void 0;const t=Wc(),r=Ne(),n=Cr();(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLD_SETTINGS_CHANGED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{worldName:{type:"string"},title:{type:"string",nullable:!0},description:{type:"string",nullable:!0},contentRating:{type:"string",nullable:!0},skyboxTime:{type:"number",nullable:!0},categories:{type:"array",items:{type:"string"},nullable:!0},singlePlayer:{type:"boolean",nullable:!0},showInPlaces:{type:"boolean",nullable:!0},thumbnailUrl:{type:"string",nullable:!0},accessType:{type:"string",nullable:!0}},required:["worldName"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1}})(e.WorldSettingsChangedEvent||(e.WorldSettingsChangedEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLD_SPAWN_COORDINATE_SET},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{name:{type:"string",pattern:"^[a-zA-Z0-9_-]+\\.dcl\\.eth|[a-zA-Z0-9_-]+\\.eth$"},oldCoordinate:{type:"object",properties:{x:{type:"number"},y:{type:"number"}},required:["x","y"],additionalProperties:!1,nullable:!0},newCoordinate:{type:"object",properties:{x:{type:"number"},y:{type:"number"}},required:["x","y"],additionalProperties:!1}},required:["name","oldCoordinate","newCoordinate"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.WorldSpawnCoordinateSetEvent||(e.WorldSpawnCoordinateSetEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLD_SCENES_UNDEPLOYMENT},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{worldName:{type:"string"},scenes:{type:"array",items:{type:"object",properties:{entityId:{type:"string"},baseParcel:{type:"string"}},required:["entityId","baseParcel"],additionalProperties:!1},minItems:1}},required:["worldName","scenes"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.WorldScenesUndeploymentEvent||(e.WorldScenesUndeploymentEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLD_UNDEPLOYMENT},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{worldName:{type:"string"}},required:["worldName"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.WorldUndeploymentEvent||(e.WorldUndeploymentEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.DEPLOYMENT},key:{type:"string"},timestamp:{type:"number",minimum:0},entity:{type:"object",properties:{entityId:{type:"string"},authChain:t.AuthChain.schema},additionalProperties:!0,required:["entityId","authChain"]},contentServerUrls:{type:"array",items:{type:"string"},nullable:!0},force:{type:"boolean",nullable:!0},animation:{type:"string",nullable:!0},lods:{type:"array",items:{type:"string"},nullable:!0}},required:["type","subType","key","timestamp","entity"],additionalProperties:!1},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.WorldDeploymentEvent||(e.WorldDeploymentEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLDS_ACCESS_RESTORED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},url:{type:"string"},attendee:{type:"string"}},required:["title","description","url","attendee"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.WorldsAccessRestoredEvent||(e.WorldsAccessRestoredEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLDS_PERMISSION_REVOKED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},world:{type:"string"},permissions:{type:"array",items:{type:"string"}},url:{type:"string"},address:{type:"string"}},required:["title","description","world","permissions","url","address"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.WorldsPermissionRevokedEvent||(e.WorldsPermissionRevokedEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLDS_PERMISSION_GRANTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},world:{type:"string"},permissions:{type:"array",items:{type:"string"}},url:{type:"string"},address:{type:"string"}},required:["title","description","world","permissions","url","address"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.WorldsPermissionGrantedEvent||(e.WorldsPermissionGrantedEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLDS_ACCESS_RESTRICTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},when:{type:"number"},address:{type:"string"}},required:["title","description","when","address"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.WorldsAccessRestrictedEvent||(e.WorldsAccessRestrictedEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLDS_MISSING_RESOURCES},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},url:{type:"string"},when:{type:"number"},address:{type:"string"}},required:["title","description","url","when","address"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.WorldsMissingResourcesEvent||(e.WorldsMissingResourcesEvent={}))})(Im)),Im}var Rm={},xw;function AV(){return xw||(xw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.UserWarningCreatedEvent=e.UserBanLiftedEvent=e.UserBanCreatedEvent=void 0;const t=Ne(),r=Cr();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.MODERATION},subType:{type:"string",const:r.Events.SubType.Moderation.USER_BAN_CREATED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{id:{type:"string"},bannedAddress:{type:"string"},bannedBy:{type:"string"},reason:{type:"string"},bannedAt:{type:"number",minimum:0},expiresAt:{type:"number",nullable:!0,minimum:0},customMessage:{type:"string",nullable:!0}},required:["id","bannedAddress","bannedBy","reason","bannedAt","expiresAt"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.UserBanCreatedEvent||(e.UserBanCreatedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.MODERATION},subType:{type:"string",const:r.Events.SubType.Moderation.USER_BAN_LIFTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{id:{type:"string"},bannedAddress:{type:"string"},liftedBy:{type:"string"},liftedAt:{type:"number",minimum:0}},required:["id","bannedAddress","liftedBy","liftedAt"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.UserBanLiftedEvent||(e.UserBanLiftedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.MODERATION},subType:{type:"string",const:r.Events.SubType.Moderation.USER_WARNING_CREATED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{id:{type:"string"},warnedAddress:{type:"string"},warnedBy:{type:"string"},reason:{type:"string"},warnedAt:{type:"number",minimum:0}},required:["id","warnedAddress","warnedBy","reason","warnedAt"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.UserWarningCreatedEvent||(e.UserWarningCreatedEvent={}))})(Rm)),Rm}var Gw;function OV(){return Gw||(Gw=1,(function(e){var t=Zi&&Zi.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=Zi&&Zi.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(Cr(),e),r(fV(),e),r(pV(),e),r(mV(),e),r(hV(),e),r(yV(),e),r(gV(),e),r(_V(),e),r(vV(),e),r(EV(),e),r(bV(),e),r(SV(),e),r(TV(),e),r(wV(),e),r(IV(),e),r(RV(),e),r(AV(),e)})(Zi)),Zi}var zw;function BE(){return zw||(zw=1,(function(e){var t=Wi&&Wi.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=Wi&&Wi.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(XH(),e),r(QH(),e),r(aD(),e),r(LE(),e),r(Zj(),e),r(sV(),e),r(oD(),e),r(oV(),e),r(uV(),e),r(dV(),e),r(OV(),e)})(Wi)),Wi}var Ww;function NV(){return Ww||(Ww=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableJson=void 0;const t=sf(),r=Qa(),n=of(),i=DE(),a=Ne(),s=BE();(function(o){o.schema={type:"object",properties:{description:{type:"string"},rarity:Object.assign(Object.assign({},t.Rarity.schema),{nullable:!0}),name:{type:"string"},data:{type:"object",properties:{replaces:{type:"array",items:r.WearableCategory.schema},hides:{type:"array",items:r.WearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:i.WearableRepresentation.schema,minItems:1},category:r.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:s.HideableWearableCategory.schema},blockVrmExport:{type:"boolean",nullable:!0},outlineCompatible:{type:"boolean",nullable:!0},springBones:Object.assign(Object.assign({},n.SpringBonesData.schema),{nullable:!0})},required:["replaces","hides","tags","representations","category"]}},additionalProperties:!0,required:["description","name","data"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.WearableJson||(e.WearableJson={}))})(vp)),vp}var Yw;function PV(){return Yw||(Yw=1,(function(e){var t=zi&&zi.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=zi&&zi.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(YH(),e),r(NV(),e)})(zi)),zi}var Kw;function CV(){return Kw||(Kw=1,(function(e){var t=Ui&&Ui.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=Ui&&Ui.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(WH(),e),r(PV(),e)})(Ui)),Ui}var ea={},Am={},Xw;function MV(){return Xw||(Xw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Account=e.AccountSortBy=void 0;const t=Ne();(function(r){r.MOST_SALES="most_sales",r.MOST_PURCHASES="most_purchases",r.MOST_SPENT="most_spent",r.MOST_EARNED="most_earned",r.MOST_ROYALTIES="most_royalties",r.MOST_COLLECTIONS="most_collections"})(e.AccountSortBy||(e.AccountSortBy={})),(function(r){r.schema={type:"object",properties:{id:{type:"string"},address:{type:"string"},sales:{type:"integer"},purchases:{type:"integer"},spent:{type:"string"},earned:{type:"string"},royalties:{type:"string"},collections:{type:"number"}},required:["id","address","sales","purchases","spent","earned","royalties","collections"]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.Account||(e.Account={}))})(Am)),Am}var Om={},Nm={},Jw;function dD(){return Jw||(Jw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getChainId=e.ChainName=void 0;const t=Ne(),r=Sn();var n;(function(a){a.ETHEREUM_MAINNET="Ethereum Mainnet",a.ETHEREUM_ROPSTEN="Ropsten",a.ETHEREUM_RINKEBY="Rinkeby",a.ETHEREUM_GOERLI="Goerli",a.ETHEREUM_KOVAN="Kovan",a.ETHEREUM_SEPOLIA="Sepolia",a.MATIC_MAINNET="Polygon",a.MATIC_MUMBAI="Mumbai",a.MATIC_AMOY="Amoy",a.AVALANCHE_MAINNET="Avalanche",a.BINANCE_MAINNET="Binance Smart Chain",a.ARBITRUM_MAINNET="Arbitrum",a.OPTIMISM_MAINNET="Optimism",a.FANTOM_MAINNET="Fantom"})(n=e.ChainName||(e.ChainName={}));function i(a){switch(a){case n.ETHEREUM_MAINNET:return r.ChainId.ETHEREUM_MAINNET;case n.ETHEREUM_ROPSTEN:return r.ChainId.ETHEREUM_ROPSTEN;case n.ETHEREUM_RINKEBY:return r.ChainId.ETHEREUM_RINKEBY;case n.ETHEREUM_GOERLI:return r.ChainId.ETHEREUM_GOERLI;case n.ETHEREUM_KOVAN:return r.ChainId.ETHEREUM_KOVAN;case n.ETHEREUM_SEPOLIA:return r.ChainId.ETHEREUM_SEPOLIA;case n.MATIC_MAINNET:return r.ChainId.MATIC_MAINNET;case n.MATIC_MUMBAI:return r.ChainId.MATIC_MUMBAI;case n.MATIC_AMOY:return r.ChainId.MATIC_AMOY;case n.AVALANCHE_MAINNET:return r.ChainId.AVALANCHE_MAINNET;case n.BINANCE_MAINNET:return r.ChainId.BSC_MAINNET;case n.ARBITRUM_MAINNET:return r.ChainId.ARBITRUM_MAINNET;case n.OPTIMISM_MAINNET:return r.ChainId.OPTIMISM_MAINNET;case n.FANTOM_MAINNET:return r.ChainId.FANTOM_MAINNET;default:return null}}e.getChainId=i,(function(a){a.schema={type:"string",enum:Object.values(a)},a.validate=(0,t.generateLazyValidator)(a.schema)})(n=e.ChainName||(e.ChainName={}))})(Nm)),Nm}var Pm={},Qw;function bn(){return Qw||(Qw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Network=void 0;const t=Ne();(function(r){r.ETHEREUM="ETHEREUM",r.MATIC="MATIC",r.AVALANCHE="AVALANCHE",r.BSC="BINANCE SMART CHAIN",r.OPTIMISM="OPTIMISM",r.ARBITRUM="ARBITRUM",r.FANTOM="FANTOM"})(e.Network||(e.Network={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.Network||(e.Network={}))})(Pm)),Pm}var Zw;function Sn(){return Zw||(Zw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getNetwork=e.getNetworkMapping=e.getURNProtocol=e.getChainName=e.ChainId=void 0;const t=Ne(),r=dD(),n=bn();var i;(function(l){l[l.ETHEREUM_MAINNET=1]="ETHEREUM_MAINNET",l[l.ETHEREUM_ROPSTEN=3]="ETHEREUM_ROPSTEN",l[l.ETHEREUM_RINKEBY=4]="ETHEREUM_RINKEBY",l[l.ETHEREUM_GOERLI=5]="ETHEREUM_GOERLI",l[l.ETHEREUM_KOVAN=42]="ETHEREUM_KOVAN",l[l.ETHEREUM_SEPOLIA=11155111]="ETHEREUM_SEPOLIA",l[l.MATIC_MAINNET=137]="MATIC_MAINNET",l[l.MATIC_MUMBAI=80001]="MATIC_MUMBAI",l[l.MATIC_AMOY=80002]="MATIC_AMOY",l[l.BSC_MAINNET=56]="BSC_MAINNET",l[l.OPTIMISM_MAINNET=10]="OPTIMISM_MAINNET",l[l.ARBITRUM_MAINNET=42161]="ARBITRUM_MAINNET",l[l.FANTOM_MAINNET=250]="FANTOM_MAINNET",l[l.AVALANCHE_MAINNET=43114]="AVALANCHE_MAINNET"})(i=e.ChainId||(e.ChainId={}));function a(l){switch(l){case i.ETHEREUM_MAINNET:return r.ChainName.ETHEREUM_MAINNET;case i.ETHEREUM_ROPSTEN:return r.ChainName.ETHEREUM_ROPSTEN;case i.ETHEREUM_RINKEBY:return r.ChainName.ETHEREUM_RINKEBY;case i.ETHEREUM_GOERLI:return r.ChainName.ETHEREUM_GOERLI;case i.ETHEREUM_KOVAN:return r.ChainName.ETHEREUM_KOVAN;case i.ETHEREUM_SEPOLIA:return r.ChainName.ETHEREUM_SEPOLIA;case i.MATIC_MAINNET:return r.ChainName.MATIC_MAINNET;case i.MATIC_MUMBAI:return r.ChainName.MATIC_MUMBAI;case i.MATIC_AMOY:return r.ChainName.MATIC_AMOY;case i.BSC_MAINNET:return r.ChainName.BINANCE_MAINNET;case i.ARBITRUM_MAINNET:return r.ChainName.ARBITRUM_MAINNET;case i.OPTIMISM_MAINNET:return r.ChainName.OPTIMISM_MAINNET;case i.FANTOM_MAINNET:return r.ChainName.FANTOM_MAINNET;case i.AVALANCHE_MAINNET:return r.ChainName.AVALANCHE_MAINNET;default:return null}}e.getChainName=a;function s(l){switch(l){case i.ETHEREUM_MAINNET:return"ethereum";case i.ETHEREUM_ROPSTEN:return"ropsten";case i.ETHEREUM_RINKEBY:return"rinkeby";case i.ETHEREUM_GOERLI:return"goerli";case i.ETHEREUM_KOVAN:return"kovan";case i.ETHEREUM_SEPOLIA:return"sepolia";case i.MATIC_MAINNET:return"matic";case i.MATIC_MUMBAI:return"mumbai";case i.MATIC_AMOY:return"amoy";default:return""}}e.getURNProtocol=s;function o(l){const u={[n.Network.BSC]:i.BSC_MAINNET,[n.Network.OPTIMISM]:i.OPTIMISM_MAINNET,[n.Network.ARBITRUM]:i.ARBITRUM_MAINNET,[n.Network.FANTOM]:i.FANTOM_MAINNET,[n.Network.AVALANCHE]:i.AVALANCHE_MAINNET};switch(l){case i.ETHEREUM_MAINNET:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET},u);case i.ETHEREUM_ROPSTEN:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_ROPSTEN,[n.Network.MATIC]:i.MATIC_MUMBAI},u);case i.ETHEREUM_RINKEBY:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_RINKEBY,[n.Network.MATIC]:i.MATIC_MUMBAI},u);case i.ETHEREUM_GOERLI:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_GOERLI,[n.Network.MATIC]:i.MATIC_MUMBAI},u);case i.ETHEREUM_KOVAN:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_KOVAN,[n.Network.MATIC]:i.MATIC_MUMBAI},u);case i.ETHEREUM_SEPOLIA:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_SEPOLIA,[n.Network.MATIC]:i.MATIC_AMOY},u);case i.MATIC_MAINNET:return Object.assign({[n.Network.ETHEREUM]:i.MATIC_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET},u);case i.MATIC_MUMBAI:return Object.assign({[n.Network.ETHEREUM]:i.MATIC_MUMBAI,[n.Network.MATIC]:i.MATIC_MUMBAI},u);case i.MATIC_AMOY:return Object.assign({[n.Network.ETHEREUM]:i.MATIC_AMOY,[n.Network.MATIC]:i.MATIC_AMOY},u);default:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET},u)}}e.getNetworkMapping=o;function c(l){switch(l){case i.ETHEREUM_MAINNET:case i.ETHEREUM_ROPSTEN:case i.ETHEREUM_GOERLI:case i.ETHEREUM_KOVAN:case i.ETHEREUM_RINKEBY:case i.ETHEREUM_SEPOLIA:return n.Network.ETHEREUM;case i.MATIC_MAINNET:case i.MATIC_MUMBAI:case i.MATIC_AMOY:return n.Network.MATIC;case i.BSC_MAINNET:return n.Network.BSC;case i.OPTIMISM_MAINNET:return n.Network.OPTIMISM;case i.ARBITRUM_MAINNET:return n.Network.ARBITRUM;case i.FANTOM_MAINNET:return n.Network.FANTOM;case i.AVALANCHE_MAINNET:return n.Network.AVALANCHE}}e.getNetwork=c,(function(l){l.schema={type:"number",enum:Object.values(l)},l.validate=(0,t.generateLazyValidator)(l.schema)})(i=e.ChainId||(e.ChainId={}))})(Om)),Om}var Cm={},eI;function jV(){return eI||(eI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Collection=e.CollectionSortBy=void 0;const t=Ne(),r=Sn(),n=bn();(function(i){i.NEWEST="newest",i.NAME="name",i.RECENTLY_REVIEWED="recently_reviewed",i.RECENTLY_LISTED="recently_listed",i.SIZE="size"})(e.CollectionSortBy||(e.CollectionSortBy={})),(function(i){i.schema={type:"object",properties:{urn:{type:"string"},creator:{type:"string"},name:{type:"string"},contractAddress:{type:"string"},size:{type:"integer"},isOnSale:{type:"boolean"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},network:n.Network.schema,chainId:r.ChainId.schema,firstListedAt:{type:"integer",nullable:!0}},required:["urn","creator","name","contractAddress","isOnSale","size","createdAt","updatedAt","reviewedAt","network","chainId"]},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.Collection||(e.Collection={}))})(Cm)),Cm}var Mm={},jm={},tI;function uf(){return tI||(tI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NFTCategory=void 0;const t=Ne();(function(r){r.PARCEL="parcel",r.ESTATE="estate",r.WEARABLE="wearable",r.ENS="ens",r.EMOTE="emote"})(e.NFTCategory||(e.NFTCategory={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.NFTCategory||(e.NFTCategory={}))})(jm)),jm}var rI;function DV(){return rI||(rI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Contract=e.ContractSortBy=void 0;const t=Ne(),r=Sn(),n=bn(),i=uf();(function(a){a.NAME="name"})(e.ContractSortBy||(e.ContractSortBy={})),(function(a){a.schema={type:"object",properties:{name:{type:"string"},address:{type:"string"},category:i.NFTCategory.schema,network:n.Network.schema,chainId:r.ChainId.schema},required:["name","address","category","network","chainId"]},a.validate=(0,t.generateLazyValidator)(a.schema)})(e.Contract||(e.Contract={}))})(Mm)),Mm}var Dm={},Lm={},nI;function fD(){return nI||(nI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NFT=e.NFTSortBy=void 0;const t=Ne(),r=Sn(),n=BE(),i=bn(),a=uf(),s=sf(),o=Qa();(function(c){c.NAME="name",c.NEWEST="newest",c.RECENTLY_LISTED="recently_listed",c.RECENTLY_SOLD="recently_sold",c.CHEAPEST="cheapest",c.RENTAL_LISTING_DATE="rental_listing_date",c.RENTAL_DATE="rented_date",c.MAX_RENTAL_PRICE="max_rental_price",c.MIN_RENTAL_PRICE="min_rental_price"})(e.NFTSortBy||(e.NFTSortBy={})),(function(c){c.schema={type:"object",properties:{id:{type:"string"},tokenId:{type:"string"},contractAddress:{type:"string"},activeOrderId:{type:"string",nullable:!0},utility:{type:"string",nullable:!0},openRentalId:{type:"string",nullable:!0},owner:{type:"string"},name:{type:"string"},image:{type:"string"},url:{type:"string"},data:{type:"object",nullable:!1,properties:{parcel:{type:"object",properties:{description:{type:["string"],nullable:!0},x:{type:"string"},y:{type:"string"},estate:{type:"object",properties:{tokenId:{type:"string"},name:{type:"string"}},required:["tokenId","name"],nullable:!0}},required:["description","x","y","estate"],nullable:!0},estate:{type:"object",properties:{description:{type:["string"],nullable:!0},size:{type:"integer"},parcels:{type:"array",items:{type:"object",properties:{x:{type:"number"},y:{type:"number"}},required:["x","y"]}}},required:["description","size","parcels"],nullable:!0},wearable:{type:"object",properties:{bodyShapes:{type:"array",items:n.BodyShape.schema},category:o.WearableCategory.schema,description:{type:"string"},rarity:s.Rarity.schema,isSmart:{type:"boolean"}},required:["bodyShapes","category","description","rarity","isSmart"],nullable:!0},ens:{type:"object",properties:{subdomain:{type:"string"}},required:["subdomain"],nullable:!0},emote:{type:"object",properties:{bodyShapes:{type:"array",items:n.BodyShape.schema},category:n.EmoteCategory.schema,description:{type:"string"},rarity:s.Rarity.schema,loop:{type:"boolean"},hasSound:{type:"boolean"},hasGeometry:{type:"boolean"},outcomeType:{type:"string",nullable:!0}},required:["bodyShapes","category","description","rarity","loop"],nullable:!0}},required:[]},issuedId:{type:"string",nullable:!0},itemId:{type:"string",nullable:!0},category:a.NFTCategory.schema,network:i.Network.schema,chainId:r.ChainId.schema,createdAt:{type:"integer"},updatedAt:{type:"integer"},soldAt:{type:"integer"},urn:{type:"string",nullable:!0}},required:["id","tokenId","contractAddress","activeOrderId","openRentalId","owner","name","image","url","data","issuedId","itemId","category","network","chainId","createdAt","updatedAt","soldAt"]},c.validate=(0,t.generateLazyValidator)(c.schema)})(e.NFT||(e.NFT={}))})(Lm)),Lm}var iI;function LV(){return iI||(iI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Item=e.ItemSortBy=void 0;const t=Ne(),r=Sn(),n=bn(),i=fD(),a=uf();(function(s){s.NAME="name",s.NEWEST="newest",s.RECENTLY_REVIEWED="recently_reviewed",s.RECENTLY_SOLD="recently_sold",s.RECENTLY_LISTED="recently_listed",s.CHEAPEST="cheapest"})(e.ItemSortBy||(e.ItemSortBy={})),(function(s){s.schema={type:"object",properties:{id:{type:"string"},name:{type:"string"},thumbnail:{type:"string"},url:{type:"string"},category:a.NFTCategory.schema,contractAddress:{type:"string"},itemId:{type:"string"},rarity:{type:"string"},price:{type:"string"},available:{type:"integer"},isOnSale:{type:"boolean"},creator:{type:"string"},beneficiary:{type:"string",nullable:!0},tradeId:{type:"string",nullable:!0},tradeContractAddress:{type:"string",nullable:!0},data:i.NFT.schema.properties.data,network:n.Network.schema,chainId:r.ChainId.schema,urn:{type:"string"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},soldAt:{type:"integer"},firstListedAt:{type:"integer",nullable:!0},picks:{type:"object",properties:{pickedByUser:{type:"boolean",nullable:!0},count:{type:"integer"}},required:["count"],nullable:!0},minPrice:{type:"string",nullable:!0},utility:{type:"string",nullable:!0},minListingPrice:{type:"string",nullable:!0},maxListingPrice:{type:"string",nullable:!0},listings:{type:"integer",nullable:!0},owners:{type:"integer",nullable:!0},tradeExpiresAt:{type:"integer",nullable:!0}},required:["id","name","thumbnail","url","category","contractAddress","itemId","rarity","price","available","isOnSale","creator","data","network","chainId","createdAt","updatedAt","soldAt"]},s.validate=(0,t.generateLazyValidator)(s.schema)})(e.Item||(e.Item={}))})(Dm)),Dm}var $m={},aI;function UE(){return aI||(aI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ListingStatus=void 0;const t=Ne();(function(r){r.OPEN="open",r.SOLD="sold",r.CANCELLED="cancelled"})(e.ListingStatus||(e.ListingStatus={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.ListingStatus||(e.ListingStatus={}))})($m)),$m}var km={},sI;function $V(){return sI||(sI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MetaTransaction=void 0;const t=Ne();(function(r){r.schema={type:"object",properties:{from:{type:"string"},params:{type:"array",items:[{type:"string"},{type:"string"}],additionalItems:!1,minItems:2}},additionalProperties:!1,required:["from","params"]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.MetaTransaction||(e.MetaTransaction={}))})(km)),km}var qm={},oI;function kV(){return oI||(oI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Mint=e.MintSortBy=void 0;const t=Ne(),r=Sn(),n=bn();(function(i){i.RECENTLY_MINTED="recently_minted",i.MOST_EXPENSIVE="most_expensive"})(e.MintSortBy||(e.MintSortBy={})),(function(i){i.schema={type:"object",properties:{id:{type:"string"},creator:{type:"string"},beneficiary:{type:"string"},minter:{type:"string"},price:{type:"string",nullable:!0},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},issuedId:{type:"string"},timestamp:{type:"integer"},network:n.Network.schema,chainId:r.ChainId.schema},required:["id","creator","beneficiary","minter","itemId","tokenId","issuedId","contractAddress","price","timestamp","network","chainId"]},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.Mint||(e.Mint={}))})(qm)),qm}var Bm={},cI;function qV(){return cI||(cI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CatalogSortDirection=e.CatalogSortBy=void 0,(function(t){t.NEWEST="newest",t.RECENTLY_SOLD="recently_sold",t.CHEAPEST="cheapest",t.MOST_EXPENSIVE="most_expensive",t.RECENTLY_LISTED="recently_listed"})(e.CatalogSortBy||(e.CatalogSortBy={})),(function(t){t.ASC="asc",t.DESC="desc"})(e.CatalogSortDirection||(e.CatalogSortDirection={}))})(Bm)),Bm}var Um={},uI;function BV(){return uI||(uI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Order=e.OrderSortBy=void 0;const t=Ne(),r=Sn(),n=UE(),i=bn();(function(a){a.RECENTLY_LISTED="recently_listed",a.RECENTLY_UPDATED="recently_updated",a.CHEAPEST="cheapest",a.ISSUED_ID_ASC="issued_id_asc",a.ISSUED_ID_DESC="issued_id_desc",a.OLDEST="oldest"})(e.OrderSortBy||(e.OrderSortBy={})),(function(a){a.schema={type:"object",properties:{id:{type:"string"},marketplaceAddress:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},owner:{type:"string"},buyer:{type:["string"],nullable:!0},price:{type:"string"},status:n.ListingStatus.schema,network:i.Network.schema,chainId:r.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"},issuedId:{type:"string"},tradeId:{type:"string",nullable:!0}},required:["id","marketplaceAddress","contractAddress","tokenId","owner","buyer","price","status","network","chainId","expiresAt","createdAt","updatedAt"]},a.validate=(0,t.generateLazyValidator)(a.schema)})(e.Order||(e.Order={}))})(Um)),Um}var Fm={},lI;function UV(){return lI||(lI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProviderType=void 0;const t=Ne();(function(r){r.INJECTED="injected",r.MAGIC="magic",r.MAGIC_TEST="magic_test",r.FORTMATIC="formatic",r.NETWORK="network",r.WALLET_CONNECT="wallet_connect",r.WALLET_CONNECT_V2="wallet_connect_v2",r.WALLET_LINK="wallet_link",r.METAMASK_MOBILE="metamask_mobile",r.AUTH_SERVER="auth_server",r.THIRDWEB="thirdweb"})(e.ProviderType||(e.ProviderType={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.ProviderType||(e.ProviderType={}))})(Fm)),Fm}var Hm={},dI;function pD(){return dI||(dI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SaleType=void 0;const t=Ne();(function(r){r.ORDER="order",r.BID="bid",r.MINT="mint"})(e.SaleType||(e.SaleType={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.SaleType||(e.SaleType={}))})(Hm)),Hm}var Vm={},fI;function FV(){return fI||(fI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Sale=e.SaleSortBy=void 0;const t=Ne(),r=Sn(),n=pD(),i=bn();(function(a){a.RECENTLY_SOLD="recently_sold",a.MOST_EXPENSIVE="most_expensive"})(e.SaleSortBy||(e.SaleSortBy={})),(function(a){a.schema={type:"object",properties:{id:{type:"string"},type:n.SaleType.schema,buyer:{type:"string"},seller:{type:"string"},price:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},txHash:{type:"string"},timestamp:{type:"integer"},network:i.Network.schema,chainId:r.ChainId.schema},required:["id","buyer","seller","itemId","tokenId","price","contractAddress","timestamp","txHash","network","chainId"]},a.validate=(0,t.generateLazyValidator)(a.schema)})(e.Sale||(e.Sale={}))})(Vm)),Vm}var xm={},pI;function HV(){return pI||(pI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RentalListingCreation=e.PeriodCreation=e.RentalsListingsSortBy=e.RentalsListingsFilterByCategory=e.RentalsListingSortDirection=e.RentalStatus=void 0;const t=Ne(),r=Sn(),n=bn();(function(a){a.OPEN="open",a.CANCELLED="cancelled",a.EXECUTED="executed",a.CLAIMED="claimed"})(e.RentalStatus||(e.RentalStatus={})),(function(a){a.ASC="asc",a.DESC="desc"})(e.RentalsListingSortDirection||(e.RentalsListingSortDirection={})),(function(a){a.PARCEL="parcel",a.ESTATE="estate"})(e.RentalsListingsFilterByCategory||(e.RentalsListingsFilterByCategory={})),(function(a){a.LAND_CREATION_DATE="land_creation_date",a.RENTAL_LISTING_DATE="rental_listing_date",a.RENTAL_DATE="rented_date",a.NAME="name",a.MAX_RENTAL_PRICE="max_rental_price",a.MIN_RENTAL_PRICE="min_rental_price"})(e.RentalsListingsSortBy||(e.RentalsListingsSortBy={}));var i;(function(a){a.schema={type:"object",properties:{minDays:{type:"integer",minimum:0,maximum:2147483647},maxDays:{type:"integer",minimum:0,maximum:2147483647},pricePerDay:{type:"string",pattern:"^[0-9]+$"}},additionalProperties:!1,required:["minDays","maxDays","pricePerDay"]},a.validate=(0,t.generateLazyValidator)(a.schema)})(i=e.PeriodCreation||(e.PeriodCreation={})),(function(a){a.schema={type:"object",properties:{network:n.Network.schema,chainId:r.ChainId.schema,expiration:{type:"number",minimum:0},signature:{type:"string",minLength:1},tokenId:{type:"string",minLength:1},nonces:{type:"array",minItems:3,maxItems:3,items:{minLength:1,type:"string",pattern:"^[0-9]+$"}},contractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},rentalContractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},periods:{type:"array",minItems:1,maxItems:100,uniqueItems:!0,items:i.schema},target:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"}},additionalProperties:!1,required:["network","chainId","expiration","signature","nonces","tokenId","contractAddress","rentalContractAddress","periods","target"]},a.validate=(0,t.generateLazyValidator)(a.schema)})(e.RentalListingCreation||(e.RentalListingCreation={}))})(xm)),xm}var Gm={},mI;function VV(){return mI||(mI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AnalyticsDayDataSortBy=void 0,(function(t){t.DATE="date",t.MOST_SALES="most_sales"})(e.AnalyticsDayDataSortBy||(e.AnalyticsDayDataSortBy={}))})(Gm)),Gm}var zm={},hI;function xV(){return hI||(hI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Store=void 0;const t=Ne();(function(r){r.schema={type:"object",properties:{id:{type:"string"},version:{type:"number"},owner:{type:"string"},description:{type:"string"},links:{type:"array",items:{type:"object",properties:{name:{type:"string"},url:{type:"string"}},required:["name","url"]}},images:{type:"array",items:{type:"object",properties:{name:{type:"string"},file:{type:"string"}},required:["name","file"]}}},required:["id","version","owner","description","links","images"]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.Store||(e.Store={}))})(zm)),zm}var Wm={},yI;function GV(){return yI||(yI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.GenderFilterOption=e.WearableGender=void 0;const t=Ne();(function(r){r.MALE="male",r.FEMALE="female"})(e.WearableGender||(e.WearableGender={})),(function(r){r.MALE="male",r.FEMALE="female",r.UNISEX="unisex"})(e.GenderFilterOption||(e.GenderFilterOption={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.WearableGender||(e.WearableGender={}))})(Wm)),Wm}var Ym={},gI;function zV(){return gI||(gI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.World=e.isInsideWorldLimits=e.getWorld=void 0;const t=Ne();function r(){return{validWorldRanges:[{xMin:-150,yMin:-150,xMax:150,yMax:150},{xMin:62,yMin:151,xMax:162,yMax:158},{xMin:151,yMin:144,xMax:162,yMax:150},{xMin:151,yMin:59,xMax:163,yMax:143}]}}e.getWorld=r;function n(i,a){const s=r().validWorldRanges;for(const o of s)if(i>=o.xMin&&i<=o.xMax&&a>=o.yMin&&a<=o.yMax)return!0;return!1}e.isInsideWorldLimits=n,(function(i){i.schema={type:"object",required:["validWorldRanges"],properties:{validWorldRanges:{type:"array",default:[{xMin:-150,yMin:-150,xMax:150,yMax:150}],items:{type:"object",required:["xMin","yMin","xMax","yMax"],properties:{xMin:{type:"integer"},yMin:{type:"integer"},xMax:{type:"integer"},yMax:{type:"integer"}}}}},additionalProperties:!1},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.World||(e.World={}))})(Ym)),Ym}var Km={},_I;function WV(){return _I||(_I=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Bid=e.BidSortBy=void 0;const t=Ne(),r=Sn(),n=UE(),i=bn();(function(a){a.RECENTLY_OFFERED="recently_offered",a.RECENTLY_UPDATED="recently_updated",a.MOST_EXPENSIVE="most_expensive"})(e.BidSortBy||(e.BidSortBy={})),(function(a){const s={properties:{id:{type:"string"},bidder:{type:"string"},seller:{type:"string"},price:{type:"string"},fingerprint:{type:"string"},status:n.ListingStatus.schema,contractAddress:{type:"string"},network:i.Network.schema,chainId:r.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"}},required:["id","bidder","seller","price","fingerprint","status","contractAddress","network","chainId","expiresAt","createdAt","updatedAt"]};a.schema={type:"object",required:[],oneOf:[{properties:Object.assign(Object.assign({},s.properties),{tradeId:{type:"string"},tokenId:{type:"string"}}),required:[...s.required,"tradeId","tokenId"]},{type:"object",properties:Object.assign(Object.assign({},s.properties),{tradeId:{type:"string"},itemId:{type:"string"}}),required:[...s.required,"tradeId","itemId"]},{type:"object",properties:Object.assign(Object.assign({},s.properties),{bidAddress:{type:"string"},blockchainId:{type:"string"},blockNumber:{type:"string"},tokenId:{type:"string"}}),required:[...s.required,"bidAddress","blockchainId","blockNumber","tokenId"]}]},a.validate=(0,t.generateLazyValidator)(a.schema)})(e.Bid||(e.Bid={}))})(Km)),Km}var Xm={},vI;function YV(){return vI||(vI=1,Object.defineProperty(Xm,"__esModule",{value:!0})),Xm}var Jm={},EI;function KV(){return EI||(EI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TradeAssetDirection=e.TradeAssetType=e.TradeType=void 0,(function(t){t.BID="bid",t.PUBLIC_NFT_ORDER="public_nft_order",t.PUBLIC_ITEM_ORDER="public_item_order"})(e.TradeType||(e.TradeType={})),(function(t){t[t.ERC20=1]="ERC20",t[t.USD_PEGGED_MANA=2]="USD_PEGGED_MANA",t[t.ERC721=3]="ERC721",t[t.COLLECTION_ITEM=4]="COLLECTION_ITEM"})(e.TradeAssetType||(e.TradeAssetType={})),(function(t){t.SENT="sent",t.RECEIVED="received"})(e.TradeAssetDirection||(e.TradeAssetDirection={}))})(Jm)),Jm}var ta={},Qm={},bI;function XV(){return bI||(bI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewCamera=void 0;const t=Ne();(function(r){r.STATIC="static",r.INTERACTIVE="interactive"})(e.PreviewCamera||(e.PreviewCamera={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.PreviewCamera||(e.PreviewCamera={}))})(Qm)),Qm}var Zm={},SI;function JV(){return SI||(SI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewUnityMode=void 0,(function(t){t.AUTH="authentication",t.BUILDER="builder",t.MARKETPLACE="marketplace",t.PROFILE="profile",t.CONFIG="configurator",t.JESUS="jesus"})(e.PreviewUnityMode||(e.PreviewUnityMode={}))})(Zm)),Zm}var eh={},TI;function QV(){return TI||(TI=1,Object.defineProperty(eh,"__esModule",{value:!0})),eh}var th={},wI;function ZV(){return wI||(wI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewEmoteEventType=void 0;const t=Ne();(function(r){r.ANIMATION_PLAY="animation_play",r.ANIMATION_PAUSE="animation_pause",r.ANIMATION_LOOP="animation_loop",r.ANIMATION_END="animation_end",r.ANIMATION_PLAYING="animation_playing"})(e.PreviewEmoteEventType||(e.PreviewEmoteEventType={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.PreviewEmoteEventType||(e.PreviewEmoteEventType={}))})(th)),th}var rh={},II;function e5(){return II||(II=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewEmote=void 0;const t=Ne();(function(r){r.IDLE="idle",r.WALK="walk",r.RUN="run",r.JUMP="jump",r.CLAP="clap",r.DAB="dab",r.DANCE="dance",r.FASHION="fashion",r.FASHION_2="fashion-2",r.FASHION_3="fashion-3",r.FASHION_4="fashion-4",r.LOVE="love",r.MONEY="money",r.FIST_PUMP="fist-pump",r.HEAD_EXPLODE="head-explode",r.WAVE="wave"})(e.PreviewEmote||(e.PreviewEmote={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.PreviewEmote||(e.PreviewEmote={}))})(rh)),rh}var nh={},RI;function t5(){return RI||(RI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.sendMessage=e.PreviewRenderer=e.PreviewMessageType=void 0;const t=Ne();(function(n){n.READY="ready",n.LOAD="load",n.ERROR="error",n.UPDATE="update",n.CONTROLLER_REQUEST="controller_request",n.CONTROLLER_RESPONSE="controller_response",n.EMOTE_EVENT="emote_event"})(e.PreviewMessageType||(e.PreviewMessageType={})),(function(n){n.BABYLON="babylon",n.UNITY="unity"})(e.PreviewRenderer||(e.PreviewRenderer={})),(function(n){n.schema={type:"string",enum:Object.values(n)},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.PreviewMessageType||(e.PreviewMessageType={}));const r=(n,i,a,s="*")=>{const o={type:i,payload:a};n.postMessage(o,s)};e.sendMessage=r})(nh)),nh}var ih={},AI;function r5(){return AI||(AI=1,Object.defineProperty(ih,"__esModule",{value:!0})),ih}var ah={},OI;function n5(){return OI||(OI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewProjection=void 0;const t=Ne();(function(r){r.ORTHOGRAPHIC="orthographic",r.PERSPECTIVE="perspective"})(e.PreviewProjection||(e.PreviewProjection={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.PreviewProjection||(e.PreviewProjection={}))})(ah)),ah}var sh={},NI;function i5(){return NI||(NI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewType=void 0;const t=Ne();(function(r){r.TEXTURE="texture",r.WEARABLE="wearable",r.AVATAR="avatar"})(e.PreviewType||(e.PreviewType={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.PreviewType||(e.PreviewType={}))})(sh)),sh}var oh={},PI;function a5(){return PI||(PI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpringBoneParams=void 0;var t=of();Object.defineProperty(e,"SpringBoneParams",{enumerable:!0,get:function(){return t.SpringBoneParams}})})(oh)),oh}var ch={},CI;function s5(){return CI||(CI=1,Object.defineProperty(ch,"__esModule",{value:!0})),ch}var uh={},MI;function o5(){return MI||(MI=1,Object.defineProperty(uh,"__esModule",{value:!0})),uh}var lh={},jI;function c5(){return jI||(jI=1,Object.defineProperty(lh,"__esModule",{value:!0})),lh}var dh={},DI;function u5(){return DI||(DI=1,Object.defineProperty(dh,"__esModule",{value:!0})),dh}var fh={},LI;function l5(){return LI||(LI=1,Object.defineProperty(fh,"__esModule",{value:!0})),fh}var ph={},$I;function d5(){return $I||($I=1,Object.defineProperty(ph,"__esModule",{value:!0})),ph}var mh={},kI;function f5(){return kI||(kI=1,Object.defineProperty(mh,"__esModule",{value:!0})),mh}var hh={},qI;function p5(){return qI||(qI=1,Object.defineProperty(hh,"__esModule",{value:!0})),hh}var BI;function mD(){return BI||(BI=1,(function(e){var t=ta&&ta.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=ta&&ta.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(XV(),e),r(JV(),e),r(QV(),e),r(ZV(),e),r(e5(),e),r(t5(),e),r(r5(),e),r(n5(),e),r(i5(),e),r(a5(),e),r(s5(),e),r(o5(),e),r(c5(),e),r(u5(),e),r(l5(),e),r(d5(),e),r(f5(),e),r(p5(),e)})(ta)),ta}var ra={},Io={},UI;function m5(){if(UI)return Io;UI=1,Object.defineProperty(Io,"__esModule",{value:!0}),Io.isSysLink=void 0;const e=t=>t!==null&&typeof t=="object"&&"sys"in t&&"id"in t.sys;return Io.isSysLink=e,Io}var Ro={},FI;function h5(){if(FI)return Ro;FI=1,Object.defineProperty(Ro,"__esModule",{value:!0}),Ro.ContentfulLocale=void 0;var e;return(function(t){t.enUS="en-US",t.es="es",t.zh="zh"})(e||(e={})),Ro.ContentfulLocale=e,Ro}var yh={},HI;function y5(){return HI||(HI=1,Object.defineProperty(yh,"__esModule",{value:!0})),yh}var VI;function g5(){return VI||(VI=1,(function(e){var t=ra&&ra.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=ra&&ra.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(m5(),e),r(h5(),e),r(y5(),e)})(ra)),ra}var xI;function _5(){return xI||(xI=1,(function(e){var t=ea&&ea.__createBinding||(Object.create?(function(q,H,k,B){B===void 0&&(B=k);var F=Object.getOwnPropertyDescriptor(H,k);(!F||("get"in F?!H.__esModule:F.writable||F.configurable))&&(F={enumerable:!0,get:function(){return H[k]}}),Object.defineProperty(q,B,F)}):(function(q,H,k,B){B===void 0&&(B=k),q[B]=H[k]})),r=ea&&ea.__exportStar||function(q,H){for(var k in q)k!=="default"&&!Object.prototype.hasOwnProperty.call(H,k)&&t(H,q,k)};Object.defineProperty(e,"__esModule",{value:!0}),e.isInsideWorldLimits=e.getWorld=e.World=e.GenderFilterOption=e.WearableGender=e.Store=e.AnalyticsDayDataSortBy=e.PeriodCreation=e.RentalListingCreation=e.RentalsListingsSortBy=e.RentalsListingsFilterByCategory=e.RentalsListingSortDirection=e.RentalStatus=e.SaleSortBy=e.Sale=e.SaleType=e.Rarity=e.ProviderType=e.OrderSortBy=e.Order=e.CatalogSortDirection=e.CatalogSortBy=e.NFTSortBy=e.NFT=e.NFTCategory=e.Network=e.MintSortBy=e.Mint=e.MetaTransaction=e.ListingStatus=e.ItemSortBy=e.Item=e.ContractSortBy=e.Contract=e.CollectionSortBy=e.Collection=e.getChainId=e.ChainName=e.getURNProtocol=e.getChainName=e.ChainId=e.AccountSortBy=e.Account=void 0;var n=MV();Object.defineProperty(e,"Account",{enumerable:!0,get:function(){return n.Account}}),Object.defineProperty(e,"AccountSortBy",{enumerable:!0,get:function(){return n.AccountSortBy}});var i=Sn();Object.defineProperty(e,"ChainId",{enumerable:!0,get:function(){return i.ChainId}}),Object.defineProperty(e,"getChainName",{enumerable:!0,get:function(){return i.getChainName}}),Object.defineProperty(e,"getURNProtocol",{enumerable:!0,get:function(){return i.getURNProtocol}});var a=dD();Object.defineProperty(e,"ChainName",{enumerable:!0,get:function(){return a.ChainName}}),Object.defineProperty(e,"getChainId",{enumerable:!0,get:function(){return a.getChainId}});var s=jV();Object.defineProperty(e,"Collection",{enumerable:!0,get:function(){return s.Collection}}),Object.defineProperty(e,"CollectionSortBy",{enumerable:!0,get:function(){return s.CollectionSortBy}});var o=DV();Object.defineProperty(e,"Contract",{enumerable:!0,get:function(){return o.Contract}}),Object.defineProperty(e,"ContractSortBy",{enumerable:!0,get:function(){return o.ContractSortBy}});var c=LV();Object.defineProperty(e,"Item",{enumerable:!0,get:function(){return c.Item}}),Object.defineProperty(e,"ItemSortBy",{enumerable:!0,get:function(){return c.ItemSortBy}});var l=UE();Object.defineProperty(e,"ListingStatus",{enumerable:!0,get:function(){return l.ListingStatus}});var u=$V();Object.defineProperty(e,"MetaTransaction",{enumerable:!0,get:function(){return u.MetaTransaction}});var d=kV();Object.defineProperty(e,"Mint",{enumerable:!0,get:function(){return d.Mint}}),Object.defineProperty(e,"MintSortBy",{enumerable:!0,get:function(){return d.MintSortBy}});var f=bn();Object.defineProperty(e,"Network",{enumerable:!0,get:function(){return f.Network}});var p=uf();Object.defineProperty(e,"NFTCategory",{enumerable:!0,get:function(){return p.NFTCategory}});var y=fD();Object.defineProperty(e,"NFT",{enumerable:!0,get:function(){return y.NFT}}),Object.defineProperty(e,"NFTSortBy",{enumerable:!0,get:function(){return y.NFTSortBy}});var g=qV();Object.defineProperty(e,"CatalogSortBy",{enumerable:!0,get:function(){return g.CatalogSortBy}}),Object.defineProperty(e,"CatalogSortDirection",{enumerable:!0,get:function(){return g.CatalogSortDirection}});var b=BV();Object.defineProperty(e,"Order",{enumerable:!0,get:function(){return b.Order}}),Object.defineProperty(e,"OrderSortBy",{enumerable:!0,get:function(){return b.OrderSortBy}});var O=UV();Object.defineProperty(e,"ProviderType",{enumerable:!0,get:function(){return O.ProviderType}});var m=sf();Object.defineProperty(e,"Rarity",{enumerable:!0,get:function(){return m.Rarity}});var T=pD();Object.defineProperty(e,"SaleType",{enumerable:!0,get:function(){return T.SaleType}});var I=FV();Object.defineProperty(e,"Sale",{enumerable:!0,get:function(){return I.Sale}}),Object.defineProperty(e,"SaleSortBy",{enumerable:!0,get:function(){return I.SaleSortBy}});var h=HV();Object.defineProperty(e,"RentalStatus",{enumerable:!0,get:function(){return h.RentalStatus}}),Object.defineProperty(e,"RentalsListingSortDirection",{enumerable:!0,get:function(){return h.RentalsListingSortDirection}}),Object.defineProperty(e,"RentalsListingsFilterByCategory",{enumerable:!0,get:function(){return h.RentalsListingsFilterByCategory}}),Object.defineProperty(e,"RentalsListingsSortBy",{enumerable:!0,get:function(){return h.RentalsListingsSortBy}}),Object.defineProperty(e,"RentalListingCreation",{enumerable:!0,get:function(){return h.RentalListingCreation}}),Object.defineProperty(e,"PeriodCreation",{enumerable:!0,get:function(){return h.PeriodCreation}});var v=VV();Object.defineProperty(e,"AnalyticsDayDataSortBy",{enumerable:!0,get:function(){return v.AnalyticsDayDataSortBy}});var E=xV();Object.defineProperty(e,"Store",{enumerable:!0,get:function(){return E.Store}});var N=GV();Object.defineProperty(e,"WearableGender",{enumerable:!0,get:function(){return N.WearableGender}}),Object.defineProperty(e,"GenderFilterOption",{enumerable:!0,get:function(){return N.GenderFilterOption}});var M=zV();Object.defineProperty(e,"World",{enumerable:!0,get:function(){return M.World}}),Object.defineProperty(e,"getWorld",{enumerable:!0,get:function(){return M.getWorld}}),Object.defineProperty(e,"isInsideWorldLimits",{enumerable:!0,get:function(){return M.isInsideWorldLimits}}),r(WV(),e),r(YV(),e),r(KV(),e),r(mD(),e),r(g5(),e)})(ea)),ea}var gh={},GI;function v5(){return GI||(GI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LinkerAuthorization=void 0;const t=Ne();(function(r){r.schema={type:"object",properties:{name:{type:"string"},desc:{type:"string"},startDate:{type:"string",nullable:!0},endDate:{type:"string",nullable:!0},contactInfo:{type:"object",properties:{name:{type:"string"}},required:["name"]},onlyDev:{type:"boolean",nullable:!0},addresses:{type:"array",items:{type:"string"},minItems:1},plots:{type:"array",items:{type:"string"},minItems:1}},required:["name","desc","contactInfo","addresses","plots"]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.LinkerAuthorization||(e.LinkerAuthorization={}))})(gh)),gh}var na={},_h={},Ao={},zI;function hD(){if(zI)return Ao;zI=1,Object.defineProperty(Ao,"__esModule",{value:!0}),Ao.isInExceptionBlock=void 0;function e(i,a){return i>=62&&i<=150&&a>=151&&a<=158}function t(i,a){return i>=151&&i<=162&&a>=144&&a<=158}function r(i,a){return i>=151&&i<=163&&a>=59&&a<=143}function n(i,a){return e(i,a)||t(i,a)||r(i,a)}return Ao.isInExceptionBlock=n,Ao}var WI;function E5(){return WI||(WI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Parcel=e.PARCEL_LIMITS=void 0;const t=Ne(),r=hD();e.PARCEL_LIMITS={minX:-150,maxX:150,minY:-150,maxY:150},(function(n){n._isInLimits={keyword:"_isInLimits",validate:function(p,y){return!y||typeof y.x!="number"||typeof y.y!="number"?!1:o(y)||(0,r.isInExceptionBlock)(y.x,y.y)},errors:!1},n.schema={type:"object",required:["x","y"],properties:{x:{type:"number"},y:{type:"number"}},_isInLimits:!0,additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema,[n._isInLimits]);function i({x:f,y:p}){return`${f},${p}`}n.parcelToString=i;function a(f){const p=f.match(/^(-?\d+),(-?\d+)$/);if(!p)return null;const[,y,g]=p,b=parseInt(y,10),O=parseInt(g,10);return{x:b,y:O}}n.stringToParcel=a;function s(f){const p=a(f);return p?n.validate(p):!1}n.isParcelStringValid=s;function o(f){const{x:p,y}=f;return p>=e.PARCEL_LIMITS.minX&&p<=e.PARCEL_LIMITS.maxX&&y>=e.PARCEL_LIMITS.minY&&y<=e.PARCEL_LIMITS.maxY}n.isInStandardBounds=o;function c(f){return(0,r.isInExceptionBlock)(f.x,f.y)}n.isExceptionParcel=c;function l(f){return o(f)||c(f)}n.isInBounds=l;function u(f){return n.validate(f)}n.isValid=u;function d(f){const p=a(f);return p?n.validate(p):!1}n.isValidString=d})(e.Parcel||(e.Parcel={}))})(_h)),_h}var ia={},YI;function b5(){if(YI)return ia;YI=1,Object.defineProperty(ia,"__esModule",{value:!0}),ia.validateUrlInstance=ia.validateUrl=void 0;const e={allowLocalhost:!1,allowedPorts:[]};function t(p,y=2){let g=p;for(let b=0;b<y;b++)try{g=decodeURIComponent(g)}catch{break}return g.normalize("NFKC")}function r(p){return/[\u0000-\u001F\u007F-\u009F\u202A-\u202E\u2066-\u2069]/.test(p)}function n(p){return!!(p.username||p.password)}function i(p){return/\\/.test(p)}const a=["80","443"];function s(p,y){return!!p.port&&!y.includes(p.port)}function o(p){const y=p.toLowerCase();return!!(y==="localhost"||y.endsWith(".local")||/^(127\.|10\.|172\.(1[6-9]|2[0-9]|3[0-1])\.|192\.168\.|169\.254\.)/.test(y)||y==="::1"||y==="[::1]"||y.startsWith("fe80:")||y.startsWith("fc00:"))}function c(p){if(p.startsWith("//"))return null;try{return{url:new URL(p),wasRelative:!1}}catch{try{return{url:new URL(p,"https://example.com"),wasRelative:!0}}catch{return null}}}function l(p){const y=t(String(p).toLowerCase());return!(r(y)||i(y))}function u(p){return!(!p||p.includes("..")||p.includes("//")||r(p)||i(p))}function d(p,y={}){const g=Object.assign(Object.assign({},e),y),b=[...a,...g.allowedPorts];if(!p||p.length===0||p.length>4096||r(p)||i(p))return!1;const O=t(p);if(r(O)||i(O)||p.startsWith("//"))return!1;const m=c(p);if(!m)return!1;const{url:T,wasRelative:I}=m;if(T.protocol!=="http:"&&T.protocol!=="https:"&&T.protocol!==""||n(T)||i(p)||i(T.href)||!I&&(s(T,b)||!g.allowLocalhost&&T.hostname&&o(T.hostname))||!u(T.pathname)||T.pathname.length>2048)return!1;const h=Array.from(T.searchParams.entries());if(h.length>50||(T.search?T.search.startsWith("?")?T.search.length-1:T.search.length:0)>2048)return!1;for(const[E,N]of h)if(E.length===0||!l(E)||!l(N)||E.length>128||N.length>1024)return!1;return!(T.hash&&r(T.hash))}ia.validateUrl=d;function f(p,y={}){return d(p.toString(),y)}return ia.validateUrlInstance=f,ia}var KI;function S5(){return KI||(KI=1,(function(e){var t=na&&na.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=na&&na.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(E5(),e),r(hD(),e),r(b5(),e)})(na)),na}var XI;function T5(){return XI||(XI=1,(function(e){var t=an&&an.__createBinding||(Object.create?(function(s,o,c,l){l===void 0&&(l=c);var u=Object.getOwnPropertyDescriptor(o,c);(!u||("get"in u?!o.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return o[c]}}),Object.defineProperty(s,l,u)}):(function(s,o,c,l){l===void 0&&(l=c),s[l]=o[c]})),r=an&&an.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),n=an&&an.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var c in s)c!=="default"&&Object.prototype.hasOwnProperty.call(s,c)&&t(o,s,c);return r(o,s),o},i=an&&an.__exportStar||function(s,o){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(o,c)&&t(o,s,c)};Object.defineProperty(e,"__esModule",{value:!0}),e.sdk=void 0;const a=n(CV());e.sdk=a,i(Ne(),e),i(_5(),e),i(BE(),e),i(Za(),e),i(v5(),e),i(Wc(),e),i(sD(),e),i(lD(),e),i(S5(),e)})(an)),an}var Ur=T5(),aa={},un={},dc={exports:{}},w5=dc.exports,JI;function lf(){return JI||(JI=1,(function(e,t){(function(r,n){n(t)})(w5,(function(r){function n(_){if(_.jsonrpc="2.0",!_.id||typeof _.id!="number"||Math.floor(_.id)!==_.id)throw new Error(`Invalid RPC message(invalid id) message: ${JSON.stringify(_)}`);if(!_.method||typeof _.method!="string"||_.method.trim().length===0)throw new Error(`Invalid RPC message(invalid method) message: ${JSON.stringify(_)}`);if(!_.params||typeof _.params!="object")throw new Error(`Invalid RPC message(invalid params) message: ${JSON.stringify(_)}`);return _}var i={};function a(){let _,R;const j=new Promise(((J,re)=>{_=ce=>{J(ce),j.isPending=!1},R=ce=>{re(ce),j.isPending=!1}})).catch((J=>Promise.reject(J)));return j.resolve=_,j.reject=R,"finally"in j||(j.finally=J=>{j.then(J),j.catch(J)}),j.isPending=!0,j}Object.defineProperty(i,"__esModule",{value:!0});var s=i.future=a;i.default=a;var o={exports:{}};/**
|
|
63
|
-
* [js-sha3]{@link https://github.com/emn178/js-sha3}
|
|
64
|
-
*
|
|
65
|
-
* @version 0.8.0
|
|
66
|
-
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
67
|
-
* @copyright Chen, Yi-Cyuan 2015-2018
|
|
68
|
-
* @license MIT
|
|
69
|
-
*/(function(_){(function(){var R="input is invalid type",j=typeof window=="object",J=j?window:{};J.JS_SHA3_NO_WINDOW&&(j=!1);var re=!j&&typeof self=="object";!J.JS_SHA3_NO_NODE_JS&&typeof _d=="object"&&_d.versions&&_d.versions.node?J=U_:re&&(J=self);var ce=!J.JS_SHA3_NO_COMMON_JS&&_.exports,Te=!J.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",Ce="0123456789abcdef".split(""),He=[4,1024,262144,67108864],xe=[0,8,16,24],Tr=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],Vt=[224,256,384,512],je=[128,256],sr=["hex","buffer","arrayBuffer","array","digest"],Pt={128:168,256:136};!J.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(S){return Object.prototype.toString.call(S)==="[object Array]"}),!Te||!J.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(S){return typeof S=="object"&&S.buffer&&S.buffer.constructor===ArrayBuffer});for(var Ct=function(S,x,Q){return function(z){return new dt(S,x,S).update(z)[Q]()}},gr=function(S,x,Q){return function(z,ne){return new dt(S,x,ne).update(z)[Q]()}},Yn=function(S,x,Q){return function(z,ne,se,oe){return or["cshake"+S].update(z,ne,se,oe)[Q]()}},An=function(S,x,Q){return function(z,ne,se,oe){return or["kmac"+S].update(z,ne,se,oe)[Q]()}},_r=function(S,x,Q,z){for(var ne=0;ne<sr.length;++ne){var se=sr[ne];S[se]=x(Q,z,se)}return S},On=function(S,x){var Q=Ct(S,x,"hex");return Q.create=function(){return new dt(S,x,S)},Q.update=function(z){return Q.create().update(z)},_r(Q,Ct,S,x)},yi=[{name:"keccak",padding:[1,256,65536,16777216],bits:Vt,createMethod:On},{name:"sha3",padding:[6,1536,393216,100663296],bits:Vt,createMethod:On},{name:"shake",padding:[31,7936,2031616,520093696],bits:je,createMethod:function(S,x){var Q=gr(S,x,"hex");return Q.create=function(z){return new dt(S,x,z)},Q.update=function(z,ne){return Q.create(ne).update(z)},_r(Q,gr,S,x)}},{name:"cshake",padding:He,bits:je,createMethod:function(S,x){var Q=Pt[S],z=Yn(S,0,"hex");return z.create=function(ne,se,oe){return se||oe?new dt(S,x,ne).bytepad([se,oe],Q):or["shake"+S].create(ne)},z.update=function(ne,se,oe,me){return z.create(se,oe,me).update(ne)},_r(z,Yn,S,x)}},{name:"kmac",padding:He,bits:je,createMethod:function(S,x){var Q=Pt[S],z=An(S,0,"hex");return z.create=function(ne,se,oe){return new Vr(S,x,se).bytepad(["KMAC",oe],Q).bytepad([ne],Q)},z.update=function(ne,se,oe,me){return z.create(ne,oe,me).update(se)},_r(z,An,S,x)}}],or={},Kn=[],vr=0;vr<yi.length;++vr)for(var Nn=yi[vr],Oe=Nn.bits,Xn=0;Xn<Oe.length;++Xn){var ss=Nn.name+"_"+Oe[Xn];if(Kn.push(ss),or[ss]=Nn.createMethod(Oe[Xn],Nn.padding),Nn.name!=="sha3"){var os=Nn.name+Oe[Xn];Kn.push(os),or[os]=or[ss]}}function dt(S,x,Q){this.blocks=[],this.s=[],this.padding=x,this.outputBits=Q,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(S<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=Q>>5,this.extraBytes=(31&Q)>>3;for(var z=0;z<50;++z)this.s[z]=0}function Vr(S,x,Q){dt.call(this,S,x,Q)}dt.prototype.update=function(S){if(this.finalized)throw new Error("finalize already called");var x,Q=typeof S;if(Q!=="string"){if(Q!=="object")throw new Error(R);if(S===null)throw new Error(R);if(Te&&S.constructor===ArrayBuffer)S=new Uint8Array(S);else if(!(Array.isArray(S)||Te&&ArrayBuffer.isView(S)))throw new Error(R);x=!0}for(var z,ne,se=this.blocks,oe=this.byteCount,me=S.length,ge=this.blockCount,ye=0,Me=this.s;ye<me;){if(this.reset)for(this.reset=!1,se[0]=this.block,z=1;z<ge+1;++z)se[z]=0;if(x)for(z=this.start;ye<me&&z<oe;++ye)se[z>>2]|=S[ye]<<xe[3&z++];else for(z=this.start;ye<me&&z<oe;++ye)(ne=S.charCodeAt(ye))<128?se[z>>2]|=ne<<xe[3&z++]:ne<2048?(se[z>>2]|=(192|ne>>6)<<xe[3&z++],se[z>>2]|=(128|63&ne)<<xe[3&z++]):ne<55296||ne>=57344?(se[z>>2]|=(224|ne>>12)<<xe[3&z++],se[z>>2]|=(128|ne>>6&63)<<xe[3&z++],se[z>>2]|=(128|63&ne)<<xe[3&z++]):(ne=65536+((1023&ne)<<10|1023&S.charCodeAt(++ye)),se[z>>2]|=(240|ne>>18)<<xe[3&z++],se[z>>2]|=(128|ne>>12&63)<<xe[3&z++],se[z>>2]|=(128|ne>>6&63)<<xe[3&z++],se[z>>2]|=(128|63&ne)<<xe[3&z++]);if(this.lastByteIndex=z,z>=oe){for(this.start=z-oe,this.block=se[ge],z=0;z<ge;++z)Me[z]^=se[z];G(Me),this.reset=!0}else this.start=z}return this},dt.prototype.encode=function(S,x){var Q=255&S,z=1,ne=[Q];for(Q=255&(S>>=8);Q>0;)ne.unshift(Q),Q=255&(S>>=8),++z;return x?ne.push(z):ne.unshift(z),this.update(ne),ne.length},dt.prototype.encodeString=function(S){var x,Q=typeof S;if(Q!=="string"){if(Q!=="object")throw new Error(R);if(S===null)throw new Error(R);if(Te&&S.constructor===ArrayBuffer)S=new Uint8Array(S);else if(!(Array.isArray(S)||Te&&ArrayBuffer.isView(S)))throw new Error(R);x=!0}var z=0,ne=S.length;if(x)z=ne;else for(var se=0;se<S.length;++se){var oe=S.charCodeAt(se);oe<128?z+=1:oe<2048?z+=2:oe<55296||oe>=57344?z+=3:(oe=65536+((1023&oe)<<10|1023&S.charCodeAt(++se)),z+=4)}return z+=this.encode(8*z),this.update(S),z},dt.prototype.bytepad=function(S,x){for(var Q=this.encode(x),z=0;z<S.length;++z)Q+=this.encodeString(S[z]);var ne=x-Q%x,se=[];return se.length=ne,this.update(se),this},dt.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var S=this.blocks,x=this.lastByteIndex,Q=this.blockCount,z=this.s;if(S[x>>2]|=this.padding[3&x],this.lastByteIndex===this.byteCount)for(S[0]=S[Q],x=1;x<Q+1;++x)S[x]=0;for(S[Q-1]|=2147483648,x=0;x<Q;++x)z[x]^=S[x];G(z)}},dt.prototype.toString=dt.prototype.hex=function(){this.finalize();for(var S,x=this.blockCount,Q=this.s,z=this.outputBlocks,ne=this.extraBytes,se=0,oe=0,me="";oe<z;){for(se=0;se<x&&oe<z;++se,++oe)S=Q[se],me+=Ce[S>>4&15]+Ce[15&S]+Ce[S>>12&15]+Ce[S>>8&15]+Ce[S>>20&15]+Ce[S>>16&15]+Ce[S>>28&15]+Ce[S>>24&15];oe%x==0&&(G(Q),se=0)}return ne&&(S=Q[se],me+=Ce[S>>4&15]+Ce[15&S],ne>1&&(me+=Ce[S>>12&15]+Ce[S>>8&15]),ne>2&&(me+=Ce[S>>20&15]+Ce[S>>16&15])),me},dt.prototype.arrayBuffer=function(){this.finalize();var S,x=this.blockCount,Q=this.s,z=this.outputBlocks,ne=this.extraBytes,se=0,oe=0,me=this.outputBits>>3;S=ne?new ArrayBuffer(z+1<<2):new ArrayBuffer(me);for(var ge=new Uint32Array(S);oe<z;){for(se=0;se<x&&oe<z;++se,++oe)ge[oe]=Q[se];oe%x==0&&G(Q)}return ne&&(ge[se]=Q[se],S=S.slice(0,me)),S},dt.prototype.buffer=dt.prototype.arrayBuffer,dt.prototype.digest=dt.prototype.array=function(){this.finalize();for(var S,x,Q=this.blockCount,z=this.s,ne=this.outputBlocks,se=this.extraBytes,oe=0,me=0,ge=[];me<ne;){for(oe=0;oe<Q&&me<ne;++oe,++me)S=me<<2,x=z[oe],ge[S]=255&x,ge[S+1]=x>>8&255,ge[S+2]=x>>16&255,ge[S+3]=x>>24&255;me%Q==0&&G(z)}return se&&(S=me<<2,x=z[oe],ge[S]=255&x,se>1&&(ge[S+1]=x>>8&255),se>2&&(ge[S+2]=x>>16&255)),ge},Vr.prototype=new dt,Vr.prototype.finalize=function(){return this.encode(this.outputBits,!0),dt.prototype.finalize.call(this)};var G=function(S){var x,Q,z,ne,se,oe,me,ge,ye,Me,Ve,Ye,at,Mt,Bt,rt,ft,Kt,Jn,gi,_i,wr,Pn,cr,Jt,Nt,cu,uu,lu,du,fu,pu,mu,hu,yu,gu,_u,vu,Eu,bu,Su,Tu,wu,Iu,Ru,Au,Ou,Nu,Pu,Cu,Mu,ju,Du,Lu,$u,ku,qu,Bu,Uu,Fu,Hu,Vu,xu;for(z=0;z<48;z+=2)ne=S[0]^S[10]^S[20]^S[30]^S[40],se=S[1]^S[11]^S[21]^S[31]^S[41],oe=S[2]^S[12]^S[22]^S[32]^S[42],me=S[3]^S[13]^S[23]^S[33]^S[43],ge=S[4]^S[14]^S[24]^S[34]^S[44],ye=S[5]^S[15]^S[25]^S[35]^S[45],Me=S[6]^S[16]^S[26]^S[36]^S[46],Ve=S[7]^S[17]^S[27]^S[37]^S[47],x=(Ye=S[8]^S[18]^S[28]^S[38]^S[48])^(oe<<1|me>>>31),Q=(at=S[9]^S[19]^S[29]^S[39]^S[49])^(me<<1|oe>>>31),S[0]^=x,S[1]^=Q,S[10]^=x,S[11]^=Q,S[20]^=x,S[21]^=Q,S[30]^=x,S[31]^=Q,S[40]^=x,S[41]^=Q,x=ne^(ge<<1|ye>>>31),Q=se^(ye<<1|ge>>>31),S[2]^=x,S[3]^=Q,S[12]^=x,S[13]^=Q,S[22]^=x,S[23]^=Q,S[32]^=x,S[33]^=Q,S[42]^=x,S[43]^=Q,x=oe^(Me<<1|Ve>>>31),Q=me^(Ve<<1|Me>>>31),S[4]^=x,S[5]^=Q,S[14]^=x,S[15]^=Q,S[24]^=x,S[25]^=Q,S[34]^=x,S[35]^=Q,S[44]^=x,S[45]^=Q,x=ge^(Ye<<1|at>>>31),Q=ye^(at<<1|Ye>>>31),S[6]^=x,S[7]^=Q,S[16]^=x,S[17]^=Q,S[26]^=x,S[27]^=Q,S[36]^=x,S[37]^=Q,S[46]^=x,S[47]^=Q,x=Me^(ne<<1|se>>>31),Q=Ve^(se<<1|ne>>>31),S[8]^=x,S[9]^=Q,S[18]^=x,S[19]^=Q,S[28]^=x,S[29]^=Q,S[38]^=x,S[39]^=Q,S[48]^=x,S[49]^=Q,Mt=S[0],Bt=S[1],Au=S[11]<<4|S[10]>>>28,Ou=S[10]<<4|S[11]>>>28,uu=S[20]<<3|S[21]>>>29,lu=S[21]<<3|S[20]>>>29,Fu=S[31]<<9|S[30]>>>23,Hu=S[30]<<9|S[31]>>>23,Tu=S[40]<<18|S[41]>>>14,wu=S[41]<<18|S[40]>>>14,hu=S[2]<<1|S[3]>>>31,yu=S[3]<<1|S[2]>>>31,rt=S[13]<<12|S[12]>>>20,ft=S[12]<<12|S[13]>>>20,Nu=S[22]<<10|S[23]>>>22,Pu=S[23]<<10|S[22]>>>22,du=S[33]<<13|S[32]>>>19,fu=S[32]<<13|S[33]>>>19,Vu=S[42]<<2|S[43]>>>30,xu=S[43]<<2|S[42]>>>30,Lu=S[5]<<30|S[4]>>>2,$u=S[4]<<30|S[5]>>>2,gu=S[14]<<6|S[15]>>>26,_u=S[15]<<6|S[14]>>>26,Kt=S[25]<<11|S[24]>>>21,Jn=S[24]<<11|S[25]>>>21,Cu=S[34]<<15|S[35]>>>17,Mu=S[35]<<15|S[34]>>>17,pu=S[45]<<29|S[44]>>>3,mu=S[44]<<29|S[45]>>>3,cr=S[6]<<28|S[7]>>>4,Jt=S[7]<<28|S[6]>>>4,ku=S[17]<<23|S[16]>>>9,qu=S[16]<<23|S[17]>>>9,vu=S[26]<<25|S[27]>>>7,Eu=S[27]<<25|S[26]>>>7,gi=S[36]<<21|S[37]>>>11,_i=S[37]<<21|S[36]>>>11,ju=S[47]<<24|S[46]>>>8,Du=S[46]<<24|S[47]>>>8,Iu=S[8]<<27|S[9]>>>5,Ru=S[9]<<27|S[8]>>>5,Nt=S[18]<<20|S[19]>>>12,cu=S[19]<<20|S[18]>>>12,Bu=S[29]<<7|S[28]>>>25,Uu=S[28]<<7|S[29]>>>25,bu=S[38]<<8|S[39]>>>24,Su=S[39]<<8|S[38]>>>24,wr=S[48]<<14|S[49]>>>18,Pn=S[49]<<14|S[48]>>>18,S[0]=Mt^~rt&Kt,S[1]=Bt^~ft&Jn,S[10]=cr^~Nt&uu,S[11]=Jt^~cu&lu,S[20]=hu^~gu&vu,S[21]=yu^~_u&Eu,S[30]=Iu^~Au&Nu,S[31]=Ru^~Ou&Pu,S[40]=Lu^~ku&Bu,S[41]=$u^~qu&Uu,S[2]=rt^~Kt&gi,S[3]=ft^~Jn&_i,S[12]=Nt^~uu&du,S[13]=cu^~lu&fu,S[22]=gu^~vu&bu,S[23]=_u^~Eu&Su,S[32]=Au^~Nu&Cu,S[33]=Ou^~Pu&Mu,S[42]=ku^~Bu&Fu,S[43]=qu^~Uu&Hu,S[4]=Kt^~gi&wr,S[5]=Jn^~_i&Pn,S[14]=uu^~du&pu,S[15]=lu^~fu&mu,S[24]=vu^~bu&Tu,S[25]=Eu^~Su&wu,S[34]=Nu^~Cu&ju,S[35]=Pu^~Mu&Du,S[44]=Bu^~Fu&Vu,S[45]=Uu^~Hu&xu,S[6]=gi^~wr&Mt,S[7]=_i^~Pn&Bt,S[16]=du^~pu&cr,S[17]=fu^~mu&Jt,S[26]=bu^~Tu&hu,S[27]=Su^~wu&yu,S[36]=Cu^~ju&Iu,S[37]=Mu^~Du&Ru,S[46]=Fu^~Vu&Lu,S[47]=Hu^~xu&$u,S[8]=wr^~Mt&rt,S[9]=Pn^~Bt&ft,S[18]=pu^~cr&Nt,S[19]=mu^~Jt&cu,S[28]=Tu^~hu&gu,S[29]=wu^~yu&_u,S[38]=ju^~Iu&Au,S[39]=Du^~Ru&Ou,S[48]=Vu^~Lu&ku,S[49]=xu^~$u&qu,S[0]^=Tr[z],S[1]^=Tr[z+1]};if(ce)_.exports=or;else for(vr=0;vr<Kn.length;++vr)J[Kn[vr]]=or[Kn[vr]]})()})(o);var c=o.exports,l=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,u=Math.ceil,d=Math.floor,f="[BigNumber Error] ",p=f+"Number primitive has more than 15 significant digits: ",y=1e14,g=14,b=9007199254740991,O=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],m=1e7,T=1e9;function I(_){var R=0|_;return _>0||_===R?R:R-1}function h(_){for(var R,j,J=1,re=_.length,ce=_[0]+"";J<re;){for(R=_[J++]+"",j=g-R.length;j--;R="0"+R);ce+=R}for(re=ce.length;ce.charCodeAt(--re)===48;);return ce.slice(0,re+1||1)}function v(_,R){var j,J,re=_.c,ce=R.c,Te=_.s,Ce=R.s,He=_.e,xe=R.e;if(!Te||!Ce)return null;if(j=re&&!re[0],J=ce&&!ce[0],j||J)return j?J?0:-Ce:Te;if(Te!=Ce)return Te;if(j=Te<0,J=He==xe,!re||!ce)return J?0:!re^j?1:-1;if(!J)return He>xe^j?1:-1;for(Ce=(He=re.length)<(xe=ce.length)?He:xe,Te=0;Te<Ce;Te++)if(re[Te]!=ce[Te])return re[Te]>ce[Te]^j?1:-1;return He==xe?0:He>xe^j?1:-1}function E(_,R,j,J){if(_<R||_>j||_!==d(_))throw Error(f+(J||"Argument")+(typeof _=="number"?_<R||_>j?" out of range: ":" not an integer: ":" not a primitive number: ")+String(_))}function N(_){var R=_.c.length-1;return I(_.e/g)==R&&_.c[R]%2!=0}function M(_,R){return(_.length>1?_.charAt(0)+"."+_.slice(1):_)+(R<0?"e":"e+")+R}function q(_,R,j){var J,re;if(R<0){for(re=j+".";++R;re+=j);_=re+_}else if(++R>(J=_.length)){for(re=j,R-=J;--R;re+=j);_+=re}else R<J&&(_=_.slice(0,R)+"."+_.slice(R));return _}var H=(function _(R){var j,J,re,ce,Te,Ce,He,xe,Tr,Vt,je=Oe.prototype={constructor:Oe,toString:null,valueOf:null},sr=new Oe(1),Pt=20,Ct=4,gr=-7,Yn=21,An=-1e7,_r=1e7,On=!1,yi=1,or=0,Kn={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},vr="0123456789abcdefghijklmnopqrstuvwxyz",Nn=!0;function Oe(G,S){var x,Q,z,ne,se,oe,me,ge,ye=this;if(!(ye instanceof Oe))return new Oe(G,S);if(S==null){if(G&&G._isBigNumber===!0)return ye.s=G.s,void(!G.c||G.e>_r?ye.c=ye.e=null:G.e<An?ye.c=[ye.e=0]:(ye.e=G.e,ye.c=G.c.slice()));if((oe=typeof G=="number")&&0*G==0){if(ye.s=1/G<0?(G=-G,-1):1,G===~~G){for(ne=0,se=G;se>=10;se/=10,ne++);return void(ne>_r?ye.c=ye.e=null:(ye.e=ne,ye.c=[G]))}ge=String(G)}else{if(!l.test(ge=String(G)))return re(ye,ge,oe);ye.s=ge.charCodeAt(0)==45?(ge=ge.slice(1),-1):1}(ne=ge.indexOf("."))>-1&&(ge=ge.replace(".","")),(se=ge.search(/e/i))>0?(ne<0&&(ne=se),ne+=+ge.slice(se+1),ge=ge.substring(0,se)):ne<0&&(ne=ge.length)}else{if(E(S,2,vr.length,"Base"),S==10&&Nn)return dt(ye=new Oe(G),Pt+ye.e+1,Ct);if(ge=String(G),oe=typeof G=="number"){if(0*G!=0)return re(ye,ge,oe,S);if(ye.s=1/G<0?(ge=ge.slice(1),-1):1,Oe.DEBUG&&ge.replace(/^0\.0*|\./,"").length>15)throw Error(p+G)}else ye.s=ge.charCodeAt(0)===45?(ge=ge.slice(1),-1):1;for(x=vr.slice(0,S),ne=se=0,me=ge.length;se<me;se++)if(x.indexOf(Q=ge.charAt(se))<0){if(Q=="."){if(se>ne){ne=me;continue}}else if(!z&&(ge==ge.toUpperCase()&&(ge=ge.toLowerCase())||ge==ge.toLowerCase()&&(ge=ge.toUpperCase()))){z=!0,se=-1,ne=0;continue}return re(ye,String(G),oe,S)}oe=!1,(ne=(ge=J(ge,S,10,ye.s)).indexOf("."))>-1?ge=ge.replace(".",""):ne=ge.length}for(se=0;ge.charCodeAt(se)===48;se++);for(me=ge.length;ge.charCodeAt(--me)===48;);if(ge=ge.slice(se,++me)){if(me-=se,oe&&Oe.DEBUG&&me>15&&(G>b||G!==d(G)))throw Error(p+ye.s*G);if((ne=ne-se-1)>_r)ye.c=ye.e=null;else if(ne<An)ye.c=[ye.e=0];else{if(ye.e=ne,ye.c=[],se=(ne+1)%g,ne<0&&(se+=g),se<me){for(se&&ye.c.push(+ge.slice(0,se)),me-=g;se<me;)ye.c.push(+ge.slice(se,se+=g));se=g-(ge=ge.slice(se)).length}else se-=me;for(;se--;ge+="0");ye.c.push(+ge)}}else ye.c=[ye.e=0]}function Xn(G,S,x,Q){var z,ne,se,oe,me;if(x==null?x=Ct:E(x,0,8),!G.c)return G.toString();if(z=G.c[0],se=G.e,S==null)me=h(G.c),me=Q==1||Q==2&&(se<=gr||se>=Yn)?M(me,se):q(me,se,"0");else if(ne=(G=dt(new Oe(G),S,x)).e,oe=(me=h(G.c)).length,Q==1||Q==2&&(S<=ne||ne<=gr)){for(;oe<S;me+="0",oe++);me=M(me,ne)}else if(S-=se,me=q(me,ne,"0"),ne+1>oe){if(--S>0)for(me+=".";S--;me+="0");}else if((S+=ne-oe)>0)for(ne+1==oe&&(me+=".");S--;me+="0");return G.s<0&&z?"-"+me:me}function ss(G,S){for(var x,Q=1,z=new Oe(G[0]);Q<G.length;Q++){if(!(x=new Oe(G[Q])).s){z=x;break}S.call(z,x)&&(z=x)}return z}function os(G,S,x){for(var Q=1,z=S.length;!S[--z];S.pop());for(z=S[0];z>=10;z/=10,Q++);return(x=Q+x*g-1)>_r?G.c=G.e=null:x<An?G.c=[G.e=0]:(G.e=x,G.c=S),G}function dt(G,S,x,Q){var z,ne,se,oe,me,ge,ye,Me=G.c,Ve=O;if(Me){e:{for(z=1,oe=Me[0];oe>=10;oe/=10,z++);if((ne=S-z)<0)ne+=g,se=S,ye=(me=Me[ge=0])/Ve[z-se-1]%10|0;else if((ge=u((ne+1)/g))>=Me.length){if(!Q)break e;for(;Me.length<=ge;Me.push(0));me=ye=0,z=1,se=(ne%=g)-g+1}else{for(me=oe=Me[ge],z=1;oe>=10;oe/=10,z++);ye=(se=(ne%=g)-g+z)<0?0:me/Ve[z-se-1]%10|0}if(Q=Q||S<0||Me[ge+1]!=null||(se<0?me:me%Ve[z-se-1]),Q=x<4?(ye||Q)&&(x==0||x==(G.s<0?3:2)):ye>5||ye==5&&(x==4||Q||x==6&&(ne>0?se>0?me/Ve[z-se]:0:Me[ge-1])%10&1||x==(G.s<0?8:7)),S<1||!Me[0])return Me.length=0,Q?(S-=G.e+1,Me[0]=Ve[(g-S%g)%g],G.e=-S||0):Me[0]=G.e=0,G;if(ne==0?(Me.length=ge,oe=1,ge--):(Me.length=ge+1,oe=Ve[g-ne],Me[ge]=se>0?d(me/Ve[z-se]%Ve[se])*oe:0),Q)for(;;){if(ge==0){for(ne=1,se=Me[0];se>=10;se/=10,ne++);for(se=Me[0]+=oe,oe=1;se>=10;se/=10,oe++);ne!=oe&&(G.e++,Me[0]==y&&(Me[0]=1));break}if(Me[ge]+=oe,Me[ge]!=y)break;Me[ge--]=0,oe=1}for(ne=Me.length;Me[--ne]===0;Me.pop());}G.e>_r?G.c=G.e=null:G.e<An&&(G.c=[G.e=0])}return G}function Vr(G){var S,x=G.e;return x===null?G.toString():(S=h(G.c),S=x<=gr||x>=Yn?M(S,x):q(S,x,"0"),G.s<0?"-"+S:S)}return Oe.clone=_,Oe.ROUND_UP=0,Oe.ROUND_DOWN=1,Oe.ROUND_CEIL=2,Oe.ROUND_FLOOR=3,Oe.ROUND_HALF_UP=4,Oe.ROUND_HALF_DOWN=5,Oe.ROUND_HALF_EVEN=6,Oe.ROUND_HALF_CEIL=7,Oe.ROUND_HALF_FLOOR=8,Oe.EUCLID=9,Oe.config=Oe.set=function(G){var S,x;if(G!=null){if(typeof G!="object")throw Error(f+"Object expected: "+G);if(G.hasOwnProperty(S="DECIMAL_PLACES")&&(E(x=G[S],0,T,S),Pt=x),G.hasOwnProperty(S="ROUNDING_MODE")&&(E(x=G[S],0,8,S),Ct=x),G.hasOwnProperty(S="EXPONENTIAL_AT")&&((x=G[S])&&x.pop?(E(x[0],-T,0,S),E(x[1],0,T,S),gr=x[0],Yn=x[1]):(E(x,-T,T,S),gr=-(Yn=x<0?-x:x))),G.hasOwnProperty(S="RANGE"))if((x=G[S])&&x.pop)E(x[0],-T,-1,S),E(x[1],1,T,S),An=x[0],_r=x[1];else{if(E(x,-T,T,S),!x)throw Error(f+S+" cannot be zero: "+x);An=-(_r=x<0?-x:x)}if(G.hasOwnProperty(S="CRYPTO")){if((x=G[S])!==!!x)throw Error(f+S+" not true or false: "+x);if(x){if(typeof crypto>"u"||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw On=!x,Error(f+"crypto unavailable");On=x}else On=x}if(G.hasOwnProperty(S="MODULO_MODE")&&(E(x=G[S],0,9,S),yi=x),G.hasOwnProperty(S="POW_PRECISION")&&(E(x=G[S],0,T,S),or=x),G.hasOwnProperty(S="FORMAT")){if(typeof(x=G[S])!="object")throw Error(f+S+" not an object: "+x);Kn=x}if(G.hasOwnProperty(S="ALPHABET")){if(typeof(x=G[S])!="string"||/^.?$|[+\-.\s]|(.).*\1/.test(x))throw Error(f+S+" invalid: "+x);Nn=x.slice(0,10)=="0123456789",vr=x}}return{DECIMAL_PLACES:Pt,ROUNDING_MODE:Ct,EXPONENTIAL_AT:[gr,Yn],RANGE:[An,_r],CRYPTO:On,MODULO_MODE:yi,POW_PRECISION:or,FORMAT:Kn,ALPHABET:vr}},Oe.isBigNumber=function(G){if(!G||G._isBigNumber!==!0)return!1;if(!Oe.DEBUG)return!0;var S,x,Q=G.c,z=G.e,ne=G.s;e:if({}.toString.call(Q)=="[object Array]"){if((ne===1||ne===-1)&&z>=-T&&z<=T&&z===d(z)){if(Q[0]===0){if(z===0&&Q.length===1)return!0;break e}if((S=(z+1)%g)<1&&(S+=g),String(Q[0]).length==S){for(S=0;S<Q.length;S++)if((x=Q[S])<0||x>=y||x!==d(x))break e;if(x!==0)return!0}}}else if(Q===null&&z===null&&(ne===null||ne===1||ne===-1))return!0;throw Error(f+"Invalid BigNumber: "+G)},Oe.maximum=Oe.max=function(){return ss(arguments,je.lt)},Oe.minimum=Oe.min=function(){return ss(arguments,je.gt)},Oe.random=(ce=9007199254740992,Te=Math.random()*ce&2097151?function(){return d(Math.random()*ce)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(G){var S,x,Q,z,ne,se=0,oe=[],me=new Oe(sr);if(G==null?G=Pt:E(G,0,T),z=u(G/g),On)if(crypto.getRandomValues){for(S=crypto.getRandomValues(new Uint32Array(z*=2));se<z;)(ne=131072*S[se]+(S[se+1]>>>11))>=9e15?(x=crypto.getRandomValues(new Uint32Array(2)),S[se]=x[0],S[se+1]=x[1]):(oe.push(ne%1e14),se+=2);se=z/2}else{if(!crypto.randomBytes)throw On=!1,Error(f+"crypto unavailable");for(S=crypto.randomBytes(z*=7);se<z;)(ne=281474976710656*(31&S[se])+1099511627776*S[se+1]+4294967296*S[se+2]+16777216*S[se+3]+(S[se+4]<<16)+(S[se+5]<<8)+S[se+6])>=9e15?crypto.randomBytes(7).copy(S,se):(oe.push(ne%1e14),se+=7);se=z/7}if(!On)for(;se<z;)(ne=Te())<9e15&&(oe[se++]=ne%1e14);for(z=oe[--se],G%=g,z&&G&&(ne=O[g-G],oe[se]=d(z/ne)*ne);oe[se]===0;oe.pop(),se--);if(se<0)oe=[Q=0];else{for(Q=-1;oe[0]===0;oe.splice(0,1),Q-=g);for(se=1,ne=oe[0];ne>=10;ne/=10,se++);se<g&&(Q-=g-se)}return me.e=Q,me.c=oe,me}),Oe.sum=function(){for(var G=1,S=arguments,x=new Oe(S[0]);G<S.length;)x=x.plus(S[G++]);return x},J=(function(){var G="0123456789";function S(x,Q,z,ne){for(var se,oe,me=[0],ge=0,ye=x.length;ge<ye;){for(oe=me.length;oe--;me[oe]*=Q);for(me[0]+=ne.indexOf(x.charAt(ge++)),se=0;se<me.length;se++)me[se]>z-1&&(me[se+1]==null&&(me[se+1]=0),me[se+1]+=me[se]/z|0,me[se]%=z)}return me.reverse()}return function(x,Q,z,ne,se){var oe,me,ge,ye,Me,Ve,Ye,at,Mt=x.indexOf("."),Bt=Pt,rt=Ct;for(Mt>=0&&(ye=or,or=0,x=x.replace(".",""),Ve=(at=new Oe(Q)).pow(x.length-Mt),or=ye,at.c=S(q(h(Ve.c),Ve.e,"0"),10,z,G),at.e=at.c.length),ge=ye=(Ye=S(x,Q,z,se?(oe=vr,G):(oe=G,vr))).length;Ye[--ye]==0;Ye.pop());if(!Ye[0])return oe.charAt(0);if(Mt<0?--ge:(Ve.c=Ye,Ve.e=ge,Ve.s=ne,Ye=(Ve=j(Ve,at,Bt,rt,z)).c,Me=Ve.r,ge=Ve.e),Mt=Ye[me=ge+Bt+1],ye=z/2,Me=Me||me<0||Ye[me+1]!=null,Me=rt<4?(Mt!=null||Me)&&(rt==0||rt==(Ve.s<0?3:2)):Mt>ye||Mt==ye&&(rt==4||Me||rt==6&&1&Ye[me-1]||rt==(Ve.s<0?8:7)),me<1||!Ye[0])x=Me?q(oe.charAt(1),-Bt,oe.charAt(0)):oe.charAt(0);else{if(Ye.length=me,Me)for(--z;++Ye[--me]>z;)Ye[me]=0,me||(++ge,Ye=[1].concat(Ye));for(ye=Ye.length;!Ye[--ye];);for(Mt=0,x="";Mt<=ye;x+=oe.charAt(Ye[Mt++]));x=q(x,ge,oe.charAt(0))}return x}})(),j=(function(){function G(Q,z,ne){var se,oe,me,ge,ye=0,Me=Q.length,Ve=z%m,Ye=z/m|0;for(Q=Q.slice();Me--;)ye=((oe=Ve*(me=Q[Me]%m)+(se=Ye*me+(ge=Q[Me]/m|0)*Ve)%m*m+ye)/ne|0)+(se/m|0)+Ye*ge,Q[Me]=oe%ne;return ye&&(Q=[ye].concat(Q)),Q}function S(Q,z,ne,se){var oe,me;if(ne!=se)me=ne>se?1:-1;else for(oe=me=0;oe<ne;oe++)if(Q[oe]!=z[oe]){me=Q[oe]>z[oe]?1:-1;break}return me}function x(Q,z,ne,se){for(var oe=0;ne--;)Q[ne]-=oe,oe=Q[ne]<z[ne]?1:0,Q[ne]=oe*se+Q[ne]-z[ne];for(;!Q[0]&&Q.length>1;Q.splice(0,1));}return function(Q,z,ne,se,oe){var me,ge,ye,Me,Ve,Ye,at,Mt,Bt,rt,ft,Kt,Jn,gi,_i,wr,Pn,cr=Q.s==z.s?1:-1,Jt=Q.c,Nt=z.c;if(!(Jt&&Jt[0]&&Nt&&Nt[0]))return new Oe(Q.s&&z.s&&(Jt?!Nt||Jt[0]!=Nt[0]:Nt)?Jt&&Jt[0]==0||!Nt?0*cr:cr/0:NaN);for(Bt=(Mt=new Oe(cr)).c=[],cr=ne+(ge=Q.e-z.e)+1,oe||(oe=y,ge=I(Q.e/g)-I(z.e/g),cr=cr/g|0),ye=0;Nt[ye]==(Jt[ye]||0);ye++);if(Nt[ye]>(Jt[ye]||0)&&ge--,cr<0)Bt.push(1),Me=!0;else{for(gi=Jt.length,wr=Nt.length,ye=0,cr+=2,(Ve=d(oe/(Nt[0]+1)))>1&&(Nt=G(Nt,Ve,oe),Jt=G(Jt,Ve,oe),wr=Nt.length,gi=Jt.length),Jn=wr,ft=(rt=Jt.slice(0,wr)).length;ft<wr;rt[ft++]=0);Pn=Nt.slice(),Pn=[0].concat(Pn),_i=Nt[0],Nt[1]>=oe/2&&_i++;do{if(Ve=0,(me=S(Nt,rt,wr,ft))<0){if(Kt=rt[0],wr!=ft&&(Kt=Kt*oe+(rt[1]||0)),(Ve=d(Kt/_i))>1)for(Ve>=oe&&(Ve=oe-1),at=(Ye=G(Nt,Ve,oe)).length,ft=rt.length;S(Ye,rt,at,ft)==1;)Ve--,x(Ye,wr<at?Pn:Nt,at,oe),at=Ye.length,me=1;else Ve==0&&(me=Ve=1),at=(Ye=Nt.slice()).length;if(at<ft&&(Ye=[0].concat(Ye)),x(rt,Ye,ft,oe),ft=rt.length,me==-1)for(;S(Nt,rt,wr,ft)<1;)Ve++,x(rt,wr<ft?Pn:Nt,ft,oe),ft=rt.length}else me===0&&(Ve++,rt=[0]);Bt[ye++]=Ve,rt[0]?rt[ft++]=Jt[Jn]||0:(rt=[Jt[Jn]],ft=1)}while((Jn++<gi||rt[0]!=null)&&cr--);Me=rt[0]!=null,Bt[0]||Bt.splice(0,1)}if(oe==y){for(ye=1,cr=Bt[0];cr>=10;cr/=10,ye++);dt(Mt,ne+(Mt.e=ye+ge*g-1)+1,se,Me)}else Mt.e=ge,Mt.r=+Me;return Mt}})(),Ce=/^(-?)0([xbo])(?=\w[\w.]*$)/i,He=/^([^.]+)\.$/,xe=/^\.([^.]+)$/,Tr=/^-?(Infinity|NaN)$/,Vt=/^\s*\+(?=[\w.])|^\s+|\s+$/g,re=function(G,S,x,Q){var z,ne=x?S:S.replace(Vt,"");if(Tr.test(ne))G.s=isNaN(ne)?null:ne<0?-1:1;else{if(!x&&(ne=ne.replace(Ce,(function(se,oe,me){return z=(me=me.toLowerCase())=="x"?16:me=="b"?2:8,Q&&Q!=z?se:oe})),Q&&(z=Q,ne=ne.replace(He,"$1").replace(xe,"0.$1")),S!=ne))return new Oe(ne,z);if(Oe.DEBUG)throw Error(f+"Not a"+(Q?" base "+Q:"")+" number: "+S);G.s=null}G.c=G.e=null},je.absoluteValue=je.abs=function(){var G=new Oe(this);return G.s<0&&(G.s=1),G},je.comparedTo=function(G,S){return v(this,new Oe(G,S))},je.decimalPlaces=je.dp=function(G,S){var x,Q,z,ne=this;if(G!=null)return E(G,0,T),S==null?S=Ct:E(S,0,8),dt(new Oe(ne),G+ne.e+1,S);if(!(x=ne.c))return null;if(Q=((z=x.length-1)-I(this.e/g))*g,z=x[z])for(;z%10==0;z/=10,Q--);return Q<0&&(Q=0),Q},je.dividedBy=je.div=function(G,S){return j(this,new Oe(G,S),Pt,Ct)},je.dividedToIntegerBy=je.idiv=function(G,S){return j(this,new Oe(G,S),0,1)},je.exponentiatedBy=je.pow=function(G,S){var x,Q,z,ne,se,oe,me,ge,ye=this;if((G=new Oe(G)).c&&!G.isInteger())throw Error(f+"Exponent not an integer: "+Vr(G));if(S!=null&&(S=new Oe(S)),se=G.e>14,!ye.c||!ye.c[0]||ye.c[0]==1&&!ye.e&&ye.c.length==1||!G.c||!G.c[0])return ge=new Oe(Math.pow(+Vr(ye),se?G.s*(2-N(G)):+Vr(G))),S?ge.mod(S):ge;if(oe=G.s<0,S){if(S.c?!S.c[0]:!S.s)return new Oe(NaN);(Q=!oe&&ye.isInteger()&&S.isInteger())&&(ye=ye.mod(S))}else{if(G.e>9&&(ye.e>0||ye.e<-1||(ye.e==0?ye.c[0]>1||se&&ye.c[1]>=24e7:ye.c[0]<8e13||se&&ye.c[0]<=9999975e7)))return ne=ye.s<0&&N(G)?-0:0,ye.e>-1&&(ne=1/ne),new Oe(oe?1/ne:ne);or&&(ne=u(or/g+2))}for(se?(x=new Oe(.5),oe&&(G.s=1),me=N(G)):me=(z=Math.abs(+Vr(G)))%2,ge=new Oe(sr);;){if(me){if(!(ge=ge.times(ye)).c)break;ne?ge.c.length>ne&&(ge.c.length=ne):Q&&(ge=ge.mod(S))}if(z){if((z=d(z/2))===0)break;me=z%2}else if(dt(G=G.times(x),G.e+1,1),G.e>14)me=N(G);else{if((z=+Vr(G))==0)break;me=z%2}ye=ye.times(ye),ne?ye.c&&ye.c.length>ne&&(ye.c.length=ne):Q&&(ye=ye.mod(S))}return Q?ge:(oe&&(ge=sr.div(ge)),S?ge.mod(S):ne?dt(ge,or,Ct,void 0):ge)},je.integerValue=function(G){var S=new Oe(this);return G==null?G=Ct:E(G,0,8),dt(S,S.e+1,G)},je.isEqualTo=je.eq=function(G,S){return v(this,new Oe(G,S))===0},je.isFinite=function(){return!!this.c},je.isGreaterThan=je.gt=function(G,S){return v(this,new Oe(G,S))>0},je.isGreaterThanOrEqualTo=je.gte=function(G,S){return(S=v(this,new Oe(G,S)))===1||S===0},je.isInteger=function(){return!!this.c&&I(this.e/g)>this.c.length-2},je.isLessThan=je.lt=function(G,S){return v(this,new Oe(G,S))<0},je.isLessThanOrEqualTo=je.lte=function(G,S){return(S=v(this,new Oe(G,S)))===-1||S===0},je.isNaN=function(){return!this.s},je.isNegative=function(){return this.s<0},je.isPositive=function(){return this.s>0},je.isZero=function(){return!!this.c&&this.c[0]==0},je.minus=function(G,S){var x,Q,z,ne,se=this,oe=se.s;if(S=(G=new Oe(G,S)).s,!oe||!S)return new Oe(NaN);if(oe!=S)return G.s=-S,se.plus(G);var me=se.e/g,ge=G.e/g,ye=se.c,Me=G.c;if(!me||!ge){if(!ye||!Me)return ye?(G.s=-S,G):new Oe(Me?se:NaN);if(!ye[0]||!Me[0])return Me[0]?(G.s=-S,G):new Oe(ye[0]?se:Ct==3?-0:0)}if(me=I(me),ge=I(ge),ye=ye.slice(),oe=me-ge){for((ne=oe<0)?(oe=-oe,z=ye):(ge=me,z=Me),z.reverse(),S=oe;S--;z.push(0));z.reverse()}else for(Q=(ne=(oe=ye.length)<(S=Me.length))?oe:S,oe=S=0;S<Q;S++)if(ye[S]!=Me[S]){ne=ye[S]<Me[S];break}if(ne&&(z=ye,ye=Me,Me=z,G.s=-G.s),(S=(Q=Me.length)-(x=ye.length))>0)for(;S--;ye[x++]=0);for(S=y-1;Q>oe;){if(ye[--Q]<Me[Q]){for(x=Q;x&&!ye[--x];ye[x]=S);--ye[x],ye[Q]+=y}ye[Q]-=Me[Q]}for(;ye[0]==0;ye.splice(0,1),--ge);return ye[0]?os(G,ye,ge):(G.s=Ct==3?-1:1,G.c=[G.e=0],G)},je.modulo=je.mod=function(G,S){var x,Q,z=this;return G=new Oe(G,S),!z.c||!G.s||G.c&&!G.c[0]?new Oe(NaN):!G.c||z.c&&!z.c[0]?new Oe(z):(yi==9?(Q=G.s,G.s=1,x=j(z,G,0,3),G.s=Q,x.s*=Q):x=j(z,G,0,yi),(G=z.minus(x.times(G))).c[0]||yi!=1||(G.s=z.s),G)},je.multipliedBy=je.times=function(G,S){var x,Q,z,ne,se,oe,me,ge,ye,Me,Ve,Ye,at,Mt,Bt,rt=this,ft=rt.c,Kt=(G=new Oe(G,S)).c;if(!(ft&&Kt&&ft[0]&&Kt[0]))return!rt.s||!G.s||ft&&!ft[0]&&!Kt||Kt&&!Kt[0]&&!ft?G.c=G.e=G.s=null:(G.s*=rt.s,ft&&Kt?(G.c=[0],G.e=0):G.c=G.e=null),G;for(Q=I(rt.e/g)+I(G.e/g),G.s*=rt.s,(me=ft.length)<(Me=Kt.length)&&(at=ft,ft=Kt,Kt=at,z=me,me=Me,Me=z),z=me+Me,at=[];z--;at.push(0));for(Mt=y,Bt=m,z=Me;--z>=0;){for(x=0,Ve=Kt[z]%Bt,Ye=Kt[z]/Bt|0,ne=z+(se=me);ne>z;)x=((ge=Ve*(ge=ft[--se]%Bt)+(oe=Ye*ge+(ye=ft[se]/Bt|0)*Ve)%Bt*Bt+at[ne]+x)/Mt|0)+(oe/Bt|0)+Ye*ye,at[ne--]=ge%Mt;at[ne]=x}return x?++Q:at.splice(0,1),os(G,at,Q)},je.negated=function(){var G=new Oe(this);return G.s=-G.s||null,G},je.plus=function(G,S){var x,Q=this,z=Q.s;if(S=(G=new Oe(G,S)).s,!z||!S)return new Oe(NaN);if(z!=S)return G.s=-S,Q.minus(G);var ne=Q.e/g,se=G.e/g,oe=Q.c,me=G.c;if(!ne||!se){if(!oe||!me)return new Oe(z/0);if(!oe[0]||!me[0])return me[0]?G:new Oe(oe[0]?Q:0*z)}if(ne=I(ne),se=I(se),oe=oe.slice(),z=ne-se){for(z>0?(se=ne,x=me):(z=-z,x=oe),x.reverse();z--;x.push(0));x.reverse()}for((z=oe.length)-(S=me.length)<0&&(x=me,me=oe,oe=x,S=z),z=0;S;)z=(oe[--S]=oe[S]+me[S]+z)/y|0,oe[S]=y===oe[S]?0:oe[S]%y;return z&&(oe=[z].concat(oe),++se),os(G,oe,se)},je.precision=je.sd=function(G,S){var x,Q,z,ne=this;if(G!=null&&G!==!!G)return E(G,1,T),S==null?S=Ct:E(S,0,8),dt(new Oe(ne),G,S);if(!(x=ne.c))return null;if(Q=(z=x.length-1)*g+1,z=x[z]){for(;z%10==0;z/=10,Q--);for(z=x[0];z>=10;z/=10,Q++);}return G&&ne.e+1>Q&&(Q=ne.e+1),Q},je.shiftedBy=function(G){return E(G,-9007199254740991,b),this.times("1e"+G)},je.squareRoot=je.sqrt=function(){var G,S,x,Q,z,ne=this,se=ne.c,oe=ne.s,me=ne.e,ge=Pt+4,ye=new Oe("0.5");if(oe!==1||!se||!se[0])return new Oe(!oe||oe<0&&(!se||se[0])?NaN:se?ne:1/0);if((oe=Math.sqrt(+Vr(ne)))==0||oe==1/0?(((S=h(se)).length+me)%2==0&&(S+="0"),oe=Math.sqrt(+S),me=I((me+1)/2)-(me<0||me%2),x=new Oe(S=oe==1/0?"5e"+me:(S=oe.toExponential()).slice(0,S.indexOf("e")+1)+me)):x=new Oe(oe+""),x.c[0]){for((oe=(me=x.e)+ge)<3&&(oe=0);;)if(z=x,x=ye.times(z.plus(j(ne,z,ge,1))),h(z.c).slice(0,oe)===(S=h(x.c)).slice(0,oe)){if(x.e<me&&--oe,(S=S.slice(oe-3,oe+1))!="9999"&&(Q||S!="4999")){+S&&(+S.slice(1)||S.charAt(0)!="5")||(dt(x,x.e+Pt+2,1),G=!x.times(x).eq(ne));break}if(!Q&&(dt(z,z.e+Pt+2,0),z.times(z).eq(ne))){x=z;break}ge+=4,oe+=4,Q=1}}return dt(x,x.e+Pt+1,Ct,G)},je.toExponential=function(G,S){return G!=null&&(E(G,0,T),G++),Xn(this,G,S,1)},je.toFixed=function(G,S){return G!=null&&(E(G,0,T),G=G+this.e+1),Xn(this,G,S)},je.toFormat=function(G,S,x){var Q,z=this;if(x==null)G!=null&&S&&typeof S=="object"?(x=S,S=null):G&&typeof G=="object"?(x=G,G=S=null):x=Kn;else if(typeof x!="object")throw Error(f+"Argument not an object: "+x);if(Q=z.toFixed(G,S),z.c){var ne,se=Q.split("."),oe=+x.groupSize,me=+x.secondaryGroupSize,ge=x.groupSeparator||"",ye=se[0],Me=se[1],Ve=z.s<0,Ye=Ve?ye.slice(1):ye,at=Ye.length;if(me&&(ne=oe,oe=me,me=ne,at-=ne),oe>0&&at>0){for(ne=at%oe||oe,ye=Ye.substr(0,ne);ne<at;ne+=oe)ye+=ge+Ye.substr(ne,oe);me>0&&(ye+=ge+Ye.slice(ne)),Ve&&(ye="-"+ye)}Q=Me?ye+(x.decimalSeparator||"")+((me=+x.fractionGroupSize)?Me.replace(new RegExp("\\d{"+me+"}\\B","g"),"$&"+(x.fractionGroupSeparator||"")):Me):ye}return(x.prefix||"")+Q+(x.suffix||"")},je.toFraction=function(G){var S,x,Q,z,ne,se,oe,me,ge,ye,Me,Ve,Ye=this,at=Ye.c;if(G!=null&&(!(oe=new Oe(G)).isInteger()&&(oe.c||oe.s!==1)||oe.lt(sr)))throw Error(f+"Argument "+(oe.isInteger()?"out of range: ":"not an integer: ")+Vr(oe));if(!at)return new Oe(Ye);for(S=new Oe(sr),ge=x=new Oe(sr),Q=me=new Oe(sr),Ve=h(at),ne=S.e=Ve.length-Ye.e-1,S.c[0]=O[(se=ne%g)<0?g+se:se],G=!G||oe.comparedTo(S)>0?ne>0?S:ge:oe,se=_r,_r=1/0,oe=new Oe(Ve),me.c[0]=0;ye=j(oe,S,0,1),(z=x.plus(ye.times(Q))).comparedTo(G)!=1;)x=Q,Q=z,ge=me.plus(ye.times(z=ge)),me=z,S=oe.minus(ye.times(z=S)),oe=z;return z=j(G.minus(x),Q,0,1),me=me.plus(z.times(ge)),x=x.plus(z.times(Q)),me.s=ge.s=Ye.s,Me=j(ge,Q,ne*=2,Ct).minus(Ye).abs().comparedTo(j(me,x,ne,Ct).minus(Ye).abs())<1?[ge,Q]:[me,x],_r=se,Me},je.toNumber=function(){return+Vr(this)},je.toPrecision=function(G,S){return G!=null&&E(G,1,T),Xn(this,G,S,2)},je.toString=function(G){var S,x=this,Q=x.s,z=x.e;return z===null?Q?(S="Infinity",Q<0&&(S="-"+S)):S="NaN":(G==null?S=z<=gr||z>=Yn?M(h(x.c),z):q(h(x.c),z,"0"):G===10&&Nn?S=q(h((x=dt(new Oe(x),Pt+z+1,Ct)).c),x.e,"0"):(E(G,2,vr.length,"Base"),S=J(q(h(x.c),z,"0"),10,G,Q,!0)),Q<0&&x.c[0]&&(S="-"+S)),S},je.valueOf=je.toJSON=function(){return Vr(this)},je._isBigNumber=!0,je[Symbol.toStringTag]="BigNumber",je[Symbol.for("nodejs.util.inspect.custom")]=je.valueOf,R!=null&&Oe.set(R),Oe})();const k={ROUNDING_MODE:H.ROUND_DOWN};function B(_){return new TextEncoder().encode(_)}function F(_){return typeof _=="string"?F(X(_)):new TextDecoder().decode(_)}H.config(k);const te="UNKNOWN_ERROR",ie="INVALID_ARGUMENT";function Z(_,R=te,j={}){const J=[];Object.keys(j).forEach((Te=>{try{J.push(Te+"="+JSON.stringify(j[Te]))}catch{J.push(Te+"="+JSON.stringify(j[Te].toString()))}}));const re=_;J.length&&(_+=" ("+J.join(", ")+")");const ce=new Error(_);return ce.reason=re,ce.code=R,Object.keys(j).forEach((function(Te){ce[Te]=j[Te]})),ce}function X(_){if(typeof _!="string")throw new Error("hexToBytes only accept strings, got: "+typeof _);if(_.substr(0,2)==="0x")return X(_.substr(2));const R=new Uint8Array(Math.ceil(_.length/2));let j=0;for(let J=0;J<_.length;J+=2){const re=parseInt(_.substr(J,2),16);if(isNaN(re))throw new Error("Cannot read hex string:"+JSON.stringify(_));R[j]=re,j++}return R}function Y(_){return Array.from(_).map((R=>R.toString(16).padStart(2,"0"))).join("")}function U(_,R){if(typeof _=="string"){if(R&&R.encoding==="hex"&&typeof _=="string"){let j=_;j.length>2&&j.substr(0,2)==="0x"&&(j=j.substr(2));const J=X(j);return c.keccak256(J)}return c.keccak256(B(_))}return c.keccak256(_)}const L={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"};function V(_,R,j){return new Array(R-_.length+1).join(j||"0")+_}function W(_){let R="",j=0;const J=_.length;for(_.substring(0,2)==="0x"&&(j=2);j<J;j+=2){const re=parseInt(_.substr(j,2),16);R+=String.fromCharCode(re)}return R}function P(_){return A(_)&&_.name&&_.name.indexOf("(")!==-1?_.name:_.name+"("+ee(!1,_.inputs||[]).join(",")+")"}function $(..._){const R=_.reduce(((re,ce)=>re+ce.length),0),j=new Uint8Array(R);let J=0;for(const re of _)j.set(re,J),J+=re.length;return j}function ee(_,R){const j=[];return R.forEach((function(J){if(typeof J.components=="object"){if(J.type.substring(0,5)!=="tuple")throw new Error("components found but type is not tuple; report on GitHub");let re="";const ce=J.type.indexOf("[");ce>=0&&(re=J.type.substring(ce));const Te=ee(_,J.components);j.push("("+Te.join(",")+")"+re)}else j.push(J.type)})),j}function Ee(_){const R=_.indexOf("("),j=_.indexOf(")");return R!==-1&&j!==-1?_.substr(0,R):_}function he(_){const R=_.indexOf("("),j=_.indexOf(")");return R!==-1&&j!==-1?_.substr(R+1,j-R-1).replace(" ",""):""}function Se(_){return _==null?_:We(_).toNumber()}function we(_){return We(_).toNumber()}function ae(_){return D(_)?_.toString(10):""+_}function ue(_){return typeof _=="string"&&!_.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(_)?"0x"+_:Ae(_)}function fe(_){if(typeof _=="string")return _.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(_)?Ae(_):"0x"+Y(B(_));if(_ instanceof Uint8Array)return"0x"+Y(_);throw new Error(`toStringData: Error trying to convert ${_} (${typeof _}) to a hex string.`)}function pe(_){return typeof _=="boolean"?_:We(_).toNumber()!==0}function be(_){const R=We(_),j=R.toString(16);return R.isLessThan(0)?"-0x"+j.substr(1):"0x"+j}function Ae(_){if(K(_))return be(+_);if(D(_))return be(_);if(w(_)){const R=_;if(R.indexOf("-0x")===0)return be(R);if(R.indexOf("0x")===0)return R;if(!isFinite(R))return Y(B(R))}if(_ instanceof Uint8Array)return"0x"+Y(_);if(de(_)||A(_))throw new Error("toHex can only be called with scalar values, not objects or arrays");return be(_)}function qe(_){const R=_?_.toLowerCase():"ether",j=L[R];if(j===void 0)throw new Error("This unit doesn't exists, please use the one of the following units"+JSON.stringify(L,null,2));return new H(j,10)}function We(_){let R=_||0;return D(R)?R:(typeof R=="string"&&(R=R.trim()),typeof R!="string"||R.indexOf("0x")!==0&&R.indexOf("-0x")!==0?R instanceof Uint8Array?new H(Y(R),16):new H(R,10):new H(R.replace("0x","").toLowerCase(),16))}function tt(_){return new H(new Array(_).fill("1").join(""),2)}function Xe(_,R=256){const j=We(_).integerValue();return j.isLessThan(0)?tt(R).plus(j).plus(1):j}function ut(_,R){return V(_.toString(2),R,"0")[0]==="1"}function Ht(_){if(typeof _!="string")throw Z("invalid address",ie,{arg:"address",value:_});if(_.trim().match(/^(0x)?[0-9a-fA-F]{40}$/))return _.trim().substring(0,2)!=="0x"&&(_="0x"+_),yr(_);throw Z("invalid address",ie,{arg:"address",value:_})}function It(_,R=256){if(ut(_,R)){const j=tt(R);return _.minus(j).minus(1)}return _}function tr(_){return/^0x[0-9a-f]{40}$/i.test(_)}function Rt(_){return!!/^(0x)?[0-9a-f]{40}$/i.test(_)&&(!(!/^(0x)?[0-9a-f]{40}$/.test(_)&&!/^(0x)?[0-9A-F]{40}$/.test(_))||hr(_))}function hr(_){const R=_.replace("0x",""),j=U(R.toLowerCase());for(let J=0;J<40;J++)if(parseInt(j[J],16)>7&&R[J].toUpperCase()!==R[J]||parseInt(j[J],16)<=7&&R[J].toLowerCase()!==R[J])return!1;return!0}function yr(_){if(_===void 0)return"";const R=_.toLowerCase().replace("0x",""),j=U(R);let J="0x";for(let re=0;re<R.length;re++)parseInt(j[re],16)>7?J+=R[re].toUpperCase():J+=R[re];return J}function yt(_){if(!Array.isArray(_))throw new Error(`Value was not an array: ${JSON.stringify(_)}`);return _}function Hr(_){return tr(_)?_:/^[0-9a-f]{40}$/.test(_)?"0x"+_:"0x"+V(Ae(_).substr(2),40)}function D(_){return _ instanceof H}function w(_){return typeof _=="string"||_&&_.constructor&&_.constructor.name==="String"}function A(_){return _!==null&&!Array.isArray(_)&&typeof _=="object"}function K(_){return typeof _=="boolean"}function de(_){return Array.isArray(_)}var _e,Ie;function Qe(_,R){if(!_)throw new Error("jsonrpc method should be specified!");if(typeof _!="string")throw new Error(`jsonrpc must be a string, got ${typeof _}!`);return r.messageId++,{jsonrpc:"2.0",id:r.messageId,method:_,params:R||[]}}function Lt(_){return Array.isArray(_)?_.every(R):R(_);function R(j){return!!j&&(j.error===void 0||j.error===null)&&j.jsonrpc==="2.0"&&j.id!==null&&"result"in j&&j.result!==void 0}}r.TransactionStatus=void 0,(_e=r.TransactionStatus||(r.TransactionStatus={})).pending="pending",_e.confirmed="confirmed",_e.failed="failed",r.TransactionType=void 0,(Ie=r.TransactionType||(r.TransactionType={})).queued="queued",Ie.dropped="dropped",Ie.replaced="replaced",Ie.pending="pending",Ie.reverted="reverted",Ie.confirmed="confirmed",r.messageId=0;function At(_){return We(_)}function $t(_){return _==="latest"||_==="pending"||_==="earliest"}function it(_){return _===void 0?"latest":rr(_)}function rr(_){return _==null?null:$t(_)?_:Ae(_)}function kf(_){return _.from&&(_.from=jr(_.from)),_.to&&(_.to=jr(_.to)),_.gasPrice!==void 0&&(_.gasPrice=be(_.gasPrice)),_.gas!==void 0&&(_.gas=be(_.gas)),_.value!==void 0&&(_.value=be(_.value)),_.nonce!==void 0&&(_.nonce=be(_.nonce)),_.data&&!_.data.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(_.data)&&(_.data="0x"+_.data),_}function as(_){if(typeof _!="string")throw new Error("The provided input for transactionId is not a string, got: "+JSON.stringify(_));if(_.indexOf("0x")!==0)throw new Error("TransactionID must start with 0x, got: "+JSON.stringify(_));if(_.length!==66)throw new Error("TransactionID must be a 32 byte hex, got: "+JSON.stringify(_));return _}function qf(_){if(typeof _!="object")throw new Error("Did not provide transaction options");if(!_.from)throw new Error('Missing "from" in transaction options');return _.from=jr(_.from),_.to&&(_.to=jr(_.to)),_.gasPrice!==void 0&&(_.gasPrice=be(_.gasPrice)),_.gas!==void 0&&(_.gas=be(_.gas)),_.value!==void 0&&(_.value=be(_.value)),_.nonce!==void 0&&(_.nonce=be(_.nonce)),_.data&&!_.data.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(_.data)&&(_.data="0x"+_.data),_}function mo(_){return _?(_.blockNumber!==null&&(_.blockNumber=we(_.blockNumber)),_.transactionIndex!==null&&(_.transactionIndex=we(_.transactionIndex)),_.nonce=we(_.nonce),_.gas=we(_.gas),_.gasPrice=We(_.gasPrice),_.value=We(_.value),_):null}function wb(_){return _?(_.blockNumber!==null&&(_.blockNumber=we(_.blockNumber)),_.transactionIndex!==null&&(_.transactionIndex=we(_.transactionIndex)),_.cumulativeGasUsed=we(_.cumulativeGasUsed),_.gasUsed=we(_.gasUsed),_.effectiveGasPrice!==void 0&&_.effectiveGasPrice!==null&&(_.effectiveGasPrice=we(_.effectiveGasPrice)),_.logs&&de(_.logs)&&(_.logs=_.logs.map((function(R){return iu(R)}))),_.status=we(_.status||""),_):null}function ho(_){return _?(_.gasLimit=we(_.gasLimit),_.gasUsed=we(_.gasUsed),_.size=we(_.size),_.timestamp=we(_.timestamp),_.number!==null&&(_.number=we(_.number)),_.difficulty=We(_.difficulty),_.totalDifficulty=We(_.totalDifficulty),de(_.transactions)&&_.transactions.forEach((function(R,j){w(R)||(_.transactions[j]=mo(R)||_.transactions[j])})),_):null}function iu(_){return _&&(_.blockNumber&&(_.blockNumber=we(_.blockNumber)),_.transactionIndex&&(_.transactionIndex=we(_.transactionIndex)),_.logIndex&&(_.logIndex=we(_.logIndex)),_)}function jr(_){if(tr(_))return _;if(Rt(_))return"0x"+_;throw new Error(`Invalid address: ${JSON.stringify(_)}`)}function Ib(_){return _}function Rb(_){return _&&(_.startingBlock=we(_.startingBlock),_.currentBlock=we(_.currentBlock),_.highestBlock=we(_.highestBlock),_.knownStates&&(_.knownStates=we(_.knownStates),_.pulledStates=we(_.pulledStates)),_)}function Bf(_){if(_===null)throw Z("cannot convert null value to array",ie,{arg:"value",value:_});if(_ instanceof Uint8Array)return new Uint8Array(_);if(typeof _=="string"){const R=_.match(/^(0x)?[0-9a-fA-F]*$/);if(!R)throw Z("invalid hexidecimal string",ie,{arg:"value",value:_});if(R[1]!=="0x")throw Z("hex string must have 0x prefix",ie,{arg:"value",value:_});(_=_.substring(2)).length%2&&(_="0"+_);const j=[];for(let J=0;J<_.length;J+=2)j.push(parseInt(_.substr(J,2),16));return new Uint8Array(j)}if((function(R){if(!R||parseInt(String(R.length))!==R.length||typeof R=="string")return!1;for(let j=0;j<R.length;j++){const J=R[j];if(J<0||J>=256||parseInt(String(J))!==J)return!1}return!0})(_))return new Uint8Array(_);throw Z("invalid arrayify value",void 0,{arg:"value",value:_,type:typeof _})}function Ab(_,R,j){Object.defineProperty(_,R,{enumerable:!0,value:j,writable:!1})}const n2=new H(-1),i2=new H(0),a2=new H(1),Ob=new H("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function Nb(_){return(function(R,j){function J(Te){return new Error('unexpected character "'+R[Te]+'" at position '+Te+' in "'+R+'"')}const re={type:"",name:"",state:{allowType:!0}};let ce=re;for(let Te=0;Te<R.length;Te++){const Ce=R[Te];switch(Ce){case"(":if(!ce.state.allowParams)throw J(Te);ce.state.allowType=!1,ce.type=yo(ce.type),ce.components=[{type:"",name:"",parent:ce,state:{allowType:!0}}],ce=ce.components[0];break;case")":delete ce.state,ce.name==="indexed"&&(ce.indexed=!0,ce.name=""),ce.type=yo(ce.type);const He=ce;if(ce=ce.parent,!ce)throw J(Te);delete He.parent,ce.state.allowParams=!1,ce.state.allowName=!0,ce.state.allowArray=!0;break;case",":delete ce.state,ce.name==="indexed"&&(ce.indexed=!0,ce.name=""),ce.type=yo(ce.type);const xe={type:"",name:"",parent:ce.parent,state:{allowType:!0}};ce.parent.components.push(xe),delete ce.parent,ce=xe;break;case" ":ce.state.allowType&&ce.type!==""&&(ce.type=yo(ce.type),delete ce.state.allowType,ce.state.allowName=!0,ce.state.allowParams=!0),ce.state.allowName&&ce.name!==""&&(ce.name==="indexed"?(ce.indexed=!0,ce.name=""):ce.state.allowName=!1);break;case"[":if(!ce.state.allowArray)throw J(Te);ce.type+=Ce,ce.state.allowArray=!1,ce.state.allowName=!1,ce.state.readArray=!0;break;case"]":if(!ce.state.readArray)throw J(Te);ce.type+=Ce,ce.state.readArray=!1,ce.state.allowArray=!0,ce.state.allowName=!0;break;default:if(ce.state.allowType)ce.type+=Ce,ce.state.allowParams=!0,ce.state.allowArray=!0;else if(ce.state.allowName)ce.name+=Ce,delete ce.state.allowArray;else{if(!ce.state.readArray)throw J(Te);ce.type+=Ce}}}if(ce.parent)throw new Error("unexpected eof");return delete re.state,ce.name==="indexed"&&(ce.indexed=!0,ce.name=""),re.type=yo(re.type),re})(_)}function yo(_){return _.match(/^uint($|[^1-9])/)?_="uint256"+_.substring(4):_.match(/^int($|[^1-9])/)&&(_="int256"+_.substring(3)),_}const s2=new RegExp(/^bytes([0-9]*)$/),Pb=new RegExp(/^(u?int)([0-9]*)$/),o2=new RegExp(/^(.*)\[([0-9]*)\]$/),c2=function(_,R){const j=_.match(Pb);return j&&parseInt(j[2])<=48?R.toNumber():R};class Rn{constructor(R,j,J,re="",ce){this.coerceFunc=R,this.name=j,this.type=J,this.localName=re,this.dynamic=ce}}class u2 extends Rn{constructor(R){super(R.coerceFunc,R.name,R.type,void 0,R.dynamic),Ab(this,"coder",R)}encode(R){return this.coder.encode(R)}decode(R,j){return this.coder.decode(R,j)}}class l2 extends Rn{constructor(R,j){super(R,"null","",j,!1)}encode(R){return Bf([])}decode(R,j){if(j>R.length)throw new Error("invalid null");return{consumed:0,value:this.coerceFunc("null",void 0)}}}function au(_,R){return new H(_.toString(2).substr(-R),2)}class Cb extends Rn{constructor(R,j,J,re){const ce=(J?"int":"uint")+8*j;super(R,ce,ce,re,!1),this.size=j,this.signed=J}encode(R){try{let j=We(R);if(this.signed){let re=au(Ob,8*this.size-1);if(j.gt(re))throw new Error("out-of-bounds");if(re=re.plus(a2).multipliedBy(n2),j.lt(re))throw new Error("out-of-bounds")}else if(j.lt(i2)||j.gt(au(Ob,8*this.size)))throw new Error("out-of-bounds");j=au(Xe(j,8*this.size),8*this.size),this.signed&&(j=Xe(It(j,8*this.size),256));const J=V(Xe(j).toString(16),64);if(J.indexOf("NaN")!==-1)throw Z("invalid number value, NaN",ie,{arg:this.localName,coderType:this.name,value:R,v:j,twosComplement:Xe(j),twosComplement16:Xe(j).toString(16),pad:V(Xe(j).toString(16),64),size:this.size});return X(J)}catch(j){throw Z("invalid number value",ie,{arg:this.localName,coderType:this.name,value:R,message:j.toString()})}}decode(R,j){if(R.length<j+32)throw Z("insufficient data for "+this.name+" type",ie,{arg:this.localName,coderType:this.name,value:Ae(R.slice(j,j+32))});const J=32-this.size;let re=new H(Y(R.slice(j+J,j+32)),16);return re=this.signed?It(re,8*this.size):au(re,8*this.size),{consumed:32,value:this.coerceFunc(this.name,re)}}}const Wn=new Cb((function(_,R){return R}),32,!1,"none");class Mb extends Rn{constructor(R,j,J){const re="bytes"+j;super(R,re,re,J,!1),this.length=j}encode(R){const j=new Uint8Array(32);try{if(typeof R=="string"&&R.length%2!=0)throw new Error("hex string cannot be odd-length");const J=Bf(R);if(J.length>this.length)throw new Error("incorrect data length");j.set(J)}catch(J){throw Z("invalid "+this.name+" value. Use hex strings or Uint8Array",ie,{arg:this.localName,coderType:this.name,value:J.value||R,details:J.message})}return j}decode(R,j){if(R.length<j+32)throw Z("insufficient data for "+this.name+" type",ie,{arg:this.localName,coderType:this.name,value:Ae(R.slice(j,j+32))});return{consumed:32,value:this.coerceFunc(this.name,R.slice(j,j+this.length))}}}function jb(_){const R=32*Math.ceil(_.length/32),j=new Uint8Array(R-_.length);return $(Wn.encode(_.length),_,j)}function Db(_,R,j){if(_.length<R+32)throw Z("insufficient data for dynamicBytes length",ie,{arg:j,coderType:"dynamicBytes",value:Ae(_.slice(R,R+32))});let J=Wn.decode(_,R).value;try{J=J.toNumber()}catch(re){throw re("dynamic bytes count too large",ie,{arg:j,coderType:"dynamicBytes",value:J.toString()})}if(_.length<R+32+J)throw Z("insufficient data for dynamicBytes type",ie,{arg:j,coderType:"dynamicBytes",value:Ae(_.slice(R,R+32+J))});return{consumed:32+32*Math.ceil(J/32),value:_.slice(R+32,R+32+J)}}function su(_){return 32*Math.ceil(_/32)}function Lb(_,R){if(!Array.isArray(R)){if(!R||typeof R!="object")throw Z("invalid tuple value",ie,{coderType:"tuple",value:R});{const He=[];_.forEach((function(xe){He.push(R[xe.localName])})),R=He}}if(_.length!==R.length)throw Z("types/value length mismatch",ie,{coderType:"tuple",value:R});const j=[];_.forEach((function(He,xe){j.push({dynamic:He.dynamic,value:He.encode(R[xe])})}));let J=0,re=0;j.forEach((function(He){He.dynamic?(J+=32,re+=su(He.value.length)):J+=su(He.value.length)}));let ce=0,Te=J;const Ce=new Uint8Array(J+re);return j.forEach((function(He){He.dynamic?(Ce.set(Wn.encode(Te),ce),ce+=32,Ce.set(He.value,Te),Te+=su(He.value.length)):(Ce.set(He.value,ce),ce+=su(He.value.length))})),Ce}class d2 extends Array{}class f2 extends Rn{constructor(R,j,J,re){super(R,"array",j.type+"["+(J>=0?J:"")+"]",re,J===-1||j.dynamic),this.coder=j,this.length=J}encode(R){if(!Array.isArray(R))throw Z("expected array value",ie,{arg:this.localName,coderType:"array",value:R});let j=this.length,J=new Uint8Array(0);j===-1&&(j=R.length,J=Wn.encode(j)),(function(ce,Te,Ce){if(Ce||(Ce=""),ce<Te)throw Z("missing argument"+Ce,"MISSING_ARGUMENT",{count:ce,expectedCount:Te});if(ce>Te)throw Z("too many arguments"+Ce,"UNEXPECTED_ARGUMENT",{count:ce,expectedCount:Te})})(j,R.length,"in coder array"+(this.localName?" "+this.localName:""));const re=[];for(let ce=0;ce<R.length;ce++)re.push(this.coder);return $(J,Lb(re,R))}decode(R,j){let J=0,re=this.length;if(re===-1){let Ce;try{Ce=Wn.decode(R,j)}catch(He){throw Z("insufficient data for dynamic array length",ie,{arg:this.localName,coderType:"array",value:He.value})}try{re=Ce.value.toNumber()}catch{throw Z("array count too large",ie,{arg:this.localName,coderType:"array",value:Ce.value.toString()})}J+=Ce.consumed,j+=Ce.consumed}const ce=[];for(let Ce=0;Ce<re;Ce++)ce.push(new u2(this.coder));const Te=(function(Ce,He,xe){const Tr=xe;let Vt=0;const je=[];return Ce.forEach((function(sr){let Pt;if(sr.dynamic){const Ct=Wn.decode(He,xe);Pt=sr.decode(He,Tr+Ct.value.toNumber()),Pt.consumed=Ct.consumed}else Pt=sr.decode(He,xe);Pt.value!==void 0&&je.push(Pt.value),xe+=Pt.consumed,Vt+=Pt.consumed})),{value:je,consumed:Vt}})(ce,R,j);return Te.consumed+=J,Te.value=this.coerceFunc(this.type,Te.value),Te}}class Uf extends Rn{constructor(R,j,J){let re=!1;const ce=[];j.forEach((function(Te){Te.dynamic&&(re=!0),ce.push(Te.type)})),super(R,"tuple","tuple("+ce.join(",")+")",J,re),this.coders=j}encode(R){return Lb(this.coders,R)}decode(R,j){const J=(function(re,ce,Te){const Ce=Te;let He=0;const xe=new d2;return re.forEach((function(Tr){let Vt;if(Tr.dynamic){const je=Wn.decode(ce,Te);Vt=Tr.decode(ce,Ce+je.value.toNumber()),Vt.consumed=je.consumed}else Vt=Tr.decode(ce,Te);Vt.value!==void 0&&xe.push(Vt.value),Te+=Vt.consumed,He+=Vt.consumed})),re.forEach((function(Tr,Vt){let je=Tr.localName;je&&(je==="length"&&(je="_length"),xe[je]!==null&&xe[je]!==void 0||(xe[je]=xe[Vt]))})),{value:xe,consumed:He}})(this.coders,R,j);return J.value=this.coerceFunc(this.type,J.value),J}}const p2={address:class extends Rn{constructor(_,R){super(_,"address","address",R,!1)}encode(_){const R=new Uint8Array(32),j=_.trim();if(!Rt(j))throw Z("invalid address format",ie,{arg:this.localName,coderType:"address",value:_});try{R.set(X(jr(j)),12)}catch(J){throw Z(`invalid address (${J.message})`,ie,{arg:this.localName,coderType:"address",value:_})}return R}decode(_,R){if(_.length<R+32)throw Z("insufficuent data for address type",ie,{arg:this.localName,coderType:"address",value:Ae(_.slice(R,R+32)),missingBytes:R+32-_.length});return{consumed:32,value:this.coerceFunc("address",Ht(Ae(_.slice(R+12,R+32))))}}},bool:class extends Rn{constructor(_,R){super(_,"bool","bool",R,!1)}encode(_){return Wn.encode(_?1:0)}decode(_,R){try{const j=Wn.decode(_,R);return{consumed:j.consumed,value:this.coerceFunc("bool",!j.value.isZero())}}catch(j){throw j.reason==="insufficient data for uint256 type"?Z("insufficient data for boolean type",ie,{arg:this.localName,coderType:"boolean",value:j.value}):j}}},string:class extends Rn{constructor(_,R){super(_,"string","string",R,!0)}encode(_){if(typeof _!="string")throw Z("invalid string value",ie,{arg:this.localName,coderType:"string",value:_});return jb(B(_))}decode(_,R){const j=Db(_,R,this.localName);return j.value=this.coerceFunc("string",F(j.value)),j}},bytes:class extends Rn{constructor(_,R){super(_,"bytes","bytes",R,!0)}encode(_){try{return jb(Bf(_))}catch(R){throw R("invalid bytes value",ie,{arg:this.localName,coderType:"bytes",value:R.value})}}decode(_,R){const j=Db(_,R,this.localName);return j.value=this.coerceFunc("bytes",j.value),j}},function:class extends Mb{constructor(_,R){super(_,24,R)}}};function ou(_,R){const j=p2[R.type];if(j)return new j(_,R.name);let J=R.type.match(Pb);if(J){const re=parseInt(J[2]||"256");if(re===0||re>256||re%8!=0)throw Z("invalid "+J[1]+" bit length",ie,{arg:"param",value:R});return new Cb(_,re/8,J[1]==="int",R.name)}if(J=R.type.match(s2),J){const re=parseInt(J[1]);if(re===0||re>32)throw Z("invalid bytes length",ie,{arg:"param",value:R});return new Mb(_,re,R.name)}if(J=R.type.match(o2),J){const re=Object.assign({},R),ce=parseInt(J[2]||"-1");return re.type=J[1],new f2(_,ou(_,re),ce,R.name)}if(R.type.substring(0,5)==="tuple")return(function(re,ce,Te){ce||(ce=[]);const Ce=ce.map((He=>ou(re,He)));return new Uf(re,Ce,Te)})(_,R.components,R.name);if(R.type==="")return new l2(_,R.name);throw Z("invalid type",ie,{arg:"type",value:R.type,fullType:R})}class Ff{constructor(R){(function(j,J){if(!(j instanceof J))throw Z("missing new","MISSING_NEW",{name:J.name})})(this,Ff),R||(R=c2),Ab(this,"coerceFunc",R)}encode(R,j){if(R.length!==j.length)throw Z("types/values length mismatch",ie,{count:{types:R.length,values:j.length},value:{types:R,values:j}});const J=R.map((re=>typeof re=="string"?Nb(re):re)).map((re=>ou(this.coerceFunc,re)));return new Uf(this.coerceFunc,J,"_").encode(j)}decode(R,j){const J=R.map((re=>typeof re=="string"?Nb(re):re)).map((re=>ou(this.coerceFunc,re)));return new Uf(this.coerceFunc,J,"_").decode(j,0).value}}const $b=new Ff;var kb,$e;function Be(_,R,j,J){var re,ce=arguments.length,Te=ce<3?R:J;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Te=Reflect.decorate(_,R,j,J);else for(var Ce=_.length-1;Ce>=0;Ce--)(re=_[Ce])&&(Te=(ce<3?re(Te):ce>3?re(R,j,Te):re(R,j))||Te);return ce>3&&Te&&Object.defineProperty(R,j,Te),Te}function Ue(_,R){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(_,R)}r.coder=void 0,(kb=r.coder||(r.coder={})).encodeParams=function(_,R){return Y($b.encode(_,R))},kb.decodeParams=function(_,R){if(_.length>0&&(!R||R==="0x"||R==="0X"))throw new Error("Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.");return $b.decode(_,X("0x"+R.replace(/0x/i,"")))},typeof SuppressedError=="function"&&SuppressedError;class Ge{constructor(R){this.callName=R.callName,this.params=R.params||0,this.inputFormatter=R.inputFormatter||null,this.outputFormatter=R.outputFormatter}validateArgs(R){if(R.length!==this.params)throw j=this.callName,J=R.length,re=this.params,new Error(`Invalid number of input parameters to RPC method "${j}" given: ${J}, expected: ${re}`);var j,J,re}formatInput(R){return this.inputFormatter?this.inputFormatter.map((function(j,J){return j?j(R[J]):R[J]})):R}formatOutput(R){return R!==null?this.outputFormatter(R):null}toPayload(R){const j=this.formatInput(R);return this.validateArgs(j),{method:this.callName,params:j}}async execute(R,...j){const J=this.toPayload(j);if(!R)throw new Error("Missing RequestManager in method#exec");const re=await R.sendAsync(J);return this.formatOutput(re)}}class Dr{constructor(R){this.getter=R.getter,this.outputFormatter=R.outputFormatter}formatOutput(R){return this.outputFormatter(R)}async execute(R,...j){const J=await R.sendAsync({method:this.getter,params:[]});return this.formatOutput(J)}}function qb(_){return new Promise((R=>setTimeout(R,_)))}r.eth=void 0,($e=r.eth||(r.eth={})).eth_getBalance=new Ge({callName:"eth_getBalance",params:2,inputFormatter:[jr,it],outputFormatter:At}),$e.eth_getStorageAt=new Ge({callName:"eth_getStorageAt",params:3,inputFormatter:[jr,Ae,it],outputFormatter:ue}),$e.eth_getCode=new Ge({callName:"eth_getCode",params:2,inputFormatter:[jr,it],outputFormatter:ue}),$e.eth_getBlockByHash=new Ge({callName:"eth_getBlockByHash",params:2,inputFormatter:[rr,function(_){return!!_}],outputFormatter:ho}),$e.eth_getBlockByNumber=new Ge({callName:"eth_getBlockByNumber",params:2,inputFormatter:[rr,function(_){return!!_}],outputFormatter:ho}),$e.eth_getUncleByBlockHashAndIndex=new Ge({callName:"eth_getUncleByBlockHashAndIndex",params:2,inputFormatter:[rr,Ae],outputFormatter:ho}),$e.eth_getUncleByBlockNumberAndIndex=new Ge({callName:"eth_getUncleByBlockNumberAndIndex",params:2,inputFormatter:[rr,Ae],outputFormatter:ho}),$e.eth_getBlockTransactionCountByHash=new Ge({callName:"eth_getBlockTransactionCountByHash",params:1,inputFormatter:[rr],outputFormatter:we}),$e.eth_getBlockTransactionCountByNumber=new Ge({callName:"eth_getBlockTransactionCountByNumber",params:1,inputFormatter:[rr],outputFormatter:we}),$e.eth_getUncleCountByBlockHash=new Ge({callName:"eth_getUncleCountByBlockHash",params:1,inputFormatter:[rr],outputFormatter:we}),$e.eth_getUncleCountByBlockNumber=new Ge({callName:"eth_getUncleCountByBlockNumber",params:1,inputFormatter:[rr],outputFormatter:we}),$e.eth_getTransactionByHash=new Ge({callName:"eth_getTransactionByHash",params:1,inputFormatter:[as],outputFormatter:mo}),$e.eth_getTransactionByBlockHashAndIndex=new Ge({callName:"eth_getTransactionByBlockHashAndIndex",params:2,inputFormatter:[rr,Ae],outputFormatter:mo}),$e.eth_getTransactionByBlockNumberAndIndex=new Ge({callName:"eth_getTransactionByBlockNumberAndIndex",params:2,inputFormatter:[rr,Ae],outputFormatter:mo}),$e.eth_getTransactionReceipt=new Ge({callName:"eth_getTransactionReceipt",params:1,inputFormatter:[as],outputFormatter:wb}),$e.eth_getTransactionCount=new Ge({callName:"eth_getTransactionCount",params:2,inputFormatter:[jr,it],outputFormatter:we}),$e.eth_sendRawTransaction=new Ge({callName:"eth_sendRawTransaction",params:1,inputFormatter:[null],outputFormatter:ue}),$e.web3_sha3=new Ge({callName:"web3_sha3",params:1,inputFormatter:[null],outputFormatter:ue}),$e.eth_sendTransaction=new Ge({callName:"eth_sendTransaction",params:1,inputFormatter:[qf],outputFormatter:ue}),$e.eth_sign=new Ge({callName:"eth_sign",params:2,inputFormatter:[jr,null],outputFormatter:ue}),$e.eth_call=new Ge({callName:"eth_call",params:2,inputFormatter:[kf,it],outputFormatter:ue}),$e.eth_estimateGas=new Ge({callName:"eth_estimateGas",params:1,inputFormatter:[kf],outputFormatter:we}),$e.eth_submitWork=new Ge({callName:"eth_submitWork",params:3,inputFormatter:[null,null,null],outputFormatter:pe}),$e.eth_getWork=new Ge({callName:"eth_getWork",params:0,inputFormatter:[],outputFormatter:yt}),$e.eth_coinbase=new Dr({getter:"eth_coinbase",outputFormatter:Hr}),$e.eth_mining=new Dr({getter:"eth_mining",outputFormatter:pe}),$e.eth_hashrate=new Dr({getter:"eth_hashrate",outputFormatter:we}),$e.eth_syncing=new Dr({getter:"eth_syncing",outputFormatter:Rb}),$e.eth_gasPrice=new Dr({getter:"eth_gasPrice",outputFormatter:At}),$e.eth_accounts=new Dr({getter:"eth_accounts",outputFormatter:yt}),$e.eth_blockNumber=new Dr({getter:"eth_blockNumber",outputFormatter:we}),$e.eth_protocolVersion=new Dr({getter:"eth_protocolVersion",outputFormatter:we}),$e.web3_clientVersion=new Dr({getter:"web3_clientVersion",outputFormatter:ae}),$e.net_version=new Dr({getter:"net_version",outputFormatter:ae}),$e.shh_version=new Ge({callName:"shh_version",params:0,inputFormatter:[],outputFormatter:we}),$e.shh_post=new Ge({callName:"shh_post",params:1,inputFormatter:[null],outputFormatter:pe}),$e.personal_newAccount=new Ge({callName:"personal_newAccount",params:1,inputFormatter:[null],outputFormatter:Hr}),$e.personal_importRawKey=new Ge({callName:"personal_importRawKey",params:2,inputFormatter:[null,null],outputFormatter:Hr}),$e.personal_sign=new Ge({callName:"personal_sign",params:3,inputFormatter:[fe,jr,null],outputFormatter:ue}),$e.personal_ecRecover=new Ge({callName:"personal_ecRecover",params:2,inputFormatter:[fe,null],outputFormatter:Hr}),$e.personal_unlockAccount=new Ge({callName:"personal_unlockAccount",params:3,inputFormatter:[jr,null,Se],outputFormatter:pe}),$e.personal_sendTransaction=new Ge({callName:"personal_sendTransaction",params:2,inputFormatter:[qf,null],outputFormatter:ue}),$e.personal_lockAccount=new Ge({callName:"personal_lockAccount",params:1,inputFormatter:[jr],outputFormatter:pe}),$e.personal_listAccounts=new Dr({getter:"personal_listAccounts",outputFormatter:yt}),$e.net_listening=new Dr({getter:"net_listening",outputFormatter:pe}),$e.net_peerCount=new Dr({getter:"net_peerCount",outputFormatter:we}),$e.eth_newFilter=new Ge({callName:"eth_newFilter",params:1,inputFormatter:[Ib],outputFormatter:Ae}),$e.eth_getLogs=new Ge({callName:"eth_getLogs",params:1,inputFormatter:[yt],outputFormatter:yt}),$e.eth_newBlockFilter=new Ge({callName:"eth_newBlockFilter",params:0,inputFormatter:[],outputFormatter:Ae}),$e.eth_newPendingTransactionFilter=new Ge({callName:"eth_newPendingTransactionFilter",params:0,inputFormatter:[],outputFormatter:Ae}),$e.eth_uninstallFilter=new Ge({callName:"eth_uninstallFilter",params:1,inputFormatter:[Ae],outputFormatter:pe}),$e.eth_getFilterLogs=new Ge({callName:"eth_getFilterLogs",params:1,inputFormatter:[Ae],outputFormatter:yt}),$e.eth_getFilterChanges=new Ge({callName:"eth_getFilterChanges",params:1,inputFormatter:[Ae],outputFormatter:yt}),$e.eth_submitHashrate=new Ge({callName:"eth_submitHashrate",params:2,inputFormatter:[null,null],outputFormatter:pe}),$e.shh_newIdentity=new Ge({callName:"shh_newIdentity",params:0,inputFormatter:[],outputFormatter:ue}),$e.shh_hasIdentity=new Ge({callName:"shh_hasIdentity",params:1,inputFormatter:[null],outputFormatter:pe}),$e.shh_newGroup=new Ge({callName:"shh_newGroup",params:0,inputFormatter:[],outputFormatter:ue}),$e.shh_addToGroup=new Ge({callName:"shh_addToGroup",params:1,inputFormatter:[null],outputFormatter:pe}),$e.shh_newFilter=new Ge({callName:"shh_newFilter",params:1,inputFormatter:[null],outputFormatter:Ae}),$e.shh_uninstallFilter=new Ge({callName:"shh_uninstallFilter",params:1,inputFormatter:[null],outputFormatter:pe}),$e.shh_getLogs=new Ge({callName:"shh_getLogs",params:1,inputFormatter:[null],outputFormatter:yt}),$e.shh_getFilterMessages=new Ge({callName:"shh_getFilterMessages",params:1,inputFormatter:[null],outputFormatter:yt}),$e.shh_getFilterChanges=new Ge({callName:"shh_getFilterChanges",params:1,inputFormatter:[null],outputFormatter:yt}),$e.shh_getMessages=new Ge({callName:"shh_getMessages",params:1,inputFormatter:[null],outputFormatter:yt});function Fe(_,R){const j=r.eth[R];if(!j)throw new Error(`Could not find the method/property named ${R.toString()}`);Object.defineProperty(_,R,{value:function(...J){return j.execute(this,...J)}})}class Le{constructor(R){this.provider=R,this.requests=new Map}async sendAsync(R){const j=await this.provider;if(!j)throw new Error("Provider not set or invalid");const J=Qe(R.method,R.params),re=s();return this.requests.set(J.id,re),j.sendAsync(J,((ce,Te)=>{this.requests.delete(J.id),ce?re.reject(ce):Lt(Te)?re.resolve(Te.result):re.reject((function(Ce){const He=Ce&&Ce.error&&Ce.error.message?Ce.error.message:"Invalid JSON RPC response: "+JSON.stringify(Ce);return new Error(He)})(Te))})),re}setProvider(R){this.provider=R}async getConfirmedTransaction(R){const j=await this.waitForCompletion(R);if(this.isFailure(j))throw new Error(`Transaction "${R}" failed`);return j}async waitForCompletion(R,j){const J=as(R);if(await this.isTxDropped(J,j)){const re=await this.getTransactionAndReceipt(J);return Object.assign(Object.assign({},re),{status:r.TransactionStatus.failed})}for(;;){const re=await this.getTransactionAndReceipt(J);if(!this.isPending(re)&&re.receipt)return Object.assign(Object.assign({},re),{status:this.isFailure(re)?r.TransactionStatus.failed:r.TransactionStatus.confirmed});await qb(2e3)}}async getTransaction(R){let j,J=null;const re=as(R);try{const Te=(await this.eth_accounts())[0];Te&&(J=await this.eth_getTransactionCount(Te,"latest"))}catch{J=null}try{if(j=await this.eth_getTransactionByHash(re),j===null)return null}catch{return null}if(j.blockNumber===null){if(J!==null){if(j.nonce<J)return{hash:re,type:r.TransactionType.replaced,nonce:j.nonce};if(j.nonce>J)return{hash:re,type:r.TransactionType.queued,nonce:j.nonce}}return Object.assign({type:r.TransactionType.pending},j)}let ce;try{if(ce=await this.eth_getTransactionReceipt(re),ce===null||ce.status===0)return Object.assign({type:r.TransactionType.reverted},j)}catch{return null}return Object.assign(Object.assign({type:r.TransactionType.confirmed},j),{receipt:ce})}async isTxDropped(R,j=15){let J=j;for(;J>0;){if(await this.getTransactionAndReceipt(R)!==null)return!1;J-=1,await qb(2e3)}return!0}async getTransactionAndReceipt(R){R=as(R);const[j,J]=await Promise.all([this.eth_getTransactionByHash(R),this.eth_getTransactionReceipt(R)]);return Object.assign(Object.assign({},j),{receipt:J})}isPending(R){return R&&R.blockNumber===null}isFailure(R){return R&&(!R.receipt||R.receipt.status===0)}}Be([Fe,Ue("design:type",Function)],Le.prototype,"web3_clientVersion",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"web3_sha3",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"net_version",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"net_peerCount",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"net_listening",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_protocolVersion",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_syncing",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_coinbase",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_mining",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_hashrate",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_gasPrice",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_accounts",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_blockNumber",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getBalance",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getStorageAt",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getTransactionCount",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getBlockTransactionCountByHash",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getBlockTransactionCountByNumber",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getUncleCountByBlockHash",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getUncleCountByBlockNumber",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getCode",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_sign",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_sendTransaction",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_sendRawTransaction",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_call",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_estimateGas",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getBlockByHash",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getBlockByNumber",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getTransactionByHash",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getTransactionByBlockHashAndIndex",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getTransactionByBlockNumberAndIndex",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getTransactionReceipt",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getUncleByBlockHashAndIndex",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getUncleByBlockNumberAndIndex",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_newFilter",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_newBlockFilter",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_newPendingTransactionFilter",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_uninstallFilter",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getFilterChanges",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getFilterLogs",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getLogs",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getWork",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_submitWork",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_submitHashrate",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"shh_post",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"shh_version",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"shh_newIdentity",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"shh_hasIdentity",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"shh_newGroup",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"shh_addToGroup",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"shh_newFilter",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"shh_uninstallFilter",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"shh_getFilterChanges",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"shh_getMessages",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"personal_unlockAccount",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"personal_newAccount",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"personal_listAccounts",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"personal_lockAccount",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"personal_importRawKey",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"personal_sendTransaction",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"personal_sign",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"personal_ecRecover",void 0);class Bb{constructor(R){this.json=R,this._inputTypes=R.inputs||[],this._outputTypes=R.outputs||[],this._constant=!!R.constant,this._payable=!!R.payable||R.stateMutability==="payable",this.needsToBeTransaction=this._payable||"constant"in R&&!R.constant||R.stateMutability==="nonpayable",this._name=P(R)}extractDefaultBlock(R){return R.length>this._inputTypes.length&&!A(R[R.length-1])&&it(R.pop())||"latest"}validateArgs(R){if(R.some((ce=>ce===void 0)))throw new Error("Invalid call, some arguments are undefined");const j=R.filter((function(ce){return!(A(ce)===!0&&de(ce)===!1&&D(ce)===!1&&!(ce instanceof Uint8Array))}));if(j.length!==this._inputTypes.length)throw J=j.length,re=this._inputTypes.length,new Error(`Invalid number of arguments to Solidity function. given: ${J}, expected: ${re}`);var J,re}toPayload(R){let j={to:void 0,data:void 0,value:void 0,from:void 0};R.length>this._inputTypes.length&&A(R[R.length-1])&&(j=R.pop()),this.validateArgs(R);const J=this.signature();let re=r.coder.encodeParams(this._inputTypes,R);return re.indexOf("0x")===0&&(re=re.substr(2)),j.data="0x"+J+re,j}signature(){return U(this._name).slice(0,8)}unpackOutput(R){if(!R)return;const j=R.length>=2?R.slice(2):R,J=r.coder.decodeParams(this._outputTypes,j);return J.length===1?J[0]:J}async execute(R,j,...J){if(!R)throw new Error(`Cannot call function ${this.displayName()} because there is no requestManager`);if(this.needsToBeTransaction){const re=this.toPayload(J);if(re.to=j,re.value>0&&!this._payable)throw new Error("Cannot send value to non-payable function");if(!re.from)throw new Error('Missing "from" in transaction options');return await R.eth_sendTransaction(re)}{const re=this.extractDefaultBlock(J),ce=this.toPayload(J);ce.to=j;const Te=await R.eth_call(ce,re);return this.unpackOutput(Te)}}estimateGas(R,j,...J){if(!(R instanceof Le))throw new Error("estimateGas needs to receive a RequestManager as first argument");const re=this.toPayload(J);return re.to=j,R.eth_estimateGas(re)}displayName(){return Ee(this._name)}typeName(){return he(this._name)||"void"}attachToContract(R){const j=this.displayName(),J=Object.assign(((...re)=>this.execute(R.requestManager,R.address,...re)),{estimateGas:this.estimateGas.bind(this,R.requestManager,R.address),toPayload:(...re)=>this.toPayload(re),toRPCMessage:(...re)=>{const ce=this.extractDefaultBlock(re),Te=this.toPayload(re);return Te.to=R.address,{method:"eth_call",params:[Te,ce]}},unpackOutput:re=>this.unpackOutput(re)});R[j]||(R[j]=J),R[j][this.typeName()]=J}}function Ub(_){if(_==null)return null;const R=String(_).toString();return R.indexOf("0x")===0?R:Y(B(R))}class Hf{constructor(R){this.requestManager=R,this.isStarted=!1,this.isDisposed=!1,this.formatter=j=>j,this.filterId=s(),this.callbacks=[],this.stopSemaphore=s()}async watch(R){if(this.isDisposed)throw new Error("The filter was disposed");R&&(this.callbacks.push(R),this.isStarted||await this.start())}async start(){if(this.isDisposed)throw new Error("The filter was disposed");if(!this.isStarted){this.isStarted=!0;try{const R=await this.getNewFilter();if(!R)throw new Error("Could not create a filter, response: "+JSON.stringify(R));this.filterId.resolve(R)}catch(R){throw R}this.stopSemaphore=s(),await this.poll()}}async stop(){if(!this.isStarted||this.isDisposed)return;this.isDisposed=!0;const R=await this.filterId;if(this.isStarted=!1,this.stopSemaphore&&await this.stopSemaphore,await this.uninstall()!==!0)throw new Error(`Couldn't stop the eth filter: ${R}`)}async poll(){if(this.isStarted){if(this.callbacks.length){const j=await this.getChanges();j&&this.callbacks.forEach((J=>{this.formatter?j.forEach((re=>{J(this.formatter(re))})):j.forEach((re=>J(re)))}))}this.stopSemaphore.resolve(1),this.isStarted&&(this.stopSemaphore=s(),setTimeout((R=()=>this.poll(),function(){R().catch((j=>console.error(j)))}),500))}else this.stopSemaphore.resolve(1);var R}}class go extends Hf{constructor(R,j,J=(re=>re)){super(R),this.requestManager=R,this.options=j,this.formatter=J,this.options=this.options||{},this.options.topics=this.options.topics||[],this.options.topics=this.options.topics.map((function(re){return Ub(re)})),this.options={topics:this.options.topics,address:this.options.address?this.options.address:void 0,fromBlock:typeof this.options.fromBlock=="number"||typeof this.options.fromBlock=="string"?rr(this.options.fromBlock)||void 0:"latest",toBlock:typeof this.options.toBlock=="number"||typeof this.options.toBlock=="string"?rr(this.options.toBlock)||void 0:"latest"}}async getLogs(){this.isStarted||await this.start();const R=await this.filterId;return this.requestManager.eth_getFilterLogs(R)}async getNewFilter(){return this.requestManager.eth_newFilter(this.options)}async getChanges(){const R=await this.filterId;return this.requestManager.eth_getFilterChanges(R)}async uninstall(){const R=await this.filterId;return this.requestManager.eth_uninstallFilter(R)}}class Vf{constructor(R,j,J){this.requestManager=R,this.address=J,this._anonymous=!1,this._params=j.inputs||[],this._name=P(j),this._anonymous=j.anonymous||!1}types(R){return this._params.filter((function(j){return j.indexed===R}))}displayName(){return Ee(this._name)}typeName(){return he(this._name)||"void"}signature(){return U(this._name)}encode(R={},j={}){const J={topics:[],address:this.address};j.fromBlock!==void 0&&(J.fromBlock=rr(j.fromBlock)||void 0),j.toBlock!==void 0&&(J.toBlock=rr(j.toBlock)||void 0),J.topics=J.topics||[],this._anonymous||J.topics.push("0x"+this.signature());const re=this._params.filter((function(ce){return ce.indexed===!0})).map((function(ce){const Te=R[ce.name];return Te==null?null:de(Te)?Te.map((function(Ce){return"0x"+r.coder.encodeParams([ce],[Ce])})):"0x"+r.coder.encodeParams([ce],[Te])}));return J.topics=J.topics.concat(re),J}decode(R){R.data=R.data||"",R.topics=R.topics||[];const j=(this._anonymous?R.topics:R.topics.slice(1)).map((function(Ce){return Ce.slice(2)})).join(""),J=r.coder.decodeParams(this.types(!0),j),re=R.data.slice(2),ce=r.coder.decodeParams(this.types(!1),re),Te=this._params.reduce((function(Ce,He){return Ce[He.name]=He.indexed?J.shift():ce.shift(),Ce}),{});return Object.assign(Object.assign({},iu(R)),{event:this.displayName(),address:R.address,args:Te})}async execute(R,j){const J=this.encode(R,j),re=this.decode.bind(this);return new go(this.requestManager,J,re)}attachToContract(R){const j=this.execute.bind(this),J=this.displayName();R.events[J]||(R.events[J]=j),R.events[J][this.typeName()]=this.execute.bind(this,R)}}class m2{constructor(R,j,J){this._requestManager=R,this._json=j,this._address=J}encode(R={}){const j={address:this._address};return R.fromBlock!==void 0&&(j.fromBlock=rr(R.fromBlock)||void 0),R.toBlock!==void 0&&(j.toBlock=rr(R.toBlock)||void 0),j}decode(R){R.data=R.data||"";const j=de(R.topics)&&w(R.topics[0])?R.topics[0].slice(2):"",J=this._json.filter((function(re){return j===U(P(re))}))[0];return J?new Vf(this._requestManager,J,this._address).decode(R):iu(R)}async execute(R){const j=this.encode(R),J=this.decode.bind(this);return new go(this._requestManager,j,J)}getAllEventsFunction(){return this.execute.bind(this)}}class Fb{constructor(R,j,J){var re;this.requestManager=R,this.abi=j,this.address=J,this.events={},this.transactionHash=null,this.address=J,this.abi=j,(re=this).abi.filter((function(ce){return ce.type==="function"})).map((function(ce){return new Bb(ce)})).forEach((function(ce){ce.attachToContract(re)})),this.allEvents=(function(ce){const Te=ce.abi.filter((function(He){return He.type==="event"})),Ce=new m2(ce.requestManager,Te,ce.address);return Te.map((function(He){return new Vf(ce.requestManager,He,ce.address)})).forEach((function(He){He.attachToContract(ce)})),Ce.getAllEventsFunction()})(this)}}r.AbstractFilter=Hf,r.BigNumber=H,r.Contract=Fb,r.ContractFactory=class{constructor(_,R){this.requestManager=_,this.abi=R}async deploy(..._){let R;const j=_[_.length-1];if(A(j)&&!de(j)&&(R=_.pop()),!R)throw new Error("Missing options object");if(!R.data||typeof R.data!="string")throw new Error("Invalid options.data");if(we(R.value)>0&&!(this.abi.filter((function(xe){return xe.type==="constructor"&&xe.inputs.length===_.length}))[0]||{}).payable)throw new Error("Cannot send value to non-payable constructor");const J=(re=this.abi,ce=_,re.filter((function(xe){return xe.type==="constructor"&&xe.inputs&&xe.inputs.length===ce.length})).map((function(xe){return xe.inputs||[]})).map((function(xe){return r.coder.encodeParams(xe,ce)}))[0]||"");var re,ce;R.data+=J,R.gas||(R.gas=await this.requestManager.eth_estimateGas(R));const Te=await this.requestManager.eth_sendTransaction(R);if(!Te)throw new Error("Error while sending contract creation transaction. A TxHash was not retrieved");const Ce=await(async function(xe,Tr){const Vt=s();let je=0;const sr=()=>{je++,je>50?Vt.reject(new Error("Contract transaction couldn't be found after 50 blocks")):xe.eth_getTransactionReceipt(Tr).then((gr=>{gr&&gr.blockHash?Vt.resolve(gr):setTimeout(sr,1e3)}),(gr=>Vt.reject(gr)))};sr();const Pt=await Vt,Ct=await xe.eth_getCode(Pt.contractAddress,"latest");if(Ct&&Ct.length>3)return Pt.contractAddress;throw Object.assign(new Error("The contract code couldn't be stored, please check your gas amount."),{response:Ct,receipt:Pt})})(this.requestManager,Te),He=await this.at(Ce);return He.transactionHash=Te,He}async at(_){if(!Rt(_))throw new TypeError(`Invalid address ${JSON.stringify(_)}`);return new Fb(this.requestManager,this.abi,_)}},r.EthBlockFilter=class extends go{constructor(_){super(_,{})}async getNewFilter(){return this.requestManager.eth_newBlockFilter()}},r.EthFilter=go,r.EthPendingTransactionFilter=class extends go{constructor(_){super(_,{})}async getNewFilter(){return this.requestManager.eth_newPendingTransactionFilter()}},r.HTTPProvider=class{constructor(_,R={}){this.host=_,this.options=R,this.debug=!1,this.host=_||"http://localhost:8545"}send(){throw new Error("Sync requests are deprecated")}sendAsync(_,R){try{let j=null;j=_ instanceof Array?_.map((ce=>n(ce))):n(_);const J=this.options.fetch||globalThis.fetch;if(J===void 0)throw new Error("There is no global fetch object nor it was provided. Please install and import isomorphic-fetch");const re={body:JSON.stringify(j),method:"POST",headers:Object.assign(Object.assign({},this.options.headers),{"Content-Type":"application/json"})};this.debug&&console.log("SEND >> "+re.body),J(this.host,re).then((async ce=>{if(ce.ok){const Te=await ce.json();this.debug&&console.log("RECV << "+JSON.stringify(Te)),Te.error?R(Object.assign(new Error(Te.error.json||Te.error),Te.error)):R(null,Te)}else{const Te=(typeof ce.text=="function"?await ce.text().catch((()=>"")):"").trim().slice(0,512),Ce="External error. response code: "+ce.status+(Te?" — "+Te:"");this.debug&&console.log("ERR << "+Ce),R(new Error(Ce))}}),(ce=>{this.debug&&console.log("ERR << "+JSON.stringify(ce)),R(ce)}))}catch(j){this.debug&&console.log("ERR << "+JSON.stringify(j)),R(j)}}},r.Method=Ge,r.Property=Dr,r.RequestManager=Le,r.SHHFilter=class extends Hf{constructor(_,R){super(_),this.requestManager=_,this.options=R,this.options=this.options||{topics:[]},this.options.topics=this.options.topics||[],this.options.topics=this.options.topics.map((function(j){return Ub(j)})),this.options={topics:this.options.topics,to:this.options.to}}async getMessages(){const _=await this.filterId;return this.requestManager.shh_getMessages(_)}async getNewFilter(){return this.requestManager.shh_newFilter(this.options)}async getChanges(){const _=await this.filterId;return this.requestManager.shh_getFilterChanges(_)}async uninstall(){const _=await this.filterId;return this.requestManager.shh_uninstallFilter(_)}},r.SolidityEvent=Vf,r.SolidityFunction=Bb,r.WebSocketProvider=class{constructor(_,R={}){this.url=_,this.options=R,this.isDisposed=!1,this.responseCallbacks=new Map,this.notificationCallbacks=new Set,this.debug=!1,this.lastChunk="",this.connect()}dispose(){this.isDisposed=!0;const _=this.connection;this.timeout(new Error("Provider disposed.")),_.then((R=>R.close())).catch((R=>{this.debug&&console.error(R)}))}send(){throw new Error("Sync requests are deprecated")}sendAsync(_,R){const j=[];let J;if(_ instanceof Array)J=Promise.all(_.map((re=>{const ce=s();try{const Te=n(re);j.push(Te),this.responseCallbacks.set(Te.id,ce)}catch(Te){ce.reject(Te)}return ce})));else{const re=s();try{const ce=n(_);j.push(ce),this.responseCallbacks.set(ce.id,re)}catch(ce){re.reject(ce)}J=re}J.then((re=>R(null,re)),(re=>R(re))),this.connection.then((re=>{j.forEach((ce=>{const Te=JSON.stringify(ce);this.debug&&console.log("SEND >> "+Te),re.send(Te)}))}),(re=>{R(re)}))}parseResponse(_){const R=[];return _.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach((j=>{let J=j;this.lastChunk&&(J=this.lastChunk+J);let re=null;try{re=JSON.parse(J)}catch{return this.lastChunk=J,clearTimeout(this.lastChunkTimeout),void(this.lastChunkTimeout=setTimeout((()=>{this.timeout()}),15e3))}clearTimeout(this.lastChunkTimeout),this.lastChunk="",re&&R.push(re)})),R}processMessage(_){if("id"in _){const R=_.id,j=this.responseCallbacks.get(R);if(!j)return void console.error("Error: Received a response for an unknown request",_);this.responseCallbacks.delete(R),_.error!==void 0&&_.error!==null?j.reject(Object.assign(new Error(_.error.message||_.error),_.error)):"result"in _&&j.resolve(_)}else this.notificationCallbacks.forEach((R=>R(null,_)))}timeout(_){this.connection&&this.connection.isPending||(this.connection=s());const R=_||new Error("Connection timeout");this.responseCallbacks.forEach((j=>j.reject(R))),this.responseCallbacks.clear(),this.isDisposed||setTimeout((()=>this.connect()),1e3)}connect(){this.connection&&!this.connection.isPending&&this.connection.then((j=>j.close())).catch((j=>{this.debug&&console.error(j)})),this.connection&&this.connection.isPending||(this.connection=s()),this.lastChunk="";const _=this.options.WebSocketConstructor||(typeof WebSocket<"u"?WebSocket:void 0);if(!_)throw new Error("Please provide a WebSocketConstructor");const R=new _(this.url,this.options.protocol);R.onopen=()=>{this.connection.resolve(R)},R.onerror=j=>{const J=new Error("Error in web socket");J.data=j,this.timeout(J)},R.onclose=j=>{this.timeout(new Error(`Connection closed (${j&&j.reason||"Unknown reason"})`))},R.onmessage=j=>{const J=typeof j.data=="string"?j.data:"";this.debug&&console.log("RECV << "+j.data),this.parseResponse(J).forEach((re=>{re instanceof Array?re.forEach((ce=>this.processMessage(ce))):this.processMessage(re)}))}}},r.bytesToHex=Y,r.bytesToUtf8String=F,r.concatBytes=$,r.default=Le,r.extractDisplayName=Ee,r.extractTypeName=he,r.fromAscii=function(_,R=0){let j="";for(let J=0;J<_.length;J++){const re=_.charCodeAt(J).toString(16);j+=re.length<2?"0"+re:re}return"0x"+j.padEnd(R,"0")},r.fromDecimal=be,r.fromTwosComplement=It,r.fromWei=function(_,R){const j=We(_).dividedBy(qe(R));return D(_)?j:j.toString(10)},r.getAddress=Ht,r.getValueOfUnit=qe,r.hexToBytes=X,r.inputAddressFormatter=jr,r.inputBlockNumberFormatter=rr,r.inputCallFormatter=kf,r.inputDefaultBlockNumberFormatter=it,r.inputFilterOptions=Ib,r.inputPostFormatter=function(_){return _?(_.ttl=be(_.ttl),_.workToProve=be(_.workToProve),_.priority=be(_.priority),de(_.topics)||(_.topics=_.topics?[_.topics]:[]),_.topics=_.topics.map((function(R){return R.indexOf("0x")===0?R:"0x"+Y(B(R))})),_):null},r.inputTransactionFormatter=qf,r.inputTransactionId=as,r.isAddress=Rt,r.isArray=de,r.isBigNumber=D,r.isBloom=function(_){return!!/^(0x)?[0-9a-f]{512}$/i.test(_)&&!!/^(0x)?[0-9a-f]{512}$/i.test(_)},r.isBoolean=K,r.isChecksumAddress=hr,r.isFunction=function(_){return typeof _=="function"},r.isHex=function(_){return typeof _=="string"&&/^0x[0-9a-fA-F]+$/.test(_)},r.isJson=function(_){try{return!!JSON.parse(_)}catch{return!1}},r.isObject=A,r.isPredefinedBlockNumber=$t,r.isStrictAddress=tr,r.isString=w,r.isTopic=function(_){return!!/^(0x)?[0-9a-f]{64}$/i.test(_)&&!!/^(0x)?[0-9a-f]{64}$/i.test(_)},r.isValidResponse=Lt,r.outputBigNumberFormatter=At,r.outputBlockFormatter=ho,r.outputLogFormatter=iu,r.outputPostFormatter=function(_){return _?(_.expiry=we(_.expiry),_.sent=we(_.sent),_.ttl=we(_.ttl),_.workProved=we(_.workProved),_.topics||(_.topics=[]),_.topics=_.topics.map((function(R){return W(R)})),_):null},r.outputSyncingFormatter=Rb,r.outputTransactionFormatter=mo,r.outputTransactionReceiptFormatter=wb,r.padLeft=V,r.padRight=function(_,R,j){return _+new Array(R-_.length+1).join(j||"0")},r.sha3=U,r.signedIsNegative=ut,r.stringToUtf8Bytes=B,r.toAddress=Hr,r.toArray=yt,r.toAscii=W,r.toBatchPayload=function(_){return _.map((function(R){return Qe(R.method,R.params)}))},r.toBigNumber=We,r.toBoolean=pe,r.toChecksumAddress=yr,r.toData=ue,r.toDecimal=we,r.toHex=Ae,r.toJsonRpcRequest=Qe,r.toNullDecimal=Se,r.toString=ae,r.toStringData=fe,r.toTwosComplement=Xe,r.toWei=function(_,R){const j=We(_).times(qe(R));return D(_)?j:j.toString(10)},r.transformToFullName=P,Object.defineProperty(r,"__esModule",{value:!0})}))})(dc,dc.exports)),dc.exports}var td={},QI;function I5(){if(QI)return td;QI=1,Object.defineProperty(td,"__esModule",{value:!0}),td.SignatureValidator=t;const e=lf();async function t(r,n){const i=[{constant:!0,inputs:[{name:"hash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"magicValue",type:"bytes4"}],payable:!1,stateMutability:"view",type:"function"}];return await new e.ContractFactory(r,i).at(n)}return td}var Mn={},vh={},Eh={},sa={},ti={},nr={},ZI;function FE(){if(ZI)return nr;ZI=1,Object.defineProperty(nr,"__esModule",{value:!0}),nr.output=nr.exists=nr.hash=nr.bytes=nr.bool=nr.number=nr.isBytes=void 0;function e(c){if(!Number.isSafeInteger(c)||c<0)throw new Error(`positive integer expected, not ${c}`)}nr.number=e;function t(c){if(typeof c!="boolean")throw new Error(`boolean expected, not ${c}`)}nr.bool=t;function r(c){return c instanceof Uint8Array||c!=null&&typeof c=="object"&&c.constructor.name==="Uint8Array"}nr.isBytes=r;function n(c,...l){if(!r(c))throw new Error("Uint8Array expected");if(l.length>0&&!l.includes(c.length))throw new Error(`Uint8Array expected of length ${l}, not of length=${c.length}`)}nr.bytes=n;function i(c){if(typeof c!="function"||typeof c.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");e(c.outputLen),e(c.blockLen)}nr.hash=i;function a(c,l=!0){if(c.destroyed)throw new Error("Hash instance has been destroyed");if(l&&c.finished)throw new Error("Hash#digest() has already been called")}nr.exists=a;function s(c,l){n(c);const u=l.outputLen;if(c.length<u)throw new Error(`digestInto() expects output buffer of length at least ${u}`)}nr.output=s;const o={number:e,bool:t,bytes:n,hash:i,exists:a,output:s};return nr.default=o,nr}var bh={},Oo={},eR;function R5(){return eR||(eR=1,Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.crypto=void 0,Oo.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0),Oo}var tR;function Yc(){return tR||(tR=1,(function(e){/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(e,"__esModule",{value:!0}),e.randomBytes=e.wrapXOFConstructorWithOpts=e.wrapConstructorWithOpts=e.wrapConstructor=e.checkOpts=e.Hash=e.concatBytes=e.toBytes=e.utf8ToBytes=e.asyncLoop=e.nextTick=e.hexToBytes=e.bytesToHex=e.byteSwap32=e.byteSwapIfBE=e.byteSwap=e.isLE=e.rotl=e.rotr=e.createView=e.u32=e.u8=e.isBytes=void 0;const t=R5(),r=FE();function n(k){return k instanceof Uint8Array||k!=null&&typeof k=="object"&&k.constructor.name==="Uint8Array"}e.isBytes=n;const i=k=>new Uint8Array(k.buffer,k.byteOffset,k.byteLength);e.u8=i;const a=k=>new Uint32Array(k.buffer,k.byteOffset,Math.floor(k.byteLength/4));e.u32=a;const s=k=>new DataView(k.buffer,k.byteOffset,k.byteLength);e.createView=s;const o=(k,B)=>k<<32-B|k>>>B;e.rotr=o;const c=(k,B)=>k<<B|k>>>32-B>>>0;e.rotl=c,e.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;const l=k=>k<<24&4278190080|k<<8&16711680|k>>>8&65280|k>>>24&255;e.byteSwap=l,e.byteSwapIfBE=e.isLE?k=>k:k=>(0,e.byteSwap)(k);function u(k){for(let B=0;B<k.length;B++)k[B]=(0,e.byteSwap)(k[B])}e.byteSwap32=u;const d=Array.from({length:256},(k,B)=>B.toString(16).padStart(2,"0"));function f(k){(0,r.bytes)(k);let B="";for(let F=0;F<k.length;F++)B+=d[k[F]];return B}e.bytesToHex=f;const p={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function y(k){if(k>=p._0&&k<=p._9)return k-p._0;if(k>=p._A&&k<=p._F)return k-(p._A-10);if(k>=p._a&&k<=p._f)return k-(p._a-10)}function g(k){if(typeof k!="string")throw new Error("hex string expected, got "+typeof k);const B=k.length,F=B/2;if(B%2)throw new Error("padded hex string expected, got unpadded hex of length "+B);const te=new Uint8Array(F);for(let ie=0,Z=0;ie<F;ie++,Z+=2){const X=y(k.charCodeAt(Z)),Y=y(k.charCodeAt(Z+1));if(X===void 0||Y===void 0){const U=k[Z]+k[Z+1];throw new Error('hex string expected, got non-hex character "'+U+'" at index '+Z)}te[ie]=X*16+Y}return te}e.hexToBytes=g;const b=async()=>{};e.nextTick=b;async function O(k,B,F){let te=Date.now();for(let ie=0;ie<k;ie++){F(ie);const Z=Date.now()-te;Z>=0&&Z<B||(await(0,e.nextTick)(),te+=Z)}}e.asyncLoop=O;function m(k){if(typeof k!="string")throw new Error(`utf8ToBytes expected string, got ${typeof k}`);return new Uint8Array(new TextEncoder().encode(k))}e.utf8ToBytes=m;function T(k){return typeof k=="string"&&(k=m(k)),(0,r.bytes)(k),k}e.toBytes=T;function I(...k){let B=0;for(let te=0;te<k.length;te++){const ie=k[te];(0,r.bytes)(ie),B+=ie.length}const F=new Uint8Array(B);for(let te=0,ie=0;te<k.length;te++){const Z=k[te];F.set(Z,ie),ie+=Z.length}return F}e.concatBytes=I;class h{clone(){return this._cloneInto()}}e.Hash=h;const v={}.toString;function E(k,B){if(B!==void 0&&v.call(B)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(k,B)}e.checkOpts=E;function N(k){const B=te=>k().update(T(te)).digest(),F=k();return B.outputLen=F.outputLen,B.blockLen=F.blockLen,B.create=()=>k(),B}e.wrapConstructor=N;function M(k){const B=(te,ie)=>k(ie).update(T(te)).digest(),F=k({});return B.outputLen=F.outputLen,B.blockLen=F.blockLen,B.create=te=>k(te),B}e.wrapConstructorWithOpts=M;function q(k){const B=(te,ie)=>k(ie).update(T(te)).digest(),F=k({});return B.outputLen=F.outputLen,B.blockLen=F.blockLen,B.create=te=>k(te),B}e.wrapXOFConstructorWithOpts=q;function H(k=32){if(t.crypto&&typeof t.crypto.getRandomValues=="function")return t.crypto.getRandomValues(new Uint8Array(k));throw new Error("crypto.getRandomValues must be defined")}e.randomBytes=H})(bh)),bh}var rR;function A5(){if(rR)return ti;rR=1,Object.defineProperty(ti,"__esModule",{value:!0}),ti.HashMD=ti.Maj=ti.Chi=void 0;const e=FE(),t=Yc();function r(s,o,c,l){if(typeof s.setBigUint64=="function")return s.setBigUint64(o,c,l);const u=BigInt(32),d=BigInt(4294967295),f=Number(c>>u&d),p=Number(c&d),y=l?4:0,g=l?0:4;s.setUint32(o+y,f,l),s.setUint32(o+g,p,l)}const n=(s,o,c)=>s&o^~s&c;ti.Chi=n;const i=(s,o,c)=>s&o^s&c^o&c;ti.Maj=i;class a extends t.Hash{constructor(o,c,l,u){super(),this.blockLen=o,this.outputLen=c,this.padOffset=l,this.isLE=u,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(o),this.view=(0,t.createView)(this.buffer)}update(o){(0,e.exists)(this);const{view:c,buffer:l,blockLen:u}=this;o=(0,t.toBytes)(o);const d=o.length;for(let f=0;f<d;){const p=Math.min(u-this.pos,d-f);if(p===u){const y=(0,t.createView)(o);for(;u<=d-f;f+=u)this.process(y,f);continue}l.set(o.subarray(f,f+p),this.pos),this.pos+=p,f+=p,this.pos===u&&(this.process(c,0),this.pos=0)}return this.length+=o.length,this.roundClean(),this}digestInto(o){(0,e.exists)(this),(0,e.output)(o,this),this.finished=!0;const{buffer:c,view:l,blockLen:u,isLE:d}=this;let{pos:f}=this;c[f++]=128,this.buffer.subarray(f).fill(0),this.padOffset>u-f&&(this.process(l,0),f=0);for(let O=f;O<u;O++)c[O]=0;r(l,u-8,BigInt(this.length*8),d),this.process(l,0);const p=(0,t.createView)(o),y=this.outputLen;if(y%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const g=y/4,b=this.get();if(g>b.length)throw new Error("_sha2: outputLen bigger than state");for(let O=0;O<g;O++)p.setUint32(4*O,b[O],d)}digest(){const{buffer:o,outputLen:c}=this;this.digestInto(o);const l=o.slice(0,c);return this.destroy(),l}_cloneInto(o){o||(o=new this.constructor),o.set(...this.get());const{blockLen:c,buffer:l,length:u,finished:d,destroyed:f,pos:p}=this;return o.length=u,o.pos=p,o.finished=d,o.destroyed=f,u%c&&o.buffer.set(l),o}}return ti.HashMD=a,ti}var nR;function O5(){if(nR)return sa;nR=1,Object.defineProperty(sa,"__esModule",{value:!0}),sa.sha224=sa.sha256=void 0;const e=A5(),t=Yc(),r=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),n=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),i=new Uint32Array(64);class a extends e.HashMD{constructor(){super(64,32,8,!1),this.A=n[0]|0,this.B=n[1]|0,this.C=n[2]|0,this.D=n[3]|0,this.E=n[4]|0,this.F=n[5]|0,this.G=n[6]|0,this.H=n[7]|0}get(){const{A:c,B:l,C:u,D:d,E:f,F:p,G:y,H:g}=this;return[c,l,u,d,f,p,y,g]}set(c,l,u,d,f,p,y,g){this.A=c|0,this.B=l|0,this.C=u|0,this.D=d|0,this.E=f|0,this.F=p|0,this.G=y|0,this.H=g|0}process(c,l){for(let m=0;m<16;m++,l+=4)i[m]=c.getUint32(l,!1);for(let m=16;m<64;m++){const T=i[m-15],I=i[m-2],h=(0,t.rotr)(T,7)^(0,t.rotr)(T,18)^T>>>3,v=(0,t.rotr)(I,17)^(0,t.rotr)(I,19)^I>>>10;i[m]=v+i[m-7]+h+i[m-16]|0}let{A:u,B:d,C:f,D:p,E:y,F:g,G:b,H:O}=this;for(let m=0;m<64;m++){const T=(0,t.rotr)(y,6)^(0,t.rotr)(y,11)^(0,t.rotr)(y,25),I=O+T+(0,e.Chi)(y,g,b)+r[m]+i[m]|0,v=((0,t.rotr)(u,2)^(0,t.rotr)(u,13)^(0,t.rotr)(u,22))+(0,e.Maj)(u,d,f)|0;O=b,b=g,g=y,y=p+I|0,p=f,f=d,d=u,u=I+v|0}u=u+this.A|0,d=d+this.B|0,f=f+this.C|0,p=p+this.D|0,y=y+this.E|0,g=g+this.F|0,b=b+this.G|0,O=O+this.H|0,this.set(u,d,f,p,y,g,b,O)}roundClean(){i.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class s extends a{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}return sa.sha256=(0,t.wrapConstructor)(()=>new a),sa.sha224=(0,t.wrapConstructor)(()=>new s),sa}var No={},Sh={},iR;function N5(){return iR||(iR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=e.HMAC=void 0;const t=FE(),r=Yc();class n extends r.Hash{constructor(s,o){super(),this.finished=!1,this.destroyed=!1,(0,t.hash)(s);const c=(0,r.toBytes)(o);if(this.iHash=s.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const l=this.blockLen,u=new Uint8Array(l);u.set(c.length>l?s.create().update(c).digest():c);for(let d=0;d<u.length;d++)u[d]^=54;this.iHash.update(u),this.oHash=s.create();for(let d=0;d<u.length;d++)u[d]^=106;this.oHash.update(u),u.fill(0)}update(s){return(0,t.exists)(this),this.iHash.update(s),this}digestInto(s){(0,t.exists)(this),(0,t.bytes)(s,this.outputLen),this.finished=!0,this.iHash.digestInto(s),this.oHash.update(s),this.oHash.digestInto(s),this.destroy()}digest(){const s=new Uint8Array(this.oHash.outputLen);return this.digestInto(s),s}_cloneInto(s){s||(s=Object.create(Object.getPrototypeOf(this),{}));const{oHash:o,iHash:c,finished:l,destroyed:u,blockLen:d,outputLen:f}=this;return s=s,s.finished=l,s.destroyed=u,s.blockLen=d,s.outputLen=f,s.oHash=o._cloneInto(s.oHash),s.iHash=c._cloneInto(s.iHash),s}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}e.HMAC=n;const i=(a,s,o)=>new n(a,s).update(o).digest();e.hmac=i,e.hmac.create=(a,s)=>new n(a,s)})(Sh)),Sh}var Th={},Po={},Ut={},kt={},aR;function Ys(){if(aR)return kt;aR=1,Object.defineProperty(kt,"__esModule",{value:!0}),kt.bitMask=void 0,kt.isBytes=n,kt.abytes=i,kt.bytesToHex=s,kt.numberToHexUnpadded=o,kt.hexToNumber=c,kt.hexToBytes=d,kt.bytesToNumberBE=f,kt.bytesToNumberLE=p,kt.numberToBytesBE=y,kt.numberToBytesLE=g,kt.numberToVarBytesBE=b,kt.ensureBytes=O,kt.concatBytes=m,kt.equalBytes=T,kt.utf8ToBytes=I,kt.bitLen=h,kt.bitGet=v,kt.bitSet=E,kt.createHmacDrbg=H,kt.validateObject=B;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=BigInt(0),t=BigInt(1),r=BigInt(2);function n(F){return F instanceof Uint8Array||F!=null&&typeof F=="object"&&F.constructor.name==="Uint8Array"}function i(F){if(!n(F))throw new Error("Uint8Array expected")}const a=Array.from({length:256},(F,te)=>te.toString(16).padStart(2,"0"));function s(F){i(F);let te="";for(let ie=0;ie<F.length;ie++)te+=a[F[ie]];return te}function o(F){const te=F.toString(16);return te.length&1?`0${te}`:te}function c(F){if(typeof F!="string")throw new Error("hex string expected, got "+typeof F);return BigInt(F===""?"0":`0x${F}`)}const l={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function u(F){if(F>=l._0&&F<=l._9)return F-l._0;if(F>=l._A&&F<=l._F)return F-(l._A-10);if(F>=l._a&&F<=l._f)return F-(l._a-10)}function d(F){if(typeof F!="string")throw new Error("hex string expected, got "+typeof F);const te=F.length,ie=te/2;if(te%2)throw new Error("padded hex string expected, got unpadded hex of length "+te);const Z=new Uint8Array(ie);for(let X=0,Y=0;X<ie;X++,Y+=2){const U=u(F.charCodeAt(Y)),L=u(F.charCodeAt(Y+1));if(U===void 0||L===void 0){const V=F[Y]+F[Y+1];throw new Error('hex string expected, got non-hex character "'+V+'" at index '+Y)}Z[X]=U*16+L}return Z}function f(F){return c(s(F))}function p(F){return i(F),c(s(Uint8Array.from(F).reverse()))}function y(F,te){return d(F.toString(16).padStart(te*2,"0"))}function g(F,te){return y(F,te).reverse()}function b(F){return d(o(F))}function O(F,te,ie){let Z;if(typeof te=="string")try{Z=d(te)}catch(Y){throw new Error(`${F} must be valid hex string, got "${te}". Cause: ${Y}`)}else if(n(te))Z=Uint8Array.from(te);else throw new Error(`${F} must be hex string or Uint8Array`);const X=Z.length;if(typeof ie=="number"&&X!==ie)throw new Error(`${F} expected ${ie} bytes, got ${X}`);return Z}function m(...F){let te=0;for(let Z=0;Z<F.length;Z++){const X=F[Z];i(X),te+=X.length}const ie=new Uint8Array(te);for(let Z=0,X=0;Z<F.length;Z++){const Y=F[Z];ie.set(Y,X),X+=Y.length}return ie}function T(F,te){if(F.length!==te.length)return!1;let ie=0;for(let Z=0;Z<F.length;Z++)ie|=F[Z]^te[Z];return ie===0}function I(F){if(typeof F!="string")throw new Error(`utf8ToBytes expected string, got ${typeof F}`);return new Uint8Array(new TextEncoder().encode(F))}function h(F){let te;for(te=0;F>e;F>>=t,te+=1);return te}function v(F,te){return F>>BigInt(te)&t}function E(F,te,ie){return F|(ie?t:e)<<BigInt(te)}const N=F=>(r<<BigInt(F-1))-t;kt.bitMask=N;const M=F=>new Uint8Array(F),q=F=>Uint8Array.from(F);function H(F,te,ie){if(typeof F!="number"||F<2)throw new Error("hashLen must be a number");if(typeof te!="number"||te<2)throw new Error("qByteLen must be a number");if(typeof ie!="function")throw new Error("hmacFn must be a function");let Z=M(F),X=M(F),Y=0;const U=()=>{Z.fill(1),X.fill(0),Y=0},L=(...$)=>ie(X,Z,...$),V=($=M())=>{X=L(q([0]),$),Z=L(),$.length!==0&&(X=L(q([1]),$),Z=L())},W=()=>{if(Y++>=1e3)throw new Error("drbg: tried 1000 values");let $=0;const ee=[];for(;$<te;){Z=L();const Ee=Z.slice();ee.push(Ee),$+=Z.length}return m(...ee)};return($,ee)=>{U(),V($);let Ee;for(;!(Ee=ee(W()));)V();return U(),Ee}}const k={bigint:F=>typeof F=="bigint",function:F=>typeof F=="function",boolean:F=>typeof F=="boolean",string:F=>typeof F=="string",stringOrUint8Array:F=>typeof F=="string"||n(F),isSafeInteger:F=>Number.isSafeInteger(F),array:F=>Array.isArray(F),field:(F,te)=>te.Fp.isValid(F),hash:F=>typeof F=="function"&&Number.isSafeInteger(F.outputLen)};function B(F,te,ie={}){const Z=(X,Y,U)=>{const L=k[Y];if(typeof L!="function")throw new Error(`Invalid validator "${Y}", expected function`);const V=F[X];if(!(U&&V===void 0)&&!L(V,F))throw new Error(`Invalid param ${String(X)}=${V} (${typeof V}), expected ${Y}`)};for(const[X,Y]of Object.entries(te))Z(X,Y,!1);for(const[X,Y]of Object.entries(ie))Z(X,Y,!0);return F}return kt}var sR;function df(){if(sR)return Ut;sR=1,Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.isNegativeLE=void 0,Ut.mod=c,Ut.pow=l,Ut.pow2=u,Ut.invert=d,Ut.tonelliShanks=f,Ut.FpSqrt=p,Ut.validateField=b,Ut.FpPow=O,Ut.FpInvertBatch=m,Ut.FpDiv=T,Ut.FpIsSquare=I,Ut.nLength=h,Ut.Field=v,Ut.FpSqrtOdd=E,Ut.FpSqrtEven=N,Ut.hashToPrivateScalar=M,Ut.getFieldBytesLength=q,Ut.getMinHashLength=H,Ut.mapHashToField=k;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=Ys(),t=BigInt(0),r=BigInt(1),n=BigInt(2),i=BigInt(3),a=BigInt(4),s=BigInt(5),o=BigInt(8);BigInt(9),BigInt(16);function c(B,F){const te=B%F;return te>=t?te:F+te}function l(B,F,te){if(te<=t||F<t)throw new Error("Expected power/modulo > 0");if(te===r)return t;let ie=r;for(;F>t;)F&r&&(ie=ie*B%te),B=B*B%te,F>>=r;return ie}function u(B,F,te){let ie=B;for(;F-- >t;)ie*=ie,ie%=te;return ie}function d(B,F){if(B===t||F<=t)throw new Error(`invert: expected positive integers, got n=${B} mod=${F}`);let te=c(B,F),ie=F,Z=t,X=r;for(;te!==t;){const U=ie/te,L=ie%te,V=Z-X*U;ie=te,te=L,Z=X,X=V}if(ie!==r)throw new Error("invert: does not exist");return c(Z,F)}function f(B){const F=(B-r)/n;let te,ie,Z;for(te=B-r,ie=0;te%n===t;te/=n,ie++);for(Z=n;Z<B&&l(Z,F,B)!==B-r;Z++);if(ie===1){const Y=(B+r)/a;return function(L,V){const W=L.pow(V,Y);if(!L.eql(L.sqr(W),V))throw new Error("Cannot find square root");return W}}const X=(te+r)/n;return function(U,L){if(U.pow(L,F)===U.neg(U.ONE))throw new Error("Cannot find square root");let V=ie,W=U.pow(U.mul(U.ONE,Z),te),P=U.pow(L,X),$=U.pow(L,te);for(;!U.eql($,U.ONE);){if(U.eql($,U.ZERO))return U.ZERO;let ee=1;for(let he=U.sqr($);ee<V&&!U.eql(he,U.ONE);ee++)he=U.sqr(he);const Ee=U.pow(W,r<<BigInt(V-ee-1));W=U.sqr(Ee),P=U.mul(P,Ee),$=U.mul($,W),V=ee}return P}}function p(B){if(B%a===i){const F=(B+r)/a;return function(ie,Z){const X=ie.pow(Z,F);if(!ie.eql(ie.sqr(X),Z))throw new Error("Cannot find square root");return X}}if(B%o===s){const F=(B-s)/o;return function(ie,Z){const X=ie.mul(Z,n),Y=ie.pow(X,F),U=ie.mul(Z,Y),L=ie.mul(ie.mul(U,n),Y),V=ie.mul(U,ie.sub(L,ie.ONE));if(!ie.eql(ie.sqr(V),Z))throw new Error("Cannot find square root");return V}}return f(B)}const y=(B,F)=>(c(B,F)&r)===r;Ut.isNegativeLE=y;const g=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function b(B){const F={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},te=g.reduce((ie,Z)=>(ie[Z]="function",ie),F);return(0,e.validateObject)(B,te)}function O(B,F,te){if(te<t)throw new Error("Expected power > 0");if(te===t)return B.ONE;if(te===r)return F;let ie=B.ONE,Z=F;for(;te>t;)te&r&&(ie=B.mul(ie,Z)),Z=B.sqr(Z),te>>=r;return ie}function m(B,F){const te=new Array(F.length),ie=F.reduce((X,Y,U)=>B.is0(Y)?X:(te[U]=X,B.mul(X,Y)),B.ONE),Z=B.inv(ie);return F.reduceRight((X,Y,U)=>B.is0(Y)?X:(te[U]=B.mul(X,te[U]),B.mul(X,Y)),Z),te}function T(B,F,te){return B.mul(F,typeof te=="bigint"?d(te,B.ORDER):B.inv(te))}function I(B){const F=(B.ORDER-r)/n;return te=>{const ie=B.pow(te,F);return B.eql(ie,B.ZERO)||B.eql(ie,B.ONE)}}function h(B,F){const te=F!==void 0?F:B.toString(2).length,ie=Math.ceil(te/8);return{nBitLength:te,nByteLength:ie}}function v(B,F,te=!1,ie={}){if(B<=t)throw new Error(`Expected Field ORDER > 0, got ${B}`);const{nBitLength:Z,nByteLength:X}=h(B,F);if(X>2048)throw new Error("Field lengths over 2048 bytes are not supported");const Y=p(B),U=Object.freeze({ORDER:B,BITS:Z,BYTES:X,MASK:(0,e.bitMask)(Z),ZERO:t,ONE:r,create:L=>c(L,B),isValid:L=>{if(typeof L!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof L}`);return t<=L&&L<B},is0:L=>L===t,isOdd:L=>(L&r)===r,neg:L=>c(-L,B),eql:(L,V)=>L===V,sqr:L=>c(L*L,B),add:(L,V)=>c(L+V,B),sub:(L,V)=>c(L-V,B),mul:(L,V)=>c(L*V,B),pow:(L,V)=>O(U,L,V),div:(L,V)=>c(L*d(V,B),B),sqrN:L=>L*L,addN:(L,V)=>L+V,subN:(L,V)=>L-V,mulN:(L,V)=>L*V,inv:L=>d(L,B),sqrt:ie.sqrt||(L=>Y(U,L)),invertBatch:L=>m(U,L),cmov:(L,V,W)=>W?V:L,toBytes:L=>te?(0,e.numberToBytesLE)(L,X):(0,e.numberToBytesBE)(L,X),fromBytes:L=>{if(L.length!==X)throw new Error(`Fp.fromBytes: expected ${X}, got ${L.length}`);return te?(0,e.bytesToNumberLE)(L):(0,e.bytesToNumberBE)(L)}});return Object.freeze(U)}function E(B,F){if(!B.isOdd)throw new Error("Field doesn't have isOdd");const te=B.sqrt(F);return B.isOdd(te)?te:B.neg(te)}function N(B,F){if(!B.isOdd)throw new Error("Field doesn't have isOdd");const te=B.sqrt(F);return B.isOdd(te)?B.neg(te):te}function M(B,F,te=!1){B=(0,e.ensureBytes)("privateHash",B);const ie=B.length,Z=h(F).nByteLength+8;if(Z<24||ie<Z||ie>1024)throw new Error(`hashToPrivateScalar: expected ${Z}-1024 bytes of input, got ${ie}`);const X=te?(0,e.bytesToNumberLE)(B):(0,e.bytesToNumberBE)(B);return c(X,F-r)+r}function q(B){if(typeof B!="bigint")throw new Error("field order must be bigint");const F=B.toString(2).length;return Math.ceil(F/8)}function H(B){const F=q(B);return F+Math.ceil(F/2)}function k(B,F,te=!1){const ie=B.length,Z=q(F),X=H(F);if(ie<16||ie<X||ie>1024)throw new Error(`expected ${X}-1024 bytes of input, got ${ie}`);const Y=te?(0,e.bytesToNumberBE)(B):(0,e.bytesToNumberLE)(B),U=c(Y,F-r)+r;return te?(0,e.numberToBytesLE)(U,Z):(0,e.numberToBytesBE)(U,Z)}return Ut}var oR;function P5(){if(oR)return Po;oR=1,Object.defineProperty(Po,"__esModule",{value:!0}),Po.wNAF=i,Po.validateBasic=a;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=df(),t=Ys(),r=BigInt(0),n=BigInt(1);function i(s,o){const c=(u,d)=>{const f=d.negate();return u?f:d},l=u=>{const d=Math.ceil(o/u)+1,f=2**(u-1);return{windows:d,windowSize:f}};return{constTimeNegate:c,unsafeLadder(u,d){let f=s.ZERO,p=u;for(;d>r;)d&n&&(f=f.add(p)),p=p.double(),d>>=n;return f},precomputeWindow(u,d){const{windows:f,windowSize:p}=l(d),y=[];let g=u,b=g;for(let O=0;O<f;O++){b=g,y.push(b);for(let m=1;m<p;m++)b=b.add(g),y.push(b);g=b.double()}return y},wNAF(u,d,f){const{windows:p,windowSize:y}=l(u);let g=s.ZERO,b=s.BASE;const O=BigInt(2**u-1),m=2**u,T=BigInt(u);for(let I=0;I<p;I++){const h=I*y;let v=Number(f&O);f>>=T,v>y&&(v-=m,f+=n);const E=h,N=h+Math.abs(v)-1,M=I%2!==0,q=v<0;v===0?b=b.add(c(M,d[E])):g=g.add(c(q,d[N]))}return{p:g,f:b}},wNAFCached(u,d,f,p){const y=u._WINDOW_SIZE||1;let g=d.get(u);return g||(g=this.precomputeWindow(u,y),y!==1&&d.set(u,p(g))),this.wNAF(y,g,f)}}}function a(s){return(0,e.validateField)(s.Fp),(0,t.validateObject)(s,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,e.nLength)(s.n,s.nBitLength),...s,p:s.Fp.ORDER})}return Po}var cR;function yD(){return cR||(cR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DER=void 0,e.weierstrassPoints=p,e.weierstrass=g,e.SWUFpSqrtRatio=b,e.mapToCurveSimpleSWU=O;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const t=P5(),r=df(),n=Ys(),i=Ys();function a(m){const T=(0,t.validateBasic)(m);n.validateObject(T,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:I,Fp:h,a:v}=T;if(I){if(!h.eql(v,h.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof I!="object"||typeof I.beta!="bigint"||typeof I.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...T})}const{bytesToNumberBE:s,hexToBytes:o}=n;e.DER={Err:class extends Error{constructor(T=""){super(T)}},_parseInt(m){const{Err:T}=e.DER;if(m.length<2||m[0]!==2)throw new T("Invalid signature integer tag");const I=m[1],h=m.subarray(2,I+2);if(!I||h.length!==I)throw new T("Invalid signature integer: wrong length");if(h[0]&128)throw new T("Invalid signature integer: negative");if(h[0]===0&&!(h[1]&128))throw new T("Invalid signature integer: unnecessary leading zero");return{d:s(h),l:m.subarray(I+2)}},toSig(m){const{Err:T}=e.DER,I=typeof m=="string"?o(m):m;n.abytes(I);let h=I.length;if(h<2||I[0]!=48)throw new T("Invalid signature tag");if(I[1]!==h-2)throw new T("Invalid signature: incorrect length");const{d:v,l:E}=e.DER._parseInt(I.subarray(2)),{d:N,l:M}=e.DER._parseInt(E);if(M.length)throw new T("Invalid signature: left bytes after parsing");return{r:v,s:N}},hexFromSig(m){const T=H=>Number.parseInt(H[0],16)&8?"00"+H:H,I=H=>{const k=H.toString(16);return k.length&1?`0${k}`:k},h=T(I(m.s)),v=T(I(m.r)),E=h.length/2,N=v.length/2,M=I(E),q=I(N);return`30${I(N+E+4)}02${q}${v}02${M}${h}`}};const c=BigInt(0),l=BigInt(1),u=BigInt(2),d=BigInt(3),f=BigInt(4);function p(m){const T=a(m),{Fp:I}=T,h=T.toBytes||((ie,Z,X)=>{const Y=Z.toAffine();return n.concatBytes(Uint8Array.from([4]),I.toBytes(Y.x),I.toBytes(Y.y))}),v=T.fromBytes||(ie=>{const Z=ie.subarray(1),X=I.fromBytes(Z.subarray(0,I.BYTES)),Y=I.fromBytes(Z.subarray(I.BYTES,2*I.BYTES));return{x:X,y:Y}});function E(ie){const{a:Z,b:X}=T,Y=I.sqr(ie),U=I.mul(Y,ie);return I.add(I.add(U,I.mul(ie,Z)),X)}if(!I.eql(I.sqr(T.Gy),E(T.Gx)))throw new Error("bad generator point: equation left != right");function N(ie){return typeof ie=="bigint"&&c<ie&&ie<T.n}function M(ie){if(!N(ie))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function q(ie){const{allowedPrivateKeyLengths:Z,nByteLength:X,wrapPrivateKey:Y,n:U}=T;if(Z&&typeof ie!="bigint"){if(n.isBytes(ie)&&(ie=n.bytesToHex(ie)),typeof ie!="string"||!Z.includes(ie.length))throw new Error("Invalid key");ie=ie.padStart(X*2,"0")}let L;try{L=typeof ie=="bigint"?ie:n.bytesToNumberBE((0,i.ensureBytes)("private key",ie,X))}catch{throw new Error(`private key must be ${X} bytes, hex or bigint, not ${typeof ie}`)}return Y&&(L=r.mod(L,U)),M(L),L}const H=new Map;function k(ie){if(!(ie instanceof B))throw new Error("ProjectivePoint expected")}class B{constructor(Z,X,Y){if(this.px=Z,this.py=X,this.pz=Y,Z==null||!I.isValid(Z))throw new Error("x required");if(X==null||!I.isValid(X))throw new Error("y required");if(Y==null||!I.isValid(Y))throw new Error("z required")}static fromAffine(Z){const{x:X,y:Y}=Z||{};if(!Z||!I.isValid(X)||!I.isValid(Y))throw new Error("invalid affine point");if(Z instanceof B)throw new Error("projective point not allowed");const U=L=>I.eql(L,I.ZERO);return U(X)&&U(Y)?B.ZERO:new B(X,Y,I.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(Z){const X=I.invertBatch(Z.map(Y=>Y.pz));return Z.map((Y,U)=>Y.toAffine(X[U])).map(B.fromAffine)}static fromHex(Z){const X=B.fromAffine(v((0,i.ensureBytes)("pointHex",Z)));return X.assertValidity(),X}static fromPrivateKey(Z){return B.BASE.multiply(q(Z))}_setWindowSize(Z){this._WINDOW_SIZE=Z,H.delete(this)}assertValidity(){if(this.is0()){if(T.allowInfinityPoint&&!I.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:Z,y:X}=this.toAffine();if(!I.isValid(Z)||!I.isValid(X))throw new Error("bad point: x or y not FE");const Y=I.sqr(X),U=E(Z);if(!I.eql(Y,U))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:Z}=this.toAffine();if(I.isOdd)return!I.isOdd(Z);throw new Error("Field doesn't support isOdd")}equals(Z){k(Z);const{px:X,py:Y,pz:U}=this,{px:L,py:V,pz:W}=Z,P=I.eql(I.mul(X,W),I.mul(L,U)),$=I.eql(I.mul(Y,W),I.mul(V,U));return P&&$}negate(){return new B(this.px,I.neg(this.py),this.pz)}double(){const{a:Z,b:X}=T,Y=I.mul(X,d),{px:U,py:L,pz:V}=this;let W=I.ZERO,P=I.ZERO,$=I.ZERO,ee=I.mul(U,U),Ee=I.mul(L,L),he=I.mul(V,V),Se=I.mul(U,L);return Se=I.add(Se,Se),$=I.mul(U,V),$=I.add($,$),W=I.mul(Z,$),P=I.mul(Y,he),P=I.add(W,P),W=I.sub(Ee,P),P=I.add(Ee,P),P=I.mul(W,P),W=I.mul(Se,W),$=I.mul(Y,$),he=I.mul(Z,he),Se=I.sub(ee,he),Se=I.mul(Z,Se),Se=I.add(Se,$),$=I.add(ee,ee),ee=I.add($,ee),ee=I.add(ee,he),ee=I.mul(ee,Se),P=I.add(P,ee),he=I.mul(L,V),he=I.add(he,he),ee=I.mul(he,Se),W=I.sub(W,ee),$=I.mul(he,Ee),$=I.add($,$),$=I.add($,$),new B(W,P,$)}add(Z){k(Z);const{px:X,py:Y,pz:U}=this,{px:L,py:V,pz:W}=Z;let P=I.ZERO,$=I.ZERO,ee=I.ZERO;const Ee=T.a,he=I.mul(T.b,d);let Se=I.mul(X,L),we=I.mul(Y,V),ae=I.mul(U,W),ue=I.add(X,Y),fe=I.add(L,V);ue=I.mul(ue,fe),fe=I.add(Se,we),ue=I.sub(ue,fe),fe=I.add(X,U);let pe=I.add(L,W);return fe=I.mul(fe,pe),pe=I.add(Se,ae),fe=I.sub(fe,pe),pe=I.add(Y,U),P=I.add(V,W),pe=I.mul(pe,P),P=I.add(we,ae),pe=I.sub(pe,P),ee=I.mul(Ee,fe),P=I.mul(he,ae),ee=I.add(P,ee),P=I.sub(we,ee),ee=I.add(we,ee),$=I.mul(P,ee),we=I.add(Se,Se),we=I.add(we,Se),ae=I.mul(Ee,ae),fe=I.mul(he,fe),we=I.add(we,ae),ae=I.sub(Se,ae),ae=I.mul(Ee,ae),fe=I.add(fe,ae),Se=I.mul(we,fe),$=I.add($,Se),Se=I.mul(pe,fe),P=I.mul(ue,P),P=I.sub(P,Se),Se=I.mul(ue,we),ee=I.mul(pe,ee),ee=I.add(ee,Se),new B(P,$,ee)}subtract(Z){return this.add(Z.negate())}is0(){return this.equals(B.ZERO)}wNAF(Z){return te.wNAFCached(this,H,Z,X=>{const Y=I.invertBatch(X.map(U=>U.pz));return X.map((U,L)=>U.toAffine(Y[L])).map(B.fromAffine)})}multiplyUnsafe(Z){const X=B.ZERO;if(Z===c)return X;if(M(Z),Z===l)return this;const{endo:Y}=T;if(!Y)return te.unsafeLadder(this,Z);let{k1neg:U,k1:L,k2neg:V,k2:W}=Y.splitScalar(Z),P=X,$=X,ee=this;for(;L>c||W>c;)L&l&&(P=P.add(ee)),W&l&&($=$.add(ee)),ee=ee.double(),L>>=l,W>>=l;return U&&(P=P.negate()),V&&($=$.negate()),$=new B(I.mul($.px,Y.beta),$.py,$.pz),P.add($)}multiply(Z){M(Z);let X=Z,Y,U;const{endo:L}=T;if(L){const{k1neg:V,k1:W,k2neg:P,k2:$}=L.splitScalar(X);let{p:ee,f:Ee}=this.wNAF(W),{p:he,f:Se}=this.wNAF($);ee=te.constTimeNegate(V,ee),he=te.constTimeNegate(P,he),he=new B(I.mul(he.px,L.beta),he.py,he.pz),Y=ee.add(he),U=Ee.add(Se)}else{const{p:V,f:W}=this.wNAF(X);Y=V,U=W}return B.normalizeZ([Y,U])[0]}multiplyAndAddUnsafe(Z,X,Y){const U=B.BASE,L=(W,P)=>P===c||P===l||!W.equals(U)?W.multiplyUnsafe(P):W.multiply(P),V=L(this,X).add(L(Z,Y));return V.is0()?void 0:V}toAffine(Z){const{px:X,py:Y,pz:U}=this,L=this.is0();Z==null&&(Z=L?I.ONE:I.inv(U));const V=I.mul(X,Z),W=I.mul(Y,Z),P=I.mul(U,Z);if(L)return{x:I.ZERO,y:I.ZERO};if(!I.eql(P,I.ONE))throw new Error("invZ was invalid");return{x:V,y:W}}isTorsionFree(){const{h:Z,isTorsionFree:X}=T;if(Z===l)return!0;if(X)return X(B,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:Z,clearCofactor:X}=T;return Z===l?this:X?X(B,this):this.multiplyUnsafe(T.h)}toRawBytes(Z=!0){return this.assertValidity(),h(B,this,Z)}toHex(Z=!0){return n.bytesToHex(this.toRawBytes(Z))}}B.BASE=new B(T.Gx,T.Gy,I.ONE),B.ZERO=new B(I.ZERO,I.ONE,I.ZERO);const F=T.nBitLength,te=(0,t.wNAF)(B,T.endo?Math.ceil(F/2):F);return{CURVE:T,ProjectivePoint:B,normPrivateKeyToScalar:q,weierstrassEquation:E,isWithinCurveOrder:N}}function y(m){const T=(0,t.validateBasic)(m);return n.validateObject(T,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...T})}function g(m){const T=y(m),{Fp:I,n:h}=T,v=I.BYTES+1,E=2*I.BYTES+1;function N(fe){return c<fe&&fe<I.ORDER}function M(fe){return r.mod(fe,h)}function q(fe){return r.invert(fe,h)}const{ProjectivePoint:H,normPrivateKeyToScalar:k,weierstrassEquation:B,isWithinCurveOrder:F}=p({...T,toBytes(fe,pe,be){const Ae=pe.toAffine(),qe=I.toBytes(Ae.x),We=n.concatBytes;return be?We(Uint8Array.from([pe.hasEvenY()?2:3]),qe):We(Uint8Array.from([4]),qe,I.toBytes(Ae.y))},fromBytes(fe){const pe=fe.length,be=fe[0],Ae=fe.subarray(1);if(pe===v&&(be===2||be===3)){const qe=n.bytesToNumberBE(Ae);if(!N(qe))throw new Error("Point is not on curve");const We=B(qe);let tt;try{tt=I.sqrt(We)}catch(Ht){const It=Ht instanceof Error?": "+Ht.message:"";throw new Error("Point is not on curve"+It)}const Xe=(tt&l)===l;return(be&1)===1!==Xe&&(tt=I.neg(tt)),{x:qe,y:tt}}else if(pe===E&&be===4){const qe=I.fromBytes(Ae.subarray(0,I.BYTES)),We=I.fromBytes(Ae.subarray(I.BYTES,2*I.BYTES));return{x:qe,y:We}}else throw new Error(`Point of length ${pe} was invalid. Expected ${v} compressed bytes or ${E} uncompressed bytes`)}}),te=fe=>n.bytesToHex(n.numberToBytesBE(fe,T.nByteLength));function ie(fe){const pe=h>>l;return fe>pe}function Z(fe){return ie(fe)?M(-fe):fe}const X=(fe,pe,be)=>n.bytesToNumberBE(fe.slice(pe,be));class Y{constructor(pe,be,Ae){this.r=pe,this.s=be,this.recovery=Ae,this.assertValidity()}static fromCompact(pe){const be=T.nByteLength;return pe=(0,i.ensureBytes)("compactSignature",pe,be*2),new Y(X(pe,0,be),X(pe,be,2*be))}static fromDER(pe){const{r:be,s:Ae}=e.DER.toSig((0,i.ensureBytes)("DER",pe));return new Y(be,Ae)}assertValidity(){if(!F(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!F(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(pe){return new Y(this.r,this.s,pe)}recoverPublicKey(pe){const{r:be,s:Ae,recovery:qe}=this,We=$((0,i.ensureBytes)("msgHash",pe));if(qe==null||![0,1,2,3].includes(qe))throw new Error("recovery id invalid");const tt=qe===2||qe===3?be+T.n:be;if(tt>=I.ORDER)throw new Error("recovery id 2 or 3 invalid");const Xe=(qe&1)===0?"02":"03",ut=H.fromHex(Xe+te(tt)),Ht=q(tt),It=M(-We*Ht),tr=M(Ae*Ht),Rt=H.BASE.multiplyAndAddUnsafe(ut,It,tr);if(!Rt)throw new Error("point at infinify");return Rt.assertValidity(),Rt}hasHighS(){return ie(this.s)}normalizeS(){return this.hasHighS()?new Y(this.r,M(-this.s),this.recovery):this}toDERRawBytes(){return n.hexToBytes(this.toDERHex())}toDERHex(){return e.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return n.hexToBytes(this.toCompactHex())}toCompactHex(){return te(this.r)+te(this.s)}}const U={isValidPrivateKey(fe){try{return k(fe),!0}catch{return!1}},normPrivateKeyToScalar:k,randomPrivateKey:()=>{const fe=r.getMinHashLength(T.n);return r.mapHashToField(T.randomBytes(fe),T.n)},precompute(fe=8,pe=H.BASE){return pe._setWindowSize(fe),pe.multiply(BigInt(3)),pe}};function L(fe,pe=!0){return H.fromPrivateKey(fe).toRawBytes(pe)}function V(fe){const pe=n.isBytes(fe),be=typeof fe=="string",Ae=(pe||be)&&fe.length;return pe?Ae===v||Ae===E:be?Ae===2*v||Ae===2*E:fe instanceof H}function W(fe,pe,be=!0){if(V(fe))throw new Error("first arg must be private key");if(!V(pe))throw new Error("second arg must be public key");return H.fromHex(pe).multiply(k(fe)).toRawBytes(be)}const P=T.bits2int||function(fe){const pe=n.bytesToNumberBE(fe),be=fe.length*8-T.nBitLength;return be>0?pe>>BigInt(be):pe},$=T.bits2int_modN||function(fe){return M(P(fe))},ee=n.bitMask(T.nBitLength);function Ee(fe){if(typeof fe!="bigint")throw new Error("bigint expected");if(!(c<=fe&&fe<ee))throw new Error(`bigint expected < 2^${T.nBitLength}`);return n.numberToBytesBE(fe,T.nByteLength)}function he(fe,pe,be=Se){if(["recovered","canonical"].some(yr=>yr in be))throw new Error("sign() legacy options not supported");const{hash:Ae,randomBytes:qe}=T;let{lowS:We,prehash:tt,extraEntropy:Xe}=be;We==null&&(We=!0),fe=(0,i.ensureBytes)("msgHash",fe),tt&&(fe=(0,i.ensureBytes)("prehashed msgHash",Ae(fe)));const ut=$(fe),Ht=k(pe),It=[Ee(Ht),Ee(ut)];if(Xe!=null&&Xe!==!1){const yr=Xe===!0?qe(I.BYTES):Xe;It.push((0,i.ensureBytes)("extraEntropy",yr))}const tr=n.concatBytes(...It),Rt=ut;function hr(yr){const yt=P(yr);if(!F(yt))return;const Hr=q(yt),D=H.BASE.multiply(yt).toAffine(),w=M(D.x);if(w===c)return;const A=M(Hr*M(Rt+w*Ht));if(A===c)return;let K=(D.x===w?0:2)|Number(D.y&l),de=A;return We&&ie(A)&&(de=Z(A),K^=1),new Y(w,de,K)}return{seed:tr,k2sig:hr}}const Se={lowS:T.lowS,prehash:!1},we={lowS:T.lowS,prehash:!1};function ae(fe,pe,be=Se){const{seed:Ae,k2sig:qe}=he(fe,pe,be),We=T;return n.createHmacDrbg(We.hash.outputLen,We.nByteLength,We.hmac)(Ae,qe)}H.BASE._setWindowSize(8);function ue(fe,pe,be,Ae=we){var D;const qe=fe;if(pe=(0,i.ensureBytes)("msgHash",pe),be=(0,i.ensureBytes)("publicKey",be),"strict"in Ae)throw new Error("options.strict was renamed to lowS");const{lowS:We,prehash:tt}=Ae;let Xe,ut;try{if(typeof qe=="string"||n.isBytes(qe))try{Xe=Y.fromDER(qe)}catch(w){if(!(w instanceof e.DER.Err))throw w;Xe=Y.fromCompact(qe)}else if(typeof qe=="object"&&typeof qe.r=="bigint"&&typeof qe.s=="bigint"){const{r:w,s:A}=qe;Xe=new Y(w,A)}else throw new Error("PARSE");ut=H.fromHex(be)}catch(w){if(w.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(We&&Xe.hasHighS())return!1;tt&&(pe=T.hash(pe));const{r:Ht,s:It}=Xe,tr=$(pe),Rt=q(It),hr=M(tr*Rt),yr=M(Ht*Rt),yt=(D=H.BASE.multiplyAndAddUnsafe(ut,hr,yr))==null?void 0:D.toAffine();return yt?M(yt.x)===Ht:!1}return{CURVE:T,getPublicKey:L,getSharedSecret:W,sign:ae,verify:ue,ProjectivePoint:H,Signature:Y,utils:U}}function b(m,T){const I=m.ORDER;let h=c;for(let ie=I-l;ie%u===c;ie/=u)h+=l;const v=h,E=u<<v-l-l,N=E*u,M=(I-l)/N,q=(M-l)/u,H=N-l,k=E,B=m.pow(T,M),F=m.pow(T,(M+l)/u);let te=(ie,Z)=>{let X=B,Y=m.pow(Z,H),U=m.sqr(Y);U=m.mul(U,Z);let L=m.mul(ie,U);L=m.pow(L,q),L=m.mul(L,Y),Y=m.mul(L,Z),U=m.mul(L,ie);let V=m.mul(U,Y);L=m.pow(V,k);let W=m.eql(L,m.ONE);Y=m.mul(U,F),L=m.mul(V,X),U=m.cmov(Y,U,W),V=m.cmov(L,V,W);for(let P=v;P>l;P--){let $=P-u;$=u<<$-l;let ee=m.pow(V,$);const Ee=m.eql(ee,m.ONE);Y=m.mul(U,X),X=m.mul(X,X),ee=m.mul(V,X),U=m.cmov(Y,U,Ee),V=m.cmov(ee,V,Ee)}return{isValid:W,value:U}};if(m.ORDER%f===d){const ie=(m.ORDER-d)/f,Z=m.sqrt(m.neg(T));te=(X,Y)=>{let U=m.sqr(Y);const L=m.mul(X,Y);U=m.mul(U,L);let V=m.pow(U,ie);V=m.mul(V,L);const W=m.mul(V,Z),P=m.mul(m.sqr(V),Y),$=m.eql(P,X);let ee=m.cmov(W,V,$);return{isValid:$,value:ee}}}return te}function O(m,T){if(r.validateField(m),!m.isValid(T.A)||!m.isValid(T.B)||!m.isValid(T.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const I=b(m,T.Z);if(!m.isOdd)throw new Error("Fp.isOdd is not implemented!");return h=>{let v,E,N,M,q,H,k,B;v=m.sqr(h),v=m.mul(v,T.Z),E=m.sqr(v),E=m.add(E,v),N=m.add(E,m.ONE),N=m.mul(N,T.B),M=m.cmov(T.Z,m.neg(E),!m.eql(E,m.ZERO)),M=m.mul(M,T.A),E=m.sqr(N),H=m.sqr(M),q=m.mul(H,T.A),E=m.add(E,q),E=m.mul(E,N),H=m.mul(H,M),q=m.mul(H,T.B),E=m.add(E,q),k=m.mul(v,N);const{isValid:F,value:te}=I(E,H);B=m.mul(v,h),B=m.mul(B,te),k=m.cmov(k,N,F),B=m.cmov(B,te,F);const ie=m.isOdd(h)===m.isOdd(B);return B=m.cmov(m.neg(B),B,ie),k=m.div(k,M),{x:k,y:B}}}})(Th)),Th}var uR;function C5(){if(uR)return No;uR=1,Object.defineProperty(No,"__esModule",{value:!0}),No.getHash=n,No.createCurve=i;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=N5(),t=Yc(),r=yD();function n(a){return{hash:a,hmac:(s,...o)=>(0,e.hmac)(a,s,(0,t.concatBytes)(...o)),randomBytes:t.randomBytes}}function i(a,s){const o=c=>(0,r.weierstrass)({...a,...n(c)});return Object.freeze({...o(s),create:o})}return No}var bi={},lR;function M5(){if(lR)return bi;lR=1,Object.defineProperty(bi,"__esModule",{value:!0}),bi.expand_message_xmd=s,bi.expand_message_xof=o,bi.hash_to_field=c,bi.isogenyMap=l,bi.createHasher=u;const e=df(),t=Ys(),r=t.bytesToNumberBE;function n(d,f){if(d<0||d>=1<<8*f)throw new Error(`bad I2OSP call: value=${d} length=${f}`);const p=Array.from({length:f}).fill(0);for(let y=f-1;y>=0;y--)p[y]=d&255,d>>>=8;return new Uint8Array(p)}function i(d,f){const p=new Uint8Array(d.length);for(let y=0;y<d.length;y++)p[y]=d[y]^f[y];return p}function a(d){if(!Number.isSafeInteger(d))throw new Error("number expected")}function s(d,f,p,y){(0,t.abytes)(d),(0,t.abytes)(f),a(p),f.length>255&&(f=y((0,t.concatBytes)((0,t.utf8ToBytes)("H2C-OVERSIZE-DST-"),f)));const{outputLen:g,blockLen:b}=y,O=Math.ceil(p/g);if(O>255)throw new Error("Invalid xmd length");const m=(0,t.concatBytes)(f,n(f.length,1)),T=n(0,b),I=n(p,2),h=new Array(O),v=y((0,t.concatBytes)(T,d,I,n(0,1),m));h[0]=y((0,t.concatBytes)(v,n(1,1),m));for(let N=1;N<=O;N++){const M=[i(v,h[N-1]),n(N+1,1),m];h[N]=y((0,t.concatBytes)(...M))}return(0,t.concatBytes)(...h).slice(0,p)}function o(d,f,p,y,g){if((0,t.abytes)(d),(0,t.abytes)(f),a(p),f.length>255){const b=Math.ceil(2*y/8);f=g.create({dkLen:b}).update((0,t.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(f).digest()}if(p>65535||f.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return g.create({dkLen:p}).update(d).update(n(p,2)).update(f).update(n(f.length,1)).digest()}function c(d,f,p){(0,t.validateObject)(p,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:y,k:g,m:b,hash:O,expand:m,DST:T}=p;(0,t.abytes)(d),a(f);const I=typeof T=="string"?(0,t.utf8ToBytes)(T):T,h=y.toString(2).length,v=Math.ceil((h+g)/8),E=f*b*v;let N;if(m==="xmd")N=s(d,I,E,O);else if(m==="xof")N=o(d,I,E,g,O);else if(m==="_internal_pass")N=d;else throw new Error('expand must be "xmd" or "xof"');const M=new Array(f);for(let q=0;q<f;q++){const H=new Array(b);for(let k=0;k<b;k++){const B=v*(k+q*b),F=N.subarray(B,B+v);H[k]=(0,e.mod)(r(F),y)}M[q]=H}return M}function l(d,f){const p=f.map(y=>Array.from(y).reverse());return(y,g)=>{const[b,O,m,T]=p.map(I=>I.reduce((h,v)=>d.add(d.mul(h,y),v)));return y=d.div(b,O),g=d.mul(g,d.div(m,T)),{x:y,y:g}}}function u(d,f,p){if(typeof f!="function")throw new Error("mapToCurve() must be defined");return{hashToCurve(y,g){const b=c(y,2,{...p,DST:p.DST,...g}),O=d.fromAffine(f(b[0])),m=d.fromAffine(f(b[1])),T=O.add(m).clearCofactor();return T.assertValidity(),T},encodeToCurve(y,g){const b=c(y,1,{...p,DST:p.encodeDST,...g}),O=d.fromAffine(f(b[0])).clearCofactor();return O.assertValidity(),O},mapToCurve(y){if(!Array.isArray(y))throw new Error("mapToCurve: expected array of bigints");for(const b of y)if(typeof b!="bigint")throw new Error(`mapToCurve: expected array of bigints, got ${b} in array`);const g=d.fromAffine(f(y)).clearCofactor();return g.assertValidity(),g}}}return bi}var dR;function j5(){return dR||(dR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.encodeToCurve=e.hashToCurve=e.schnorr=e.secp256k1=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const t=O5(),r=Yc(),n=C5(),i=M5(),a=df(),s=Ys(),o=yD(),c=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),l=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),u=BigInt(1),d=BigInt(2),f=(Y,U)=>(Y+U/d)/U;function p(Y){const U=c,L=BigInt(3),V=BigInt(6),W=BigInt(11),P=BigInt(22),$=BigInt(23),ee=BigInt(44),Ee=BigInt(88),he=Y*Y*Y%U,Se=he*he*Y%U,we=(0,a.pow2)(Se,L,U)*Se%U,ae=(0,a.pow2)(we,L,U)*Se%U,ue=(0,a.pow2)(ae,d,U)*he%U,fe=(0,a.pow2)(ue,W,U)*ue%U,pe=(0,a.pow2)(fe,P,U)*fe%U,be=(0,a.pow2)(pe,ee,U)*pe%U,Ae=(0,a.pow2)(be,Ee,U)*be%U,qe=(0,a.pow2)(Ae,ee,U)*pe%U,We=(0,a.pow2)(qe,L,U)*Se%U,tt=(0,a.pow2)(We,$,U)*fe%U,Xe=(0,a.pow2)(tt,V,U)*he%U,ut=(0,a.pow2)(Xe,d,U);if(!y.eql(y.sqr(ut),Y))throw new Error("Cannot find square root");return ut}const y=(0,a.Field)(c,void 0,void 0,{sqrt:p});e.secp256k1=(0,n.createCurve)({a:BigInt(0),b:BigInt(7),Fp:y,n:l,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:Y=>{const U=l,L=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),V=-u*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),W=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),P=L,$=BigInt("0x100000000000000000000000000000000"),ee=f(P*Y,U),Ee=f(-V*Y,U);let he=(0,a.mod)(Y-ee*L-Ee*W,U),Se=(0,a.mod)(-ee*V-Ee*P,U);const we=he>$,ae=Se>$;if(we&&(he=U-he),ae&&(Se=U-Se),he>$||Se>$)throw new Error("splitScalar: Endomorphism failed, k="+Y);return{k1neg:we,k1:he,k2neg:ae,k2:Se}}}},t.sha256);const g=BigInt(0),b=Y=>typeof Y=="bigint"&&g<Y&&Y<c,O=Y=>typeof Y=="bigint"&&g<Y&&Y<l,m={};function T(Y,...U){let L=m[Y];if(L===void 0){const V=(0,t.sha256)(Uint8Array.from(Y,W=>W.charCodeAt(0)));L=(0,s.concatBytes)(V,V),m[Y]=L}return(0,t.sha256)((0,s.concatBytes)(L,...U))}const I=Y=>Y.toRawBytes(!0).slice(1),h=Y=>(0,s.numberToBytesBE)(Y,32),v=Y=>(0,a.mod)(Y,c),E=Y=>(0,a.mod)(Y,l),N=e.secp256k1.ProjectivePoint,M=(Y,U,L)=>N.BASE.multiplyAndAddUnsafe(Y,U,L);function q(Y){let U=e.secp256k1.utils.normPrivateKeyToScalar(Y),L=N.fromPrivateKey(U);return{scalar:L.hasEvenY()?U:E(-U),bytes:I(L)}}function H(Y){if(!b(Y))throw new Error("bad x: need 0 < x < p");const U=v(Y*Y),L=v(U*Y+BigInt(7));let V=p(L);V%d!==g&&(V=v(-V));const W=new N(Y,V,u);return W.assertValidity(),W}function k(...Y){return E((0,s.bytesToNumberBE)(T("BIP0340/challenge",...Y)))}function B(Y){return q(Y).bytes}function F(Y,U,L=(0,r.randomBytes)(32)){const V=(0,s.ensureBytes)("message",Y),{bytes:W,scalar:P}=q(U),$=(0,s.ensureBytes)("auxRand",L,32),ee=h(P^(0,s.bytesToNumberBE)(T("BIP0340/aux",$))),Ee=T("BIP0340/nonce",ee,W,V),he=E((0,s.bytesToNumberBE)(Ee));if(he===g)throw new Error("sign failed: k is zero");const{bytes:Se,scalar:we}=q(he),ae=k(Se,W,V),ue=new Uint8Array(64);if(ue.set(Se,0),ue.set(h(E(we+ae*P)),32),!te(ue,V,W))throw new Error("sign: Invalid signature produced");return ue}function te(Y,U,L){const V=(0,s.ensureBytes)("signature",Y,64),W=(0,s.ensureBytes)("message",U),P=(0,s.ensureBytes)("publicKey",L,32);try{const $=H((0,s.bytesToNumberBE)(P)),ee=(0,s.bytesToNumberBE)(V.subarray(0,32));if(!b(ee))return!1;const Ee=(0,s.bytesToNumberBE)(V.subarray(32,64));if(!O(Ee))return!1;const he=k(h(ee),I($),W),Se=M($,Ee,E(-he));return!(!Se||!Se.hasEvenY()||Se.toAffine().x!==ee)}catch{return!1}}e.schnorr={getPublicKey:B,sign:F,verify:te,utils:{randomPrivateKey:e.secp256k1.utils.randomPrivateKey,lift_x:H,pointToBytes:I,numberToBytesBE:s.numberToBytesBE,bytesToNumberBE:s.bytesToNumberBE,taggedHash:T,mod:a.mod}};const ie=(0,i.isogenyMap)(y,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(Y=>Y.map(U=>BigInt(U)))),Z=(0,o.mapToCurveSimpleSWU)(y,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:y.create(BigInt("-11"))}),X=(0,i.createHasher)(e.secp256k1.ProjectivePoint,Y=>{const{x:U,y:L}=Z(y.create(Y[0]));return ie(U,L)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:y.ORDER,m:1,k:128,expand:"xmd",hash:t.sha256});e.hashToCurve=X.hashToCurve,e.encodeToCurve=X.encodeToCurve})(Eh)),Eh}var fR;function D5(){return fR||(fR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.secp256k1=void 0;var t=j5();Object.defineProperty(e,"secp256k1",{enumerable:!0,get:function(){return t.secp256k1}})})(vh)),vh}var pR;function L5(){if(pR)return Mn;pR=1,Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.recoverPublicKey=r,Mn.recoverAddressFromEthSignature=i,Mn.sign=a,Mn.createEthereumMessageHash=s,Mn.ethSign=o,Mn.computeAddress=c,Mn.createUnsafeIdentity=l;const e=lf(),t=D5();function r(u,d){if(u.length!==65)throw new Error("Invalid signature length "+u.length);const f=u[64];if(f!==27&&f!==28)throw new Error(`Invalid signature recovery value: ${f}. Expected 27 or 28.`);const p=u.slice(0,u.length-1),y=f===28?1:0;return t.secp256k1.Signature.fromCompact(p).addRecoveryBit(y).recoverPublicKey(d).toRawBytes(!1).slice(1)}function n(u){if(u.length!==65)throw new Error("Invalid ethereum signature");const d=u[64];if(d===0||d===1){const f=new Uint8Array(u);return f[64]=d+27,f}return u}function i(u,d){if(typeof u=="string"){if((0,e.isHex)(u))return i((0,e.hexToBytes)(u),d);throw new Error("String signatures must be encoded in hex")}return c(r(n(u),s(d)))}function a(u,d){const f=t.secp256k1.sign(d,u),p=f.recovery===1?"1c":"1b";return"0x"+f.toCompactHex()+p}function s(u){const d=typeof u=="string"?(0,e.stringToUtf8Bytes)(u):u,f=(0,e.concatBytes)((0,e.stringToUtf8Bytes)(`Ethereum Signed Message:
|
|
70
|
-
`),(0,e.stringToUtf8Bytes)(String(d.length)),d);return(0,e.hexToBytes)((0,e.sha3)(f))}function o(u,d){return a(u,s(d))}function c(u){let d;if(u.length===65&&u[0]===4)d=u.slice(1);else if(u.length===64)d=u;else throw new Error(`Invalid public key length: ${u.length}. Expected 64 bytes, or 65 bytes with a leading 0x04 uncompressed prefix.`);return(0,e.getAddress)((0,e.sha3)(d).substring(24))}function l(){const u=t.secp256k1.utils.randomPrivateKey(),d=t.secp256k1.getPublicKey(u,!1).slice(1),f=c(d);return{privateKey:(0,e.bytesToHex)(u),publicKey:(0,e.bytesToHex)(d),address:f}}return Mn}var rd={},mR;function $5(){if(mR)return rd;mR=1,Object.defineProperty(rd,"__esModule",{value:!0});const e=lf();class t{constructor(n,i=!0){vi(this,"requestManager");vi(this,"checkedBlocks");vi(this,"saveBlocks");vi(this,"savedBlocks");vi(this,"requests");vi(this,"blockTime");vi(this,"firstTimestamp");this.requestManager=n,this.checkedBlocks={},this.saveBlocks=i,this.savedBlocks={},this.requests=0}async fillBlockTime(){const n=await this.getBlockWrapper("latest"),i=await this.getBlockWrapper(1);return this.blockTime=(n.timestamp-i.timestamp)/(Number(n.number)-1),this.firstTimestamp=i.timestamp,{blockTime:this.blockTime,firstTimestamp:this.firstTimestamp}}async getDate(n,i=!0){const a=n/1e3,s=Date.now()/1e3;let o=this.firstTimestamp,c=this.blockTime;if((o===void 0||c===void 0)&&({firstTimestamp:o,blockTime:c}=await this.fillBlockTime()),a<o)return{block:1,timestamp:a};const l=this.savedBlocks.latest;if(a>=s||l&&a>l.timestamp)return{block:(0,e.toBigNumber)(await this.requestManager.eth_blockNumber()).toNumber(),timestamp:a};this.checkedBlocks[a]=[];const u=await this.getBlockWrapper(Math.ceil((a-o)/c));return{block:await this.findBetter(a,u,i,c),timestamp:a}}async findBetter(n,i,a,s){let o=s??this.blockTime??(await this.fillBlockTime()).blockTime;if(await this.isBetterBlock(n,i,a))return i.number;const c=n-i.timestamp;let l=Math.ceil(c/o);l===0&&(l=c<0?-1:1);const u=await this.getBlockWrapper(this.getNextBlock(n,i.number,l));return o=Math.abs((i.timestamp-u.timestamp)/(i.number-u.number)),this.findBetter(n,u,a,o)}async isBetterBlock(n,i,a){const s=i.timestamp;if(a){if(s<n)return!1;const o=await this.getBlockWrapper(i.number-1);if(s>=n&&o.timestamp<n)return!0}else{if(s>=n)return!1;const o=await this.getBlockWrapper(i.number+1);if(s<n&&o.timestamp>=n)return!0}return!1}getNextBlock(n,i,a){const s=i+a;if(this.checkedBlocks[n].includes(s)){const o=a<0?a+1:a-1;if(o===0)throw new Error(`Could not find an unchecked block for timestamp ${n}`);return this.getNextBlock(n,i,o)}return this.checkedBlocks[n].push(s),s}async getBlockWrapper(n){if(!this.saveBlocks){const s=await this.requestManager.eth_getBlockByNumber(n,!1);return{number:(0,e.toBigNumber)(s.number).toNumber(),timestamp:(0,e.toBigNumber)(s.timestamp).toNumber()}}const i=n.toString();if(this.savedBlocks[i])return this.savedBlocks[i];if(typeof n=="number"&&this.savedBlocks.latest&&this.savedBlocks.latest.number<=n)return this.savedBlocks.latest;const{timestamp:a}=await this.requestManager.eth_getBlockByNumber(n,!1);return this.savedBlocks[i]={number:(0,e.toBigNumber)(n==="latest"?await this.requestManager.eth_blockNumber():n).toNumber(),timestamp:(0,e.toBigNumber)(a).toNumber()},this.requests++,this.savedBlocks[i]}}return rd.default=t,rd}var nd={},hR;function k5(){if(hR)return nd;hR=1,Object.defineProperty(nd,"__esModule",{value:!0}),nd.moveMinutes=e;function e(t){const r=new Date;return r.setMinutes(r.getMinutes()+t),r}return nd}var wh={},ln={},oa={},ca={},Ih={},dn={},yR;function Pe(){if(yR)return dn;yR=1;var e=dn&&dn.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(dn,"__esModule",{value:!0}),dn.validateType=dn.generateLazyValidator=dn.Ajv=void 0;const t=e(PE());dn.Ajv=t.default;const r=e(Fj()),n=e(Hj());function i(s,o){let c=null;const l=(u,d)=>{if(!c){const f=new t.default({$data:!0,allErrors:!0});(0,r.default)(f),(0,n.default)(f,{singleError:!0}),o==null||o.forEach(p=>f.addKeyword(p)),c=f.compile(s),Object.defineProperty(l,"errors",{get(){return c==null?void 0:c.errors}})}return c(u,d)};return l}dn.generateLazyValidator=i;function a(s,o){return s.validate(o)}return dn.validateType=a,dn}var gR;function q5(){return gR||(gR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SceneUpdate=e.SCENE_UPDATE=void 0;const t=Pe();e.SCENE_UPDATE="SCENE_UPDATE",(function(r){r.schema={type:"object",properties:{type:{type:"string",enum:[e.SCENE_UPDATE]},payload:{type:"object",properties:{sceneId:{type:"string"},sceneType:{type:"string"}},additionalProperties:!1,required:["sceneId","sceneType"]}},required:["payload","type"]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.SceneUpdate||(e.SceneUpdate={}))})(Ih)),Ih}var Rh={},_R;function B5(){return _R||(_R=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Update=e.UPDATE=void 0;const t=Pe();e.UPDATE="update",(function(r){r.schema={type:"object",properties:{type:{type:"string",enum:[e.UPDATE]}},required:["type"]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.Update||(e.Update={}))})(Rh)),Rh}var vR;function U5(){return vR||(vR=1,(function(e){var t=ca&&ca.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=ca&&ca.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(q5(),e),r(B5(),e)})(ca)),ca}var ua={},Ah={},ER;function F5(){return ER||(ER=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProjectType=void 0;const t=Pe();(function(r){r.SCENE="scene",r.SMART_ITEM="smart-item",r.PORTABLE_EXPERIENCE="portable-experience",r.LIBRARY="library"})(e.ProjectType||(e.ProjectType={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.ProjectType||(e.ProjectType={}))})(Ah)),Ah}var Oh={},Nh={},bR;function ff(){return bR||(bR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Rarity=void 0;const t=Pe();(function(r){r.UNIQUE="unique",r.MYTHIC="mythic",r.EXOTIC="exotic",r.LEGENDARY="legendary",r.EPIC="epic",r.RARE="rare",r.UNCOMMON="uncommon",r.COMMON="common"})(e.Rarity||(e.Rarity={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema);const n={[r.UNIQUE]:1,[r.MYTHIC]:10,[r.EXOTIC]:50,[r.LEGENDARY]:100,[r.EPIC]:1e3,[r.RARE]:5e3,[r.UNCOMMON]:1e4,[r.COMMON]:1e5},i={[r.UNIQUE]:"#FFE617",[r.MYTHIC]:"#FB7DE3",[r.EXOTIC]:"#E4FFB8",[r.LEGENDARY]:"#A657ED",[r.EPIC]:"#6397F2",[r.RARE]:"#3AD682",[r.UNCOMMON]:"#FF8563",[r.COMMON]:"#D4E0E0"},a={[r.UNIQUE]:"#FFB626",[r.MYTHIC]:"#FF63E1",[r.EXOTIC]:"#CAFF73",[r.LEGENDARY]:"#842DDA",[r.EPIC]:"#3D85E6",[r.RARE]:"#36CF75",[r.UNCOMMON]:"#ED6D4F",[r.COMMON]:"#ABC1C1"};function s(u){return n[u]}r.getMaxSupply=s;function o(u){return a[u]}r.getColor=o;function c(){return[r.UNIQUE,r.MYTHIC,r.EXOTIC,r.LEGENDARY,r.EPIC,r.RARE,r.UNCOMMON,r.COMMON]}r.getRarities=c;function l(u){return[i[u],a[u]]}r.getGradient=l})(e.Rarity||(e.Rarity={}))})(Nh)),Nh}var Ph={},SR;function es(){return SR||(SR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableCategory=void 0;const t=Pe();(function(r){r.EYEBROWS="eyebrows",r.EYES="eyes",r.FACIAL_HAIR="facial_hair",r.HAIR="hair",r.BODY_SHAPE="body_shape",r.MOUTH="mouth",r.UPPER_BODY="upper_body",r.LOWER_BODY="lower_body",r.FEET="feet",r.EARRING="earring",r.EYEWEAR="eyewear",r.HAT="hat",r.HELMET="helmet",r.MASK="mask",r.TIARA="tiara",r.TOP_HEAD="top_head",r.SKIN="skin",r.HANDS_WEAR="hands_wear"})(e.WearableCategory||(e.WearableCategory={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.WearableCategory||(e.WearableCategory={}))})(Ph)),Ph}var Ch={},Mh={},TR;function HE(){return TR||(TR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BodyShape=void 0;const t=Pe();(function(r){r.MALE="urn:decentraland:off-chain:base-avatars:BaseMale",r.FEMALE="urn:decentraland:off-chain:base-avatars:BaseFemale"})(e.BodyShape||(e.BodyShape={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.BodyShape||(e.BodyShape={}))})(Mh)),Mh}var jh={},Dh={},wR;function gD(){return wR||(wR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BodyPartCategory=void 0;const t=Pe();(function(r){r.HEAD="head",r.HANDS="hands"})(e.BodyPartCategory||(e.BodyPartCategory={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.BodyPartCategory||(e.BodyPartCategory={}))})(Dh)),Dh}var IR;function VE(){return IR||(IR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HideableWearableCategory=void 0;const t=es(),r=Pe(),n=gD();(function(i){i.schema={oneOf:[Object.assign({},t.WearableCategory.schema),Object.assign({},n.BodyPartCategory.schema)]},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.HideableWearableCategory||(e.HideableWearableCategory={}))})(jh)),jh}var RR;function xE(){return RR||(RR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableRepresentation=void 0;const t=Pe(),r=HE(),n=VE();(function(i){i.schema={type:"object",properties:{bodyShapes:{type:"array",items:r.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}}},overrideHides:{type:"array",items:n.HideableWearableCategory.schema},overrideReplaces:{type:"array",items:n.HideableWearableCategory.schema}},required:["bodyShapes","mainFile","contents","overrideHides","overrideReplaces"]},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.WearableRepresentation||(e.WearableRepresentation={}))})(Ch)),Ch}var la={},da={},Lh={},$h={},AR;function ts(){return AR||(AR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.IPFSv1=e.IPFSv2=e.EthAddress=e.Color3=void 0;const t=Pe();(function(r){r.schema={type:"object",required:["r","g","b"],properties:{r:{type:"number",minimum:0,maximum:1},g:{type:"number",minimum:0,maximum:1},b:{type:"number",minimum:0,maximum:1}}};const n=(0,t.generateLazyValidator)(r.schema);r.validate=i=>n(i)})(e.Color3||(e.Color3={})),(function(r){r.schema={type:"string",pattern:"^0x[a-fA-F0-9]{40}$"};const n=new RegExp(r.schema.pattern);r.validate=i=>n.test(i)})(e.EthAddress||(e.EthAddress={})),(function(r){r.schema={type:"string",pattern:"^(ba)[a-zA-Z0-9]{57}$"};const n=new RegExp(r.schema.pattern);r.validate=i=>n.test(i)})(e.IPFSv2||(e.IPFSv2={})),(function(r){r.schema={type:"string",pattern:"^(Qm)[a-zA-Z0-9]{44}$"};const n=new RegExp(r.schema.pattern);r.validate=i=>n.test(i)})(e.IPFSv1||(e.IPFSv1={}))})($h)),$h}var OR;function _D(){return OR||(OR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Avatar=e.Link=e.LinkUrl=e.AvatarInfo=e.Snapshots=void 0;const t=es(),r=ts(),n=Pe();var i;(function(c){c.schema={type:"object",required:["face256","body"],properties:{face256:r.IPFSv2.schema,body:r.IPFSv2.schema}},c.validate=(0,n.generateLazyValidator)(c.schema)})(i=e.Snapshots||(e.Snapshots={}));var a;(function(c){c.schema={type:"object",required:["bodyShape","eyes","hair","skin"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:r.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:r.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:r.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:t.WearableCategory.schema},emotes:{type:"array",items:{type:"object",properties:{slot:{type:"number"},urn:{type:"string"}},required:["slot","urn"]},nullable:!0},snapshots:Object.assign(Object.assign({},i.schema),{nullable:!0})},additionalProperties:!0},c.validate=(0,n.generateLazyValidator)(c.schema)})(a=e.AvatarInfo||(e.AvatarInfo={}));var s;(function(c){c.schema={type:"string",maxLength:2083,pattern:"^(?:https?):\\/\\/[^\\s/$.?#].[^\\s]*$"};const l=new RegExp(c.schema.pattern,"i");c.validate=u=>l.test(u)})(s=e.LinkUrl||(e.LinkUrl={}));var o;(function(c){c.schema={type:"object",required:["title","url"],properties:{title:{type:"string"},url:s.schema}}})(o=e.Link||(e.Link={})),(function(c){c.schema={type:"object",required:["name","description","ethAddress","version","tutorialStep","avatar","hasClaimedName"],properties:{userId:{type:"string"},name:{type:"string"},nameColor:Object.assign(Object.assign({},r.Color3.schema),{nullable:!0}),description:{type:"string"},links:{type:"array",maxItems:5,items:o.schema,nullable:!0},country:{nullable:!0,type:"string"},employmentStatus:{nullable:!0,type:"string"},gender:{nullable:!0,type:"string"},pronouns:{nullable:!0,type:"string"},relationshipStatus:{nullable:!0,type:"string"},sexualOrientation:{nullable:!0,type:"string"},language:{nullable:!0,type:"string"},profession:{nullable:!0,type:"string"},birthdate:{nullable:!0,type:"number"},realName:{nullable:!0,type:"string"},hobbies:{nullable:!0,type:"string"},ethAddress:r.EthAddress.schema,version:{type:"number"},tutorialStep:{type:"number"},email:{type:"string",nullable:!0},blocked:{type:"array",items:{type:"string"},nullable:!0},muted:{type:"array",items:{type:"string"},nullable:!0},interests:{type:"array",items:{type:"string"},nullable:!0},hasClaimedName:{type:"boolean"},hasConnectedWeb3:{type:"boolean",nullable:!0},avatar:a.schema},additionalProperties:!0},c.validate=(0,n.generateLazyValidator)(c.schema)})(e.Avatar||(e.Avatar={}))})(Lh)),Lh}var kh={},NR;function H5(){return NR||(NR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Profile=void 0;const t=Pe(),r=_D();(function(n){n.schema={type:"object",required:["avatars"],properties:{avatars:{type:"array",items:r.Avatar.schema}},additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.Profile||(e.Profile={}))})(kh)),kh}var PR;function V5(){return PR||(PR=1,(function(e){var t=da&&da.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=da&&da.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(_D(),e),r(H5(),e)})(da)),da}var qh={},Bh={},CR;function vD(){return CR||(CR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FeatureToggles=e.portableExperiencesToggles=e.toggles=void 0;const t=Pe();e.toggles=["enabled","disabled"],e.portableExperiencesToggles=[...e.toggles,"hideUi"],(function(r){r.schema={type:"object",properties:{voiceChat:{type:"string",enum:e.toggles,nullable:!0},portableExperiences:{type:"string",enum:e.portableExperiencesToggles,nullable:!0,errorMessage:`valid options are ${e.portableExperiencesToggles.join(", ")}`}},errorMessage:`valid options are ${e.toggles.join(", ")}`,required:[]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.FeatureToggles||(e.FeatureToggles={}))})(Bh)),Bh}var Uh={},MR;function ED(){return MR||(MR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorldConfiguration=void 0;const t=Pe();(function(r){r.schema={type:"object",properties:{name:{type:"string",nullable:!0},skybox:{type:"number",nullable:!0},minimapVisible:{type:"boolean",nullable:!0},miniMapConfig:{type:"object",nullable:!0,properties:{visible:{type:"boolean",nullable:!0},dataImage:{type:"string",nullable:!0},estateImage:{type:"string",nullable:!0}}},skyboxConfig:{type:"object",nullable:!0,properties:{fixedTime:{type:"number",nullable:!0},textures:{type:"array",nullable:!0,items:{type:"string"},oneOf:[{minItems:0,maxItems:0},{minItems:1,maxItems:1},{minItems:6,maxItems:6}],errorMessage:"customSkybox must be an array of 0, 1 or 6 strings"}}},fixedAdapter:{type:"string",nullable:!0},placesConfig:{type:"object",nullable:!0,properties:{optOut:{type:"boolean",nullable:!0}}}},required:[]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.WorldConfiguration||(e.WorldConfiguration={}))})(Uh)),Uh}var Fh={},jR;function bD(){return jR||(jR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SceneParcels=void 0;const t=Pe();(function(r){r.schema={description:'Describes a scene, a set of parcels whose content is treated as the same entity. A list of parcels is listed, for which one of them is considered the "base" for positioning purposes.',type:"object",properties:{base:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},parcels:{type:"array",items:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},minItems:1}},additionalProperties:!0,required:["base","parcels"]},r.schemaValidator=(0,t.generateLazyValidator)(r.schema),r.validate=n=>r.schemaValidator(n)&&n.parcels.includes(n.base)})(e.SceneParcels||(e.SceneParcels={}))})(Fh)),Fh}var Hh={},Co={},DR;function GE(){return DR||(DR=1,Object.defineProperty(Co,"__esModule",{value:!0}),Co.displayableProperties=void 0,Co.displayableProperties={menuBarIcon:{description:"Name of the file used as icon for the MenuBar",type:"string",nullable:!0}}),Co}var Vh={},LR;function SD(){return LR||(LR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Source=void 0;const t=Pe();(function(r){r.schema={type:"object",properties:{version:{type:"number",nullable:!0},origin:{type:"string"},projectId:{type:"string"},point:{type:"object",properties:{x:{type:"integer"},y:{type:"integer"}},nullable:!0,required:["x","y"]},rotation:{type:"string",enum:["north","east","south","west"],nullable:!0},layout:{type:"object",properties:{rows:{type:"integer"},cols:{type:"integer"}},nullable:!0,required:["rows","cols"]},isEmpty:{type:"boolean",nullable:!0}},additionalProperties:!0,required:["origin","projectId"]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.Source||(e.Source={}))})(Vh)),Vh}var xh={},$R;function TD(){return $R||($R=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpawnPoint=void 0;const t=Pe();(function(r){r.schema={type:"object",properties:{name:{type:"string",nullable:!0},position:{type:"object",oneOf:[{$ref:"#single-position"},{$ref:"#multi-position"}],required:["x","y","z"]},default:{type:"boolean",nullable:!0},cameraTarget:{type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"],nullable:!0}},required:["position"],definitions:{"single-position":{$id:"#single-position",type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"]},"multi-position":{$id:"#multi-position",type:"object",properties:{x:{type:"array",items:{type:"number"},minItems:1},y:{type:"array",items:{type:"number"},minItems:1},z:{type:"array",items:{type:"number"},minItems:1}},required:["x","y","z"]}}},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.SpawnPoint||(e.SpawnPoint={}))})(xh)),xh}var kR;function x5(){return kR||(kR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scene=e.RequiredPermission=void 0;const t=Pe(),r=GE(),n=vD(),i=bD(),a=SD(),s=TD(),o=ED();var c;(function(l){l.ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE="ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE",l.ALLOW_TO_TRIGGER_AVATAR_EMOTE="ALLOW_TO_TRIGGER_AVATAR_EMOTE",l.ALLOW_MEDIA_HOSTNAMES="ALLOW_MEDIA_HOSTNAMES",l.USE_WEB3_API="USE_WEB3_API",l.USE_FETCH="USE_FETCH",l.USE_WEBSOCKET="USE_WEBSOCKET",l.OPEN_EXTERNAL_LINK="OPEN_EXTERNAL_LINK"})(c=e.RequiredPermission||(e.RequiredPermission={})),(function(l){l.schema={type:"object",properties:Object.assign(Object.assign({isPortableExperience:{description:"Define the current scene as a Portable Experience",type:"boolean",nullable:!0},main:{description:"File that contains the entry point of the scene's code",type:"string",minLength:1},scene:i.SceneParcels.schema},r.displayableProperties),{display:{description:"Information related to how should this land be displayed apart from the normal rendering of the scene",type:"object",properties:{title:{description:"A name so other users can identify what the contents of this land should be",type:"string",nullable:!0},favicon:{description:"DEPRECATED. Allow the land owner to set up a favicon to this land",type:"string",nullable:!0},description:{description:"A description that will be shown on client's nav map when the scene is selected",type:"string",nullable:!0},navmapThumbnail:{type:"string",nullable:!0}},nullable:!0,required:[]},owner:{type:"string",nullable:!0},creator:{type:"string",nullable:!0,description:"Wallet address of the creator of the scene",pattern:"^(0x[a-fA-F0-9]{40})?$",errorMessage:"Creator must be a valid wallet address"},contact:{description:"Describe different ways of contacting the land owner",type:"object",properties:{name:{type:"string",nullable:!0},email:{type:"string",nullable:!0},im:{type:"string",nullable:!0},url:{type:"string",nullable:!0}},nullable:!0,required:[]},tags:{type:"array",items:{type:"string",minLength:1},nullable:!0},source:Object.assign(Object.assign({},a.Source.schema),{nullable:!0}),spawnPoints:{type:"array",items:s.SpawnPoint.schema,nullable:!0},requiredPermissions:{type:"array",items:{type:"string",enum:Object.values(c)},uniqueItems:!0,nullable:!0},featureToggles:Object.assign(Object.assign({},n.FeatureToggles.schema),{nullable:!0}),worldConfiguration:Object.assign(Object.assign({},o.WorldConfiguration.schema),{nullable:!0}),allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!0}}),additionalProperties:!0,required:["main","scene"],dependencies:{requiredPermissions:{if:{properties:{requiredPermissions:{type:"array",contains:{const:c.ALLOW_MEDIA_HOSTNAMES}}}},then:{properties:{allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!1,minItems:1}},required:["allowedMediaHostnames"]},else:{properties:{allowedMediaHostnames:{type:["null","array"],nullable:!0,maxItems:0}}}}}},l.validate=(0,t.generateLazyValidator)(l.schema)})(e.Scene||(e.Scene={}))})(Hh)),Hh}var qR;function G5(){return qR||(qR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpawnPoint=e.Source=e.RequiredPermission=e.Scene=e.SceneParcels=e.WorldConfiguration=e.FeatureToggles=void 0;var t=vD();Object.defineProperty(e,"FeatureToggles",{enumerable:!0,get:function(){return t.FeatureToggles}});var r=ED();Object.defineProperty(e,"WorldConfiguration",{enumerable:!0,get:function(){return r.WorldConfiguration}});var n=bD();Object.defineProperty(e,"SceneParcels",{enumerable:!0,get:function(){return n.SceneParcels}});var i=x5();Object.defineProperty(e,"Scene",{enumerable:!0,get:function(){return i.Scene}}),Object.defineProperty(e,"RequiredPermission",{enumerable:!0,get:function(){return i.RequiredPermission}});var a=SD();Object.defineProperty(e,"Source",{enumerable:!0,get:function(){return a.Source}});var s=TD();Object.defineProperty(e,"SpawnPoint",{enumerable:!0,get:function(){return s.SpawnPoint}})})(qh)),qh}var fa={},Gh={},zh={},BR;function wD(){return BR||(BR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Locale=void 0;const t=Pe();(function(r){r.EN="en",r.ES="es"})(e.Locale||(e.Locale={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.Locale||(e.Locale={}))})(zh)),zh}var UR;function ID(){return UR||(UR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.I18N=void 0;const t=Pe(),r=wD();(function(n){n.schema={type:"object",properties:{code:r.Locale.schema,text:{type:"string"}},additionalProperties:!0,required:["code","text"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.I18N||(e.I18N={}))})(Gh)),Gh}var Wh={},FR;function RD(){return FR||(FR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Metrics=void 0;const t=Pe();(function(r){r.schema={type:"object",properties:{triangles:{type:"number"},materials:{type:"number"},textures:{type:"number"},meshes:{type:"number"},bodies:{type:"number"},entities:{type:"number"}},required:["triangles","materials","textures","meshes","bodies","entities"]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.Metrics||(e.Metrics={}))})(Wh)),Wh}var Yh={},HR;function zE(){return HR||(HR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isStandard=e.standardProperties=void 0;const t=ff(),r=Pe();e.standardProperties={collectionAddress:{type:"string",nullable:!1},rarity:t.Rarity.schema};const n={type:"object",properties:Object.assign({},e.standardProperties),required:["collectionAddress","rarity"]},i=(0,r.generateLazyValidator)(n);function a(s){return i(s)}e.isStandard=a})(Yh)),Yh}var Kh={},pa={},Xh={},VR;function z5(){return VR||(VR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MerkleProof=void 0;const t=Pe();(function(r){r.schema={type:"object",properties:{proof:{type:"array",items:{type:"string"}},index:{type:"number"},hashingKeys:{type:"array",items:{type:"string"}},entityHash:{type:"string"}},required:["entityHash","hashingKeys","index","proof"],additionalProperties:!0},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.MerkleProof||(e.MerkleProof={}))})(Xh)),Xh}var xR;function AD(){return xR||(xR=1,(function(e){var t=pa&&pa.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=pa&&pa.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(z5(),e)})(pa)),pa}var Jh={},GR;function WE(){return GR||(GR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createMappingsHelper=e.AddMappingError=e.Mappings=e.Mapping=e.MultipleMapping=e.RangeMapping=e.AnyMapping=e.SingleMapping=e.ContractNetwork=e.MappingType=void 0;const t=Pe();var r;(function(d){d.SINGLE="single",d.ANY="any",d.MULTIPLE="multiple",d.RANGE="range"})(r=e.MappingType||(e.MappingType={}));var n;(function(d){d.MAINNET="mainnet",d.BASE_MAINNET="base_mainnet",d.BASE_SEPOLIA="base_sepolia",d.MONAD_MAINNET="monad_mainnet",d.MONAD_TESTNET="monad_testnet",d.APE_MAINNET="ape_mainnet",d.APE_CALDERA="ape_caldera",d.MATIC="matic",d.SEPOLIA="sepolia",d.AMOY="amoy"})(n=e.ContractNetwork||(e.ContractNetwork={}));var i;(function(d){d.schema={type:"object",properties:{type:{type:"string",const:r.SINGLE},id:{type:"string",pattern:"^[0-9]+$"}},required:["type","id"],additionalProperties:!1},d.validate=(0,t.generateLazyValidator)(d.schema)})(i=e.SingleMapping||(e.SingleMapping={}));var a;(function(d){d.schema={type:"object",properties:{type:{type:"string",const:r.ANY}},required:["type"],additionalProperties:!1},d.validate=(0,t.generateLazyValidator)(d.schema)})(a=e.AnyMapping||(e.AnyMapping={}));var s;(function(d){d._fromLessThanOrEqualTo={keyword:"_fromLessThanOrEqualTo",validate:function(p,y){if(!y||!y.from||!y.to)return!1;let{to:g,from:b}=y;return(typeof b!="bigint"||typeof g!="bigint")&&(b=BigInt(b),g=BigInt(g)),b<=g},errors:!1},d.schema={type:"object",properties:{type:{type:"string",const:r.RANGE},from:{type:"string",pattern:"^[0-9]+$"},to:{type:"string",pattern:"^[0-9]+$"}},required:["type","from","to"],additionalProperties:!1,_fromLessThanOrEqualTo:!0},d.validate=(0,t.generateLazyValidator)(d.schema,[d._fromLessThanOrEqualTo])})(s=e.RangeMapping||(e.RangeMapping={}));var o;(function(d){d.schema={type:"object",properties:{type:{type:"string",const:r.MULTIPLE},ids:{type:"array",items:{type:"string",pattern:"^[0-9]+$"},minItems:1,uniqueItems:!0}},required:["type","ids"],additionalProperties:!1},d.validate=(0,t.generateLazyValidator)(d.schema)})(o=e.MultipleMapping||(e.MultipleMapping={}));var c;(function(d){d.schema={type:"object",properties:{type:{type:"string",enum:Object.values(r)}},required:["type"],oneOf:[i.schema,a.schema,s.schema,o.schema]},d.validate=(0,t.generateLazyValidator)(d.schema,[s._fromLessThanOrEqualTo])})(c=e.Mapping||(e.Mapping={})),(function(d){d._isMappingsValid={keyword:"_isMappingsValid",validate:function(p,y){try{u(y)}catch{return!1}return!0},errors:!1},d.innerSchema={type:"object",patternProperties:{"^0x[0-9a-fA-F]{40}$":{type:"array",items:c.schema}},minProperties:1,required:[],additionalProperties:!1};const f=Object.values(n).reduce((p,y)=>(p[y]=d.innerSchema,p),{});d.schema={type:"object",properties:f,minProperties:1,additionalProperties:!1,_isMappingsValid:!0},d.validate=(0,t.generateLazyValidator)(d.schema,[s._fromLessThanOrEqualTo,d._isMappingsValid])})(e.Mappings||(e.Mappings={}));class l extends Error{constructor(f,p,y){super(f),this.existingMapping=p,this.conflictingMapping=y}}e.AddMappingError=l;function u(d={}){const f={};for(const[h,v]of Object.entries(d)){f[h]={};for(const[E,N]of Object.entries(v))for(const M of N)T(h,E,M)}function p(){return JSON.parse(JSON.stringify(f))}function y(h,v,E){const N=BigInt(h);return N>=BigInt(v)&&N<=BigInt(E)}function g(h,v){switch(v.type){case r.SINGLE:return h.id===v.id;case r.MULTIPLE:return v.ids.includes(h.id);case r.RANGE:return y(h.id,v.from,v.to);default:return!1}}function b(h,v){switch(v.type){case r.SINGLE:return h.ids.includes(v.id);case r.MULTIPLE:return h.ids.some(E=>v.ids.includes(E));case r.RANGE:return h.ids.some(E=>y(E,v.from,v.to));default:return!1}}function O(h,v){switch(v.type){case r.SINGLE:return y(v.id,h.from,h.to);case r.MULTIPLE:return v.ids.some(E=>y(E,h.from,h.to));case r.RANGE:return BigInt(h.from)<=BigInt(v.to)&&BigInt(h.to)>=BigInt(v.from)}}function m(h,v){if(h.type===r.ANY||v.type===r.ANY)return!0;switch(h.type){case r.SINGLE:return g(h,v);case r.MULTIPLE:return b(h,v);case r.RANGE:return O(h,v)}}function T(h,v,E){var N,M;const q=v.toLowerCase();f[h]=(N=f[h])!==null&&N!==void 0?N:{},f[h][q]=(M=f[h][q])!==null&&M!==void 0?M:[];for(const H of f[h][q])if(m(H,E))throw new l(`Cannot add mapping to contract ${q} on network ${h} because it overlaps with existing mapping`,H,E);f[h][q].push(E)}function I(h,v,E){var N;return!((N=f[h])===null||N===void 0)&&N[v]?f[h][v].some(M=>{switch(M.type){case r.SINGLE:return M.id===E;case r.ANY:return!0;case r.MULTIPLE:return M.ids.includes(E);case r.RANGE:return BigInt(E)>=BigInt(M.from)&&BigInt(E)<=BigInt(M.to)}}):!1}return{addMapping:T,getMappings:p,includesNft:I}}e.createMappingsHelper=u})(Jh)),Jh}var zR;function YE(){return zR||(zR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isThirdParty=e.schema=void 0;const t=Pe(),r=AD(),n=WE();e.schema={type:"object",properties:{merkleProof:r.MerkleProof.schema,content:{type:"object",nullable:!1,additionalProperties:{type:"string"},required:[]},mappings:Object.assign({nullable:!0},n.Mappings.schema)},required:["merkleProof","content"],_containsHashingKeys:!0};const i={keyword:"_containsHashingKeys",validate:function(o,c){var l;const u=c;return!((l=u==null?void 0:u.merkleProof)===null||l===void 0)&&l.hashingKeys?u.merkleProof.hashingKeys.every(d=>u.hasOwnProperty(d)):!1},errors:!1},a=(0,t.generateLazyValidator)(e.schema,[i,n.RangeMapping._fromLessThanOrEqualTo,n.Mappings._isMappingsValid]);function s(o){return a(o)}e.isThirdParty=s})(Kh)),Kh}var Qh={},Zh={},fn={},WR;function OD(){if(WR)return fn;WR=1,Object.defineProperty(fn,"__esModule",{value:!0}),fn.isBaseEmote=fn.isBaseAvatar=fn.requiredBaseItemProps=fn.baseItemProperties=void 0;const e=ID(),t=RD(),r=GE();fn.baseItemProperties=Object.assign(Object.assign({},r.displayableProperties),{id:{type:"string"},name:{type:"string"},description:{type:"string"},i18n:{type:"array",items:e.I18N.schema,minItems:1,uniqueItemProperties:["code"],errorMessage:'${0#} array should not have duplicates for "code"'},thumbnail:{type:"string"},image:{type:"string"},metrics:Object.assign(Object.assign({},t.Metrics.schema),{nullable:!0})}),fn.requiredBaseItemProps=["id","name","description","i18n","thumbnail","image"];function n(a){if(!a||!a.id)return!1;const s=a.id.split(":"),o=s[1]==="decentraland",c=s[3]==="base-avatars";return s.length===5&&o&&c}fn.isBaseAvatar=n;function i(a){if(!a||!a.id)return!1;const s=a.id.split(":");return s.length===5&&s[1]==="decentraland"&&s[3]==="base-emotes"}return fn.isBaseEmote=i,fn}var YR;function W5(){return YR||(YR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Wearable=void 0;const t=Pe(),r=es(),n=xE(),i=OD(),a=zE(),s=YE(),o=VE(),c=WE();(function(l){l.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},i.baseItemProperties),a.standardProperties),s.schema.properties.thirdPartyProps),{data:{type:"object",properties:{replaces:{type:"array",items:o.HideableWearableCategory.schema},hides:{type:"array",items:o.HideableWearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.WearableRepresentation.schema,minItems:1},category:r.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:o.HideableWearableCategory.schema},blockVrmExport:{type:"boolean",nullable:!0},outlineCompatible:{type:"boolean",nullable:!0}},required:["replaces","hides","tags","representations","category"]}}),additionalProperties:!0,required:[],oneOf:[{required:["id","i18n"],prohibited:["merkleProof","content","collectionAddress","rarity","mappings"],_isBaseAvatar:!0},{required:[...i.requiredBaseItemProps,"data","collectionAddress","rarity"],prohibited:["merkleProof","content","mappings"]},{required:[...i.requiredBaseItemProps,"data","merkleProof","content"],prohibited:["collectionAddress","rarity"],_isThirdParty:!0}],errorMessage:{oneOf:"either standard XOR thirdparty properties conditions must be met"}};const u={keyword:"_isThirdParty",validate:(f,p)=>!f||(0,s.isThirdParty)(p),errors:!1},d={keyword:"_isBaseAvatar",validate:(f,p)=>!f||(0,i.isBaseAvatar)(p),errors:!1};l.validate=(0,t.generateLazyValidator)(l.schema,[u,d,c.RangeMapping._fromLessThanOrEqualTo,c.Mappings._isMappingsValid])})(e.Wearable||(e.Wearable={}))})(Zh)),Zh}var KR;function Y5(){return KR||(KR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HideableWearableCategory=e.BodyPartCategory=e.WearableCategory=e.Wearable=e.WearableRepresentation=void 0;var t=xE();Object.defineProperty(e,"WearableRepresentation",{enumerable:!0,get:function(){return t.WearableRepresentation}});var r=W5();Object.defineProperty(e,"Wearable",{enumerable:!0,get:function(){return r.Wearable}});var n=es();Object.defineProperty(e,"WearableCategory",{enumerable:!0,get:function(){return n.WearableCategory}});var i=gD();Object.defineProperty(e,"BodyPartCategory",{enumerable:!0,get:function(){return i.BodyPartCategory}});var a=VE();Object.defineProperty(e,"HideableWearableCategory",{enumerable:!0,get:function(){return a.HideableWearableCategory}})})(Qh)),Qh}var ey={},ty={},ry={},ny={},XR;function ND(){return XR||(XR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteCategory=void 0;const t=Pe();(function(r){r.DANCE="dance",r.STUNT="stunt",r.GREETINGS="greetings",r.FUN="fun",r.POSES="poses",r.REACTIONS="reactions",r.HORROR="horror",r.MISCELLANEOUS="miscellaneous"})(e.EmoteCategory||(e.EmoteCategory={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.EmoteCategory||(e.EmoteCategory={}))})(ny)),ny}var iy={},JR;function PD(){return JR||(JR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteRepresentationADR74=void 0;const t=Pe(),r=HE();(function(n){n.schema={type:"object",properties:{bodyShapes:{type:"array",items:r.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}},errorMessage:{contains:"contents should contain mainFile: ${1/mainFile}"}}},required:["bodyShapes","mainFile","contents"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.EmoteRepresentationADR74||(e.EmoteRepresentationADR74={}))})(iy)),iy}var ay={},QR;function CD(){return QR||(QR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.OutcomeGroup=e.StartAnimation=e.EmoteClip=e.ArmatureId=void 0;const t=Pe();var r;(function(i){i.Armature="Armature",i.Armature_Prop="Armature_Prop",i.Armature_Other="Armature_Other"})(r=e.ArmatureId||(e.ArmatureId={})),(function(i){i.schema={type:"string",enum:Object.values(i)},i.validate=(0,t.generateLazyValidator)(i.schema)})(r=e.ArmatureId||(e.ArmatureId={}));var n;(function(i){i.schema={type:"object",properties:{animation:{type:"string",minLength:1,errorMessage:"animation must be a non-empty string (GLB clip name)"}},required:["animation"],additionalProperties:!1,errorMessage:{required:{animation:"animation is required (GLB clip name)"}}},i.validate=(0,t.generateLazyValidator)(i.schema)})(n=e.EmoteClip||(e.EmoteClip={})),(function(i){i.schema={type:"object",properties:{loop:{type:"boolean",errorMessage:"startAnimation.loop must be a boolean"},[r.Armature]:Object.assign(Object.assign({},n.schema),{errorMessage:"startAnimation.Armature is required and must contain valid animation data"}),[r.Armature_Prop]:Object.assign(Object.assign({},n.schema),{nullable:!0,errorMessage:"startAnimation.Armature_Prop must contain valid animation data when provided"}),audio:{type:"string",nullable:!0,errorMessage:"audio must be a string (audio clip filename) when provided"}},required:["loop",r.Armature],additionalProperties:!1,errorMessage:{required:{loop:"startAnimation.loop is required",[r.Armature]:"startAnimation.Armature is required"}}},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.StartAnimation||(e.StartAnimation={})),(function(i){i.schema={type:"object",properties:{title:{type:"string",minLength:1,errorMessage:"outcome.title must be a non-empty string"},loop:{type:"boolean",errorMessage:"outcome.loop must be a boolean"},clips:{type:"object",properties:Object.values(r).reduce((a,s)=>(a[s]=Object.assign(Object.assign({},n.schema),{nullable:!0,errorMessage:`outcome.clips.${s} must contain valid animation data when provided`}),a),{}),additionalProperties:!0,minProperties:1,errorMessage:"outcome.clips must contain at least one armature animation"},audio:{type:"string",nullable:!0,errorMessage:"audio must be a string (audio clip filename) when provided"}},required:["title","loop","clips"],additionalProperties:!1,errorMessage:{required:{title:"outcome.title is required",loop:"outcome.loop is required",clips:"outcome.clips is required"}}},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.OutcomeGroup||(e.OutcomeGroup={}))})(ay)),ay}var ZR;function MD(){return ZR||(ZR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteDataADR74=void 0;const t=ND(),r=Pe(),n=PD(),i=CD();(function(a){a.schema={type:"object",properties:{tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.EmoteRepresentationADR74.schema,minItems:1},category:t.EmoteCategory.schema,loop:{type:"boolean"},startAnimation:Object.assign(Object.assign({},i.StartAnimation.schema),{nullable:!0}),randomizeOutcomes:{type:"boolean",nullable:!0},outcomes:{type:"array",items:i.OutcomeGroup.schema,minItems:1,maxItems:3,nullable:!0}},required:["category","tags","representations","loop"],dependencies:{startAnimation:["randomizeOutcomes","outcomes"],randomizeOutcomes:["startAnimation","outcomes"],outcomes:["startAnimation","randomizeOutcomes"]},additionalProperties:!0},a.validate=(0,r.generateLazyValidator)(a.schema)})(e.EmoteDataADR74||(e.EmoteDataADR74={}))})(ry)),ry}var eA;function K5(){return eA||(eA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Emote=void 0;const t=jD(),r=Pe(),n=OD(),i=zE(),a=YE(),s=MD();(function(o){o.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},n.baseItemProperties),i.standardProperties),a.schema.properties),{emoteDataADR74:s.EmoteDataADR74.schema}),additionalProperties:!0,required:[...n.requiredBaseItemProps],oneOf:[{required:["emoteDataADR74"],oneOf:[{required:["id","i18n"],prohibited:["merkleProof","content","collectionAddress","rarity"],_isBaseEmote:!0},{required:["collectionAddress","rarity"],prohibited:["merkleProof","content"],errorMessage:"standard properties conditions are not met"},{required:["merkleProof","content","id","name","description","i18n","image","thumbnail","emoteDataADR74"],_isThirdParty:!0,prohibited:["collectionAddress","rarity"],errorMessage:"thirdparty properties conditions are not met"}],errorMessage:{oneOf:"emote should have either standard or thirdparty properties"}}],errorMessage:{oneOf:'emote should have "emoteDataADR74" and match its schema'}};const c={keyword:"_isThirdParty",validate:(u,d)=>!u||(0,t.isThirdParty)(d),errors:!1},l={keyword:"_isBaseEmote",validate:(u,d)=>!u||(0,n.isBaseEmote)(d),errors:!1};o.validate=(0,r.generateLazyValidator)(o.schema,[c,l,t.RangeMapping._fromLessThanOrEqualTo,t.Mappings._isMappingsValid])})(e.Emote||(e.Emote={}))})(ty)),ty}var sy={},tA;function X5(){return tA||(tA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmotePlayMode=void 0;const t=Pe();(function(r){r.SIMPLE="simple",r.LOOP="loop"})(e.EmotePlayMode||(e.EmotePlayMode={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.EmotePlayMode||(e.EmotePlayMode={}))})(sy)),sy}var oy={},rA;function J5(){return rA||(rA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteOutcomeType=void 0;const t=Pe();(function(r){r.SIMPLE_OUTCOME="so",r.MULTIPLE_OUTCOME="mo",r.RANDOM_OUTCOME="ro"})(e.EmoteOutcomeType||(e.EmoteOutcomeType={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.EmoteOutcomeType||(e.EmoteOutcomeType={}))})(oy)),oy}var nA;function Q5(){return nA||(nA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteOutcomeType=e.EmotePlayMode=e.EmoteCategory=e.StartAnimation=e.OutcomeGroup=e.EmoteClip=e.ArmatureId=e.EmoteDataADR74=e.EmoteRepresentationADR74=e.Emote=void 0;var t=K5();Object.defineProperty(e,"Emote",{enumerable:!0,get:function(){return t.Emote}});var r=PD();Object.defineProperty(e,"EmoteRepresentationADR74",{enumerable:!0,get:function(){return r.EmoteRepresentationADR74}});var n=MD();Object.defineProperty(e,"EmoteDataADR74",{enumerable:!0,get:function(){return n.EmoteDataADR74}});var i=CD();Object.defineProperty(e,"ArmatureId",{enumerable:!0,get:function(){return i.ArmatureId}}),Object.defineProperty(e,"EmoteClip",{enumerable:!0,get:function(){return i.EmoteClip}}),Object.defineProperty(e,"OutcomeGroup",{enumerable:!0,get:function(){return i.OutcomeGroup}}),Object.defineProperty(e,"StartAnimation",{enumerable:!0,get:function(){return i.StartAnimation}});var a=ND();Object.defineProperty(e,"EmoteCategory",{enumerable:!0,get:function(){return a.EmoteCategory}});var s=X5();Object.defineProperty(e,"EmotePlayMode",{enumerable:!0,get:function(){return s.EmotePlayMode}});var o=J5();Object.defineProperty(e,"EmoteOutcomeType",{enumerable:!0,get:function(){return o.EmoteOutcomeType}})})(ey)),ey}var iA;function jD(){return iA||(iA=1,(function(e){var t=fa&&fa.__createBinding||(Object.create?(function(l,u,d,f){f===void 0&&(f=d);var p=Object.getOwnPropertyDescriptor(u,d);(!p||("get"in p?!u.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return u[d]}}),Object.defineProperty(l,f,p)}):(function(l,u,d,f){f===void 0&&(f=d),l[f]=u[d]})),r=fa&&fa.__exportStar||function(l,u){for(var d in l)d!=="default"&&!Object.prototype.hasOwnProperty.call(u,d)&&t(u,l,d)};Object.defineProperty(e,"__esModule",{value:!0}),e.isThirdParty=e.isStandard=e.BodyShape=e.Metrics=e.Locale=e.I18N=void 0;var n=ID();Object.defineProperty(e,"I18N",{enumerable:!0,get:function(){return n.I18N}});var i=wD();Object.defineProperty(e,"Locale",{enumerable:!0,get:function(){return i.Locale}});var a=RD();Object.defineProperty(e,"Metrics",{enumerable:!0,get:function(){return a.Metrics}});var s=HE();Object.defineProperty(e,"BodyShape",{enumerable:!0,get:function(){return s.BodyShape}});var o=zE();Object.defineProperty(e,"isStandard",{enumerable:!0,get:function(){return o.isStandard}});var c=YE();Object.defineProperty(e,"isThirdParty",{enumerable:!0,get:function(){return c.isThirdParty}}),r(WE(),e),r(Y5(),e),r(Q5(),e)})(fa)),fa}var cy={},uy={},aA;function Kc(){return aA||(aA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AuthChain=e.AuthLink=e.AuthLinkType=void 0;const t=Pe();var r;(function(i){i.SIGNER="SIGNER",i.ECDSA_PERSONAL_EPHEMERAL="ECDSA_EPHEMERAL",i.ECDSA_PERSONAL_SIGNED_ENTITY="ECDSA_SIGNED_ENTITY",i.ECDSA_EIP_1654_EPHEMERAL="ECDSA_EIP_1654_EPHEMERAL",i.ECDSA_EIP_1654_SIGNED_ENTITY="ECDSA_EIP_1654_SIGNED_ENTITY"})(r=e.AuthLinkType||(e.AuthLinkType={}));var n;(function(i){i.schema={type:"object",properties:{type:{type:"string",enum:Object.values(r)},payload:{type:"string"},signature:{type:"string",nullable:!0}},required:["payload","type"],if:{properties:{type:{not:{const:r.SIGNER}}}},then:{required:["signature"]},else:{oneOf:[{properties:{signature:{type:"string",const:""}},required:["signature"]},{properties:{signature:{type:"null"}}}]}},i.validate=(0,t.generateLazyValidator)(i.schema)})(n=e.AuthLink||(e.AuthLink={})),(function(i){i.schema={type:"array",items:n.schema,minItems:1},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.AuthChain||(e.AuthChain={}))})(uy)),uy}var sA;function Z5(){return sA||(sA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PointerChangesSyncDeployment=e.SnapshotSyncDeployment=void 0;const t=ts(),r=Kc(),n=Pe();(function(i){i.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:r.AuthChain.schema,entityTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:t.IPFSv1.schema}},{properties:{entityId:t.IPFSv2.schema}}],required:["entityId","entityType","pointers","entityTimestamp","authChain"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.SnapshotSyncDeployment||(e.SnapshotSyncDeployment={})),(function(i){i.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:r.AuthChain.schema,entityTimestamp:{type:"number",minimum:0},localTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:t.IPFSv1.schema}},{properties:{entityId:t.IPFSv2.schema}}],required:["entityId","entityType","pointers","localTimestamp","entityTimestamp","authChain"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.PointerChangesSyncDeployment||(e.PointerChangesSyncDeployment={}))})(cy)),cy}var ly={},dy={},oA;function DD(){return oA||(oA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ContentMapping=void 0;const t=ts(),r=Pe();(function(n){n.schema={type:"object",properties:{file:{type:"string",minLength:1},hash:{type:"string",oneOf:[t.IPFSv1.schema,t.IPFSv2.schema]}},required:["file","hash"]},n.validate=(0,r.generateLazyValidator)(n.schema)})(e.ContentMapping||(e.ContentMapping={}))})(dy)),dy}var cA;function LD(){return cA||(cA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Entity=e.EntityType=void 0;const t=ts(),r=DD(),n=Pe();(function(i){i.SCENE="scene",i.PROFILE="profile",i.WEARABLE="wearable",i.STORE="store",i.EMOTE="emote",i.OUTFITS="outfits"})(e.EntityType||(e.EntityType={})),(function(i){i.schema={type:"object",properties:{version:{type:"string",enum:["v3"]},id:{type:"string",oneOf:[t.IPFSv1.schema,t.IPFSv2.schema]},type:{type:"string"},pointers:{type:"array",items:{type:"string",minLength:1}},timestamp:{type:"number",minimum:0},content:{type:"array",items:r.ContentMapping.schema},metadata:{type:"object",nullable:!0}},required:["version","id","type","pointers","timestamp","content"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.Entity||(e.Entity={}))})(ly)),ly}var fy={},uA;function e6(){return uA||(uA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DeploymentWithAuthChain=void 0;const t=Kc(),r=Pe();(function(n){n.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},localTimestamp:{type:"number",minimum:0},authChain:t.AuthChain.schema},required:["entityId","entityType","pointers","localTimestamp","authChain"]},n.validate=(0,r.generateLazyValidator)(n.schema)})(e.DeploymentWithAuthChain||(e.DeploymentWithAuthChain={}))})(fy)),fy}var ma={},py={},lA;function t6(){return lA||(lA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Outfits=e.Outfit=void 0;const t=es(),r=ts(),n=Pe();var i;(function(a){a.schema={type:"object",required:["bodyShape","eyes","hair","skin","wearables"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:r.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:r.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:r.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:t.WearableCategory.schema}},additionalProperties:!0},a.validate=(0,n.generateLazyValidator)(a.schema)})(i=e.Outfit||(e.Outfit={})),(function(a){a.schema={type:"object",required:["outfits","namesForExtraSlots"],properties:{outfits:{type:"array",items:{type:"object",required:["slot","outfit"],properties:{slot:{type:"number"},outfit:i.schema}}},namesForExtraSlots:{type:"array",uniqueItems:!0,items:{type:"string"}}},additionalProperties:!0},a.validate=(0,n.generateLazyValidator)(a.schema)})(e.Outfits||(e.Outfits={}))})(py)),py}var dA;function r6(){return dA||(dA=1,(function(e){var t=ma&&ma.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=ma&&ma.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(t6(),e)})(ma)),ma}var ha={},my={},fA;function $D(){return fA||(fA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NotificationOptOutScope=e.NotificationType=void 0,(function(t){t.BADGE_GRANTED="badge_granted",t.BID_ACCEPTED="bid_accepted",t.BID_RECEIVED="bid_received",t.EVENTS_STARTED="events_started",t.EVENTS_STARTS_SOON="events_starts_soon",t.EVENT_CREATED="event_created",t.GOVERNANCE_ANNOUNCEMENT="governance_announcement",t.GOVERNANCE_AUTHORED_PROPOSAL_FINISHED="governance_authored_proposal_finished",t.GOVERNANCE_COAUTHOR_REQUESTED="governance_coauthor_requested",t.GOVERNANCE_CLIFF_ENDED="governance_cliff_ended",t.GOVERNANCE_NEW_COMMENT_ON_PROJECT_UPDATE="governance_new_comment_on_project_update",t.GOVERNANCE_NEW_COMMENT_ON_PROPOSAL="governance_new_comment_on_proposal",t.GOVERNANCE_PROPOSAL_ENACTED="governance_proposal_enacted",t.GOVERNANCE_VOTING_ENDED_VOTER="governance_voting_ended_voter",t.GOVERNANCE_PITCH_PASSED="governance_pitch_passed",t.GOVERNANCE_TENDER_PASSED="governance_tender_passed",t.GOVERNANCE_WHALE_VOTE="governance_whale_vote",t.GOVERNANCE_VOTED_ON_BEHALF="governance_voted_on_behalf",t.ITEM_SOLD="item_sold",t.ITEM_PUBLISHED="item_published",t.LAND_RENTAL_ENDED="rental_ended",t.LAND_RENTED="rental_started",t.REWARD_ASSIGNED="reward_assignment",t.REWARD_CAMPAIGN_OUT_OF_FUNDS="reward_campaign_out_of_funds",t.REWARD_CAMPAIGN_GAS_PRICE_HIGHER_THAN_EXPECTED="reward_campaign_gas_price_higher_than_expected",t.REWARD_CAMPAIGN_OUT_OF_STOCK="reward_campaign_out_of_stock",t.REWARD_DELAYED="reward_delayed",t.REWARD_IN_PROGRESS="reward_in_progress",t.ROYALTIES_EARNED="royalties_earned",t.SOCIAL_SERVICE_FRIENDSHIP_REQUEST="social_service_friendship_request",t.SOCIAL_SERVICE_FRIENDSHIP_ACCEPTED="social_service_friendship_accepted",t.WORLDS_ACCESS_RESTORED="worlds_access_restored",t.WORLDS_ACCESS_RESTRICTED="worlds_access_restricted",t.WORLDS_MISSING_RESOURCES="worlds_missing_resources",t.WORLDS_PERMISSION_GRANTED="worlds_permission_granted",t.WORLDS_PERMISSION_REVOKED="worlds_permission_revoked",t.CREDITS_GOAL_COMPLETED="credits_goal_completed",t.CREDITS_ON_DEMAND_GRANTED="credits_on_demand_granted",t.STREAMING_KEY_RESET="streaming_key_reset",t.STREAMING_KEY_REVOKE="streaming_key_revoke",t.STREAMING_KEY_EXPIRED="streaming_key_expired",t.STREAMING_TIME_EXCEEDED="streaming_time_exceeded",t.STREAMING_PLACE_UPDATED="streaming_place_updated",t.CREDITS_REMINDER_COMPLETE_GOALS="credits_reminder_complete_goals",t.CREDITS_REMINDER_CLAIM_CREDITS="credits_reminder_claim_credits",t.CREDITS_REMINDER_USAGE="credits_reminder_usage",t.CREDITS_REMINDER_USAGE_24_HOURS="credits_reminder_usage_24_hours",t.CREDITS_REMINDER_DO_NOT_MISS_OUT="credits_reminder_do_not_miss_out",t.CREDITS_NEW_SEASON_REMINDER="credits_new_season_reminder",t.REFERRAL_INVITED_USERS_ACCEPTED="referral_invited_users_accepted",t.REFERRAL_NEW_TIER_REACHED="referral_new_tier_reached",t.COMMUNITY_DELETED="community_deleted",t.COMMUNITY_DELETED_CONTENT_VIOLATION="community_deleted_content_violation",t.COMMUNITY_RENAMED="community_renamed",t.COMMUNITY_MEMBER_BANNED="community_member_banned",t.COMMUNITY_MEMBER_REMOVED="community_member_removed",t.COMMUNITY_REQUEST_TO_JOIN_RECEIVED="community_request_to_join_received",t.COMMUNITY_REQUEST_TO_JOIN_ACCEPTED="community_request_to_join_accepted",t.COMMUNITY_INVITE_RECEIVED="community_invite_received",t.COMMUNITY_OWNERSHIP_TRANSFERRED="community_ownership_transferred",t.COMMUNITY_POST_ADDED="community_post_added",t.COMMUNITY_VOICE_CHAT_STARTED="community_voice_chat_started",t.USER_BANNED_FROM_SCENE="user_banned_from_scene",t.USER_UNBANNED_FROM_SCENE="user_unbanned_from_scene",t.TRANSFER_RECEIVED="transfer_received",t.TIP_RECEIVED="tip_received",t.BANNED="banned",t.BAN_WARNING="ban_warning",t.BAN_LIFTED="ban_lifted"})(e.NotificationType||(e.NotificationType={})),(function(t){t.COMMUNITY="community"})(e.NotificationOptOutScope||(e.NotificationOptOutScope={}))})(my)),my}var hy={},yy={},pA;function kD(){return pA||(pA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SubscriptionDetails=void 0;const t=Pe(),r=$D(),n={type:"object",required:["email","in_app"],properties:{email:{type:"boolean"},in_app:{type:"boolean"}}},i=Object.values(r.NotificationType).reduce((a,s)=>(a[s]=n,a),{});(function(a){a.schema={type:"object",required:["ignore_all_email","ignore_all_in_app","message_type"],properties:{ignore_all_email:{type:"boolean"},ignore_all_in_app:{type:"boolean"},message_type:{type:"object",required:Object.values(r.NotificationType),additionalProperties:!1,properties:i}}},a.validate=(0,t.generateLazyValidator)(a.schema)})(e.SubscriptionDetails||(e.SubscriptionDetails={}))})(yy)),yy}var gy={},mA;function qD(){return mA||(mA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Email=void 0,(function(t){t.schema={type:"string",pattern:"^[\\w\\-\\.]+@([\\w-]+\\.)+[\\w-]{2,}$"};const r=new RegExp(t.schema.pattern);t.validate=n=>r.test(n)})(e.Email||(e.Email={}))})(gy)),gy}var hA;function n6(){return hA||(hA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Subscription=void 0;const t=Pe(),r=kD(),n=ts(),i=qD();(function(a){a.schema={type:"object",required:["address","details"],properties:{address:n.EthAddress.schema,email:Object.assign(Object.assign({},i.Email.schema),{nullable:!0}),details:r.SubscriptionDetails.schema}},a.validate=(0,t.generateLazyValidator)(a.schema)})(e.Subscription||(e.Subscription={}))})(hy)),hy}var yA;function i6(){return yA||(yA=1,(function(e){var t=ha&&ha.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=ha&&ha.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r($D(),e),r(n6(),e),r(kD(),e)})(ha)),ha}var ya={},_y={},gA;function Mr(){return gA||(gA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Events=void 0,(function(t){(function(r){r.BLOCKCHAIN="blockchain",r.CATALYST_DEPLOYMENT="catalyst-deployment",r.WORLD="world",r.CLIENT="client",r.WEB="web",r.MARKETPLACE="marketplace",r.REWARDS="rewards",r.BADGE="badge",r.ASSET_BUNDLE="asset-bundle",r.SOCIAL_SERVICE="social-service",r.CREDITS_SERVICE="credits-service",r.STREAMING="streaming",r.COMMS="comms",r.REFERRAL="referral",r.COMMUNITY="community",r.CAMERA="camera",r.EVENT="event",r.GOVERNANCE="governance",r.MODERATION="moderation"})(t.Type||(t.Type={})),(function(r){(function(n){n.BID_ACCEPTED="bid-accepted",n.ITEM_SOLD="item-sold",n.RENTAL_ENDED="land-rental-ended",n.RENTAL_STARTED="land-rental-started",n.ROYALTIES_EARNED="royalties-earned",n.COLLECTION_CREATED="collection-created",n.ITEM_PUBLISHED="item-published",n.TRANSFER_RECEIVED="transfer-received",n.TIP_RECEIVED="tip-received"})(r.Blockchain||(r.Blockchain={})),(function(n){n.BID_RECEIVED="bid-received"})(r.Marketplace||(r.Marketplace={})),(function(n){n.SCENE="scene",n.PROFILE="profile",n.WEARABLE="wearable",n.STORE="store",n.EMOTE="emote",n.OUTFITS="outfits"})(r.CatalystDeployment||(r.CatalystDeployment={})),(function(n){n.DEPLOYMENT="deployment",n.WORLD_SETTINGS_CHANGED="world_settings_changed",n.WORLD_SCENES_UNDEPLOYMENT="world_scenes_undeployment",n.WORLD_UNDEPLOYMENT="world_undeployment",n.WORLD_SPAWN_COORDINATE_SET="world_spawn_coordinate_set",n.WORLDS_PERMISSION_GRANTED="worlds_permission_granted",n.WORLDS_PERMISSION_REVOKED="worlds_permission_revoked",n.WORLDS_ACCESS_RESTORED="worlds_access_restored",n.WORLDS_ACCESS_RESTRICTED="worlds_access_restricted",n.WORLDS_MISSING_RESOURCES="worlds_missing_resources"})(r.Worlds||(r.Worlds={})),(function(n){n.LOGGED_IN="logged-in",n.LOGGED_IN_CACHED="logged-in-cached",n.MOVE_TO_PARCEL="move-to-parcel",n.USED_EMOTE="used-emote",n.PASSPORT_OPENED="passport-opened",n.WALKED_DISTANCE="walked-distance",n.VERTICAL_HEIGHT_REACHED="vertical-height-reached"})(r.Client||(r.Client={})),(function(n){n.AUTH_IDENTIFY="auth-identify"})(r.Web||(r.Web={})),(function(n){n.REWARD_IN_PROGRESS="reward-in-progress",n.REWARD_ASSIGNED="reward-assigned",n.CAMPAIGN_OUT_OF_FUNDS="campaign-out-of-funds",n.CAMPAIGN_GAS_PRICE_HIGHER_THAN_EXPECTED="campaign-gas-price-higher-than-expected",n.CAMPAIGN_OUT_OF_STOCK="campaign-out-of-stock",n.REWARD_DELAYED="reward-delayed"})(r.Rewards||(r.Rewards={})),(function(n){n.GRANTED="badge-granted"})(r.Badge||(r.Badge={})),(function(n){n.CONVERTED="converted",n.MANUALLY_QUEUED="manually-queued"})(r.AssetBundle||(r.AssetBundle={})),(function(n){n.FRIENDSHIP_REQUEST="friendship-request",n.FRIENDSHIP_ACCEPTED="friendship-accepted"})(r.SocialService||(r.SocialService={})),(function(n){n.CREDITS_GOAL_COMPLETED="credits-goal-completed",n.COMPLETE_GOALS_REMINDER="complete-goals-reminder",n.CLAIM_CREDITS_REMINDER="claim-credits-reminder",n.DO_NOT_MISS_OUT_REMINDER="do-not-miss-out-reminder",n.USAGE_REMINDER="usage-reminder",n.USAGE_24_HOURS_REMINDER="usage-24-hours-reminder",n.ON_DEMAND_CREDITS_GRANTED="on-demand-credits-granted",n.NEW_SEASON_REMINDER="new-season-reminder"})(r.CreditsService||(r.CreditsService={})),(function(n){n.STREAMING_KEY_RESET="streaming-key-reset",n.STREAMING_KEY_REVOKE="streaming-key-revoke",n.STREAMING_KEY_EXPIRED="streaming-key-expired",n.STREAMING_TIME_EXCEEDED="streaming-time-exceeded",n.STREAMING_PLACE_UPDATED="streaming-place-updated",n.COMMUNITY_STREAMING_ENDED="community-streaming-ended"})(r.Streaming||(r.Streaming={})),(function(n){n.USER_JOINED_ROOM="user-joined-room",n.USER_LEFT_ROOM="user-left-room",n.USER_BANNED_FROM_SCENE="user-banned-from-scene",n.USER_UNBANNED_FROM_SCENE="user-unbanned-from-scene"})(r.Comms||(r.Comms={})),(function(n){n.REFERRAL_INVITED_USERS_ACCEPTED="referral-invited-users-accepted",n.REFERRAL_NEW_TIER_REACHED="referral-new-tier-reached"})(r.Referral||(r.Referral={})),(function(n){n.DELETED="community-deleted",n.DELETED_CONTENT_VIOLATION="community-deleted-content-violation",n.RENAMED="community-renamed",n.MEMBER_BANNED="community-member-banned",n.MEMBER_LEFT="community-member-left",n.MEMBER_REMOVED="community-member-removed",n.REQUEST_TO_JOIN_RECEIVED="community-request-to-join-received",n.REQUEST_TO_JOIN_ACCEPTED="community-request-to-join-accepted",n.INVITE_RECEIVED="community-invite-received",n.OWNERSHIP_TRANSFERRED="community-ownership-transferred",n.POST_ADDED="community-post-added",n.VOICE_CHAT_STARTED="community-voice-chat-started"})(r.Community||(r.Community={})),(function(n){n.PHOTO_TAKEN="photo-taken",n.PHOTO_PRIVACY_CHANGED="photo-privacy-changed"})(r.Camera||(r.Camera={})),(function(n){n.EVENT_CREATED="event-created",n.EVENT_STARTS_SOON="event-starts-soon",n.EVENT_STARTED="event-started",n.EVENT_ENDED="event-ended"})(r.Event||(r.Event={})),(function(n){n.PROPOSAL_ENACTED="governance_proposal_enacted",n.COAUTHOR_REQUESTED="governance_coauthor_requested",n.PITCH_PASSED="governance_pitch_passed",n.TENDER_PASSED="governance_tender_passed",n.AUTHORED_PROPOSAL_FINISHED="governance_authored_proposal_finished",n.VOTING_ENDED_VOTER="governance_voting_ended_voter",n.NEW_COMMENT_ON_PROPOSAL="governance_new_comment_on_proposal",n.NEW_COMMENT_ON_PROJECT_UPDATED="governance_new_comment_on_project_update",n.WHALE_VOTE="governance_whale_vote",n.VOTED_ON_BEHALF="governance_voted_on_behalf",n.CLIFF_ENDED="governance_cliff_ended"})(r.Governance||(r.Governance={})),(function(n){n.USER_BAN_CREATED="user-ban-created",n.USER_BAN_LIFTED="user-ban-lifted",n.USER_WARNING_CREATED="user-warning-created"})(r.Moderation||(r.Moderation={}))})(t.SubType||(t.SubType={}))})(e.Events||(e.Events={}))})(_y)),_y}var vy={},_A;function a6(){return _A||(_A=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TipReceivedEvent=e.TransferReceivedEvent=e.CollectionCreatedEvent=e.RoyaltiesEarnedEvent=e.RentalStartedEvent=e.RentalEndedEvent=e.ItemPublishedEvent=e.ItemSoldEvent=e.BidAcceptedEvent=void 0;const t=Pe(),r=Mr();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BLOCKCHAIN},subType:{type:"string",const:r.Events.SubType.Blockchain.BID_ACCEPTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},seller:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},price:{type:"string"},title:{type:"string"},description:{type:"string"},network:{type:"string"}},required:["address","image","seller","category","link","price","title","network"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.BidAcceptedEvent||(e.BidAcceptedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BLOCKCHAIN},subType:{type:"string",const:r.Events.SubType.Blockchain.ITEM_SOLD},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},buyer:{type:"string"},seller:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},tokenId:{type:"string"},network:{type:"string"},title:{type:"string"},description:{type:"string"}},required:["address","image","seller","category","link","network","title","description"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.ItemSoldEvent||(e.ItemSoldEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BLOCKCHAIN},subType:{type:"string",const:r.Events.SubType.Blockchain.ITEM_PUBLISHED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{creator:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},itemId:{type:"string"},network:{type:"string"},urn:{type:"string"}},required:["creator","category","itemId","network","urn"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.ItemPublishedEvent||(e.ItemPublishedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BLOCKCHAIN},subType:{type:"string",const:r.Events.SubType.Blockchain.RENTAL_ENDED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},contract:{type:"string"},land:{type:"string",nullable:!0},lessor:{type:"string"},tenant:{type:"string"},operator:{type:"string"},startedAt:{type:"string"},endedAt:{type:"string"},tokenId:{type:"string"},link:{type:"string"},title:{type:"string"},description:{type:"string",nullable:!0}},required:["address","contract","lessor","tenant","operator","startedAt","endedAt","tokenId","link","title"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.RentalEndedEvent||(e.RentalEndedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BLOCKCHAIN},subType:{type:"string",const:r.Events.SubType.Blockchain.RENTAL_STARTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},contract:{type:"string"},land:{type:"string",nullable:!0},lessor:{type:"string"},tenant:{type:"string"},operator:{type:"string"},startedAt:{type:"string"},endedAt:{type:"string"},tokenId:{type:"string"},link:{type:"string"},title:{type:"string"},description:{type:"string",nullable:!0}},required:["address","contract","lessor","tenant","operator","startedAt","endedAt","tokenId","link","title"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.RentalStartedEvent||(e.RentalStartedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BLOCKCHAIN},subType:{type:"string",const:r.Events.SubType.Blockchain.ROYALTIES_EARNED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},royaltiesCut:{type:"string"},royaltiesCollector:{type:"string"},network:{type:"string"},title:{type:"string"},description:{type:"string",nullable:!0}},required:["address","image","category","link","royaltiesCut","royaltiesCollector","network","title"]}},required:["type","subType","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.RoyaltiesEarnedEvent||(e.RoyaltiesEarnedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BLOCKCHAIN},subType:{type:"string",const:r.Events.SubType.Blockchain.COLLECTION_CREATED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{creator:{type:"string"},name:{type:"string"}},required:["creator","name"]}},required:["type","subType","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CollectionCreatedEvent||(e.CollectionCreatedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BLOCKCHAIN},subType:{type:"string",const:r.Events.SubType.Blockchain.TRANSFER_RECEIVED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{senderAddress:{type:"string"},receiverAddress:{type:"string"},tokenUri:{type:"string",nullable:!0}},required:["senderAddress","receiverAddress"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.TransferReceivedEvent||(e.TransferReceivedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BLOCKCHAIN},subType:{type:"string",const:r.Events.SubType.Blockchain.TIP_RECEIVED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{senderAddress:{type:"string"},receiverAddress:{type:"string"},amount:{type:"string"}},required:["senderAddress","receiverAddress","amount"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.TipReceivedEvent||(e.TipReceivedEvent={}))})(vy)),vy}var Ey={},vA;function s6(){return vA||(vA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CatalystDeploymentEvent=void 0;const t=Kc(),r=Pe(),n=LD(),i=Mr();(function(a){a.schema={type:"object",properties:{type:{type:"string",const:i.Events.Type.CATALYST_DEPLOYMENT},subType:{type:"string",enum:Object.values(i.Events.SubType.CatalystDeployment)},key:{type:"string"},timestamp:{type:"number",minimum:1},entity:n.Entity.schema,authChain:t.AuthChain.schema},required:["type","subType","entity","authChain","key","timestamp"],additionalProperties:!1},a.validate=(0,r.generateLazyValidator)(a.schema)})(e.CatalystDeploymentEvent||(e.CatalystDeploymentEvent={}))})(Ey)),Ey}var by={},EA;function o6(){return EA||(EA=1,Object.defineProperty(by,"__esModule",{value:!0})),by}var Sy={},bA;function c6(){return bA||(bA=1,Object.defineProperty(Sy,"__esModule",{value:!0})),Sy}var Ty={},SA;function u6(){return SA||(SA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BidReceivedEvent=void 0;const t=Pe(),r=Mr();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.MARKETPLACE},subType:{type:"string",const:r.Events.SubType.Marketplace.BID_RECEIVED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},seller:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},price:{type:"string"},title:{type:"string"},description:{type:"string"},network:{type:"string"}},required:["address","image","seller","category","link","price","title","network"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.BidReceivedEvent||(e.BidReceivedEvent={}))})(Ty)),Ty}var wy={},Mo={},TA;function pf(){if(TA)return Mo;TA=1,Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.createEventSchema=void 0;function e(t,r,n){return{type:"object",properties:{type:{type:"string",const:t},subType:{type:"string",const:r},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:n},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1}}return Mo.createEventSchema=e,Mo}var wA;function l6(){return wA||(wA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RewardDelayedEvent=e.CampaignOutOfStockEvent=e.CampaignGasPriceHigherThanExpectedEvent=e.CampaignOutOfFundsEvent=e.RewardAssignedEvent=e.RewardInProgressEvent=void 0;const t=Pe(),r=Mr(),n=pf(),i={type:"object",properties:{title:{type:"string"},description:{type:"string"},link:{type:"string",nullable:!0},beneficiary:{type:"string"},tokenName:{type:"string"},tokenImage:{type:"string"},tokenRarity:{type:"string",nullable:!0},tokenCategory:{type:"string",nullable:!0}},required:["title","description","beneficiary","tokenName","tokenImage"],additionalProperties:!1},a={type:"object",properties:{title:{type:"string"},description:{type:"string"},link:{type:"string",nullable:!0},owner:{type:"string"},campaignId:{type:"string"},campaignName:{type:"string"}},required:["title","description","owner","campaignId","campaignName"],additionalProperties:!1};(function(s){s.schema=(0,n.createEventSchema)(r.Events.Type.REWARDS,r.Events.SubType.Rewards.REWARD_IN_PROGRESS,i),s.validate=(0,t.generateLazyValidator)(s.schema)})(e.RewardInProgressEvent||(e.RewardInProgressEvent={})),(function(s){s.schema=(0,n.createEventSchema)(r.Events.Type.REWARDS,r.Events.SubType.Rewards.REWARD_ASSIGNED,i),s.validate=(0,t.generateLazyValidator)(s.schema)})(e.RewardAssignedEvent||(e.RewardAssignedEvent={})),(function(s){s.schema=(0,n.createEventSchema)(r.Events.Type.REWARDS,r.Events.SubType.Rewards.CAMPAIGN_OUT_OF_FUNDS,a),s.validate=(0,t.generateLazyValidator)(s.schema)})(e.CampaignOutOfFundsEvent||(e.CampaignOutOfFundsEvent={})),(function(s){s.schema=(0,n.createEventSchema)(r.Events.Type.REWARDS,r.Events.SubType.Rewards.CAMPAIGN_GAS_PRICE_HIGHER_THAN_EXPECTED,a),s.validate=(0,t.generateLazyValidator)(s.schema)})(e.CampaignGasPriceHigherThanExpectedEvent||(e.CampaignGasPriceHigherThanExpectedEvent={})),(function(s){s.schema=(0,n.createEventSchema)(r.Events.Type.REWARDS,r.Events.SubType.Rewards.CAMPAIGN_OUT_OF_STOCK,a),s.validate=(0,t.generateLazyValidator)(s.schema)})(e.CampaignOutOfStockEvent||(e.CampaignOutOfStockEvent={})),(function(s){s.schema=(0,n.createEventSchema)(r.Events.Type.REWARDS,r.Events.SubType.Rewards.REWARD_DELAYED,i),s.validate=(0,t.generateLazyValidator)(s.schema)})(e.RewardDelayedEvent||(e.RewardDelayedEvent={}))})(wy)),wy}var Iy={},IA;function d6(){return IA||(IA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CreditsClaimReminderEvent=e.CreditsDoNotMissOutReminderEvent=e.CreditsUsage24HoursReminderEvent=e.CreditsNewSeasonReminderEvent=e.CreditsUsageReminderEvent=e.CreditsCompleteGoalsReminderEvent=e.CreditsGoalCompletedEvent=e.CreditsOnDemandEvent=e.FriendshipAcceptedEvent=e.FriendshipRequestEvent=e.AssetBundleConversionManuallyQueuedEvent=e.AssetBundleConversionFinishedEvent=e.BadgeGrantedEvent=void 0;const t=Pe(),r=Mr();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BADGE},subType:{type:"string",const:r.Events.SubType.Badge.GRANTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{badgeId:{type:"string"},badgeTierName:{type:"string",nullable:!0},badgeName:{type:"string"},badgeImageUrl:{type:"string"},address:{type:"string"}},required:["badgeId","badgeName","badgeImageUrl","address"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.BadgeGrantedEvent||(e.BadgeGrantedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.ASSET_BUNDLE},subType:{type:"string",const:r.Events.SubType.AssetBundle.CONVERTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{entityId:{type:"string"},platform:{type:"string",enum:["windows","mac","webgl"]},statusCode:{type:"number"},isLods:{type:"boolean"},isWorld:{type:"boolean"},version:{type:"string"}},required:["entityId","platform","statusCode","isLods","isWorld","version"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.AssetBundleConversionFinishedEvent||(e.AssetBundleConversionFinishedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.ASSET_BUNDLE},subType:{type:"string",const:r.Events.SubType.AssetBundle.MANUALLY_QUEUED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{entityId:{type:"string"},platform:{type:"string",enum:["windows","mac","webgl"]},isLods:{type:"boolean"},isPriority:{type:"boolean"},version:{type:"string"}},required:["entityId","platform","isLods"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.AssetBundleConversionManuallyQueuedEvent||(e.AssetBundleConversionManuallyQueuedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.SOCIAL_SERVICE},subType:{type:"string",const:r.Events.SubType.SocialService.FRIENDSHIP_REQUEST},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{requestId:{type:"string"},sender:{type:"object",properties:{address:{type:"string"},name:{type:"string"},profileImageUrl:{type:"string"},hasClaimedName:{type:"boolean"}},required:["address","name","profileImageUrl","hasClaimedName"]},receiver:{type:"object",properties:{address:{type:"string"},name:{type:"string"},profileImageUrl:{type:"string"},hasClaimedName:{type:"boolean"}},required:["address","name","profileImageUrl","hasClaimedName"]},message:{type:"string",nullable:!0}},required:["requestId","sender","receiver"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.FriendshipRequestEvent||(e.FriendshipRequestEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.SOCIAL_SERVICE},subType:{type:"string",const:r.Events.SubType.SocialService.FRIENDSHIP_ACCEPTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{requestId:{type:"string"},sender:{type:"object",properties:{address:{type:"string"},name:{type:"string"},profileImageUrl:{type:"string"},hasClaimedName:{type:"boolean"}},required:["address","name","profileImageUrl","hasClaimedName"]},receiver:{type:"object",properties:{address:{type:"string"},name:{type:"string"},profileImageUrl:{type:"string"},hasClaimedName:{type:"boolean"}},required:["address","name","profileImageUrl","hasClaimedName"]}},required:["requestId","sender","receiver"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.FriendshipAcceptedEvent||(e.FriendshipAcceptedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:r.Events.SubType.CreditsService.ON_DEMAND_CREDITS_GRANTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{creditsGranted:{type:"number",minimum:1},address:{type:"string"},granterAddress:{type:"string"}},required:["creditsGranted","address","granterAddress"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CreditsOnDemandEvent||(e.CreditsOnDemandEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:r.Events.SubType.CreditsService.CREDITS_GOAL_COMPLETED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{goalId:{type:"string"},creditsObtained:{type:"number",minimum:0},seasonId:{type:"number",minimum:1},weekNumber:{type:"number",minimum:1},address:{type:"string"}},required:["goalId","creditsObtained","seasonId","weekNumber","address"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CreditsGoalCompletedEvent||(e.CreditsGoalCompletedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:r.Events.SubType.CreditsService.COMPLETE_GOALS_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},seasonId:{type:"number",minimum:1},weekNumber:{type:"number",minimum:1},pendingGoalIds:{type:"array",items:{type:"string"},minItems:1}},required:["address","seasonId","weekNumber","pendingGoalIds"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CreditsCompleteGoalsReminderEvent||(e.CreditsCompleteGoalsReminderEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:r.Events.SubType.CreditsService.USAGE_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},creditsAmount:{type:"number",minimum:1},expirationDate:{type:"string"},expirationDay:{type:"string"}},required:["address","creditsAmount","expirationDate","expirationDay"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CreditsUsageReminderEvent||(e.CreditsUsageReminderEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:r.Events.SubType.CreditsService.NEW_SEASON_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{addresses:{type:"array",items:{type:"string"}},seasonName:{type:"string"},startDate:{type:"string"},endDate:{type:"string"}},required:["addresses","seasonName","startDate","endDate"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CreditsNewSeasonReminderEvent||(e.CreditsNewSeasonReminderEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:r.Events.SubType.CreditsService.USAGE_24_HOURS_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},creditsAmount:{type:"number",minimum:1},expirationDate:{type:"string"}},required:["address","creditsAmount","expirationDate"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CreditsUsage24HoursReminderEvent||(e.CreditsUsage24HoursReminderEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:r.Events.SubType.CreditsService.DO_NOT_MISS_OUT_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"}},required:["address"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CreditsDoNotMissOutReminderEvent||(e.CreditsDoNotMissOutReminderEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:r.Events.SubType.CreditsService.CLAIM_CREDITS_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},seasonId:{type:"number",minimum:1},weekNumber:{type:"number",minimum:1}},required:["address","seasonId","weekNumber"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CreditsClaimReminderEvent||(e.CreditsClaimReminderEvent={}))})(Iy)),Iy}var Ry={},RA;function f6(){return RA||(RA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CommunityStreamingEndedEvent=e.StreamingPlaceUpdatedEvent=e.StreamingTimeExceededEvent=e.StreamingKeyExpiredEvent=e.StreamingKeyRevokeEvent=e.StreamingKeyResetEvent=void 0;const t=Pe(),r=Mr(),n=pf(),i={type:"object",properties:{title:{type:"string"},description:{type:"string"},position:{type:"string"},worldName:{type:"string",nullable:!0},isWorld:{type:"boolean"},url:{type:"string"},address:{type:"string"},image:{type:"string"}},required:["position","isWorld","url","title","description","address","image"],additionalProperties:!1};(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.STREAMING,r.Events.SubType.Streaming.STREAMING_KEY_RESET,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.StreamingKeyResetEvent||(e.StreamingKeyResetEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.STREAMING,r.Events.SubType.Streaming.STREAMING_KEY_REVOKE,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.StreamingKeyRevokeEvent||(e.StreamingKeyRevokeEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.STREAMING,r.Events.SubType.Streaming.STREAMING_KEY_EXPIRED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.StreamingKeyExpiredEvent||(e.StreamingKeyExpiredEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.STREAMING,r.Events.SubType.Streaming.STREAMING_TIME_EXCEEDED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.StreamingTimeExceededEvent||(e.StreamingTimeExceededEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.STREAMING,r.Events.SubType.Streaming.STREAMING_PLACE_UPDATED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.StreamingPlaceUpdatedEvent||(e.StreamingPlaceUpdatedEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.STREAMING,r.Events.SubType.Streaming.COMMUNITY_STREAMING_ENDED,{type:"object",properties:{communityId:{type:"string"},totalParticipants:{type:"number"}},required:["communityId","totalParticipants"],additionalProperties:!1}),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.CommunityStreamingEndedEvent||(e.CommunityStreamingEndedEvent={}))})(Ry)),Ry}var Ay={},AA;function p6(){return AA||(AA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.UserUnbannedFromSceneEvent=e.UserBannedFromSceneEvent=e.UserLeftRoomEvent=e.UserJoinedRoomEvent=e.RoomType=void 0;const t=Pe(),r=Mr();var n;(function(i){i.PRIVATE_MESSAGE="private-message",i.VOICE_CHAT="voice-chat",i.COMMUNITY_VOICE_CHAT="community-voice-chat",i.ISLAND="island",i.SCENE="scene",i.WORLD="world",i.UNKNOWN="unknown"})(n=e.RoomType||(e.RoomType={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMS},subType:{type:"string",const:r.Events.SubType.Comms.USER_JOINED_ROOM},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{parcel:{type:"string"},sceneId:{type:"string"},userAddress:{type:"string"},realmName:{type:"string"},islandName:{type:"string",nullable:!0},communityId:{type:"string",nullable:!0},voiceChatId:{type:"string",nullable:!0},isWorld:{type:"boolean"},roomType:{type:"string",enum:Object.values(n)}},required:["parcel","sceneId","userAddress","realmName","isWorld","roomType"]}},required:["type","subType","key","timestamp","metadata"]},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.UserJoinedRoomEvent||(e.UserJoinedRoomEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMS},subType:{type:"string",const:r.Events.SubType.Comms.USER_LEFT_ROOM},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{userAddress:{type:"string"},realmName:{type:"string"},isWorld:{type:"boolean"},roomType:{type:"string",enum:Object.values(n)},sceneId:{type:"string",nullable:!0},islandName:{type:"string",nullable:!0},communityId:{type:"string",nullable:!0},voiceChatId:{type:"string",nullable:!0}},required:["isWorld","userAddress","realmName","roomType"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.UserLeftRoomEvent||(e.UserLeftRoomEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMS},subType:{type:"string",const:r.Events.SubType.Comms.USER_BANNED_FROM_SCENE},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{placeTitle:{type:"string"},userAddress:{type:"string"}},required:["placeTitle","userAddress"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.UserBannedFromSceneEvent||(e.UserBannedFromSceneEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMS},subType:{type:"string",const:r.Events.SubType.Comms.USER_UNBANNED_FROM_SCENE},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{placeTitle:{type:"string"},userAddress:{type:"string"}},required:["placeTitle","userAddress"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.UserUnbannedFromSceneEvent||(e.UserUnbannedFromSceneEvent={}))})(Ay)),Ay}var Oy={},OA;function m6(){return OA||(OA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReferralNewTierReachedEvent=e.ReferralInvitedUsersAcceptedEvent=void 0;const t=Pe(),r=Mr(),n=pf(),i={type:"object",properties:{title:{type:"string"},description:{type:"string"},address:{type:"string"},tier:{type:"number",minimum:1},url:{type:"string"},image:{type:"string"},invitedUserAddress:{type:"string"},invitedUsers:{type:"number",minimum:1},rarity:{type:"string",nullable:!0}},required:["address","tier","url","title","description","image","invitedUserAddress"],additionalProperties:!1};(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.REFERRAL,r.Events.SubType.Referral.REFERRAL_INVITED_USERS_ACCEPTED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.ReferralInvitedUsersAcceptedEvent||(e.ReferralInvitedUsersAcceptedEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.REFERRAL,r.Events.SubType.Referral.REFERRAL_NEW_TIER_REACHED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.ReferralNewTierReachedEvent||(e.ReferralNewTierReachedEvent={}))})(Oy)),Oy}var Ny={},NA;function h6(){return NA||(NA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CommunityVoiceChatStartedEvent=e.CommunityOwnershipTransferredEvent=e.CommunityPostAddedEvent=e.CommunityInviteReceivedEvent=e.CommunityRequestToJoinAcceptedEvent=e.CommunityRequestToJoinReceivedEvent=e.CommunityMemberRemovedEvent=e.CommunityMemberLeftEvent=e.CommunityMemberBannedEvent=e.CommunityRenamedEvent=e.CommunityDeletedContentViolationEvent=e.CommunityDeletedEvent=void 0;const t=Pe(),r=Mr();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.DELETED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},name:{type:"string"},memberAddresses:{type:"array",items:{type:"string"}},thumbnailUrl:{type:"string"}},required:["id","name","memberAddresses","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityDeletedEvent||(e.CommunityDeletedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.DELETED_CONTENT_VIOLATION},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},name:{type:"string"},ownerAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["id","name","ownerAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityDeletedContentViolationEvent||(e.CommunityDeletedContentViolationEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.RENAMED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},oldName:{type:"string"},newName:{type:"string"},memberAddresses:{type:"array",items:{type:"string"}},thumbnailUrl:{type:"string"}},required:["id","oldName","newName","memberAddresses","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityRenamedEvent||(e.CommunityRenamedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.MEMBER_BANNED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},name:{type:"string"},memberAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["id","name","memberAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityMemberBannedEvent||(e.CommunityMemberBannedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.MEMBER_LEFT},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},memberAddress:{type:"string"}},required:["id","memberAddress"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityMemberLeftEvent||(e.CommunityMemberLeftEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.MEMBER_REMOVED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},name:{type:"string"},memberAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["id","name","memberAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityMemberRemovedEvent||(e.CommunityMemberRemovedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.REQUEST_TO_JOIN_RECEIVED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},memberAddress:{type:"string"},memberName:{type:"string"},thumbnailUrl:{type:"string"},addressesToNotify:{type:"array",items:{type:"string"}}},required:["communityId","communityName","memberAddress","memberName","thumbnailUrl","addressesToNotify"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityRequestToJoinReceivedEvent||(e.CommunityRequestToJoinReceivedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.REQUEST_TO_JOIN_ACCEPTED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},memberAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["communityId","communityName","memberAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityRequestToJoinAcceptedEvent||(e.CommunityRequestToJoinAcceptedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.INVITE_RECEIVED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},memberAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["communityId","communityName","memberAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityInviteReceivedEvent||(e.CommunityInviteReceivedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.POST_ADDED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},thumbnailUrl:{type:"string"},postId:{type:"string"},authorAddress:{type:"string"},addressesToNotify:{type:"array",items:{type:"string"}}},required:["addressesToNotify","communityId","communityName","thumbnailUrl","postId","authorAddress"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityPostAddedEvent||(e.CommunityPostAddedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.OWNERSHIP_TRANSFERRED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},oldOwnerAddress:{type:"string"},newOwnerAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["communityId","communityName","oldOwnerAddress","newOwnerAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityOwnershipTransferredEvent||(e.CommunityOwnershipTransferredEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.VOICE_CHAT_STARTED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},thumbnailUrl:{type:"string"},addressesToNotify:{type:"array",items:{type:"string"}}},required:["communityId","communityName","thumbnailUrl","addressesToNotify"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityVoiceChatStartedEvent||(e.CommunityVoiceChatStartedEvent={}))})(Ny)),Ny}var Py={},PA;function y6(){return PA||(PA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PhotoTakenEvent=e.PhotoPrivacyChangedEvent=void 0;const t=Pe(),r=Mr();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CAMERA},subType:{type:"string",const:r.Events.SubType.Camera.PHOTO_PRIVACY_CHANGED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{userAddress:{type:"string"},photoId:{type:"string"},isPublic:{type:"boolean"}},required:["userAddress","photoId","isPublic"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.PhotoPrivacyChangedEvent||(e.PhotoPrivacyChangedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CAMERA},subType:{type:"string",const:r.Events.SubType.Camera.PHOTO_TAKEN},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{sceneId:{type:"string"},userAddress:{type:"string"},realm:{type:"string"},photoId:{type:"string"},isPublic:{type:"boolean"},users:{type:"array",items:{type:"object",properties:{address:{type:"string"},isEmoting:{type:"boolean"}},required:["address","isEmoting"],additionalProperties:!1}},placeId:{type:"string",nullable:!0}},required:["userAddress","realm","photoId","isPublic","users"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.PhotoTakenEvent||(e.PhotoTakenEvent={}))})(Py)),Py}var Cy={},CA;function g6(){return CA||(CA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EventEndedEvent=e.EventCreatedEvent=e.EventStartsSoonEvent=e.EventStartedEvent=void 0;const t=Pe(),r=Mr();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.EVENT},subType:{type:"string",const:r.Events.SubType.Event.EVENT_STARTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{name:{type:"string"},image:{type:"string"},link:{type:"string"},communityId:{type:"string"},communityThumbnail:{type:"string",nullable:!0},title:{type:"string"},description:{type:"string"},attendee:{type:"string"}},required:["name","image","link"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.EventStartedEvent||(e.EventStartedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.EVENT},subType:{type:"string",const:r.Events.SubType.Event.EVENT_STARTS_SOON},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{name:{type:"string"},image:{type:"string"},link:{type:"string"},startsAt:{type:"string"},endsAt:{type:"string"},title:{type:"string"},description:{type:"string"},attendee:{type:"string"}},required:["name","image","link","startsAt","endsAt"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.EventStartsSoonEvent||(e.EventStartsSoonEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.EVENT},subType:{type:"string",const:r.Events.SubType.Event.EVENT_CREATED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{name:{type:"string"},image:{type:"string"},communityId:{type:"string"},communityName:{type:"string"},communityThumbnail:{type:"string",nullable:!0},title:{type:"string"},description:{type:"string"},attendee:{type:"string"}},required:["name","image"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.EventCreatedEvent||(e.EventCreatedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.EVENT},subType:{type:"string",const:r.Events.SubType.Event.EVENT_ENDED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{communityId:{type:"string",nullable:!0},totalAttendees:{type:"number"}},required:["totalAttendees"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.EventEndedEvent||(e.EventEndedEvent={}))})(Cy)),Cy}var My={},MA;function _6(){return MA||(MA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.GovernanceCliffEndedEvent=e.GovernanceVotedOnBehalfEvent=e.GovernanceWhaleVoteEvent=e.GovernanceNewCommentOnProjectUpdatedEvent=e.GovernanceNewCommentOnProposalEvent=e.GovernanceVotingEndedVoterEvent=e.GovernanceAuthoredProposalFinishedEvent=e.GovernanceTenderPassedEvent=e.GovernancePitchPassedEvent=e.GovernanceCoauthorRequestedEvent=e.GovernanceProposalEnactedEvent=void 0;const t=Pe(),r=Mr(),n=pf(),i={type:"object",properties:{proposalId:{type:"string"},proposalTitle:{type:"string"},title:{type:"string"},description:{type:"string"},link:{type:"string"},address:{type:"string"}},required:["proposalId","proposalTitle","title","description","link","address"],additionalProperties:!1};(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.PROPOSAL_ENACTED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceProposalEnactedEvent||(e.GovernanceProposalEnactedEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.COAUTHOR_REQUESTED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceCoauthorRequestedEvent||(e.GovernanceCoauthorRequestedEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.PITCH_PASSED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernancePitchPassedEvent||(e.GovernancePitchPassedEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.TENDER_PASSED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceTenderPassedEvent||(e.GovernanceTenderPassedEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.AUTHORED_PROPOSAL_FINISHED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceAuthoredProposalFinishedEvent||(e.GovernanceAuthoredProposalFinishedEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.VOTING_ENDED_VOTER,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceVotingEndedVoterEvent||(e.GovernanceVotingEndedVoterEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.NEW_COMMENT_ON_PROPOSAL,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceNewCommentOnProposalEvent||(e.GovernanceNewCommentOnProposalEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.NEW_COMMENT_ON_PROJECT_UPDATED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceNewCommentOnProjectUpdatedEvent||(e.GovernanceNewCommentOnProjectUpdatedEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.WHALE_VOTE,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceWhaleVoteEvent||(e.GovernanceWhaleVoteEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.VOTED_ON_BEHALF,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceVotedOnBehalfEvent||(e.GovernanceVotedOnBehalfEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.CLIFF_ENDED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceCliffEndedEvent||(e.GovernanceCliffEndedEvent={}))})(My)),My}var jy={},jA;function v6(){return jA||(jA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorldsMissingResourcesEvent=e.WorldsAccessRestrictedEvent=e.WorldsPermissionGrantedEvent=e.WorldsPermissionRevokedEvent=e.WorldsAccessRestoredEvent=e.WorldDeploymentEvent=e.WorldUndeploymentEvent=e.WorldScenesUndeploymentEvent=e.WorldSpawnCoordinateSetEvent=e.WorldSettingsChangedEvent=void 0;const t=Kc(),r=Pe(),n=Mr();(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLD_SETTINGS_CHANGED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{worldName:{type:"string"},title:{type:"string",nullable:!0},description:{type:"string",nullable:!0},contentRating:{type:"string",nullable:!0},skyboxTime:{type:"number",nullable:!0},categories:{type:"array",items:{type:"string"},nullable:!0},singlePlayer:{type:"boolean",nullable:!0},showInPlaces:{type:"boolean",nullable:!0},thumbnailUrl:{type:"string",nullable:!0},accessType:{type:"string",nullable:!0}},required:["worldName"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1}})(e.WorldSettingsChangedEvent||(e.WorldSettingsChangedEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLD_SPAWN_COORDINATE_SET},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{name:{type:"string",pattern:"^[a-zA-Z0-9_-]+\\.dcl\\.eth|[a-zA-Z0-9_-]+\\.eth$"},oldCoordinate:{type:"object",properties:{x:{type:"number"},y:{type:"number"}},required:["x","y"],additionalProperties:!1,nullable:!0},newCoordinate:{type:"object",properties:{x:{type:"number"},y:{type:"number"}},required:["x","y"],additionalProperties:!1}},required:["name","oldCoordinate","newCoordinate"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.WorldSpawnCoordinateSetEvent||(e.WorldSpawnCoordinateSetEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLD_SCENES_UNDEPLOYMENT},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{worldName:{type:"string"},scenes:{type:"array",items:{type:"object",properties:{entityId:{type:"string"},baseParcel:{type:"string"}},required:["entityId","baseParcel"],additionalProperties:!1},minItems:1}},required:["worldName","scenes"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.WorldScenesUndeploymentEvent||(e.WorldScenesUndeploymentEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLD_UNDEPLOYMENT},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{worldName:{type:"string"}},required:["worldName"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.WorldUndeploymentEvent||(e.WorldUndeploymentEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.DEPLOYMENT},key:{type:"string"},timestamp:{type:"number",minimum:0},entity:{type:"object",properties:{entityId:{type:"string"},authChain:t.AuthChain.schema},additionalProperties:!0,required:["entityId","authChain"]},contentServerUrls:{type:"array",items:{type:"string"},nullable:!0},force:{type:"boolean",nullable:!0},animation:{type:"string",nullable:!0},lods:{type:"array",items:{type:"string"},nullable:!0}},required:["type","subType","key","timestamp","entity"],additionalProperties:!1},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.WorldDeploymentEvent||(e.WorldDeploymentEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLDS_ACCESS_RESTORED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},url:{type:"string"},attendee:{type:"string"}},required:["title","description","url","attendee"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.WorldsAccessRestoredEvent||(e.WorldsAccessRestoredEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLDS_PERMISSION_REVOKED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},world:{type:"string"},permissions:{type:"array",items:{type:"string"}},url:{type:"string"},address:{type:"string"}},required:["title","description","world","permissions","url","address"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.WorldsPermissionRevokedEvent||(e.WorldsPermissionRevokedEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLDS_PERMISSION_GRANTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},world:{type:"string"},permissions:{type:"array",items:{type:"string"}},url:{type:"string"},address:{type:"string"}},required:["title","description","world","permissions","url","address"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.WorldsPermissionGrantedEvent||(e.WorldsPermissionGrantedEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLDS_ACCESS_RESTRICTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},when:{type:"number"},address:{type:"string"}},required:["title","description","when","address"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.WorldsAccessRestrictedEvent||(e.WorldsAccessRestrictedEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLDS_MISSING_RESOURCES},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},url:{type:"string"},when:{type:"number"},address:{type:"string"}},required:["title","description","url","when","address"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.WorldsMissingResourcesEvent||(e.WorldsMissingResourcesEvent={}))})(jy)),jy}var Dy={},DA;function E6(){return DA||(DA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.UserWarningCreatedEvent=e.UserBanLiftedEvent=e.UserBanCreatedEvent=void 0;const t=Pe(),r=Mr();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.MODERATION},subType:{type:"string",const:r.Events.SubType.Moderation.USER_BAN_CREATED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{id:{type:"string"},bannedAddress:{type:"string"},bannedBy:{type:"string"},reason:{type:"string"},bannedAt:{type:"number",minimum:0},expiresAt:{type:"number",nullable:!0,minimum:0},customMessage:{type:"string",nullable:!0}},required:["id","bannedAddress","bannedBy","reason","bannedAt","expiresAt"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.UserBanCreatedEvent||(e.UserBanCreatedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.MODERATION},subType:{type:"string",const:r.Events.SubType.Moderation.USER_BAN_LIFTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{id:{type:"string"},bannedAddress:{type:"string"},liftedBy:{type:"string"},liftedAt:{type:"number",minimum:0}},required:["id","bannedAddress","liftedBy","liftedAt"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.UserBanLiftedEvent||(e.UserBanLiftedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.MODERATION},subType:{type:"string",const:r.Events.SubType.Moderation.USER_WARNING_CREATED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{id:{type:"string"},warnedAddress:{type:"string"},warnedBy:{type:"string"},reason:{type:"string"},warnedAt:{type:"number",minimum:0}},required:["id","warnedAddress","warnedBy","reason","warnedAt"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.UserWarningCreatedEvent||(e.UserWarningCreatedEvent={}))})(Dy)),Dy}var LA;function b6(){return LA||(LA=1,(function(e){var t=ya&&ya.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=ya&&ya.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(Mr(),e),r(a6(),e),r(s6(),e),r(o6(),e),r(c6(),e),r(u6(),e),r(l6(),e),r(d6(),e),r(f6(),e),r(p6(),e),r(m6(),e),r(h6(),e),r(y6(),e),r(g6(),e),r(_6(),e),r(v6(),e),r(E6(),e)})(ya)),ya}var $A;function KE(){return $A||($A=1,(function(e){var t=la&&la.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=la&&la.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(V5(),e),r(G5(),e),r(jD(),e),r(GE(),e),r(AD(),e),r(Z5(),e),r(LD(),e),r(e6(),e),r(r6(),e),r(i6(),e),r(b6(),e)})(la)),la}var kA;function S6(){return kA||(kA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableJson=void 0;const t=ff(),r=es(),n=xE(),i=Pe(),a=KE();(function(s){s.schema={type:"object",properties:{description:{type:"string"},rarity:Object.assign(Object.assign({},t.Rarity.schema),{nullable:!0}),name:{type:"string"},data:{type:"object",properties:{replaces:{type:"array",items:r.WearableCategory.schema},hides:{type:"array",items:r.WearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.WearableRepresentation.schema,minItems:1},category:r.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:a.HideableWearableCategory.schema},blockVrmExport:{type:"boolean",nullable:!0},outlineCompatible:{type:"boolean",nullable:!0}},required:["replaces","hides","tags","representations","category"]}},additionalProperties:!0,required:["description","name","data"]},s.validate=(0,i.generateLazyValidator)(s.schema)})(e.WearableJson||(e.WearableJson={}))})(Oh)),Oh}var qA;function T6(){return qA||(qA=1,(function(e){var t=ua&&ua.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=ua&&ua.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(F5(),e),r(S6(),e)})(ua)),ua}var BA;function w6(){return BA||(BA=1,(function(e){var t=oa&&oa.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=oa&&oa.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(U5(),e),r(T6(),e)})(oa)),oa}var ga={},Ly={},UA;function I6(){return UA||(UA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Account=e.AccountSortBy=void 0;const t=Pe();(function(r){r.MOST_SALES="most_sales",r.MOST_PURCHASES="most_purchases",r.MOST_SPENT="most_spent",r.MOST_EARNED="most_earned",r.MOST_ROYALTIES="most_royalties",r.MOST_COLLECTIONS="most_collections"})(e.AccountSortBy||(e.AccountSortBy={})),(function(r){r.schema={type:"object",properties:{id:{type:"string"},address:{type:"string"},sales:{type:"integer"},purchases:{type:"integer"},spent:{type:"string"},earned:{type:"string"},royalties:{type:"string"},collections:{type:"number"}},required:["id","address","sales","purchases","spent","earned","royalties","collections"]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.Account||(e.Account={}))})(Ly)),Ly}var $y={},ky={},FA;function BD(){return FA||(FA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getChainId=e.ChainName=void 0;const t=Pe(),r=wn();var n;(function(a){a.ETHEREUM_MAINNET="Ethereum Mainnet",a.ETHEREUM_ROPSTEN="Ropsten",a.ETHEREUM_RINKEBY="Rinkeby",a.ETHEREUM_GOERLI="Goerli",a.ETHEREUM_KOVAN="Kovan",a.ETHEREUM_SEPOLIA="Sepolia",a.MATIC_MAINNET="Polygon",a.MATIC_MUMBAI="Mumbai",a.MATIC_AMOY="Amoy",a.AVALANCHE_MAINNET="Avalanche",a.BINANCE_MAINNET="Binance Smart Chain",a.ARBITRUM_MAINNET="Arbitrum",a.OPTIMISM_MAINNET="Optimism",a.FANTOM_MAINNET="Fantom"})(n=e.ChainName||(e.ChainName={}));function i(a){switch(a){case n.ETHEREUM_MAINNET:return r.ChainId.ETHEREUM_MAINNET;case n.ETHEREUM_ROPSTEN:return r.ChainId.ETHEREUM_ROPSTEN;case n.ETHEREUM_RINKEBY:return r.ChainId.ETHEREUM_RINKEBY;case n.ETHEREUM_GOERLI:return r.ChainId.ETHEREUM_GOERLI;case n.ETHEREUM_KOVAN:return r.ChainId.ETHEREUM_KOVAN;case n.ETHEREUM_SEPOLIA:return r.ChainId.ETHEREUM_SEPOLIA;case n.MATIC_MAINNET:return r.ChainId.MATIC_MAINNET;case n.MATIC_MUMBAI:return r.ChainId.MATIC_MUMBAI;case n.MATIC_AMOY:return r.ChainId.MATIC_AMOY;case n.AVALANCHE_MAINNET:return r.ChainId.AVALANCHE_MAINNET;case n.BINANCE_MAINNET:return r.ChainId.BSC_MAINNET;case n.ARBITRUM_MAINNET:return r.ChainId.ARBITRUM_MAINNET;case n.OPTIMISM_MAINNET:return r.ChainId.OPTIMISM_MAINNET;case n.FANTOM_MAINNET:return r.ChainId.FANTOM_MAINNET;default:return null}}e.getChainId=i,(function(a){a.schema={type:"string",enum:Object.values(a)},a.validate=(0,t.generateLazyValidator)(a.schema)})(n=e.ChainName||(e.ChainName={}))})(ky)),ky}var qy={},HA;function Tn(){return HA||(HA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Network=void 0;const t=Pe();(function(r){r.ETHEREUM="ETHEREUM",r.MATIC="MATIC",r.AVALANCHE="AVALANCHE",r.BSC="BINANCE SMART CHAIN",r.OPTIMISM="OPTIMISM",r.ARBITRUM="ARBITRUM",r.FANTOM="FANTOM"})(e.Network||(e.Network={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.Network||(e.Network={}))})(qy)),qy}var VA;function wn(){return VA||(VA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getNetwork=e.getNetworkMapping=e.getURNProtocol=e.getChainName=e.ChainId=void 0;const t=Pe(),r=BD(),n=Tn();var i;(function(l){l[l.ETHEREUM_MAINNET=1]="ETHEREUM_MAINNET",l[l.ETHEREUM_ROPSTEN=3]="ETHEREUM_ROPSTEN",l[l.ETHEREUM_RINKEBY=4]="ETHEREUM_RINKEBY",l[l.ETHEREUM_GOERLI=5]="ETHEREUM_GOERLI",l[l.ETHEREUM_KOVAN=42]="ETHEREUM_KOVAN",l[l.ETHEREUM_SEPOLIA=11155111]="ETHEREUM_SEPOLIA",l[l.MATIC_MAINNET=137]="MATIC_MAINNET",l[l.MATIC_MUMBAI=80001]="MATIC_MUMBAI",l[l.MATIC_AMOY=80002]="MATIC_AMOY",l[l.BSC_MAINNET=56]="BSC_MAINNET",l[l.OPTIMISM_MAINNET=10]="OPTIMISM_MAINNET",l[l.ARBITRUM_MAINNET=42161]="ARBITRUM_MAINNET",l[l.FANTOM_MAINNET=250]="FANTOM_MAINNET",l[l.AVALANCHE_MAINNET=43114]="AVALANCHE_MAINNET"})(i=e.ChainId||(e.ChainId={}));function a(l){switch(l){case i.ETHEREUM_MAINNET:return r.ChainName.ETHEREUM_MAINNET;case i.ETHEREUM_ROPSTEN:return r.ChainName.ETHEREUM_ROPSTEN;case i.ETHEREUM_RINKEBY:return r.ChainName.ETHEREUM_RINKEBY;case i.ETHEREUM_GOERLI:return r.ChainName.ETHEREUM_GOERLI;case i.ETHEREUM_KOVAN:return r.ChainName.ETHEREUM_KOVAN;case i.ETHEREUM_SEPOLIA:return r.ChainName.ETHEREUM_SEPOLIA;case i.MATIC_MAINNET:return r.ChainName.MATIC_MAINNET;case i.MATIC_MUMBAI:return r.ChainName.MATIC_MUMBAI;case i.MATIC_AMOY:return r.ChainName.MATIC_AMOY;case i.BSC_MAINNET:return r.ChainName.BINANCE_MAINNET;case i.ARBITRUM_MAINNET:return r.ChainName.ARBITRUM_MAINNET;case i.OPTIMISM_MAINNET:return r.ChainName.OPTIMISM_MAINNET;case i.FANTOM_MAINNET:return r.ChainName.FANTOM_MAINNET;case i.AVALANCHE_MAINNET:return r.ChainName.AVALANCHE_MAINNET;default:return null}}e.getChainName=a;function s(l){switch(l){case i.ETHEREUM_MAINNET:return"ethereum";case i.ETHEREUM_ROPSTEN:return"ropsten";case i.ETHEREUM_RINKEBY:return"rinkeby";case i.ETHEREUM_GOERLI:return"goerli";case i.ETHEREUM_KOVAN:return"kovan";case i.ETHEREUM_SEPOLIA:return"sepolia";case i.MATIC_MAINNET:return"matic";case i.MATIC_MUMBAI:return"mumbai";case i.MATIC_AMOY:return"amoy";default:return""}}e.getURNProtocol=s;function o(l){const u={[n.Network.BSC]:i.BSC_MAINNET,[n.Network.OPTIMISM]:i.OPTIMISM_MAINNET,[n.Network.ARBITRUM]:i.ARBITRUM_MAINNET,[n.Network.FANTOM]:i.FANTOM_MAINNET,[n.Network.AVALANCHE]:i.AVALANCHE_MAINNET};switch(l){case i.ETHEREUM_MAINNET:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET},u);case i.ETHEREUM_ROPSTEN:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_ROPSTEN,[n.Network.MATIC]:i.MATIC_MUMBAI},u);case i.ETHEREUM_RINKEBY:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_RINKEBY,[n.Network.MATIC]:i.MATIC_MUMBAI},u);case i.ETHEREUM_GOERLI:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_GOERLI,[n.Network.MATIC]:i.MATIC_MUMBAI},u);case i.ETHEREUM_KOVAN:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_KOVAN,[n.Network.MATIC]:i.MATIC_MUMBAI},u);case i.ETHEREUM_SEPOLIA:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_SEPOLIA,[n.Network.MATIC]:i.MATIC_AMOY},u);case i.MATIC_MAINNET:return Object.assign({[n.Network.ETHEREUM]:i.MATIC_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET},u);case i.MATIC_MUMBAI:return Object.assign({[n.Network.ETHEREUM]:i.MATIC_MUMBAI,[n.Network.MATIC]:i.MATIC_MUMBAI},u);case i.MATIC_AMOY:return Object.assign({[n.Network.ETHEREUM]:i.MATIC_AMOY,[n.Network.MATIC]:i.MATIC_AMOY},u);default:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET},u)}}e.getNetworkMapping=o;function c(l){switch(l){case i.ETHEREUM_MAINNET:case i.ETHEREUM_ROPSTEN:case i.ETHEREUM_GOERLI:case i.ETHEREUM_KOVAN:case i.ETHEREUM_RINKEBY:case i.ETHEREUM_SEPOLIA:return n.Network.ETHEREUM;case i.MATIC_MAINNET:case i.MATIC_MUMBAI:case i.MATIC_AMOY:return n.Network.MATIC;case i.BSC_MAINNET:return n.Network.BSC;case i.OPTIMISM_MAINNET:return n.Network.OPTIMISM;case i.ARBITRUM_MAINNET:return n.Network.ARBITRUM;case i.FANTOM_MAINNET:return n.Network.FANTOM;case i.AVALANCHE_MAINNET:return n.Network.AVALANCHE}}e.getNetwork=c,(function(l){l.schema={type:"number",enum:Object.values(l)},l.validate=(0,t.generateLazyValidator)(l.schema)})(i=e.ChainId||(e.ChainId={}))})($y)),$y}var By={},xA;function R6(){return xA||(xA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Collection=e.CollectionSortBy=void 0;const t=Pe(),r=wn(),n=Tn();(function(i){i.NEWEST="newest",i.NAME="name",i.RECENTLY_REVIEWED="recently_reviewed",i.RECENTLY_LISTED="recently_listed",i.SIZE="size"})(e.CollectionSortBy||(e.CollectionSortBy={})),(function(i){i.schema={type:"object",properties:{urn:{type:"string"},creator:{type:"string"},name:{type:"string"},contractAddress:{type:"string"},size:{type:"integer"},isOnSale:{type:"boolean"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},network:n.Network.schema,chainId:r.ChainId.schema,firstListedAt:{type:"integer",nullable:!0}},required:["urn","creator","name","contractAddress","isOnSale","size","createdAt","updatedAt","reviewedAt","network","chainId"]},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.Collection||(e.Collection={}))})(By)),By}var Uy={},Fy={},GA;function mf(){return GA||(GA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NFTCategory=void 0;const t=Pe();(function(r){r.PARCEL="parcel",r.ESTATE="estate",r.WEARABLE="wearable",r.ENS="ens",r.EMOTE="emote"})(e.NFTCategory||(e.NFTCategory={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.NFTCategory||(e.NFTCategory={}))})(Fy)),Fy}var zA;function A6(){return zA||(zA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Contract=e.ContractSortBy=void 0;const t=Pe(),r=wn(),n=Tn(),i=mf();(function(a){a.NAME="name"})(e.ContractSortBy||(e.ContractSortBy={})),(function(a){a.schema={type:"object",properties:{name:{type:"string"},address:{type:"string"},category:i.NFTCategory.schema,network:n.Network.schema,chainId:r.ChainId.schema},required:["name","address","category","network","chainId"]},a.validate=(0,t.generateLazyValidator)(a.schema)})(e.Contract||(e.Contract={}))})(Uy)),Uy}var Hy={},Vy={},WA;function UD(){return WA||(WA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NFT=e.NFTSortBy=void 0;const t=Pe(),r=wn(),n=KE(),i=Tn(),a=mf(),s=ff(),o=es();(function(c){c.NAME="name",c.NEWEST="newest",c.RECENTLY_LISTED="recently_listed",c.RECENTLY_SOLD="recently_sold",c.CHEAPEST="cheapest",c.RENTAL_LISTING_DATE="rental_listing_date",c.RENTAL_DATE="rented_date",c.MAX_RENTAL_PRICE="max_rental_price",c.MIN_RENTAL_PRICE="min_rental_price"})(e.NFTSortBy||(e.NFTSortBy={})),(function(c){c.schema={type:"object",properties:{id:{type:"string"},tokenId:{type:"string"},contractAddress:{type:"string"},activeOrderId:{type:"string",nullable:!0},utility:{type:"string",nullable:!0},openRentalId:{type:"string",nullable:!0},owner:{type:"string"},name:{type:"string"},image:{type:"string"},url:{type:"string"},data:{type:"object",nullable:!1,properties:{parcel:{type:"object",properties:{description:{type:["string"],nullable:!0},x:{type:"string"},y:{type:"string"},estate:{type:"object",properties:{tokenId:{type:"string"},name:{type:"string"}},required:["tokenId","name"],nullable:!0}},required:["description","x","y","estate"],nullable:!0},estate:{type:"object",properties:{description:{type:["string"],nullable:!0},size:{type:"integer"},parcels:{type:"array",items:{type:"object",properties:{x:{type:"number"},y:{type:"number"}},required:["x","y"]}}},required:["description","size","parcels"],nullable:!0},wearable:{type:"object",properties:{bodyShapes:{type:"array",items:n.BodyShape.schema},category:o.WearableCategory.schema,description:{type:"string"},rarity:s.Rarity.schema,isSmart:{type:"boolean"}},required:["bodyShapes","category","description","rarity","isSmart"],nullable:!0},ens:{type:"object",properties:{subdomain:{type:"string"}},required:["subdomain"],nullable:!0},emote:{type:"object",properties:{bodyShapes:{type:"array",items:n.BodyShape.schema},category:n.EmoteCategory.schema,description:{type:"string"},rarity:s.Rarity.schema,loop:{type:"boolean"},hasSound:{type:"boolean"},hasGeometry:{type:"boolean"},outcomeType:{type:"string",nullable:!0}},required:["bodyShapes","category","description","rarity","loop"],nullable:!0}},required:[]},issuedId:{type:"string",nullable:!0},itemId:{type:"string",nullable:!0},category:a.NFTCategory.schema,network:i.Network.schema,chainId:r.ChainId.schema,createdAt:{type:"integer"},updatedAt:{type:"integer"},soldAt:{type:"integer"},urn:{type:"string",nullable:!0}},required:["id","tokenId","contractAddress","activeOrderId","openRentalId","owner","name","image","url","data","issuedId","itemId","category","network","chainId","createdAt","updatedAt","soldAt"]},c.validate=(0,t.generateLazyValidator)(c.schema)})(e.NFT||(e.NFT={}))})(Vy)),Vy}var YA;function O6(){return YA||(YA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Item=e.ItemSortBy=void 0;const t=Pe(),r=wn(),n=Tn(),i=UD(),a=mf();(function(s){s.NAME="name",s.NEWEST="newest",s.RECENTLY_REVIEWED="recently_reviewed",s.RECENTLY_SOLD="recently_sold",s.RECENTLY_LISTED="recently_listed",s.CHEAPEST="cheapest"})(e.ItemSortBy||(e.ItemSortBy={})),(function(s){s.schema={type:"object",properties:{id:{type:"string"},name:{type:"string"},thumbnail:{type:"string"},url:{type:"string"},category:a.NFTCategory.schema,contractAddress:{type:"string"},itemId:{type:"string"},rarity:{type:"string"},price:{type:"string"},available:{type:"integer"},isOnSale:{type:"boolean"},creator:{type:"string"},beneficiary:{type:"string",nullable:!0},tradeId:{type:"string",nullable:!0},tradeContractAddress:{type:"string",nullable:!0},data:i.NFT.schema.properties.data,network:n.Network.schema,chainId:r.ChainId.schema,urn:{type:"string"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},soldAt:{type:"integer"},firstListedAt:{type:"integer",nullable:!0},picks:{type:"object",properties:{pickedByUser:{type:"boolean",nullable:!0},count:{type:"integer"}},required:["count"],nullable:!0},minPrice:{type:"string",nullable:!0},utility:{type:"string",nullable:!0},minListingPrice:{type:"string",nullable:!0},maxListingPrice:{type:"string",nullable:!0},listings:{type:"integer",nullable:!0},owners:{type:"integer",nullable:!0},tradeExpiresAt:{type:"integer",nullable:!0}},required:["id","name","thumbnail","url","category","contractAddress","itemId","rarity","price","available","isOnSale","creator","data","network","chainId","createdAt","updatedAt","soldAt"]},s.validate=(0,t.generateLazyValidator)(s.schema)})(e.Item||(e.Item={}))})(Hy)),Hy}var xy={},KA;function XE(){return KA||(KA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ListingStatus=void 0;const t=Pe();(function(r){r.OPEN="open",r.SOLD="sold",r.CANCELLED="cancelled"})(e.ListingStatus||(e.ListingStatus={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.ListingStatus||(e.ListingStatus={}))})(xy)),xy}var Gy={},XA;function N6(){return XA||(XA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MetaTransaction=void 0;const t=Pe();(function(r){r.schema={type:"object",properties:{from:{type:"string"},params:{type:"array",items:[{type:"string"},{type:"string"}],additionalItems:!1,minItems:2}},additionalProperties:!1,required:["from","params"]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.MetaTransaction||(e.MetaTransaction={}))})(Gy)),Gy}var zy={},JA;function P6(){return JA||(JA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Mint=e.MintSortBy=void 0;const t=Pe(),r=wn(),n=Tn();(function(i){i.RECENTLY_MINTED="recently_minted",i.MOST_EXPENSIVE="most_expensive"})(e.MintSortBy||(e.MintSortBy={})),(function(i){i.schema={type:"object",properties:{id:{type:"string"},creator:{type:"string"},beneficiary:{type:"string"},minter:{type:"string"},price:{type:"string",nullable:!0},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},issuedId:{type:"string"},timestamp:{type:"integer"},network:n.Network.schema,chainId:r.ChainId.schema},required:["id","creator","beneficiary","minter","itemId","tokenId","issuedId","contractAddress","price","timestamp","network","chainId"]},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.Mint||(e.Mint={}))})(zy)),zy}var Wy={},QA;function C6(){return QA||(QA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CatalogSortDirection=e.CatalogSortBy=void 0,(function(t){t.NEWEST="newest",t.RECENTLY_SOLD="recently_sold",t.CHEAPEST="cheapest",t.MOST_EXPENSIVE="most_expensive",t.RECENTLY_LISTED="recently_listed"})(e.CatalogSortBy||(e.CatalogSortBy={})),(function(t){t.ASC="asc",t.DESC="desc"})(e.CatalogSortDirection||(e.CatalogSortDirection={}))})(Wy)),Wy}var Yy={},ZA;function M6(){return ZA||(ZA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Order=e.OrderSortBy=void 0;const t=Pe(),r=wn(),n=XE(),i=Tn();(function(a){a.RECENTLY_LISTED="recently_listed",a.RECENTLY_UPDATED="recently_updated",a.CHEAPEST="cheapest",a.ISSUED_ID_ASC="issued_id_asc",a.ISSUED_ID_DESC="issued_id_desc",a.OLDEST="oldest"})(e.OrderSortBy||(e.OrderSortBy={})),(function(a){a.schema={type:"object",properties:{id:{type:"string"},marketplaceAddress:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},owner:{type:"string"},buyer:{type:["string"],nullable:!0},price:{type:"string"},status:n.ListingStatus.schema,network:i.Network.schema,chainId:r.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"},issuedId:{type:"string"},tradeId:{type:"string",nullable:!0}},required:["id","marketplaceAddress","contractAddress","tokenId","owner","buyer","price","status","network","chainId","expiresAt","createdAt","updatedAt"]},a.validate=(0,t.generateLazyValidator)(a.schema)})(e.Order||(e.Order={}))})(Yy)),Yy}var Ky={},eO;function j6(){return eO||(eO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProviderType=void 0;const t=Pe();(function(r){r.INJECTED="injected",r.MAGIC="magic",r.MAGIC_TEST="magic_test",r.FORTMATIC="formatic",r.NETWORK="network",r.WALLET_CONNECT="wallet_connect",r.WALLET_CONNECT_V2="wallet_connect_v2",r.WALLET_LINK="wallet_link",r.METAMASK_MOBILE="metamask_mobile",r.AUTH_SERVER="auth_server",r.THIRDWEB="thirdweb"})(e.ProviderType||(e.ProviderType={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.ProviderType||(e.ProviderType={}))})(Ky)),Ky}var Xy={},tO;function FD(){return tO||(tO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SaleType=void 0;const t=Pe();(function(r){r.ORDER="order",r.BID="bid",r.MINT="mint"})(e.SaleType||(e.SaleType={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.SaleType||(e.SaleType={}))})(Xy)),Xy}var Jy={},rO;function D6(){return rO||(rO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Sale=e.SaleSortBy=void 0;const t=Pe(),r=wn(),n=FD(),i=Tn();(function(a){a.RECENTLY_SOLD="recently_sold",a.MOST_EXPENSIVE="most_expensive"})(e.SaleSortBy||(e.SaleSortBy={})),(function(a){a.schema={type:"object",properties:{id:{type:"string"},type:n.SaleType.schema,buyer:{type:"string"},seller:{type:"string"},price:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},txHash:{type:"string"},timestamp:{type:"integer"},network:i.Network.schema,chainId:r.ChainId.schema},required:["id","buyer","seller","itemId","tokenId","price","contractAddress","timestamp","txHash","network","chainId"]},a.validate=(0,t.generateLazyValidator)(a.schema)})(e.Sale||(e.Sale={}))})(Jy)),Jy}var Qy={},nO;function L6(){return nO||(nO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RentalListingCreation=e.PeriodCreation=e.RentalsListingsSortBy=e.RentalsListingsFilterByCategory=e.RentalsListingSortDirection=e.RentalStatus=void 0;const t=Pe(),r=wn(),n=Tn();(function(a){a.OPEN="open",a.CANCELLED="cancelled",a.EXECUTED="executed",a.CLAIMED="claimed"})(e.RentalStatus||(e.RentalStatus={})),(function(a){a.ASC="asc",a.DESC="desc"})(e.RentalsListingSortDirection||(e.RentalsListingSortDirection={})),(function(a){a.PARCEL="parcel",a.ESTATE="estate"})(e.RentalsListingsFilterByCategory||(e.RentalsListingsFilterByCategory={})),(function(a){a.LAND_CREATION_DATE="land_creation_date",a.RENTAL_LISTING_DATE="rental_listing_date",a.RENTAL_DATE="rented_date",a.NAME="name",a.MAX_RENTAL_PRICE="max_rental_price",a.MIN_RENTAL_PRICE="min_rental_price"})(e.RentalsListingsSortBy||(e.RentalsListingsSortBy={}));var i;(function(a){a.schema={type:"object",properties:{minDays:{type:"integer",minimum:0,maximum:2147483647},maxDays:{type:"integer",minimum:0,maximum:2147483647},pricePerDay:{type:"string",pattern:"^[0-9]+$"}},additionalProperties:!1,required:["minDays","maxDays","pricePerDay"]},a.validate=(0,t.generateLazyValidator)(a.schema)})(i=e.PeriodCreation||(e.PeriodCreation={})),(function(a){a.schema={type:"object",properties:{network:n.Network.schema,chainId:r.ChainId.schema,expiration:{type:"number",minimum:0},signature:{type:"string",minLength:1},tokenId:{type:"string",minLength:1},nonces:{type:"array",minItems:3,maxItems:3,items:{minLength:1,type:"string",pattern:"^[0-9]+$"}},contractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},rentalContractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},periods:{type:"array",minItems:1,maxItems:100,uniqueItems:!0,items:i.schema},target:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"}},additionalProperties:!1,required:["network","chainId","expiration","signature","nonces","tokenId","contractAddress","rentalContractAddress","periods","target"]},a.validate=(0,t.generateLazyValidator)(a.schema)})(e.RentalListingCreation||(e.RentalListingCreation={}))})(Qy)),Qy}var Zy={},iO;function $6(){return iO||(iO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AnalyticsDayDataSortBy=void 0,(function(t){t.DATE="date",t.MOST_SALES="most_sales"})(e.AnalyticsDayDataSortBy||(e.AnalyticsDayDataSortBy={}))})(Zy)),Zy}var eg={},aO;function k6(){return aO||(aO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Store=void 0;const t=Pe();(function(r){r.schema={type:"object",properties:{id:{type:"string"},version:{type:"number"},owner:{type:"string"},description:{type:"string"},links:{type:"array",items:{type:"object",properties:{name:{type:"string"},url:{type:"string"}},required:["name","url"]}},images:{type:"array",items:{type:"object",properties:{name:{type:"string"},file:{type:"string"}},required:["name","file"]}}},required:["id","version","owner","description","links","images"]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.Store||(e.Store={}))})(eg)),eg}var tg={},sO;function q6(){return sO||(sO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.GenderFilterOption=e.WearableGender=void 0;const t=Pe();(function(r){r.MALE="male",r.FEMALE="female"})(e.WearableGender||(e.WearableGender={})),(function(r){r.MALE="male",r.FEMALE="female",r.UNISEX="unisex"})(e.GenderFilterOption||(e.GenderFilterOption={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.WearableGender||(e.WearableGender={}))})(tg)),tg}var rg={},oO;function B6(){return oO||(oO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.World=e.isInsideWorldLimits=e.getWorld=void 0;const t=Pe();function r(){return{validWorldRanges:[{xMin:-150,yMin:-150,xMax:150,yMax:150},{xMin:62,yMin:151,xMax:162,yMax:158},{xMin:151,yMin:144,xMax:162,yMax:150},{xMin:151,yMin:59,xMax:163,yMax:143}]}}e.getWorld=r;function n(i,a){const s=r().validWorldRanges;for(const o of s)if(i>=o.xMin&&i<=o.xMax&&a>=o.yMin&&a<=o.yMax)return!0;return!1}e.isInsideWorldLimits=n,(function(i){i.schema={type:"object",required:["validWorldRanges"],properties:{validWorldRanges:{type:"array",default:[{xMin:-150,yMin:-150,xMax:150,yMax:150}],items:{type:"object",required:["xMin","yMin","xMax","yMax"],properties:{xMin:{type:"integer"},yMin:{type:"integer"},xMax:{type:"integer"},yMax:{type:"integer"}}}}},additionalProperties:!1},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.World||(e.World={}))})(rg)),rg}var ng={},cO;function U6(){return cO||(cO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Bid=e.BidSortBy=void 0;const t=Pe(),r=wn(),n=XE(),i=Tn();(function(a){a.RECENTLY_OFFERED="recently_offered",a.RECENTLY_UPDATED="recently_updated",a.MOST_EXPENSIVE="most_expensive"})(e.BidSortBy||(e.BidSortBy={})),(function(a){const s={properties:{id:{type:"string"},bidder:{type:"string"},seller:{type:"string"},price:{type:"string"},fingerprint:{type:"string"},status:n.ListingStatus.schema,contractAddress:{type:"string"},network:i.Network.schema,chainId:r.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"}},required:["id","bidder","seller","price","fingerprint","status","contractAddress","network","chainId","expiresAt","createdAt","updatedAt"]};a.schema={type:"object",required:[],oneOf:[{properties:Object.assign(Object.assign({},s.properties),{tradeId:{type:"string"},tokenId:{type:"string"}}),required:[...s.required,"tradeId","tokenId"]},{type:"object",properties:Object.assign(Object.assign({},s.properties),{tradeId:{type:"string"},itemId:{type:"string"}}),required:[...s.required,"tradeId","itemId"]},{type:"object",properties:Object.assign(Object.assign({},s.properties),{bidAddress:{type:"string"},blockchainId:{type:"string"},blockNumber:{type:"string"},tokenId:{type:"string"}}),required:[...s.required,"bidAddress","blockchainId","blockNumber","tokenId"]}]},a.validate=(0,t.generateLazyValidator)(a.schema)})(e.Bid||(e.Bid={}))})(ng)),ng}var ig={},uO;function F6(){return uO||(uO=1,Object.defineProperty(ig,"__esModule",{value:!0})),ig}var ag={},lO;function H6(){return lO||(lO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TradeAssetDirection=e.TradeAssetType=e.TradeType=void 0,(function(t){t.BID="bid",t.PUBLIC_NFT_ORDER="public_nft_order",t.PUBLIC_ITEM_ORDER="public_item_order"})(e.TradeType||(e.TradeType={})),(function(t){t[t.ERC20=1]="ERC20",t[t.USD_PEGGED_MANA=2]="USD_PEGGED_MANA",t[t.ERC721=3]="ERC721",t[t.COLLECTION_ITEM=4]="COLLECTION_ITEM"})(e.TradeAssetType||(e.TradeAssetType={})),(function(t){t.SENT="sent",t.RECEIVED="received"})(e.TradeAssetDirection||(e.TradeAssetDirection={}))})(ag)),ag}var _a={},sg={},dO;function V6(){return dO||(dO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewCamera=void 0;const t=Pe();(function(r){r.STATIC="static",r.INTERACTIVE="interactive"})(e.PreviewCamera||(e.PreviewCamera={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.PreviewCamera||(e.PreviewCamera={}))})(sg)),sg}var og={},fO;function x6(){return fO||(fO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewUnityMode=void 0,(function(t){t.AUTH="authentication",t.BUILDER="builder",t.MARKETPLACE="marketplace",t.PROFILE="profile",t.CONFIG="configurator",t.JESUS="jesus"})(e.PreviewUnityMode||(e.PreviewUnityMode={}))})(og)),og}var cg={},pO;function G6(){return pO||(pO=1,Object.defineProperty(cg,"__esModule",{value:!0})),cg}var ug={},mO;function z6(){return mO||(mO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewEmoteEventType=void 0;const t=Pe();(function(r){r.ANIMATION_PLAY="animation_play",r.ANIMATION_PAUSE="animation_pause",r.ANIMATION_LOOP="animation_loop",r.ANIMATION_END="animation_end",r.ANIMATION_PLAYING="animation_playing"})(e.PreviewEmoteEventType||(e.PreviewEmoteEventType={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.PreviewEmoteEventType||(e.PreviewEmoteEventType={}))})(ug)),ug}var lg={},hO;function W6(){return hO||(hO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewEmote=void 0;const t=Pe();(function(r){r.IDLE="idle",r.WALK="walk",r.RUN="run",r.JUMP="jump",r.CLAP="clap",r.DAB="dab",r.DANCE="dance",r.FASHION="fashion",r.FASHION_2="fashion-2",r.FASHION_3="fashion-3",r.FASHION_4="fashion-4",r.LOVE="love",r.MONEY="money",r.FIST_PUMP="fist-pump",r.HEAD_EXPLODE="head-explode",r.WAVE="wave"})(e.PreviewEmote||(e.PreviewEmote={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.PreviewEmote||(e.PreviewEmote={}))})(lg)),lg}var dg={},yO;function Y6(){return yO||(yO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.sendMessage=e.PreviewRenderer=e.PreviewMessageType=void 0;const t=Pe();(function(n){n.READY="ready",n.LOAD="load",n.ERROR="error",n.UPDATE="update",n.CONTROLLER_REQUEST="controller_request",n.CONTROLLER_RESPONSE="controller_response",n.EMOTE_EVENT="emote_event"})(e.PreviewMessageType||(e.PreviewMessageType={})),(function(n){n.BABYLON="babylon",n.UNITY="unity"})(e.PreviewRenderer||(e.PreviewRenderer={})),(function(n){n.schema={type:"string",enum:Object.values(n)},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.PreviewMessageType||(e.PreviewMessageType={}));const r=(n,i,a,s="*")=>{const o={type:i,payload:a};n.postMessage(o,s)};e.sendMessage=r})(dg)),dg}var fg={},gO;function K6(){return gO||(gO=1,Object.defineProperty(fg,"__esModule",{value:!0})),fg}var pg={},_O;function X6(){return _O||(_O=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewProjection=void 0;const t=Pe();(function(r){r.ORTHOGRAPHIC="orthographic",r.PERSPECTIVE="perspective"})(e.PreviewProjection||(e.PreviewProjection={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.PreviewProjection||(e.PreviewProjection={}))})(pg)),pg}var mg={},vO;function J6(){return vO||(vO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewType=void 0;const t=Pe();(function(r){r.TEXTURE="texture",r.WEARABLE="wearable",r.AVATAR="avatar"})(e.PreviewType||(e.PreviewType={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.PreviewType||(e.PreviewType={}))})(mg)),mg}var hg={},EO;function Q6(){return EO||(EO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpringBoneParams=void 0;const t=Pe();(function(r){r.schema={type:"object",properties:{stiffness:{type:"number",minimum:0,maximum:5},gravityPower:{type:"number",minimum:0,maximum:10},gravityDir:{type:"array",items:[{type:"number"},{type:"number"},{type:"number"}],minItems:3,maxItems:3},dragForce:{type:"number",minimum:0,maximum:1},center:{type:"integer",minimum:0,nullable:!0}},required:["stiffness","gravityPower","gravityDir","dragForce"]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.SpringBoneParams||(e.SpringBoneParams={}))})(hg)),hg}var yg={},bO;function Z6(){return bO||(bO=1,Object.defineProperty(yg,"__esModule",{value:!0})),yg}var gg={},SO;function ex(){return SO||(SO=1,Object.defineProperty(gg,"__esModule",{value:!0})),gg}var _g={},TO;function tx(){return TO||(TO=1,Object.defineProperty(_g,"__esModule",{value:!0})),_g}var vg={},wO;function rx(){return wO||(wO=1,Object.defineProperty(vg,"__esModule",{value:!0})),vg}var Eg={},IO;function nx(){return IO||(IO=1,Object.defineProperty(Eg,"__esModule",{value:!0})),Eg}var bg={},RO;function ix(){return RO||(RO=1,Object.defineProperty(bg,"__esModule",{value:!0})),bg}var Sg={},AO;function ax(){return AO||(AO=1,Object.defineProperty(Sg,"__esModule",{value:!0})),Sg}var Tg={},OO;function sx(){return OO||(OO=1,Object.defineProperty(Tg,"__esModule",{value:!0})),Tg}var NO;function ox(){return NO||(NO=1,(function(e){var t=_a&&_a.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=_a&&_a.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(V6(),e),r(x6(),e),r(G6(),e),r(z6(),e),r(W6(),e),r(Y6(),e),r(K6(),e),r(X6(),e),r(J6(),e),r(Q6(),e),r(Z6(),e),r(ex(),e),r(tx(),e),r(rx(),e),r(nx(),e),r(ix(),e),r(ax(),e),r(sx(),e)})(_a)),_a}var va={},jo={},PO;function cx(){if(PO)return jo;PO=1,Object.defineProperty(jo,"__esModule",{value:!0}),jo.isSysLink=void 0;const e=t=>t!==null&&typeof t=="object"&&"sys"in t&&"id"in t.sys;return jo.isSysLink=e,jo}var Do={},CO;function ux(){if(CO)return Do;CO=1,Object.defineProperty(Do,"__esModule",{value:!0}),Do.ContentfulLocale=void 0;var e;return(function(t){t.enUS="en-US",t.es="es",t.zh="zh"})(e||(e={})),Do.ContentfulLocale=e,Do}var wg={},MO;function lx(){return MO||(MO=1,Object.defineProperty(wg,"__esModule",{value:!0})),wg}var jO;function dx(){return jO||(jO=1,(function(e){var t=va&&va.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=va&&va.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(cx(),e),r(ux(),e),r(lx(),e)})(va)),va}var DO;function fx(){return DO||(DO=1,(function(e){var t=ga&&ga.__createBinding||(Object.create?(function(q,H,k,B){B===void 0&&(B=k);var F=Object.getOwnPropertyDescriptor(H,k);(!F||("get"in F?!H.__esModule:F.writable||F.configurable))&&(F={enumerable:!0,get:function(){return H[k]}}),Object.defineProperty(q,B,F)}):(function(q,H,k,B){B===void 0&&(B=k),q[B]=H[k]})),r=ga&&ga.__exportStar||function(q,H){for(var k in q)k!=="default"&&!Object.prototype.hasOwnProperty.call(H,k)&&t(H,q,k)};Object.defineProperty(e,"__esModule",{value:!0}),e.isInsideWorldLimits=e.getWorld=e.World=e.GenderFilterOption=e.WearableGender=e.Store=e.AnalyticsDayDataSortBy=e.PeriodCreation=e.RentalListingCreation=e.RentalsListingsSortBy=e.RentalsListingsFilterByCategory=e.RentalsListingSortDirection=e.RentalStatus=e.SaleSortBy=e.Sale=e.SaleType=e.Rarity=e.ProviderType=e.OrderSortBy=e.Order=e.CatalogSortDirection=e.CatalogSortBy=e.NFTSortBy=e.NFT=e.NFTCategory=e.Network=e.MintSortBy=e.Mint=e.MetaTransaction=e.ListingStatus=e.ItemSortBy=e.Item=e.ContractSortBy=e.Contract=e.CollectionSortBy=e.Collection=e.getChainId=e.ChainName=e.getURNProtocol=e.getChainName=e.ChainId=e.AccountSortBy=e.Account=void 0;var n=I6();Object.defineProperty(e,"Account",{enumerable:!0,get:function(){return n.Account}}),Object.defineProperty(e,"AccountSortBy",{enumerable:!0,get:function(){return n.AccountSortBy}});var i=wn();Object.defineProperty(e,"ChainId",{enumerable:!0,get:function(){return i.ChainId}}),Object.defineProperty(e,"getChainName",{enumerable:!0,get:function(){return i.getChainName}}),Object.defineProperty(e,"getURNProtocol",{enumerable:!0,get:function(){return i.getURNProtocol}});var a=BD();Object.defineProperty(e,"ChainName",{enumerable:!0,get:function(){return a.ChainName}}),Object.defineProperty(e,"getChainId",{enumerable:!0,get:function(){return a.getChainId}});var s=R6();Object.defineProperty(e,"Collection",{enumerable:!0,get:function(){return s.Collection}}),Object.defineProperty(e,"CollectionSortBy",{enumerable:!0,get:function(){return s.CollectionSortBy}});var o=A6();Object.defineProperty(e,"Contract",{enumerable:!0,get:function(){return o.Contract}}),Object.defineProperty(e,"ContractSortBy",{enumerable:!0,get:function(){return o.ContractSortBy}});var c=O6();Object.defineProperty(e,"Item",{enumerable:!0,get:function(){return c.Item}}),Object.defineProperty(e,"ItemSortBy",{enumerable:!0,get:function(){return c.ItemSortBy}});var l=XE();Object.defineProperty(e,"ListingStatus",{enumerable:!0,get:function(){return l.ListingStatus}});var u=N6();Object.defineProperty(e,"MetaTransaction",{enumerable:!0,get:function(){return u.MetaTransaction}});var d=P6();Object.defineProperty(e,"Mint",{enumerable:!0,get:function(){return d.Mint}}),Object.defineProperty(e,"MintSortBy",{enumerable:!0,get:function(){return d.MintSortBy}});var f=Tn();Object.defineProperty(e,"Network",{enumerable:!0,get:function(){return f.Network}});var p=mf();Object.defineProperty(e,"NFTCategory",{enumerable:!0,get:function(){return p.NFTCategory}});var y=UD();Object.defineProperty(e,"NFT",{enumerable:!0,get:function(){return y.NFT}}),Object.defineProperty(e,"NFTSortBy",{enumerable:!0,get:function(){return y.NFTSortBy}});var g=C6();Object.defineProperty(e,"CatalogSortBy",{enumerable:!0,get:function(){return g.CatalogSortBy}}),Object.defineProperty(e,"CatalogSortDirection",{enumerable:!0,get:function(){return g.CatalogSortDirection}});var b=M6();Object.defineProperty(e,"Order",{enumerable:!0,get:function(){return b.Order}}),Object.defineProperty(e,"OrderSortBy",{enumerable:!0,get:function(){return b.OrderSortBy}});var O=j6();Object.defineProperty(e,"ProviderType",{enumerable:!0,get:function(){return O.ProviderType}});var m=ff();Object.defineProperty(e,"Rarity",{enumerable:!0,get:function(){return m.Rarity}});var T=FD();Object.defineProperty(e,"SaleType",{enumerable:!0,get:function(){return T.SaleType}});var I=D6();Object.defineProperty(e,"Sale",{enumerable:!0,get:function(){return I.Sale}}),Object.defineProperty(e,"SaleSortBy",{enumerable:!0,get:function(){return I.SaleSortBy}});var h=L6();Object.defineProperty(e,"RentalStatus",{enumerable:!0,get:function(){return h.RentalStatus}}),Object.defineProperty(e,"RentalsListingSortDirection",{enumerable:!0,get:function(){return h.RentalsListingSortDirection}}),Object.defineProperty(e,"RentalsListingsFilterByCategory",{enumerable:!0,get:function(){return h.RentalsListingsFilterByCategory}}),Object.defineProperty(e,"RentalsListingsSortBy",{enumerable:!0,get:function(){return h.RentalsListingsSortBy}}),Object.defineProperty(e,"RentalListingCreation",{enumerable:!0,get:function(){return h.RentalListingCreation}}),Object.defineProperty(e,"PeriodCreation",{enumerable:!0,get:function(){return h.PeriodCreation}});var v=$6();Object.defineProperty(e,"AnalyticsDayDataSortBy",{enumerable:!0,get:function(){return v.AnalyticsDayDataSortBy}});var E=k6();Object.defineProperty(e,"Store",{enumerable:!0,get:function(){return E.Store}});var N=q6();Object.defineProperty(e,"WearableGender",{enumerable:!0,get:function(){return N.WearableGender}}),Object.defineProperty(e,"GenderFilterOption",{enumerable:!0,get:function(){return N.GenderFilterOption}});var M=B6();Object.defineProperty(e,"World",{enumerable:!0,get:function(){return M.World}}),Object.defineProperty(e,"getWorld",{enumerable:!0,get:function(){return M.getWorld}}),Object.defineProperty(e,"isInsideWorldLimits",{enumerable:!0,get:function(){return M.isInsideWorldLimits}}),r(U6(),e),r(F6(),e),r(H6(),e),r(ox(),e),r(dx(),e)})(ga)),ga}var Ig={},LO;function px(){return LO||(LO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LinkerAuthorization=void 0;const t=Pe();(function(r){r.schema={type:"object",properties:{name:{type:"string"},desc:{type:"string"},startDate:{type:"string",nullable:!0},endDate:{type:"string",nullable:!0},contactInfo:{type:"object",properties:{name:{type:"string"}},required:["name"]},onlyDev:{type:"boolean",nullable:!0},addresses:{type:"array",items:{type:"string"},minItems:1},plots:{type:"array",items:{type:"string"},minItems:1}},required:["name","desc","contactInfo","addresses","plots"]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.LinkerAuthorization||(e.LinkerAuthorization={}))})(Ig)),Ig}var Ea={},Rg={},Lo={},$O;function HD(){if($O)return Lo;$O=1,Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.isInExceptionBlock=void 0;function e(i,a){return i>=62&&i<=150&&a>=151&&a<=158}function t(i,a){return i>=151&&i<=162&&a>=144&&a<=158}function r(i,a){return i>=151&&i<=163&&a>=59&&a<=143}function n(i,a){return e(i,a)||t(i,a)||r(i,a)}return Lo.isInExceptionBlock=n,Lo}var kO;function mx(){return kO||(kO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Parcel=e.PARCEL_LIMITS=void 0;const t=Pe(),r=HD();e.PARCEL_LIMITS={minX:-150,maxX:150,minY:-150,maxY:150},(function(n){n._isInLimits={keyword:"_isInLimits",validate:function(p,y){return!y||typeof y.x!="number"||typeof y.y!="number"?!1:o(y)||(0,r.isInExceptionBlock)(y.x,y.y)},errors:!1},n.schema={type:"object",required:["x","y"],properties:{x:{type:"number"},y:{type:"number"}},_isInLimits:!0,additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema,[n._isInLimits]);function i({x:f,y:p}){return`${f},${p}`}n.parcelToString=i;function a(f){const p=f.match(/^(-?\d+),(-?\d+)$/);if(!p)return null;const[,y,g]=p,b=parseInt(y,10),O=parseInt(g,10);return{x:b,y:O}}n.stringToParcel=a;function s(f){const p=a(f);return p?n.validate(p):!1}n.isParcelStringValid=s;function o(f){const{x:p,y}=f;return p>=e.PARCEL_LIMITS.minX&&p<=e.PARCEL_LIMITS.maxX&&y>=e.PARCEL_LIMITS.minY&&y<=e.PARCEL_LIMITS.maxY}n.isInStandardBounds=o;function c(f){return(0,r.isInExceptionBlock)(f.x,f.y)}n.isExceptionParcel=c;function l(f){return o(f)||c(f)}n.isInBounds=l;function u(f){return n.validate(f)}n.isValid=u;function d(f){const p=a(f);return p?n.validate(p):!1}n.isValidString=d})(e.Parcel||(e.Parcel={}))})(Rg)),Rg}var ba={},qO;function hx(){if(qO)return ba;qO=1,Object.defineProperty(ba,"__esModule",{value:!0}),ba.validateUrlInstance=ba.validateUrl=void 0;const e={allowLocalhost:!1,allowedPorts:[]};function t(p,y=2){let g=p;for(let b=0;b<y;b++)try{g=decodeURIComponent(g)}catch{break}return g.normalize("NFKC")}function r(p){return/[\u0000-\u001F\u007F-\u009F\u202A-\u202E\u2066-\u2069]/.test(p)}function n(p){return!!(p.username||p.password)}function i(p){return/\\/.test(p)}const a=["80","443"];function s(p,y){return!!p.port&&!y.includes(p.port)}function o(p){const y=p.toLowerCase();return!!(y==="localhost"||y.endsWith(".local")||/^(127\.|10\.|172\.(1[6-9]|2[0-9]|3[0-1])\.|192\.168\.|169\.254\.)/.test(y)||y==="::1"||y==="[::1]"||y.startsWith("fe80:")||y.startsWith("fc00:"))}function c(p){if(p.startsWith("//"))return null;try{return{url:new URL(p),wasRelative:!1}}catch{try{return{url:new URL(p,"https://example.com"),wasRelative:!0}}catch{return null}}}function l(p){const y=t(String(p).toLowerCase());return!(r(y)||i(y))}function u(p){return!(!p||p.includes("..")||p.includes("//")||r(p)||i(p))}function d(p,y={}){const g=Object.assign(Object.assign({},e),y),b=[...a,...g.allowedPorts];if(!p||p.length===0||p.length>4096||r(p)||i(p))return!1;const O=t(p);if(r(O)||i(O)||p.startsWith("//"))return!1;const m=c(p);if(!m)return!1;const{url:T,wasRelative:I}=m;if(T.protocol!=="http:"&&T.protocol!=="https:"&&T.protocol!==""||n(T)||i(p)||i(T.href)||!I&&(s(T,b)||!g.allowLocalhost&&T.hostname&&o(T.hostname))||!u(T.pathname)||T.pathname.length>2048)return!1;const h=Array.from(T.searchParams.entries());if(h.length>50||(T.search?T.search.startsWith("?")?T.search.length-1:T.search.length:0)>2048)return!1;for(const[E,N]of h)if(E.length===0||!l(E)||!l(N)||E.length>128||N.length>1024)return!1;return!(T.hash&&r(T.hash))}ba.validateUrl=d;function f(p,y={}){return d(p.toString(),y)}return ba.validateUrlInstance=f,ba}var BO;function yx(){return BO||(BO=1,(function(e){var t=Ea&&Ea.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=Ea&&Ea.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(mx(),e),r(HD(),e),r(hx(),e)})(Ea)),Ea}var UO;function gx(){return UO||(UO=1,(function(e){var t=ln&&ln.__createBinding||(Object.create?(function(s,o,c,l){l===void 0&&(l=c);var u=Object.getOwnPropertyDescriptor(o,c);(!u||("get"in u?!o.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return o[c]}}),Object.defineProperty(s,l,u)}):(function(s,o,c,l){l===void 0&&(l=c),s[l]=o[c]})),r=ln&&ln.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),n=ln&&ln.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var c in s)c!=="default"&&Object.prototype.hasOwnProperty.call(s,c)&&t(o,s,c);return r(o,s),o},i=ln&&ln.__exportStar||function(s,o){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(o,c)&&t(o,s,c)};Object.defineProperty(e,"__esModule",{value:!0}),e.sdk=void 0;const a=n(w6());e.sdk=a,i(Pe(),e),i(fx(),e),i(KE(),e),i(ts(),e),i(px(),e),i(Kc(),e),i(DD(),e),i(qD(),e),i(yx(),e)})(ln)),ln}var FO;function VD(){return FO||(FO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AuthLink=e.AuthLinkType=e.AuthChain=void 0;const t=gx();Object.defineProperty(e,"AuthChain",{enumerable:!0,get:function(){return t.AuthChain}}),Object.defineProperty(e,"AuthLink",{enumerable:!0,get:function(){return t.AuthLink}}),Object.defineProperty(e,"AuthLinkType",{enumerable:!0,get:function(){return t.AuthLinkType}})})(wh)),wh}var HO;function xD(){return HO||(HO=1,(function(e){var t=un&&un.__createBinding||(Object.create?(function(X,Y,U,L){L===void 0&&(L=U);var V=Object.getOwnPropertyDescriptor(Y,U);(!V||("get"in V?!Y.__esModule:V.writable||V.configurable))&&(V={enumerable:!0,get:function(){return Y[U]}}),Object.defineProperty(X,L,V)}):(function(X,Y,U,L){L===void 0&&(L=U),X[L]=Y[U]})),r=un&&un.__setModuleDefault||(Object.create?(function(X,Y){Object.defineProperty(X,"default",{enumerable:!0,value:Y})}):function(X,Y){X.default=Y}),n=un&&un.__importStar||(function(){var X=function(Y){return X=Object.getOwnPropertyNames||function(U){var L=[];for(var V in U)Object.prototype.hasOwnProperty.call(U,V)&&(L[L.length]=V);return L},X(Y)};return function(Y){if(Y&&Y.__esModule)return Y;var U={};if(Y!=null)for(var L=X(Y),V=0;V<L.length;V++)L[V]!=="default"&&t(U,Y,L[V]);return r(U,Y),U}})(),i=un&&un.__importDefault||function(X){return X&&X.__esModule?X:{default:X}};Object.defineProperty(e,"__esModule",{value:!0}),e.parseEmphemeralPayload=e.EIP_1654_SIGNED_ENTITY_VALIDATOR=e.ECDSA_EIP_1654_EPHEMERAL_VALIDATOR=e.ECDSA_PERSONAL_EPHEMERAL_VALIDATOR=e.ECDSA_SIGNED_ENTITY_VALIDATOR=e.SIGNER_VALIDATOR=e.Authenticator=e.createEthereumMessageHash=e.ERC1654_MAGIC_VALUE=e.VALID_SIGNATURE=void 0,e.validateSignature=f,e.isValidAuthChain=p,e.createEIP1271MessageHash=y,e.createSimpleAuthChain=g,e.createAuthChain=b,e.initializeAuthChain=O,e.signPayload=m,e.createSignature=T,e.ownerAddress=I,e.getEphemeralMessage=h,e.getEphemeralSignatureType=k,e.getSignedIdentitySignatureType=B,e.parseEphemeralPayload=F,e.isValidEIP1271Signature=te;const a=n(lf()),s=I5(),o=L5(),c=i($5()),l=k5(),u=VD();e.VALID_SIGNATURE="VALID_SIGNATURE",e.ERC1654_MAGIC_VALUE="1626ba7e";const d=132;async function f(X,Y,U,L=Date.now()){let V="";if(!p(Y))return{ok:!1,message:"ERROR: Malformed authChain"};for(const P of Y){const $=Z(P.type);try{const{nextAuthority:ee}=await $(V,P,{provider:U,dateToValidateExpirationInMillis:L});V=ee||""}catch(ee){const Ee=ee instanceof Error?ee.message:String(ee);return{ok:!1,message:`ERROR. Link type: ${P.type}. ${Ee}.`}}}const W=V===X;return{ok:W,message:W?void 0:`ERROR: Invalid final authority. Expected: ${X}. Current ${V}.`}}function p(X){for(const[Y,U]of X.entries())if(Y===0&&U.type!==u.AuthLinkType.SIGNER||U.type===u.AuthLinkType.SIGNER&&Y!==0)return!1;return!0}function y(X){return(0,a.hexToBytes)((0,a.sha3)((0,a.stringToUtf8Bytes)(X)))}function g(X,Y,U){return[{type:u.AuthLinkType.SIGNER,payload:Y,signature:""},{type:B(U),payload:X,signature:U}]}function b(X,Y,U,L){const V=(0,l.moveMinutes)(U),W=h(Y.address,V),P=T(X,W),$=T(Y,L);return[{type:u.AuthLinkType.SIGNER,payload:X.address,signature:""},{type:u.AuthLinkType.ECDSA_PERSONAL_EPHEMERAL,payload:W,signature:P},{type:u.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY,payload:L,signature:$}]}async function O(X,Y,U,L){const V=(0,l.moveMinutes)(U),W=h(Y.address,V),P=await L(W),$=[{type:u.AuthLinkType.SIGNER,payload:X,signature:""},{type:k(P),payload:W,signature:P}];return{ephemeralIdentity:Y,expiration:V,authChain:$}}function m(X,Y){const U=T(X.ephemeralIdentity,Y);return[...X.authChain,{type:u.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY,payload:Y,signature:U}]}e.createEthereumMessageHash=o.createEthereumMessageHash;function T(X,Y){return(0,o.ethSign)((0,a.hexToBytes)(X.privateKey),Y)}function I(X){return X.length>0&&X[0].type===u.AuthLinkType.SIGNER?X[0].payload:"Invalid-Owner-Address"}function h(X,Y){return`Decentraland Login
|
|
71
|
-
Ephemeral address: ${X}
|
|
72
|
-
Expiration: ${Y.toISOString()}`}e.Authenticator={validateSignature:f,isValidAuthChain:p,createEIP1271MessageHash:y,createSimpleAuthChain:g,createAuthChain:b,initializeAuthChain:O,signPayload:m,createEthereumMessageHash:e.createEthereumMessageHash,createSignature:T,ownerAddress:I,getEphemeralMessage:h};const v=async(X,Y)=>({nextAuthority:Y.payload});e.SIGNER_VALIDATOR=v;const E=async(X,Y)=>{if(!Y.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'ECDSA_SIGNED_ENTITY_VALIDATOR'");const U=(0,o.recoverAddressFromEthSignature)(Y.signature,Y.payload),L=X.toLocaleLowerCase(),V=U.toLocaleLowerCase();if(L===V)return{nextAuthority:Y.payload};throw new Error(`Invalid signer address. Expected: ${L}. Actual: ${V}`)};e.ECDSA_SIGNED_ENTITY_VALIDATOR=E;const N=async(X,Y,U)=>{if(!Y.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'ECDSA_PERSONAL_EPHEMERAL_VALIDATOR'");const{message:L,ephemeralAddress:V,expiration:W}=F(Y.payload),P=(U==null?void 0:U.dateToValidateExpirationInMillis)||Date.now();if(W>P){const $=(0,o.recoverAddressFromEthSignature)(Y.signature,L),ee=X.toLocaleLowerCase(),Ee=$.toLocaleLowerCase();if(ee===Ee)return{nextAuthority:V};throw new Error(`Invalid signer address. Expected: ${ee}. Actual: ${Ee}`)}throw new Error(`Ephemeral key expired. Expiration: ${W}. Test: ${P}`)};e.ECDSA_PERSONAL_EPHEMERAL_VALIDATOR=N;const M=async(X,Y,U)=>{if(!Y.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'ECDSA_EIP_1654_EPHEMERAL_VALIDATOR'");const{message:L,ephemeralAddress:V,expiration:W}=F(Y.payload),P=(U==null?void 0:U.dateToValidateExpirationInMillis)||Date.now();if(W>P&&await ie(U==null?void 0:U.provider,X,L,Y.signature,P))return{nextAuthority:V};throw new Error(`Ephemeral key expired. Expiration: ${W}. Test: ${P}`)};e.ECDSA_EIP_1654_EPHEMERAL_VALIDATOR=M;const q=async(X,Y,U)=>{if(!Y.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'EIP_1654_SIGNED_ENTITY_VALIDATOR'");if(!U)throw new Error("Missing validation options for 'EIP_1654_SIGNED_ENTITY_VALIDATOR'");if(await ie(U.provider,X,Y.payload,Y.signature,U.dateToValidateExpirationInMillis))return{nextAuthority:Y.payload};throw new Error("Invalid validation")};e.EIP_1654_SIGNED_ENTITY_VALIDATOR=q;const H=async(X,Y)=>({error:"Error Validator."});function k(X){return X.length===d?u.AuthLinkType.ECDSA_PERSONAL_EPHEMERAL:u.AuthLinkType.ECDSA_EIP_1654_EPHEMERAL}function B(X){return X.length===d?u.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY:u.AuthLinkType.ECDSA_EIP_1654_SIGNED_ENTITY}function F(X){const Y=X.replace(/\r/g,""),U=Y.split(`
|
|
73
|
-
`),L="Ephemeral address: ",V="Expiration: ";if(U.length<3||!U[1].startsWith(L)||!U[2].startsWith(V))throw new Error(`Invalid ephemeral payload. Expected 3 lines with "${L}" on line 2 and "${V}" on line 3.`);const W=U[1].substring(L.length),P=U[2].substring(V.length),$=Date.parse(P);if(Number.isNaN($))throw new Error(`Invalid expiration date in ephemeral payload: "${P}"`);return{message:Y,ephemeralAddress:W,expiration:$}}e.parseEmphemeralPayload=F;async function te(X,Y,U,L){const V=y(Y),W=(0,a.hexToBytes)(U);let P;try{P=(0,a.bytesToHex)(await X.isValidSignature(V,W,L))}catch{}if(P===e.ERC1654_MAGIC_VALUE)return!0;const $=(0,o.createEthereumMessageHash)(Y);try{P=(0,a.bytesToHex)(await X.isValidSignature($,W,L))}catch{}return P===e.ERC1654_MAGIC_VALUE}async function ie(X,Y,U,L,V){if(!X)throw new Error("Missing provider");const W=new a.default(X),P=await(0,s.SignatureValidator)(W,Y);let $=await te(P,U,L);if($)return!0;const ee=new c.default(W);try{const{block:Ee}=await ee.getDate(V,!1);if($=await te(P,U,L,Ee),$)return!0}catch(Ee){const he=Ee instanceof Error?Ee.message:String(Ee);throw new Error(`Invalid validation. Error: ${he}`)}throw new Error(`Invalid validation. Expected: ${e.ERC1654_MAGIC_VALUE}. Actual: ${$}`)}function Z(X){switch(X){case u.AuthLinkType.SIGNER:return e.SIGNER_VALIDATOR;case u.AuthLinkType.ECDSA_PERSONAL_EPHEMERAL:return e.ECDSA_PERSONAL_EPHEMERAL_VALIDATOR;case u.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY:return e.ECDSA_SIGNED_ENTITY_VALIDATOR;case u.AuthLinkType.ECDSA_EIP_1654_EPHEMERAL:return e.ECDSA_EIP_1654_EPHEMERAL_VALIDATOR;case u.AuthLinkType.ECDSA_EIP_1654_SIGNED_ENTITY:return e.EIP_1654_SIGNED_ENTITY_VALIDATOR;default:return H}}})(un)),un}var ri={},VO;function _x(){return VO||(VO=1,Object.defineProperty(ri,"__esModule",{value:!0}),ri.AUTH_METADATA_HEADER=ri.AUTH_TIMESTAMP_HEADER=ri.AUTH_CHAIN_HEADER_PREFIX=void 0,ri.AUTH_CHAIN_HEADER_PREFIX="x-identity-auth-chain-",ri.AUTH_TIMESTAMP_HEADER="x-identity-timestamp",ri.AUTH_METADATA_HEADER="x-identity-metadata"),ri}var xO;function vx(){return xO||(xO=1,(function(e){var t=aa&&aa.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=aa&&aa.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(xD(),e),r(_x(),e),r(VD(),e)})(aa)),aa}var Ex=vx(),Sa={},pn={},id={exports:{}},ad={exports:{}},GO;function JE(){return GO||(GO=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){if(n==null)throw new TypeError("Expected a string but received a ".concat(n));if(n.constructor.name!=="String")throw new TypeError("Expected a string but received a ".concat(n.constructor.name))}e.exports=t.default,e.exports.default=t.default})(ad,ad.exports)),ad.exports}var sd={exports:{}},zO;function bx(){return zO||(zO=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function r(i){return Object.prototype.toString.call(i)==="[object RegExp]"}function n(i,a){for(var s=0;s<a.length;s++){var o=a[s];if(i===o||r(o)&&o.test(i))return!0}return!1}e.exports=t.default,e.exports.default=t.default})(sd,sd.exports)),sd.exports}var od={exports:{}},WO;function Sx(){return WO||(WO=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(i,a){return i.indexOf(a)!==-1};t.default=r,e.exports=t.default,e.exports.default=t.default})(od,od.exports)),od.exports}var cd={exports:{}},ud={exports:{}},YO;function GD(){return YO||(YO=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function r(i){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},r(i)}function n(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;(r(i)!=="object"||i===null)&&(i={});for(var s in a)typeof i[s]>"u"&&(i[s]=a[s]);return i}e.exports=t.default,e.exports.default=t.default})(ud,ud.exports)),ud.exports}var KO;function Tx(){return KO||(KO=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=i(JE()),n=i(GD());function i(o){return o&&o.__esModule?o:{default:o}}var a={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};function s(o,c){(0,r.default)(o),c=(0,n.default)(c,a),c.allow_trailing_dot&&o[o.length-1]==="."&&(o=o.substring(0,o.length-1)),c.allow_wildcard===!0&&o.indexOf("*.")===0&&(o=o.substring(2));var l=o.split("."),u=l[l.length-1];return c.require_tld&&(l.length<2||!c.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(u)||/\s/.test(u))||!c.allow_numeric_tld&&/^\d+$/.test(u)?!1:l.every(function(d){return!(d.length>63&&!c.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(d)||/[\uff01-\uff5e]/.test(d)||/^-|-$/.test(d)||!c.allow_underscores&&/_/.test(d))})}e.exports=t.default,e.exports.default=t.default})(cd,cd.exports)),cd.exports}var ld={exports:{}},XO;function wx(){return XO||(XO=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var r=n(JE());function n(d){return d&&d.__esModule?d:{default:d}}function i(d){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},i(d)}var a="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",s="(".concat(a,"[.]){3}").concat(a),o=new RegExp("^".concat(s,"$")),c="(?:[0-9a-fA-F]{1,4})",l=new RegExp("^("+"(?:".concat(c,":){7}(?:").concat(c,"|:)|")+"(?:".concat(c,":){6}(?:").concat(s,"|:").concat(c,"|:)|")+"(?:".concat(c,":){5}(?::").concat(s,"|(:").concat(c,"){1,2}|:)|")+"(?:".concat(c,":){4}(?:(:").concat(c,"){0,1}:").concat(s,"|(:").concat(c,"){1,3}|:)|")+"(?:".concat(c,":){3}(?:(:").concat(c,"){0,2}:").concat(s,"|(:").concat(c,"){1,4}|:)|")+"(?:".concat(c,":){2}(?:(:").concat(c,"){0,3}:").concat(s,"|(:").concat(c,"){1,5}|:)|")+"(?:".concat(c,":){1}(?:(:").concat(c,"){0,4}:").concat(s,"|(:").concat(c,"){1,6}|:)|")+"(?::((?::".concat(c,"){0,5}:").concat(s,"|(?::").concat(c,"){1,7}|:))")+")(%[0-9a-zA-Z.]{1,})?$");function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,r.default)(d);var p=(i(f)==="object"?f.version:arguments[1])||"";return p?p.toString()==="4"?o.test(d):p.toString()==="6"?l.test(d):!1:u(d,{version:4})||u(d,{version:6})}e.exports=t.default,e.exports.default=t.default})(ld,ld.exports)),ld.exports}var JO;function Ix(){return JO||(JO=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=O;var r=c(JE()),n=c(bx()),i=c(Sx()),a=c(Tx()),s=c(wx()),o=c(GD());function c(m){return m&&m.__esModule?m:{default:m}}function l(m,T){return y(m)||p(m,T)||d(m,T)||u()}function u(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
74
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d(m,T){if(m){if(typeof m=="string")return f(m,T);var I={}.toString.call(m).slice(8,-1);return I==="Object"&&m.constructor&&(I=m.constructor.name),I==="Map"||I==="Set"?Array.from(m):I==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I)?f(m,T):void 0}}function f(m,T){(T==null||T>m.length)&&(T=m.length);for(var I=0,h=Array(T);I<T;I++)h[I]=m[I];return h}function p(m,T){var I=m==null?null:typeof Symbol<"u"&&m[Symbol.iterator]||m["@@iterator"];if(I!=null){var h,v,E,N,M=[],q=!0,H=!1;try{if(E=(I=I.call(m)).next,T!==0)for(;!(q=(h=E.call(I)).done)&&(M.push(h.value),M.length!==T);q=!0);}catch(k){H=!0,v=k}finally{try{if(!q&&I.return!=null&&(N=I.return(),Object(N)!==N))return}finally{if(H)throw v}}return M}}function y(m){if(Array.isArray(m))return m}var g={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0,max_allowed_length:2084},b=/^\[([^\]]+)\](?::([0-9]+))?$/;function O(m,T){if((0,r.default)(m),!m||/[\s<>]/.test(m)||m.indexOf("mailto:")===0||(T=(0,o.default)(T,g),T.validate_length&&m.length>T.max_allowed_length)||!T.allow_fragments&&(0,i.default)(m,"#")||!T.allow_query_components&&((0,i.default)(m,"?")||(0,i.default)(m,"&")))return!1;var I,h,v,E,N,M,q,H;q=m.split("#"),m=q.shift(),q=m.split("?"),m=q.shift();var k=m.match(/^([a-z][a-z0-9+\-.]*):/i),B=!1,F=function(ue){return B=!0,I=ue.toLowerCase(),T.require_valid_protocol&&T.protocols.indexOf(I)===-1?!1:m.substring(k[0].length)};if(k){var te=k[1],ie=m.substring(k[0].length),Z=ie.slice(0,2)==="//";if(Z){if(m=F(te),m===!1)return!1}else{var X=ie.indexOf("/"),Y=X===-1?ie:ie.substring(0,X),U=Y.indexOf("@");if(U!==-1){var L=Y.substring(0,U),V=/^[a-zA-Z0-9\-_.%:]*$/,W=V.test(L),P=/%[0-9a-fA-F]{2}/.test(L);if(W&&!P){if(T.require_protocol)return!1}else if(m=F(te),m===!1)return!1}else{var $=/^[0-9]/.test(ie);if($){if(T.require_protocol)return!1}else if(m=F(te),m===!1)return!1}}}else if(T.require_protocol)return!1;if(m.slice(0,2)==="//"){if(!B&&!T.allow_protocol_relative_urls)return!1;m=m.slice(2)}if(m==="")return!1;if(q=m.split("/"),m=q.shift(),m===""&&!T.require_host)return!0;if(q=m.split("@"),q.length>1){if(T.disallow_auth||q[0]===""||(h=q.shift(),h.indexOf(":")>=0&&h.split(":").length>2))return!1;var ee=h.split(":"),Ee=l(ee,2),he=Ee[0],Se=Ee[1];if(he===""&&Se==="")return!1}E=q.join("@"),M=null,H=null;var we=E.match(b);if(we?(v="",H=we[1],M=we[2]||null):(q=E.split(":"),v=q.shift(),q.length&&(M=q.join(":"))),M!==null&&M.length>0){if(N=parseInt(M,10),!/^[0-9]+$/.test(M)||N<=0||N>65535)return!1}else if(T.require_port)return!1;return T.host_whitelist?(0,n.default)(v,T.host_whitelist):v===""&&!T.require_host?!0:!(!(0,s.default)(v)&&!(0,a.default)(v,T)&&(!H||!(0,s.default)(H,6))||(v=v||H,T.host_blacklist&&(0,n.default)(v,T.host_blacklist)))}e.exports=t.default,e.exports.default=t.default})(id,id.exports)),id.exports}var Ag={},QO;function zD(){return QO||(QO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.localStorageClearIdentity=e.localStorageStoreIdentity=e.localStorageGetIdentity=e.createMessage=e.SINGLE_SIGN_ON_TARGET=e.Action=void 0;var t;(function(o){o.GET="get",o.STORE="store",o.CLEAR="clear",o.PING="ping"})(t||(e.Action=t={})),e.SINGLE_SIGN_ON_TARGET="single-sign-on";function r(o){return{target:e.SINGLE_SIGN_ON_TARGET,...o}}e.createMessage=r;function n(o){const c=localStorage.getItem(s(o));if(!c)return null;let l;try{l=JSON.parse(c)}catch{return a(o),null}return l.expiration=new Date(l.expiration),l.expiration.getTime()<=Date.now()?(a(o),null):l}e.localStorageGetIdentity=n;function i(o,c){new Date(c.expiration).getTime()>Date.now()&&localStorage.setItem(s(o),JSON.stringify(c))}e.localStorageStoreIdentity=i;function a(o){localStorage.removeItem(s(o))}e.localStorageClearIdentity=a;function s(o){if(!/^0x[a-fA-F0-9]{40}$/.test(o))throw new Error("User must be a valid ethereum address");return`single-sign-on-${o.toLowerCase()}`}})(Ag)),Ag}var ZO;function Rx(){if(ZO)return pn;ZO=1,Object.defineProperty(pn,"__esModule",{value:!0}),pn.clearIdentity=pn.storeIdentity=pn.getIdentity=pn.init=void 0;const e=Ix(),t=zD(),r=t.SINGLE_SIGN_ON_TARGET,n=500,i=5;let a=0,s="";const o={protocols:["https"],require_protocol:!0};function c(b,O={}){if(!(0,e.default)(b,{...o,...O}))throw new Error(`Invalid url: ${b}`);if(s)throw new Error("Already initialized");const m=document.createElement("iframe");m.id=r,m.src=b,m.style.width="0",m.style.height="0",m.style.border="none",m.style.position="absolute",document.body.appendChild(m),s=b}pn.init=c;async function l(b){let O;try{O=(await p(await f(),t.Action.GET,{user:b})).identity??null}catch(m){g(m),O=(0,t.localStorageGetIdentity)(b)}return O}pn.getIdentity=l;async function u(b,O){try{await p(await f(),t.Action.STORE,{user:b,identity:O})}catch(m){g(m),(0,t.localStorageStoreIdentity)(b,O)}}pn.storeIdentity=u;async function d(b){try{await p(await f(),t.Action.CLEAR,{user:b})}catch(O){g(O),(0,t.localStorageClearIdentity)(b)}}pn.clearIdentity=d;async function f(){if(!s)throw new Error("Not initialized");for(let b=0;b<i;b++){const O=document.getElementById(r),m=O==null?void 0:O.contentWindow;if(!m){await y(n);continue}try{await p(m,t.Action.PING,{},n)}catch{continue}return m}throw new Error("Could not get iframe because it is not ready or cannot be communicated with")}async function p(b,O,m,T=0){a++;const I=a;let h=null;const v=new Promise((E,N)=>{h=({data:M})=>{!M||M.target!==t.SINGLE_SIGN_ON_TARGET||M.id!==I||(M.error?N(new Error(M.error)):E(M))},window.addEventListener("message",h)});b.postMessage((0,t.createMessage)({id:I,action:O,...m}),s);try{return await(T?Promise.race([v,new Promise((E,N)=>setTimeout(()=>N(new Error("Did not receive a response in time")),T))]):v)}catch(E){throw E}finally{h&&window.removeEventListener("message",h)}}function y(b){return new Promise(O=>setTimeout(O,b))}function g(b){console.warn("Could not get identity from iframe, falling back to localStorage. Error:",b.message)}return pn}var eN;function Ax(){return eN||(eN=1,(function(e){var t=Sa&&Sa.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=Sa&&Sa.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(Rx(),e),r(zD(),e)})(Sa)),Sa}var Rv=Ax();function Ox(e){const{host:t}=e;return t.endsWith(".org")||t.endsWith(".co")?Vn.PRODUCTION:t.endsWith(".today")||t.endsWith(".net")?Vn.STAGING:t.endsWith(".io")||t.endsWith(".zone")?Vn.DEVELOPMENT:null}function Nx(e){const t=new URLSearchParams(e.search),r=t.get("ENV")||t.get("env");if(r){const n=r.toLowerCase();if(YD(n))return n}return null}var tN={},Vn;(function(e){e.DEVELOPMENT="dev",e.STAGING="stg",e.PRODUCTION="prod"})(Vn||(Vn={}));function WD(){return Object.values(Vn)}function YD(e){return WD().includes(e)}function dd(e){if(YD(e))return e;throw new Error(`Invalid value for DCL_DEFAULT_ENV. Found "${e}", possible values are ${WD().map(t=>`"${t}"`).join(", ")}.`)}function Px(e={}){const{DCL_DEFAULT_ENV:t,REACT_APP_DCL_DEFAULT_ENV:r,VITE_DCL_DEFAULT_ENV:n,GATSBY_DCL_DEFAULT_ENV:i}=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&&i&&t!==i)throw new Error("You have defined both DCL_DEFAULT_ENV and GATSBY_DCL_DEFAULT_ENV with different values");if(r&&i&&r!==i)throw new Error("You have defined both REACT_APP_DCL_DEFAULT_ENV and GATSBY_DCL_DEFAULT_ENV with different values");return t?dd(t):r?dd(r):n?dd(n):i?dd(i):Vn.PRODUCTION}function Cx(e){if(typeof window<"u"){const r=Nx(window.location);if(r)return r;const n=Ox(window.location);if(n)return n}return Px(typeof e>"u"&&typeof _d=="object"&&typeof tN=="object"?tN:e)}function Mx(e,t){const r=Cx(t==null?void 0:t.systemEnvVariables),n=e[r];return{get:(i,a="")=>{if(!n)throw new Error(`Could not find a config for env=${r}`);return i in n?n[i]:a},is:i=>r===i,getEnv:()=>r}}const jx="development",Dx="80002",Lx="https://marketplace-api.decentraland.zone",$x="https://marketplace-api.decentraland.zone",kx="/auth",qx="https://rpc.decentraland.org/amoy",Bx="https://credits.decentraland.zone",Ux="https://builder-api.decentraland.zone",Fx="https://peer.decentraland.zone",Hx="https://decentraland.zone/profile",Vx="",xx="pk_test_51TtW4PBS62I2c52AfO6XxarHwrACg9Zbacgeai73klSZbUleKajNN9gkSwRSlwCZHfWrdKZQyVhH0komsYEDB5ub00j4pzRj4c",Gx="",zx="",Wx={ENVIRONMENT:jx,CHAIN_ID:Dx,MARKETPLACE_SERVER_URL:Lx,NFT_API_URL:$x,AUTH_URL:kx,RPC_URL:qx,CREDITS_SERVER_URL:Bx,BUILDER_SERVER_URL:Ux,PEER_URL:Fx,PROFILE_URL:Hx,SHOP_SERVER_URL:Vx,STRIPE_PUBLISHABLE_KEY:xx,SEGMENT_WRITE_KEY:Gx,SENTRY_DSN:zx},Yx="staging",Kx="80002",Xx="https://marketplace-api.decentraland.zone",Jx="https://marketplace-api.decentraland.zone",Qx="/auth",Zx="https://rpc.decentraland.org/amoy",e8="https://credits.decentraland.zone",t8="https://builder-api.decentraland.zone",r8="https://peer.decentraland.zone",n8="https://decentraland.zone/profile",i8="",a8="pk_test_51TtW4PBS62I2c52AfO6XxarHwrACg9Zbacgeai73klSZbUleKajNN9gkSwRSlwCZHfWrdKZQyVhH0komsYEDB5ub00j4pzRj4c",s8="",o8="",c8={ENVIRONMENT:Yx,CHAIN_ID:Kx,MARKETPLACE_SERVER_URL:Xx,NFT_API_URL:Jx,AUTH_URL:Qx,RPC_URL:Zx,CREDITS_SERVER_URL:e8,BUILDER_SERVER_URL:t8,PEER_URL:r8,PROFILE_URL:n8,SHOP_SERVER_URL:i8,STRIPE_PUBLISHABLE_KEY:a8,SEGMENT_WRITE_KEY:s8,SENTRY_DSN:o8},u8="production",l8="137",d8="https://marketplace-api.decentraland.org",f8="https://marketplace-api.decentraland.org",p8="/auth",m8="https://rpc.decentraland.org/polygon",h8="https://credits.decentraland.org",y8="https://builder-api.decentraland.org",g8="https://peer.decentraland.org",_8="https://decentraland.org/profile",v8="",E8="",b8="",S8="",T8={ENVIRONMENT:u8,CHAIN_ID:l8,MARKETPLACE_SERVER_URL:d8,NFT_API_URL:f8,AUTH_URL:p8,RPC_URL:m8,CREDITS_SERVER_URL:h8,BUILDER_SERVER_URL:y8,PEER_URL:g8,PROFILE_URL:_8,SHOP_SERVER_URL:v8,STRIPE_PUBLISHABLE_KEY:E8,SEGMENT_WRITE_KEY:b8,SENTRY_DSN:S8},w8={},Lr=Mx({[Vn.DEVELOPMENT]:Wx,[Vn.STAGING]:c8,[Vn.PRODUCTION]:T8},{systemEnvVariables:{VITE_DCL_DEFAULT_ENV:"dev"}}),lr=w8,St={marketplaceServerUrl:lr.VITE_MARKETPLACE_SERVER_URL??Lr.get("MARKETPLACE_SERVER_URL"),nftApiUrl:lr.VITE_NFT_API_URL??Lr.get("NFT_API_URL"),chainId:Number(lr.VITE_CHAIN_ID??Lr.get("CHAIN_ID")),authUrl:lr.VITE_AUTH_URL??Lr.get("AUTH_URL"),rpcUrl:lr.VITE_RPC_URL??Lr.get("RPC_URL"),creditsServerUrl:lr.VITE_CREDITS_SERVER_URL??Lr.get("CREDITS_SERVER_URL"),builderServerUrl:lr.VITE_BUILDER_SERVER_URL??Lr.get("BUILDER_SERVER_URL"),peerUrl:lr.VITE_PEER_URL??Lr.get("PEER_URL"),profileUrl:lr.VITE_PROFILE_URL??Lr.get("PROFILE_URL"),shopServerUrl:lr.VITE_SHOP_SERVER_URL??Lr.get("SHOP_SERVER_URL"),stripePublishableKey:lr.VITE_STRIPE_PK??Lr.get("STRIPE_PUBLISHABLE_KEY"),segmentWriteKey:lr.VITE_SEGMENT_WRITE_KEY??Lr.get("SEGMENT_WRITE_KEY"),sentryDsn:lr.VITE_SENTRY_DSN??Lr.get("SENTRY_DSN"),sentryEnvironment:lr.VITE_SENTRY_ENVIRONMENT??(Number(lr.VITE_CHAIN_ID??Lr.get("CHAIN_ID"))===80002?"dev":"prod"),sentryRelease:lr.VITE_SENTRY_RELEASE??`shop@${lr.VITE_APP_VERSION??"0.0.0-dev"}`},I8=744*60;async function KD(){return(await ar(async()=>{const{connection:e}=await import("./index-BAoHOXze.js").then(t=>t.i);return{connection:e}},__vite__mapDeps([6,1,7]))).connection}async function R8(e){if(!e.account)throw new Error("No account returned by the wallet");const t=e.account.toLowerCase(),r=new T2(e.provider),n=r.getSigner();let i=Rv.localStorageGetIdentity(t);if(!i){const a=w2.createRandom();i=await Ex.Authenticator.initializeAuthChain(t,{address:a.address,publicKey:xb(a.publicKey),privateKey:xb(a.privateKey)},I8,s=>n.signMessage(s)),Rv.localStorageStoreIdentity(t,i)}return{address:t,chainId:e.chainId,signer:n,web3Provider:r,identity:i,providerType:e.providerType}}function A8(){const e=encodeURIComponent(window.location.href);window.location.replace(`${St.authUrl}/login?redirectTo=${e}`)}async function O8(){try{const t=await(await KD()).tryPreviousConnection();return!t.account||!Rv.localStorageGetIdentity(t.account.toLowerCase())?null:await R8(t)}catch{return null}}async function N8(){try{await(await KD()).disconnect()}catch{}}const P8=typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`s-${String(performance.now())}`,C8=St.chainId===80002?"amoy":"polygon",M8=St.chainId===80002?"dev":"prod";function QE(){return window.analytics}function j8(){let e;try{e=uo.getState().session}catch{e=null}return{address:(e==null?void 0:e.address)??null,is_signed_in:!!e,session_id:P8,network:C8,app_env:M8}}function _n(e,t={}){const r={...j8(),...t},n=QE();n&&n.track(e,r)}function D8(e,t={}){const r=QE();r&&r.identify(e.toLowerCase(),t)}function L8(){const e=QE();e!=null&&e.reset&&e.reset()}function $8(e){_n("Shop Viewed Page",{page:e})}function rN(e){return e===Ur.ProviderType.MAGIC||e===Ur.ProviderType.MAGIC_TEST?"magic":"wallet"}function k8(e){const t=`shop:seen:${e.toLowerCase()}`;try{return localStorage.getItem(t)?!1:(localStorage.setItem(t,"1"),!0)}catch{return!1}}function Ic(e){return Math.round(e*10)/100}function ZE(e){return!e.tokenId}function IJ(e){return{item_id:e.itemId??null,contract_address:e.contractAddress,token_id:e.tokenId??null,trade_id:e.tradeId??null,price_credits:e.priceCredits,price_usd:Ic(e.priceCredits),rarity:e.rarity,creator:e.creator||null,is_primary:ZE(e)}}function RJ(e){const t=e.reduce((n,i)=>n+i.priceCredits,0),r=e.some(ZE);return{items:e.map(n=>({item_id:n.itemId??null,contract_address:n.contractAddress,token_id:n.tokenId??null,price_usd:Ic(n.priceCredits)})),value_credits:t,value_usd:Ic(t),purchase_type:r?"item":"nft_resale",is_primary:r}}function q8(e){const t=e;if((t==null?void 0:t.code)===4001)return"user_rejected";const r=((t==null?void 0:t.message)??"").toLowerCase();return r.includes("reject")||r.includes("denied")||r.includes("cancel")?"user_rejected":r.includes("insufficient")?"insufficient_credits":r.includes("not for sale")||r.includes("no active listing")||r.includes("sold")?"not_for_sale":"unknown"}function AJ(e){return q8(e)==="user_rejected"}function B8(e){const t=window;if(t.analytics&&t.analytics.invoked)return;const r=t.analytics||[];r.invoked=!0,r.methods=["track","identify","page","group","alias","ready","on","once","off","reset","setAnonymousId"],r.factory=n=>(...i)=>(r.push([n,...i]),r);for(const n of r.methods)r[n]=r.factory(n);r.load=n=>{const i=document.createElement("script");i.async=!0,i.src=`https://cdn.segment.com/analytics.js/v1/${encodeURIComponent(n)}/analytics.min.js`,document.head.appendChild(i)},t.analytics=r,r.load(e),r.page()}let nN=!1;function U8(){if(nN)return;nN=!0;const e=St.segmentWriteKey;e&&B8(e)}let Av=null;function F8(e){Av=e}function iN(e,t={}){const r=typeof t.flow=="string"?`error in ${t.flow}`:"error";if(console.error(`[shop] ${r}`,e,t),Av)try{Av(e,t)}catch{}}const H8=/0x[a-fA-F0-9]{130}\b/g,V8=/0x[a-fA-F0-9]{64}\b/g,x8=/(sk_[a-z]+_[A-Za-z0-9]+|pi_[A-Za-z0-9]+_secret_[A-Za-z0-9]+|[A-Za-z0-9-]*secret[A-Za-z0-9-]*)/gi,G8=/(signature|private|identity|authchain|auth_chain|ephemeral|token|secret|password|cookie|authorization)/i;function $o(e){return e.replace(H8,"<signature>").replace(x8,"<secret>").replace(V8,"<hex32>")}function z8(e){var r;e.message&&(e.message=$o(e.message));for(const n of((r=e.exception)==null?void 0:r.values)??[])n.value&&(n.value=$o(n.value));for(const n of e.breadcrumbs??[])n.message&&(n.message=$o(n.message));e.request&&(e.request.url&&(e.request.url=$o(e.request.url)),delete e.request.cookies,delete e.request.headers);const t=n=>{if(n)for(const i of Object.keys(n)){if(G8.test(i)){delete n[i];continue}typeof n[i]=="string"&&(n[i]=$o(n[i]))}};return t(e.tags),t(e.extra),e}let aN=!1;function W8(){if(aN)return;const e=St.sentryDsn;if(!e)return;aN=!0,j4({dsn:e,environment:St.sentryEnvironment,release:St.sentryRelease,integrations:[new EF],tracesSampleRate:.01,sendDefaultPii:!1,ignoreErrors:[/user rejected/i,/user denied/i,"ResizeObserver loop limit exceeded"],beforeSend:z8});const t=Y8();t&&Vq({id:t}),F8((r,n)=>mE(r,{extra:n}))}function Y8(){var e;try{return((e=uo.getState().session)==null?void 0:e.address)??null}catch{return null}}const sN="shop-favorites";let Sd=null;const XD=e=>e?`${sN}:${e.toLowerCase()}`:sN;function oN(e){var t;try{const r=localStorage.getItem(XD(e));if(!r)return{};const n=JSON.parse(r);if(!n||typeof n!="object")return{};const i=n,a="state"in n&&((t=i.state)!=null&&t.items)?i.state.items:n;return a&&typeof a=="object"?a:{}}catch{return{}}}function cN(e){try{localStorage.setItem(XD(Sd),JSON.stringify(e))}catch{}}const qd=Ja(e=>({items:oN(Sd),toggle:t=>e(r=>{const n={...r.items};return n[t.id]?delete n[t.id]:n[t.id]=t,cN(n),{items:n}}),remove:t=>e(r=>{const n={...r.items};return delete n[t],cN(n),{items:n}}),reloadFor:t=>{Sd=t?t.toLowerCase():null,e({items:oN(Sd)})}})),uN="shop:followed-creators:v1",K8=200;let eb=null;const JD=e=>e?`${uN}:${e.toLowerCase()}`:uN;function lN(){try{const e=localStorage.getItem(JD(eb));if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(r=>typeof r=="string"):[]}catch{return[]}}function dN(e){try{localStorage.setItem(JD(eb),JSON.stringify(e))}catch{}}const Ov=Ja((e,t)=>({followed:lN(),isFollowing:r=>t().followed.includes(r.toLowerCase()),follow:r=>{const n=r.toLowerCase();if(!n||t().followed.includes(n))return;const i=[n,...t().followed].slice(0,K8);dN(i),e({followed:i}),_n("Shop Followed Creator",{creator_address:n,following_count:i.length})},unfollow:r=>{const n=r.toLowerCase();if(!t().followed.includes(n))return;const i=t().followed.filter(a=>a!==n);dN(i),e({followed:i}),_n("Shop Unfollowed Creator",{creator_address:n,following_count:i.length})},toggle:r=>t().isFollowing(r)?t().unfollow(r):t().follow(r),reloadFor:r=>{eb=r?r.toLowerCase():null,e({followed:lN()})}})),Og="shop:signing_in",uo=Ja(e=>({session:null,connecting:!1,error:null,signIn:()=>{try{sessionStorage.setItem(Og,"1")}catch{}A8()},disconnect:async()=>{_n("Shop Signed Out");try{await N8()}catch(t){iN(t,{flow:"wallet",step:"disconnect"})}L8(),qd.getState().reloadFor(null),Ov.getState().reloadFor(null),e({session:null})},restore:async()=>{let t;try{t=await O8()}catch(n){iN(n,{flow:"wallet",step:"restore"});return}if(!t)return;e({session:t}),qd.getState().reloadFor(t.address),Ov.getState().reloadFor(t.address),D8(t.address,{sign_in_method:rN(t.providerType)});let r=!1;try{r=sessionStorage.getItem(Og)==="1",r&&sessionStorage.removeItem(Og)}catch{}r&&_n("Shop Signed In",{method:rN(t.providerType),is_new_user:k8(t.address)})}}));async function QD(e){var n;const t=await fetch(`${St.peerUrl}/lambdas/profiles/${e.toLowerCase()}`);if(!t.ok)return;const r=await t.json();return(n=r==null?void 0:r.avatars)==null?void 0:n[0]}function hf(e){return li({queryKey:["profile",e],enabled:!!e,staleTime:5*6e4,queryFn:()=>QD(e)})}var ni={},Ng={},fN;function ZD(){return fN||(fN=1,Object.defineProperty(Ng,"__esModule",{value:!0})),Ng}var ii={},jn={},fs={},Ta={},pN={},ko,mN;function In(){if(mN)return ko;mN=1;var e=function(t){return t&&t.Math===Math&&t};return ko=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof U_=="object"&&U_)||e(typeof ko=="object"&&ko)||(function(){return this})()||Function("return this")(),ko}var Pg,hN;function rs(){return hN||(hN=1,Pg=function(e){try{return!!e()}catch{return!0}}),Pg}var Cg,yN;function yf(){if(yN)return Cg;yN=1;var e=rs();return Cg=!e(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),Cg}var Mg,gN;function X8(){if(gN)return Mg;gN=1;var e=yf(),t=Function.prototype,r=t.apply,n=t.call;return Mg=typeof Reflect=="object"&&Reflect.apply||(e?n.bind(r):function(){return n.apply(r,arguments)}),Mg}var jg,_N;function lo(){if(_N)return jg;_N=1;var e=yf(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return jg=e?n:function(i){return function(){return r.apply(i,arguments)}},jg}var Dg,vN;function eL(){if(vN)return Dg;vN=1;var e=lo(),t=e({}.toString),r=e("".slice);return Dg=function(n){return r(t(n),8,-1)},Dg}var Lg,EN;function tL(){if(EN)return Lg;EN=1;var e=eL(),t=lo();return Lg=function(r){if(e(r)==="Function")return t(r)},Lg}var $g,bN;function ns(){if(bN)return $g;bN=1;var e=typeof document=="object"&&document.all;return $g=typeof e>"u"&&e!==void 0?function(t){return typeof t=="function"||t===e}:function(t){return typeof t=="function"},$g}var kg={},qg,SN;function Xc(){if(SN)return qg;SN=1;var e=rs();return qg=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),qg}var Bg,TN;function tb(){if(TN)return Bg;TN=1;var e=yf(),t=Function.prototype.call;return Bg=e?t.bind(t):function(){return t.apply(t,arguments)},Bg}var Ug={},wN;function J8(){if(wN)return Ug;wN=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return Ug.f=r?function(i){var a=t(this,i);return!!a&&a.enumerable}:e,Ug}var Fg,IN;function rL(){return IN||(IN=1,Fg=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}),Fg}var Hg,RN;function Q8(){if(RN)return Hg;RN=1;var e=lo(),t=rs(),r=eL(),n=Object,i=e("".split);return Hg=t(function(){return!n("z").propertyIsEnumerable(0)})?function(a){return r(a)==="String"?i(a,""):n(a)}:n,Hg}var Vg,AN;function nL(){return AN||(AN=1,Vg=function(e){return e==null}),Vg}var xg,ON;function iL(){if(ON)return xg;ON=1;var e=nL(),t=TypeError;return xg=function(r){if(e(r))throw new t("Can't call method on "+r);return r},xg}var Gg,NN;function Z8(){if(NN)return Gg;NN=1;var e=Q8(),t=iL();return Gg=function(r){return e(t(r))},Gg}var zg,PN;function gf(){if(PN)return zg;PN=1;var e=ns();return zg=function(t){return typeof t=="object"?t!==null:e(t)},zg}var Wg,CN;function aL(){return CN||(CN=1,Wg={}),Wg}var Yg,MN;function eG(){if(MN)return Yg;MN=1;var e=aL(),t=In(),r=ns(),n=function(i){return r(i)?i:void 0};return Yg=function(i,a){return arguments.length<2?n(e[i])||n(t[i]):e[i]&&e[i][a]||t[i]&&t[i][a]},Yg}var Kg,jN;function tG(){if(jN)return Kg;jN=1;var e=lo();return Kg=e({}.isPrototypeOf),Kg}var Xg,DN;function rG(){if(DN)return Xg;DN=1;var e=In(),t=e.navigator,r=t&&t.userAgent;return Xg=r?String(r):"",Xg}var Jg,LN;function nG(){if(LN)return Jg;LN=1;var e=In(),t=rG(),r=e.process,n=e.Deno,i=r&&r.versions||n&&n.version,a=i&&i.v8,s,o;return a&&(s=a.split("."),o=s[0]>0&&s[0]<4?1:+(s[0]+s[1])),!o&&t&&(s=t.match(/Edge\/(\d+)/),(!s||s[1]>=74)&&(s=t.match(/Chrome\/(\d+)/),s&&(o=+s[1]))),Jg=o,Jg}var Qg,$N;function sL(){if($N)return Qg;$N=1;var e=nG(),t=rs(),r=In(),n=r.String;return Qg=!!Object.getOwnPropertySymbols&&!t(function(){var i=Symbol("symbol detection");return!n(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&e&&e<41}),Qg}var Zg,kN;function oL(){if(kN)return Zg;kN=1;var e=sL();return Zg=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Zg}var e_,qN;function cL(){if(qN)return e_;qN=1;var e=eG(),t=ns(),r=tG(),n=oL(),i=Object;return e_=n?function(a){return typeof a=="symbol"}:function(a){var s=e("Symbol");return t(s)&&r(s.prototype,i(a))},e_}var t_,BN;function iG(){if(BN)return t_;BN=1;var e=String;return t_=function(t){try{return e(t)}catch{return"Object"}},t_}var r_,UN;function uL(){if(UN)return r_;UN=1;var e=ns(),t=iG(),r=TypeError;return r_=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")},r_}var n_,FN;function aG(){if(FN)return n_;FN=1;var e=uL(),t=nL();return n_=function(r,n){var i=r[n];return t(i)?void 0:e(i)},n_}var i_,HN;function sG(){if(HN)return i_;HN=1;var e=tb(),t=ns(),r=gf(),n=TypeError;return i_=function(i,a){var s,o;if(a==="string"&&t(s=i.toString)&&!r(o=e(s,i))||t(s=i.valueOf)&&!r(o=e(s,i))||a!=="string"&&t(s=i.toString)&&!r(o=e(s,i)))return o;throw new n("Can't convert object to primitive value")},i_}var a_={exports:{}},s_,VN;function oG(){return VN||(VN=1,s_=!0),s_}var o_,xN;function cG(){if(xN)return o_;xN=1;var e=In(),t=Object.defineProperty;return o_=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch{e[r]=n}return n},o_}var GN;function uG(){if(GN)return a_.exports;GN=1;var e=oG(),t=In(),r=cG(),n="__core-js_shared__",i=a_.exports=t[n]||r(n,{});return(i.versions||(i.versions=[])).push({version:"3.49.0",mode:e?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"}),a_.exports}var c_,zN;function lG(){if(zN)return c_;zN=1;var e=uG();return c_=function(t,r){return e[t]||(e[t]=r||{})},c_}var u_,WN;function dG(){if(WN)return u_;WN=1;var e=iL(),t=Object;return u_=function(r){return t(e(r))},u_}var l_,YN;function rb(){if(YN)return l_;YN=1;var e=lo(),t=dG(),r=e({}.hasOwnProperty);return l_=Object.hasOwn||function(i,a){return r(t(i),a)},l_}var d_,KN;function fG(){if(KN)return d_;KN=1;var e=lo(),t=0,r=Math.random(),n=e(1.1.toString);return d_=function(i){return"Symbol("+(i===void 0?"":i)+")_"+n(++t+r,36)},d_}var f_,XN;function pG(){if(XN)return f_;XN=1;var e=In(),t=lG(),r=rb(),n=fG(),i=sL(),a=oL(),s=e.Symbol,o=t("wks"),c=a?s.for||s:s&&s.withoutSetter||n;return f_=function(l){return r(o,l)||(o[l]=i&&r(s,l)?s[l]:c("Symbol."+l)),o[l]},f_}var p_,JN;function mG(){if(JN)return p_;JN=1;var e=tb(),t=gf(),r=cL(),n=aG(),i=sG(),a=pG(),s=TypeError,o=a("toPrimitive");return p_=function(c,l){if(!t(c)||r(c))return c;var u=n(c,o),d;if(u){if(l===void 0&&(l="default"),d=e(u,c,l),!t(d)||r(d))return d;throw new s("Can't convert object to primitive value")}return l===void 0&&(l="number"),i(c,l)},p_}var m_,QN;function lL(){if(QN)return m_;QN=1;var e=mG(),t=cL();return m_=function(r){var n=e(r,"string");return t(n)?n:n+""},m_}var h_,ZN;function hG(){if(ZN)return h_;ZN=1;var e=In(),t=gf(),r=e.document,n=t(r)&&t(r.createElement);return h_=function(i){return n?r.createElement(i):{}},h_}var y_,eP;function dL(){if(eP)return y_;eP=1;var e=Xc(),t=rs(),r=hG();return y_=!e&&!t(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),y_}var tP;function yG(){if(tP)return kg;tP=1;var e=Xc(),t=tb(),r=J8(),n=rL(),i=Z8(),a=lL(),s=rb(),o=dL(),c=Object.getOwnPropertyDescriptor;return kg.f=e?c:function(u,d){if(u=i(u),d=a(d),o)try{return c(u,d)}catch{}if(s(u,d))return n(!t(r.f,u,d),u[d])},kg}var g_,rP;function gG(){if(rP)return g_;rP=1;var e=rs(),t=ns(),r=/#|\.prototype\./,n=function(c,l){var u=a[i(c)];return u===o?!0:u===s?!1:t(l)?e(l):!!l},i=n.normalize=function(c){return String(c).replace(r,".").toLowerCase()},a=n.data={},s=n.NATIVE="N",o=n.POLYFILL="P";return g_=n,g_}var __,nP;function _G(){if(nP)return __;nP=1;var e=tL(),t=uL(),r=yf(),n=e(e.bind);return __=function(i,a){return t(i),a===void 0?i:r?n(i,a):function(){return i.apply(a,arguments)}},__}var v_={},E_,iP;function vG(){if(iP)return E_;iP=1;var e=Xc(),t=rs();return E_=e&&t(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),E_}var b_,aP;function EG(){if(aP)return b_;aP=1;var e=gf(),t=String,r=TypeError;return b_=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")},b_}var sP;function bG(){if(sP)return v_;sP=1;var e=Xc(),t=dL(),r=vG(),n=EG(),i=lL(),a=TypeError,s=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c="enumerable",l="configurable",u="writable";return v_.f=e?r?function(f,p,y){if(n(f),p=i(p),n(y),typeof f=="function"&&p==="prototype"&&"value"in y&&u in y&&!y[u]){var g=o(f,p);g&&g[u]&&(f[p]=y.value,y={configurable:l in y?y[l]:g[l],enumerable:c in y?y[c]:g[c],writable:!1})}return s(f,p,y)}:s:function(f,p,y){if(n(f),p=i(p),n(y),t)try{return s(f,p,y)}catch{}if("get"in y||"set"in y)throw new a("Accessors not supported");return"value"in y&&(f[p]=y.value),f},v_}var S_,oP;function SG(){if(oP)return S_;oP=1;var e=Xc(),t=bG(),r=rL();return S_=e?function(n,i,a){return t.f(n,i,r(1,a))}:function(n,i,a){return n[i]=a,n},S_}var T_,cP;function TG(){if(cP)return T_;cP=1;var e=In(),t=X8(),r=tL(),n=ns(),i=yG().f,a=gG(),s=aL(),o=_G(),c=SG(),l=rb(),u=function(d){var f=function(p,y,g){if(this instanceof f){switch(arguments.length){case 0:return new d;case 1:return new d(p);case 2:return new d(p,y)}return new d(p,y,g)}return t(d,this,arguments)};return f.prototype=d.prototype,f};return T_=function(d,f){var p=d.target,y=d.global,g=d.stat,b=d.proto,O=y?e:g?e[p]:e[p]&&e[p].prototype,m=y?s:s[p]||c(s,p,{})[p],T=m.prototype,I,h,v,E,N,M,q,H,k;for(E in f)I=a(y?E:p+(g?".":"#")+E,d.forced),h=!I&&O&&l(O,E),M=m[E],h&&(d.dontCallGetSet?(k=i(O,E),q=k&&k.value):q=O[E]),N=h&&q?q:f[E],!(!I&&!b&&typeof M==typeof N)&&(d.bind&&h?H=o(N,e):d.wrap&&h?H=u(N):b&&n(N)?H=r(N):H=N,(d.sham||N&&N.sham||M&&M.sham)&&c(H,"sham",!0),c(m,E,H),b&&(v=p+"Prototype",l(s,v)||c(s,v,{}),c(s[v],E,N),d.real&&T&&(I||!T[E])&&c(T,E,N)))},T_}var uP;function wG(){if(uP)return pN;uP=1;var e=TG(),t=In();return e({global:!0,forced:t.globalThis!==t},{globalThis:t}),pN}var w_,lP;function IG(){return lP||(lP=1,wG(),w_=In()),w_}var I_,dP;function RG(){if(dP)return I_;dP=1;var e=IG();return I_=e,I_}var fP;function fL(){if(fP)return Ta;fP=1;var e=Ta&&Ta.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Ta,"__esModule",{value:!0}),Ta.getImplementation=void 0;var t=e(RG());function r(n,i){var a,s=(a=n[i])!==null&&a!==void 0?a:t.default[i];if(!s)throw new ReferenceError('"'+i+'" is not defined');return s}return Ta.getImplementation=r,Ta}var pP;function pL(){if(pP)return fs;pP=1;var e=fs&&fs.__values||function(o){var c=typeof Symbol=="function"&&Symbol.iterator,l=c&&o[c],u=0;if(l)return l.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&u>=o.length&&(o=void 0),{value:o&&o[u++],done:!o}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(fs,"__esModule",{value:!0});var t=xD(),r=fL(),n="x-identity-auth-chain-",i="x-identity-timestamp",a="x-identity-metadata";function s(o){o===void 0&&(o={});var c=(0,r.getImplementation)(o,"Headers");return function(u,d,f,p,y){var g,b,O=new c(y),m=String(Date.now()),T=JSON.stringify(p),I=[d,f,m,T].join(":").toLowerCase(),h=0,v=t.Authenticator.signPayload(u,I);try{for(var E=e(v),N=E.next();!N.done;N=E.next()){var M=N.value;O.set(n+h,JSON.stringify(M)),h++}}catch(q){g={error:q}}finally{try{N&&!N.done&&(b=E.return)&&b.call(E)}finally{if(g)throw g.error}}return O.set(i,m),O.set(a,T),O}}return fs.default=s,fs}var mP;function mL(){if(mP)return jn;mP=1;var e=jn&&jn.__assign||function(){return e=Object.assign||function(s){for(var o,c=1,l=arguments.length;c<l;c++){o=arguments[c];for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(s[u]=o[u])}return s},e.apply(this,arguments)},t=jn&&jn.__rest||function(s,o){var c={};for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&o.indexOf(l)<0&&(c[l]=s[l]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,l=Object.getOwnPropertySymbols(s);u<l.length;u++)o.indexOf(l[u])<0&&Object.prototype.propertyIsEnumerable.call(s,l[u])&&(c[l[u]]=s[l[u]]);return c},r=jn&&jn.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(jn,"__esModule",{value:!0});var n=r(pL()),i=fL();function a(s){s===void 0&&(s={});var o=(0,n.default)(s),c=(0,i.getImplementation)(s,"URL"),l=(0,i.getImplementation)(s,"Request"),u=(0,i.getImplementation)(s,"fetch");return function(f,p){if(p&&p.identity){var y=p.identity,g=p.metadata,b=t(p,["identity","metadata"]);if(typeof f=="string"||f instanceof c||globalThis.URL&&f instanceof globalThis.URL){var O=typeof f=="string"?new c(f):f,m=new l(O.toString(),e(e({},b),{headers:o(y,p.method||"GET",O.pathname,g||{},b==null?void 0:b.headers)}));return u(m)}var T=new c(f.url),I=new l(f),h=o(y,f.method||"GET",T.pathname,g||{});return h.forEach(function(v,E){I.headers.set(E,v)}),u(I)}return u(f,p)}}return jn.default=a,jn}var hP;function AG(){return hP||(hP=1,(function(e){var t=ii&&ii.__createBinding||(Object.create?(function(s,o,c,l){l===void 0&&(l=c),Object.defineProperty(s,l,{enumerable:!0,get:function(){return o[c]}})}):(function(s,o,c,l){l===void 0&&(l=c),s[l]=o[c]})),r=ii&&ii.__exportStar||function(s,o){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(o,c)&&t(o,s,c)},n=ii&&ii.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.signedHeaderFactory=e.signedFetchFactory=void 0,r(ZD(),e);var i=mL();Object.defineProperty(e,"signedFetchFactory",{enumerable:!0,get:function(){return n(i).default}});var a=pL();Object.defineProperty(e,"signedHeaderFactory",{enumerable:!0,get:function(){return n(a).default}})})(ii)),ii}var yP;function OG(){return yP||(yP=1,(function(e){var t=ni&&ni.__createBinding||(Object.create?(function(a,s,o,c){c===void 0&&(c=o),Object.defineProperty(a,c,{enumerable:!0,get:function(){return s[o]}})}):(function(a,s,o,c){c===void 0&&(c=o),a[c]=s[o]})),r=ni&&ni.__exportStar||function(a,s){for(var o in a)o!=="default"&&!Object.prototype.hasOwnProperty.call(s,o)&&t(s,a,o)},n=ni&&ni.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),r(ZD(),e),r(AG(),e);var i=n(mL());e.default=(0,i.default)()})(ni)),ni}var NG=OG();const _f=Vd(NG);async function PG(e,t){const r=`${St.creditsServerUrl}/users/${e.toLowerCase()}/credits`,n=await _f(r,{method:"GET",identity:t,metadata:{}});if(!n.ok)throw new Error(`getUserCredits ${n.status}: ${await n.text()}`);return n.json()}async function CG(e,t){const{usd:r}=await PG(e,t);return r??{balanceCents:0,credits:0}}async function OJ(e,t,r){const n=`${St.creditsServerUrl}/credits/authorize`,i=await _f(n,{method:"POST",identity:e,metadata:{},headers:{"Content-Type":"application/json"},body:JSON.stringify({usdPriceCents:t,tradeId:r})});if(!i.ok)throw new Error(`authorizeUsdCredit ${i.status}: ${await i.text()}`);return i.json()}async function NJ(e,t,r){const n=new URLSearchParams;n.set("status","all"),n.set("limit",String(r.first)),(r==null?void 0:r.skip)!=null&&n.set("offset",String(r.skip));const i=n.toString(),a=`${St.creditsServerUrl}/users/${e.toLowerCase()}/purchases${i?`?${i}`:""}`,s=await _f(a,{method:"GET",identity:t,metadata:{}});if(!s.ok)throw new Error(`fetchUserPurchases ${s.status}: ${await s.text()}`);const o=await s.json(),c=o.purchases??[],l=(r==null?void 0:r.skip)??0,u=r==null?void 0:r.first,d=typeof o.total=="number"?o.total:l+c.length+(c.length>=u?1:0);return{items:c,total:d}}async function PJ(e,t){if(t.length===0)return 0;const r=`${St.creditsServerUrl}/credits/authorize/cancel`,n=await _f(r,{method:"POST",identity:e,metadata:{},headers:{"Content-Type":"application/json"},body:JSON.stringify({salts:t})});if(!n.ok)throw new Error(`cancelUsdIntents ${n.status}: ${await n.text()}`);return(await n.json()).released??0}async function CJ(e,t=1e3){const r=await fetch(`${St.creditsServerUrl}/dev/mint-usd`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({address:e.toLowerCase(),usdCents:t})});if(!r.ok)throw new Error(`devMintUsd ${r.status}: ${await r.text()}`);return r.json()}function MG(e){return li({queryKey:["usd-balance",e==null?void 0:e.address],enabled:!!e,staleTime:3e4,queryFn:async()=>CG(e.address,e.identity)})}function jG(e,t){return t?"—":(e==null?void 0:e.credits)??0}const DG=e=>Ic(e.reduce((t,r)=>t+r.priceCredits,0)),hn=Ja((e,t)=>({items:[],open:!1,fittingOpen:!1,add:(r,n="grid")=>{const i=t().items.some(s=>s.id===r.id);if(e(s=>i?{open:!0}:{items:[...s.items,r],open:!0}),i)return;const a=t().items;_n("Shop Added To Cart",{item_id:r.itemId??null,contract_address:r.contractAddress,price_credits:r.priceCredits,price_usd:Ic(r.priceCredits),is_primary:!r.tokenId,source:n,cart_size:a.length,cart_value_usd:DG(a)})},remove:r=>{const n=t().items.find(i=>i.id===r);e(i=>({items:i.items.filter(a=>a.id!==r)})),n&&_n("Shop Removed From Cart",{item_id:n.itemId??null,cart_size:t().items.length})},clear:()=>e({items:[]}),setOpen:r=>e({open:r}),setFittingOpen:r=>e(r?{fittingOpen:r,open:!1}:{fittingOpen:r})})),Ks={name:"credits",nameSingular:"credit",symbol:"◈",iconClass:"ico-credits"};function MJ(e){return`${e} ${e===1?Ks.nameSingular:Ks.name}`}const LG=Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2});function fd(e){return LG.format(e)}function R_(e){return e.toLocaleString("en")}function yn({className:e}){return C.jsx("span",{className:`ico ${Ks.iconClass}${e?` ${e}`:""}`,"aria-hidden":!0})}function $G(){const e=hn(s=>s.items),t=hn(s=>s.open),r=hn(s=>s.setOpen),n=hn(s=>s.setFittingOpen),i=ve.useRef(null),a=e.reduce((s,o)=>s+o.priceCredits,0);return ve.useEffect(()=>{if(!t)return;const s=setTimeout(()=>r(!1),4500),o=c=>{i.current&&!i.current.contains(c.target)&&r(!1)};return document.addEventListener("mousedown",o),()=>{clearTimeout(s),document.removeEventListener("mousedown",o)}},[t,e.length,r]),!t||e.length===0?null:C.jsxs("div",{className:"cart-pop",ref:i,role:"dialog","aria-label":"Cart",children:[C.jsxs("div",{className:"cart-pop__head",children:[C.jsx("span",{className:"ico ico-cart","aria-hidden":!0})," Added to cart"]}),C.jsx("div",{className:"cart-pop__list",children:e.slice(-4).map(s=>C.jsxs("div",{className:"cart-pop__row",children:[C.jsx("div",{className:"cart-pop__thumb",children:s.thumbnail?C.jsx("img",{src:s.thumbnail,alt:s.name}):null}),C.jsx("div",{className:"cart-pop__name",title:s.name,children:s.name}),C.jsxs("div",{className:"cart-pop__price",children:[C.jsx(yn,{className:"ccy-mark"})," ",s.priceCredits]})]},s.id))}),C.jsxs("div",{className:"cart-pop__foot",children:[C.jsxs("span",{className:"cart-pop__total",children:[e.length," item",e.length>1?"s":""," ·"," ",C.jsxs("strong",{children:[C.jsx(yn,{className:"ccy-mark"})," ",a]})]}),C.jsxs("div",{className:"cart-pop__actions",children:[C.jsx("button",{className:"btn btn--ghost btn--sm",onClick:()=>n(!0),children:"Try on"}),C.jsx(Ra,{className:"btn btn--purple btn--sm",to:"/cart",onClick:()=>r(!1),children:"Checkout"})]})]})]})}var qo={},A_={exports:{}},gP;function nb(){return gP||(gP=1,(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(A_)),A_.exports}var O_={};function wt(){return wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wt.apply(null,arguments)}function Ii(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 hL(e){if(ve.isValidElement(e)||!Ii(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=hL(e[r])}),t}function xn(e,t,r={clone:!0}){const n=r.clone?wt({},e):e;return Ii(e)&&Ii(t)&&Object.keys(t).forEach(i=>{ve.isValidElement(t[i])?n[i]=t[i]:Ii(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Ii(e[i])?n[i]=xn(e[i],t[i],r):r.clone?n[i]=Ii(t[i])?hL(t[i]):t[i]:n[i]=t[i]}),n}const kG=Object.freeze(Object.defineProperty({__proto__:null,default:xn,isPlainObject:Ii},Symbol.toStringTag,{value:"Module"}));function Rc(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 qG=Object.freeze(Object.defineProperty({__proto__:null,default:Rc},Symbol.toStringTag,{value:"Module"}));var N_={exports:{}},Ot={};/**
|
|
75
|
-
* @license React
|
|
76
|
-
* react-is.production.js
|
|
77
|
-
*
|
|
78
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
79
|
-
*
|
|
80
|
-
* This source code is licensed under the MIT license found in the
|
|
81
|
-
* LICENSE file in the root directory of this source tree.
|
|
82
|
-
*/var _P;function BG(){if(_P)return Ot;_P=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function y(g){if(typeof g=="object"&&g!==null){var b=g.$$typeof;switch(b){case e:switch(g=g.type,g){case r:case i:case n:case c:case l:case f:return g;default:switch(g=g&&g.$$typeof,g){case s:case o:case d:case u:return g;case a:return g;default:return b}}case t:return b}}}return Ot.ContextConsumer=a,Ot.ContextProvider=s,Ot.Element=e,Ot.ForwardRef=o,Ot.Fragment=r,Ot.Lazy=d,Ot.Memo=u,Ot.Portal=t,Ot.Profiler=i,Ot.StrictMode=n,Ot.Suspense=c,Ot.SuspenseList=l,Ot.isContextConsumer=function(g){return y(g)===a},Ot.isContextProvider=function(g){return y(g)===s},Ot.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},Ot.isForwardRef=function(g){return y(g)===o},Ot.isFragment=function(g){return y(g)===r},Ot.isLazy=function(g){return y(g)===d},Ot.isMemo=function(g){return y(g)===u},Ot.isPortal=function(g){return y(g)===t},Ot.isProfiler=function(g){return y(g)===i},Ot.isStrictMode=function(g){return y(g)===n},Ot.isSuspense=function(g){return y(g)===c},Ot.isSuspenseList=function(g){return y(g)===l},Ot.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===i||g===n||g===c||g===l||typeof g=="object"&&g!==null&&(g.$$typeof===d||g.$$typeof===u||g.$$typeof===s||g.$$typeof===a||g.$$typeof===o||g.$$typeof===p||g.getModuleId!==void 0)},Ot.typeOf=y,Ot}var vP;function UG(){return vP||(vP=1,N_.exports=BG()),N_.exports}var EP=UG();const FG=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function yL(e){const t=`${e}`.match(FG);return t&&t[1]||""}function gL(e,t=""){return e.displayName||e.name||yL(e)||t}function bP(e,t,r){const n=gL(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function HG(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return gL(e,"Component");if(typeof e=="object")switch(e.$$typeof){case EP.ForwardRef:return bP(e,e.render,"ForwardRef");case EP.Memo:return bP(e,e.type,"memo");default:return}}}const VG=Object.freeze(Object.defineProperty({__proto__:null,default:HG,getFunctionName:yL},Symbol.toStringTag,{value:"Module"}));function Li(e){if(typeof e!="string")throw new Error(Rc(7));return e.charAt(0).toUpperCase()+e.slice(1)}const xG=Object.freeze(Object.defineProperty({__proto__:null,default:Li},Symbol.toStringTag,{value:"Module"}));function GG(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function zG(e,t=166){let r;function n(...i){const a=()=>{e.apply(this,i)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function WG(e,t){return()=>null}function YG(e,t){var r,n;return ve.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function _L(e){return e&&e.ownerDocument||document}function KG(e){return _L(e).defaultView||window}function XG(e,t){return()=>null}function vL(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const EL=typeof window<"u"?ve.useLayoutEffect:ve.useEffect;let SP=0;function JG(e){const[t,r]=ve.useState(e),n=e||t;return ve.useEffect(()=>{t==null&&(SP+=1,r(`mui-${SP}`))},[t]),n}const TP=F_.useId;function QG(e){if(TP!==void 0){const t=TP();return e??t}return JG(e)}function ZG(e,t,r,n,i){return null}function ez({controlled:e,default:t,name:r,state:n="value"}){const{current:i}=ve.useRef(e!==void 0),[a,s]=ve.useState(t),o=i?e:a,c=ve.useCallback(l=>{i||s(l)},[]);return[o,c]}function tz(e){const t=ve.useRef(e);return EL(()=>{t.current=e}),ve.useRef((...r)=>(0,t.current)(...r)).current}function rz(...e){return ve.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{vL(r,t)})},e)}const wP={};function nz(e,t){const r=ve.useRef(wP);return r.current===wP&&(r.current=e(t)),r}const iz=[];function az(e){ve.useEffect(e,iz)}class vf{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new vf}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function jJ(){const e=nz(vf.create).current;return az(e.disposeEffect),e}let Ef=!0,Nv=!1;const sz=new vf,oz={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function cz(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&oz[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function uz(e){e.metaKey||e.altKey||e.ctrlKey||(Ef=!0)}function P_(){Ef=!1}function lz(){this.visibilityState==="hidden"&&Nv&&(Ef=!0)}function dz(e){e.addEventListener("keydown",uz,!0),e.addEventListener("mousedown",P_,!0),e.addEventListener("pointerdown",P_,!0),e.addEventListener("touchstart",P_,!0),e.addEventListener("visibilitychange",lz,!0)}function fz(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Ef||cz(t)}function pz(){const e=ve.useCallback(i=>{i!=null&&dz(i.ownerDocument)},[]),t=ve.useRef(!1);function r(){return t.current?(Nv=!0,sz.start(100,()=>{Nv=!1}),t.current=!1,!0):!1}function n(i){return fz(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function Pv(e,t){const r=wt({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=wt({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const i=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=i:!i||!Object.keys(i)?r[n]=a:(r[n]=wt({},a),Object.keys(i).forEach(s=>{r[n][s]=Pv(i[s],a[s])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function mz(e,t,r=void 0){const n={};return Object.keys(e).forEach(i=>{n[i]=e[i].reduce((a,s)=>{if(s){const o=t(s);o!==""&&a.push(o),r&&r[s]&&a.push(r[s])}return a},[]).join(" ")}),n}const IP=e=>e,hz=()=>{let e=IP;return{configure(t){e=t},generate(t){return e(t)},reset(){e=IP}}},bL=hz(),yz={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function SL(e,t,r="Mui"){const n=yz[t];return n?`${r}-${n}`:`${bL.generate(e)}-${t}`}function gz(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=SL(e,i,r)}),n}function _z(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const vz=Object.freeze(Object.defineProperty({__proto__:null,default:_z},Symbol.toStringTag,{value:"Module"}));function ki(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function TL(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=TL(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ez(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=TL(e))&&(n&&(n+=" "),n+=t);return n}const bz=ve.createContext(void 0);function Sz(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const i=t.components[r];return i.defaultProps?Pv(i.defaultProps,n):!i.styleOverrides&&!i.variants?Pv(i,n):n}function Tz({props:e,name:t}){const r=ve.useContext(bz);return Sz({props:e,name:t,theme:{components:r}})}function wz(e){return Tz(e)}var wa={},C_={exports:{}},RP;function Iz(){return RP||(RP=1,(function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var a in i)({}).hasOwnProperty.call(i,a)&&(r[a]=i[a])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(C_)),C_.exports}var M_={exports:{}},AP;function Rz(){return AP||(AP=1,(function(e){function t(r,n){if(r==null)return{};var i={};for(var a in r)if({}.hasOwnProperty.call(r,a)){if(n.indexOf(a)!==-1)continue;i[a]=r[a]}return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(M_)),M_.exports}function Az(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Oz(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Nz=(function(){function e(r){var n=this;this._insertTag=function(i){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,a),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Oz(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=Az(i);try{a.insertRule(n,a.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var i;return(i=n.parentNode)==null?void 0:i.removeChild(n)}),this.tags=[],this.ctr=0},e})(),br="-ms-",Bd="-moz-",gt="-webkit-",wL="comm",ib="rule",ab="decl",Pz="@import",IL="@keyframes",Cz="@layer",Mz=Math.abs,bf=String.fromCharCode,jz=Object.assign;function Dz(e,t){return dr(e,0)^45?(((t<<2^dr(e,0))<<2^dr(e,1))<<2^dr(e,2))<<2^dr(e,3):0}function RL(e){return e.trim()}function Lz(e,t){return(e=t.exec(e))?e[0]:e}function _t(e,t,r){return e.replace(t,r)}function Cv(e,t){return e.indexOf(t)}function dr(e,t){return e.charCodeAt(t)|0}function Ac(e,t,r){return e.slice(t,r)}function qn(e){return e.length}function sb(e){return e.length}function pd(e,t){return t.push(e),e}function $z(e,t){return e.map(t).join("")}var Sf=1,Xs=1,AL=0,Fr=0,Qt=0,fo="";function Tf(e,t,r,n,i,a,s){return{value:e,root:t,parent:r,type:n,props:i,children:a,line:Sf,column:Xs,length:s,return:""}}function Bo(e,t){return jz(Tf("",null,null,"",null,null,0),e,{length:-e.length},t)}function kz(){return Qt}function qz(){return Qt=Fr>0?dr(fo,--Fr):0,Xs--,Qt===10&&(Xs=1,Sf--),Qt}function Yr(){return Qt=Fr<AL?dr(fo,Fr++):0,Xs++,Qt===10&&(Xs=1,Sf++),Qt}function Gn(){return dr(fo,Fr)}function Td(){return Fr}function Jc(e,t){return Ac(fo,e,t)}function Oc(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function OL(e){return Sf=Xs=1,AL=qn(fo=e),Fr=0,[]}function NL(e){return fo="",e}function wd(e){return RL(Jc(Fr-1,Mv(e===91?e+2:e===40?e+1:e)))}function Bz(e){for(;(Qt=Gn())&&Qt<33;)Yr();return Oc(e)>2||Oc(Qt)>3?"":" "}function Uz(e,t){for(;--t&&Yr()&&!(Qt<48||Qt>102||Qt>57&&Qt<65||Qt>70&&Qt<97););return Jc(e,Td()+(t<6&&Gn()==32&&Yr()==32))}function Mv(e){for(;Yr();)switch(Qt){case e:return Fr;case 34:case 39:e!==34&&e!==39&&Mv(Qt);break;case 40:e===41&&Mv(e);break;case 92:Yr();break}return Fr}function Fz(e,t){for(;Yr()&&e+Qt!==57;)if(e+Qt===84&&Gn()===47)break;return"/*"+Jc(t,Fr-1)+"*"+bf(e===47?e:Yr())}function Hz(e){for(;!Oc(Gn());)Yr();return Jc(e,Fr)}function Vz(e){return NL(Id("",null,null,null,[""],e=OL(e),0,[0],e))}function Id(e,t,r,n,i,a,s,o,c){for(var l=0,u=0,d=s,f=0,p=0,y=0,g=1,b=1,O=1,m=0,T="",I=i,h=a,v=n,E=T;b;)switch(y=m,m=Yr()){case 40:if(y!=108&&dr(E,d-1)==58){Cv(E+=_t(wd(m),"&","&\f"),"&\f")!=-1&&(O=-1);break}case 34:case 39:case 91:E+=wd(m);break;case 9:case 10:case 13:case 32:E+=Bz(y);break;case 92:E+=Uz(Td()-1,7);continue;case 47:switch(Gn()){case 42:case 47:pd(xz(Fz(Yr(),Td()),t,r),c);break;default:E+="/"}break;case 123*g:o[l++]=qn(E)*O;case 125*g:case 59:case 0:switch(m){case 0:case 125:b=0;case 59+u:O==-1&&(E=_t(E,/\f/g,"")),p>0&&qn(E)-d&&pd(p>32?NP(E+";",n,r,d-1):NP(_t(E," ","")+";",n,r,d-2),c);break;case 59:E+=";";default:if(pd(v=OP(E,t,r,l,u,i,o,T,I=[],h=[],d),a),m===123)if(u===0)Id(E,t,v,v,I,a,d,o,h);else switch(f===99&&dr(E,3)===110?100:f){case 100:case 108:case 109:case 115:Id(e,v,v,n&&pd(OP(e,v,v,0,0,i,o,T,i,I=[],d),h),i,h,d,o,n?I:h);break;default:Id(E,v,v,v,[""],h,0,o,h)}}l=u=p=0,g=O=1,T=E="",d=s;break;case 58:d=1+qn(E),p=y;default:if(g<1){if(m==123)--g;else if(m==125&&g++==0&&qz()==125)continue}switch(E+=bf(m),m*g){case 38:O=u>0?1:(E+="\f",-1);break;case 44:o[l++]=(qn(E)-1)*O,O=1;break;case 64:Gn()===45&&(E+=wd(Yr())),f=Gn(),u=d=qn(T=E+=Hz(Td())),m++;break;case 45:y===45&&qn(E)==2&&(g=0)}}return a}function OP(e,t,r,n,i,a,s,o,c,l,u){for(var d=i-1,f=i===0?a:[""],p=sb(f),y=0,g=0,b=0;y<n;++y)for(var O=0,m=Ac(e,d+1,d=Mz(g=s[y])),T=e;O<p;++O)(T=RL(g>0?f[O]+" "+m:_t(m,/&\f/g,f[O])))&&(c[b++]=T);return Tf(e,t,r,i===0?ib:o,c,l,u)}function xz(e,t,r){return Tf(e,t,r,wL,bf(kz()),Ac(e,2,-2),0)}function NP(e,t,r,n){return Tf(e,t,r,ab,Ac(e,0,n),Ac(e,n+1,-1),n)}function Rs(e,t){for(var r="",n=sb(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function Gz(e,t,r,n){switch(e.type){case Cz:if(e.children.length)break;case Pz:case ab:return e.return=e.return||e.value;case wL:return"";case IL:return e.return=e.value+"{"+Rs(e.children,n)+"}";case ib:e.value=e.props.join(",")}return qn(r=Rs(e.children,n))?e.return=e.value+"{"+r+"}":""}function zz(e){var t=sb(e);return function(r,n,i,a){for(var s="",o=0;o<t;o++)s+=e[o](r,n,i,a)||"";return s}}function Wz(e){return function(t){t.root||(t=t.return)&&e(t)}}function PL(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Yz=function(t,r,n){for(var i=0,a=0;i=a,a=Gn(),i===38&&a===12&&(r[n]=1),!Oc(a);)Yr();return Jc(t,Fr)},Kz=function(t,r){var n=-1,i=44;do switch(Oc(i)){case 0:i===38&&Gn()===12&&(r[n]=1),t[n]+=Yz(Fr-1,r,n);break;case 2:t[n]+=wd(i);break;case 4:if(i===44){t[++n]=Gn()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=bf(i)}while(i=Yr());return t},Xz=function(t,r){return NL(Kz(OL(t),r))},PP=new WeakMap,Jz=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,i=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!PP.get(n))&&!i){PP.set(t,!0);for(var a=[],s=Xz(r,a),o=n.props,c=0,l=0;c<s.length;c++)for(var u=0;u<o.length;u++,l++)t.props[l]=a[c]?s[c].replace(/&\f/g,o[u]):o[u]+" "+s[c]}}},Qz=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function CL(e,t){switch(Dz(e,t)){case 5103:return gt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return gt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return gt+e+Bd+e+br+e+e;case 6828:case 4268:return gt+e+br+e+e;case 6165:return gt+e+br+"flex-"+e+e;case 5187:return gt+e+_t(e,/(\w+).+(:[^]+)/,gt+"box-$1$2"+br+"flex-$1$2")+e;case 5443:return gt+e+br+"flex-item-"+_t(e,/flex-|-self/,"")+e;case 4675:return gt+e+br+"flex-line-pack"+_t(e,/align-content|flex-|-self/,"")+e;case 5548:return gt+e+br+_t(e,"shrink","negative")+e;case 5292:return gt+e+br+_t(e,"basis","preferred-size")+e;case 6060:return gt+"box-"+_t(e,"-grow","")+gt+e+br+_t(e,"grow","positive")+e;case 4554:return gt+_t(e,/([^-])(transform)/g,"$1"+gt+"$2")+e;case 6187:return _t(_t(_t(e,/(zoom-|grab)/,gt+"$1"),/(image-set)/,gt+"$1"),e,"")+e;case 5495:case 3959:return _t(e,/(image-set\([^]*)/,gt+"$1$`$1");case 4968:return _t(_t(e,/(.+:)(flex-)?(.*)/,gt+"box-pack:$3"+br+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+gt+e+e;case 4095:case 3583:case 4068:case 2532:return _t(e,/(.+)-inline(.+)/,gt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(qn(e)-1-t>6)switch(dr(e,t+1)){case 109:if(dr(e,t+4)!==45)break;case 102:return _t(e,/(.+:)(.+)-([^]+)/,"$1"+gt+"$2-$3$1"+Bd+(dr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Cv(e,"stretch")?CL(_t(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(dr(e,t+1)!==115)break;case 6444:switch(dr(e,qn(e)-3-(~Cv(e,"!important")&&10))){case 107:return _t(e,":",":"+gt)+e;case 101:return _t(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+gt+(dr(e,14)===45?"inline-":"")+"box$3$1"+gt+"$2$3$1"+br+"$2box$3")+e}break;case 5936:switch(dr(e,t+11)){case 114:return gt+e+br+_t(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return gt+e+br+_t(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return gt+e+br+_t(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return gt+e+br+e+e}return e}var Zz=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case ab:t.return=CL(t.value,t.length);break;case IL:return Rs([Bo(t,{value:_t(t.value,"@","@"+gt)})],i);case ib:if(t.length)return $z(t.props,function(a){switch(Lz(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Rs([Bo(t,{props:[_t(a,/:(read-\w+)/,":"+Bd+"$1")]})],i);case"::placeholder":return Rs([Bo(t,{props:[_t(a,/:(plac\w+)/,":"+gt+"input-$1")]}),Bo(t,{props:[_t(a,/:(plac\w+)/,":"+Bd+"$1")]}),Bo(t,{props:[_t(a,/:(plac\w+)/,br+"input-$1")]})],i)}return""})}},eW=[Zz],ML=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(g){var b=g.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=t.stylisPlugins||eW,a={},s,o=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(g){for(var b=g.getAttribute("data-emotion").split(" "),O=1;O<b.length;O++)a[b[O]]=!0;o.push(g)});var c,l=[Jz,Qz];{var u,d=[Gz,Wz(function(g){u.insert(g)})],f=zz(l.concat(i,d)),p=function(b){return Rs(Vz(b),f)};c=function(b,O,m,T){u=m,p(b?b+"{"+O.styles+"}":O.styles),T&&(y.inserted[O.name]=!0)}}var y={key:r,sheet:new Nz({key:r,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:c};return y.sheet.hydrate(o),y},tW=!0;function jL(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}var ob=function(t,r,n){var i=t.key+"-"+r.name;(n===!1||tW===!1)&&t.registered[i]===void 0&&(t.registered[i]=r.styles)},cb=function(t,r,n){ob(t,r,n);var i=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+i:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function rW(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var nW={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},iW=/[A-Z]|^ms/g,aW=/_EMO_([^_]+?)_([^]*?)_EMO_/g,DL=function(t){return t.charCodeAt(1)===45},CP=function(t){return t!=null&&typeof t!="boolean"},j_=PL(function(e){return DL(e)?e:e.replace(iW,"-$&").toLowerCase()}),MP=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(aW,function(n,i,a){return Bn={name:i,styles:a,next:Bn},i})}return nW[t]!==1&&!DL(t)&&typeof r=="number"&&r!==0?r+"px":r};function Nc(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return Bn={name:i.name,styles:i.styles,next:Bn},i.name;var a=r;if(a.styles!==void 0){var s=a.next;if(s!==void 0)for(;s!==void 0;)Bn={name:s.name,styles:s.styles,next:Bn},s=s.next;var o=a.styles+";";return o}return sW(e,t,r)}case"function":{if(e!==void 0){var c=Bn,l=r(e);return Bn=c,Nc(e,t,l)}break}}var u=r;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function sW(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Nc(e,t,r[i])+";";else for(var a in r){var s=r[a];if(typeof s!="object"){var o=s;t!=null&&t[o]!==void 0?n+=a+"{"+t[o]+"}":CP(o)&&(n+=j_(a)+":"+MP(a,o)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var c=0;c<s.length;c++)CP(s[c])&&(n+=j_(a)+":"+MP(a,s[c])+";");else{var l=Nc(e,t,s);switch(a){case"animation":case"animationName":{n+=j_(a)+":"+l+";";break}default:n+=a+"{"+l+"}"}}}return n}var jP=/label:\s*([^\s;{]+)\s*(;|$)/g,Bn;function Qc(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";Bn=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,i+=Nc(r,t,a);else{var s=a;i+=s[0]}for(var o=1;o<e.length;o++)if(i+=Nc(r,t,e[o]),n){var c=a;i+=c[o]}jP.lastIndex=0;for(var l="",u;(u=jP.exec(i))!==null;)l+="-"+u[1];var d=rW(i)+l;return{name:d,styles:i,next:Bn}}var oW=function(t){return t()},LL=F_.useInsertionEffect?F_.useInsertionEffect:!1,$L=LL||oW,DP=LL||ve.useLayoutEffect,kL=ve.createContext(typeof HTMLElement<"u"?ML({key:"css"}):null),cW=kL.Provider,ub=function(t){return ve.forwardRef(function(r,n){var i=ve.useContext(kL);return t(r,i,n)})},wf=ve.createContext({}),lb={}.hasOwnProperty,jv="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",uW=function(t,r){var n={};for(var i in r)lb.call(r,i)&&(n[i]=r[i]);return n[jv]=t,n},lW=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return ob(r,n,i),$L(function(){return cb(r,n,i)}),null},dW=ub(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var i=e[jv],a=[n],s="";typeof e.className=="string"?s=jL(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var o=Qc(a,void 0,ve.useContext(wf));s+=t.key+"-"+o.name;var c={};for(var l in e)lb.call(e,l)&&l!=="css"&&l!==jv&&(c[l]=e[l]);return c.className=s,r&&(c.ref=r),ve.createElement(ve.Fragment,null,ve.createElement(lW,{cache:t,serialized:o,isStringTag:typeof i=="string"}),ve.createElement(i,c))}),fW=dW,LP=function(t,r){var n=arguments;if(r==null||!lb.call(r,"css"))return ve.createElement.apply(void 0,n);var i=n.length,a=new Array(i);a[0]=fW,a[1]=uW(t,r);for(var s=2;s<i;s++)a[s]=n[s];return ve.createElement.apply(null,a)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(LP||(LP={}));var pW=ub(function(e,t){var r=e.styles,n=Qc([r],void 0,ve.useContext(wf)),i=ve.useRef();return DP(function(){var a=t.key+"-global",s=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,c=document.querySelector('style[data-emotion="'+a+" "+n.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),c!==null&&(o=!0,c.setAttribute("data-emotion",a),s.hydrate([c])),i.current=[s,o],function(){s.flush()}},[t]),DP(function(){var a=i.current,s=a[0],o=a[1];if(o){a[1]=!1;return}if(n.next!==void 0&&cb(t,n.next,!0),s.tags.length){var c=s.tags[s.tags.length-1].nextElementSibling;s.before=c,s.flush()}t.insert("",n,s,!1)},[t,n.name]),null});function qL(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Qc(t)}function mW(){var e=qL.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var hW=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,yW=PL(function(e){return hW.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),gW=yW,_W=function(t){return t!=="theme"},$P=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?gW:_W},kP=function(t,r,n){var i;if(r){var a=r.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(s){return t.__emotion_forwardProp(s)&&a(s)}:a}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},vW=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return ob(r,n,i),$L(function(){return cb(r,n,i)}),null},EW=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,a,s;r!==void 0&&(a=r.label,s=r.target);var o=kP(t,r,n),c=o||$P(i),l=!c("as");return function(){var u=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push("label:"+a+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var p=u.length,y=1;y<p;y++)d.push(u[y],f[y])}var g=ub(function(b,O,m){var T=l&&b.as||i,I="",h=[],v=b;if(b.theme==null){v={};for(var E in b)v[E]=b[E];v.theme=ve.useContext(wf)}typeof b.className=="string"?I=jL(O.registered,h,b.className):b.className!=null&&(I=b.className+" ");var N=Qc(d.concat(h),O.registered,v);I+=O.key+"-"+N.name,s!==void 0&&(I+=" "+s);var M=l&&o===void 0?$P(T):c,q={};for(var H in b)l&&H==="as"||M(H)&&(q[H]=b[H]);return q.className=I,m&&(q.ref=m),ve.createElement(ve.Fragment,null,ve.createElement(vW,{cache:O,serialized:N,isStringTag:typeof T=="string"}),ve.createElement(T,q))});return g.displayName=a!==void 0?a:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=i,g.__emotion_styles=d,g.__emotion_forwardProp=o,Object.defineProperty(g,"toString",{value:function(){return"."+s}}),g.withComponent=function(b,O){var m=e(b,wt({},r,O,{shouldForwardProp:kP(g,O,!0)}));return m.apply(void 0,d)},g}},bW=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Dv=EW.bind(null);bW.forEach(function(e){Dv[e]=Dv(e)});function SW(e,t){const r=ML({key:"css",prepend:e});if(t){const n=r.insert;r.insert=(...i)=>(i[1].styles.match(/^@layer\s+[^{]*$/)||(i[1].styles=`@layer mui {${i[1].styles}}`),n(...i))}return r}const D_=new Map;function TW(e){const{injectFirst:t,enableCssLayer:r,children:n}=e,i=ve.useMemo(()=>{const a=`${t}-${r}`;if(typeof document=="object"&&D_.has(a))return D_.get(a);const s=SW(t,r);return D_.set(a,s),s},[t,r]);return t||r?C.jsx(cW,{value:i,children:n}):n}function wW(e){return e==null||Object.keys(e).length===0}function IW(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?i=>t(wW(i)?r:i):t;return C.jsx(pW,{styles:n})}function RW(e,t){return Dv(e,t)}const AW=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},qP=[];function OW(e){return qP[0]=e,Qc(qP)}const NW=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:IW,StyledEngineProvider:TW,ThemeContext:wf,css:qL,default:RW,internal_processStyles:AW,internal_serializeStyles:OW,keyframes:mW},Symbol.toStringTag,{value:"Module"})),PW=mi(NW),CW=mi(kG),MW=mi(xG),jW=mi(VG),DW=["values","unit","step"],LW=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>wt({},r,{[n.key]:n.val}),{})};function BL(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,i=ki(e,DW),a=LW(t),s=Object.keys(a);function o(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r})`}function c(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-n/100}${r})`}function l(f,p){const y=s.indexOf(p);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r}) and (max-width:${(y!==-1&&typeof t[s[y]]=="number"?t[s[y]]:p)-n/100}${r})`}function u(f){return s.indexOf(f)+1<s.length?l(f,s[s.indexOf(f)+1]):o(f)}function d(f){const p=s.indexOf(f);return p===0?o(s[1]):p===s.length-1?c(s[p]):l(f,s[s.indexOf(f)+1]).replace("@media","@media not all and")}return wt({keys:s,values:a,up:o,down:c,between:l,only:u,not:d,unit:r},i)}const $W={borderRadius:4};function hc(e,t){return t?xn(e,t,{clone:!1}):e}const db={xs:0,sm:600,md:900,lg:1200,xl:1536},BP={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${db[e]}px)`};function pi(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||BP;return t.reduce((s,o,c)=>(s[a.up(a.keys[c])]=r(t[c]),s),{})}if(typeof t=="object"){const a=n.breakpoints||BP;return Object.keys(t).reduce((s,o)=>{if(Object.keys(a.values||db).indexOf(o)!==-1){const c=a.up(o);s[c]=r(t[o],o)}else{const c=o;s[c]=t[c]}return s},{})}return r(t)}function kW(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,i)=>{const a=e.up(i);return n[a]={},n},{}))||{}}function UP(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function If(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,e)}function Ud(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=If(e,r)||n,t&&(i=t(i,n,e)),i}function Xt(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,a=s=>{if(s[t]==null)return null;const o=s[t],c=s.theme,l=If(c,n)||{};return pi(s,o,d=>{let f=Ud(l,i,d);return d===f&&typeof d=="string"&&(f=Ud(l,i,`${t}${d==="default"?"":Li(d)}`,d)),r===!1?f:{[r]:f}})};return a.propTypes={},a.filterProps=[t],a}function qW(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const BW={m:"margin",p:"padding"},UW={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},FP={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},FW=qW(e=>{if(e.length>2)if(FP[e])e=FP[e];else return[e];const[t,r]=e.split(""),n=BW[t],i=UW[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),fb=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],pb=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...fb,...pb];function Zc(e,t,r,n){var i;const a=(i=If(e,t,!1))!=null?i:r;return typeof a=="number"?s=>typeof s=="string"?s:a*s:Array.isArray(a)?s=>typeof s=="string"?s:a[s]:typeof a=="function"?a:()=>{}}function UL(e){return Zc(e,"spacing",8)}function eu(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function HW(e,t){return r=>e.reduce((n,i)=>(n[i]=eu(t,r),n),{})}function VW(e,t,r,n){if(t.indexOf(r)===-1)return null;const i=FW(r),a=HW(i,n),s=e[r];return pi(e,s,a)}function FL(e,t){const r=UL(e.theme);return Object.keys(e).map(n=>VW(e,t,n,r)).reduce(hc,{})}function Gt(e){return FL(e,fb)}Gt.propTypes={};Gt.filterProps=fb;function zt(e){return FL(e,pb)}zt.propTypes={};zt.filterProps=pb;function xW(e=8){if(e.mui)return e;const t=UL({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(a=>{const s=t(a);return typeof s=="number"?`${s}px`:s}).join(" ");return r.mui=!0,r}function Rf(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(a=>{n[a]=i}),n),{}),r=n=>Object.keys(n).reduce((i,a)=>t[a]?hc(i,t[a](n)):i,{});return r.propTypes={},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function Qr(e){return typeof e!="number"?e:`${e}px solid`}function rn(e,t){return Xt({prop:e,themeKey:"borders",transform:t})}const GW=rn("border",Qr),zW=rn("borderTop",Qr),WW=rn("borderRight",Qr),YW=rn("borderBottom",Qr),KW=rn("borderLeft",Qr),XW=rn("borderColor"),JW=rn("borderTopColor"),QW=rn("borderRightColor"),ZW=rn("borderBottomColor"),e7=rn("borderLeftColor"),t7=rn("outline",Qr),r7=rn("outlineColor"),Af=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Zc(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:eu(t,n)});return pi(e,e.borderRadius,r)}return null};Af.propTypes={};Af.filterProps=["borderRadius"];Rf(GW,zW,WW,YW,KW,XW,JW,QW,ZW,e7,Af,t7,r7);const Of=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Zc(e.theme,"spacing",8),r=n=>({gap:eu(t,n)});return pi(e,e.gap,r)}return null};Of.propTypes={};Of.filterProps=["gap"];const Nf=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Zc(e.theme,"spacing",8),r=n=>({columnGap:eu(t,n)});return pi(e,e.columnGap,r)}return null};Nf.propTypes={};Nf.filterProps=["columnGap"];const Pf=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Zc(e.theme,"spacing",8),r=n=>({rowGap:eu(t,n)});return pi(e,e.rowGap,r)}return null};Pf.propTypes={};Pf.filterProps=["rowGap"];const n7=Xt({prop:"gridColumn"}),i7=Xt({prop:"gridRow"}),a7=Xt({prop:"gridAutoFlow"}),s7=Xt({prop:"gridAutoColumns"}),o7=Xt({prop:"gridAutoRows"}),c7=Xt({prop:"gridTemplateColumns"}),u7=Xt({prop:"gridTemplateRows"}),l7=Xt({prop:"gridTemplateAreas"}),d7=Xt({prop:"gridArea"});Rf(Of,Nf,Pf,n7,i7,a7,s7,o7,c7,u7,l7,d7);function As(e,t){return t==="grey"?t:e}const f7=Xt({prop:"color",themeKey:"palette",transform:As}),p7=Xt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:As}),m7=Xt({prop:"backgroundColor",themeKey:"palette",transform:As});Rf(f7,p7,m7);function Wr(e){return e<=1&&e!==0?`${e*100}%`:e}const h7=Xt({prop:"width",transform:Wr}),mb=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,i;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||db[r];return a?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Wr(r)}};return pi(e,e.maxWidth,t)}return null};mb.filterProps=["maxWidth"];const y7=Xt({prop:"minWidth",transform:Wr}),g7=Xt({prop:"height",transform:Wr}),_7=Xt({prop:"maxHeight",transform:Wr}),v7=Xt({prop:"minHeight",transform:Wr});Xt({prop:"size",cssProperty:"width",transform:Wr});Xt({prop:"size",cssProperty:"height",transform:Wr});const E7=Xt({prop:"boxSizing"});Rf(h7,mb,y7,g7,_7,v7,E7);const tu={border:{themeKey:"borders",transform:Qr},borderTop:{themeKey:"borders",transform:Qr},borderRight:{themeKey:"borders",transform:Qr},borderBottom:{themeKey:"borders",transform:Qr},borderLeft:{themeKey:"borders",transform:Qr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Qr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Af},color:{themeKey:"palette",transform:As},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:As},backgroundColor:{themeKey:"palette",transform:As},p:{style:zt},pt:{style:zt},pr:{style:zt},pb:{style:zt},pl:{style:zt},px:{style:zt},py:{style:zt},padding:{style:zt},paddingTop:{style:zt},paddingRight:{style:zt},paddingBottom:{style:zt},paddingLeft:{style:zt},paddingX:{style:zt},paddingY:{style:zt},paddingInline:{style:zt},paddingInlineStart:{style:zt},paddingInlineEnd:{style:zt},paddingBlock:{style:zt},paddingBlockStart:{style:zt},paddingBlockEnd:{style:zt},m:{style:Gt},mt:{style:Gt},mr:{style:Gt},mb:{style:Gt},ml:{style:Gt},mx:{style:Gt},my:{style:Gt},margin:{style:Gt},marginTop:{style:Gt},marginRight:{style:Gt},marginBottom:{style:Gt},marginLeft:{style:Gt},marginX:{style:Gt},marginY:{style:Gt},marginInline:{style:Gt},marginInlineStart:{style:Gt},marginInlineEnd:{style:Gt},marginBlock:{style:Gt},marginBlockStart:{style:Gt},marginBlockEnd:{style:Gt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Of},rowGap:{style:Pf},columnGap:{style:Nf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Wr},maxWidth:{style:mb},minWidth:{transform:Wr},height:{transform:Wr},maxHeight:{transform:Wr},minHeight:{transform:Wr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function b7(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function S7(e,t){return typeof e=="function"?e(t):e}function HL(){function e(r,n,i,a){const s={[r]:n,theme:i},o=a[r];if(!o)return{[r]:n};const{cssProperty:c=r,themeKey:l,transform:u,style:d}=o;if(n==null)return null;if(l==="typography"&&n==="inherit")return{[r]:n};const f=If(i,l)||{};return d?d(s):pi(s,n,y=>{let g=Ud(f,u,y);return y===g&&typeof y=="string"&&(g=Ud(f,u,`${r}${y==="default"?"":Li(y)}`,y)),c===!1?g:{[c]:g}})}function t(r){var n;const{sx:i,theme:a={},nested:s}=r||{};if(!i)return null;const o=(n=a.unstable_sxConfig)!=null?n:tu;function c(l){let u=l;if(typeof l=="function")u=l(a);else if(typeof l!="object")return l;if(!u)return null;const d=kW(a.breakpoints),f=Object.keys(d);let p=d;return Object.keys(u).forEach(y=>{const g=S7(u[y],a);if(g!=null)if(typeof g=="object")if(o[y])p=hc(p,e(y,g,a,o));else{const b=pi({theme:a},g,O=>({[y]:O}));b7(b,g)?p[y]=t({sx:g,theme:a,nested:!0}):p=hc(p,b)}else p=hc(p,e(y,g,a,o))}),!s&&a.modularCssLayers?{"@layer sx":UP(f,p)}:UP(f,p)}return Array.isArray(i)?i.map(c):c(i)}return t}const Cf=HL();Cf.filterProps=["sx"];function VL(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const T7=["breakpoints","palette","spacing","shape"];function xL(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:a={}}=e,s=ki(e,T7),o=BL(r),c=xW(i);let l=xn({breakpoints:o,direction:"ltr",components:{},palette:wt({mode:"light"},n),spacing:c,shape:wt({},$W,a)},s);return l.applyStyles=VL,l=t.reduce((u,d)=>xn(u,d),l),l.unstable_sxConfig=wt({},tu,s==null?void 0:s.unstable_sxConfig),l.unstable_sx=function(d){return Cf({sx:d,theme:this})},l}const w7=Object.freeze(Object.defineProperty({__proto__:null,default:xL,private_createBreakpoints:BL,unstable_applyStyles:VL},Symbol.toStringTag,{value:"Module"})),I7=mi(w7),R7=["sx"],A7=e=>{var t,r;const n={systemProps:{},otherProps:{}},i=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:tu;return Object.keys(e).forEach(a=>{i[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function O7(e){const{sx:t}=e,r=ki(e,R7),{systemProps:n,otherProps:i}=A7(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...s)=>{const o=t(...s);return Ii(o)?wt({},n,o):n}:a=wt({},n,t),wt({},i,{sx:a})}const N7=Object.freeze(Object.defineProperty({__proto__:null,default:Cf,extendSxProp:O7,unstable_createStyleFunctionSx:HL,unstable_defaultSxConfig:tu},Symbol.toStringTag,{value:"Module"})),P7=mi(N7);var HP;function C7(){if(HP)return wa;HP=1;var e=nb();Object.defineProperty(wa,"__esModule",{value:!0}),wa.default=h,wa.shouldForwardProp=y,wa.systemDefaultTheme=void 0;var t=e(Iz()),r=e(Rz()),n=d(PW),i=CW;e(MW),e(jW);var a=e(I7),s=e(P7);const o=["ownerState"],c=["variants"],l=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function u(v){if(typeof WeakMap!="function")return null;var E=new WeakMap,N=new WeakMap;return(u=function(M){return M?N:E})(v)}function d(v,E){if(v&&v.__esModule)return v;if(v===null||typeof v!="object"&&typeof v!="function")return{default:v};var N=u(E);if(N&&N.has(v))return N.get(v);var M={__proto__:null},q=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var H in v)if(H!=="default"&&Object.prototype.hasOwnProperty.call(v,H)){var k=q?Object.getOwnPropertyDescriptor(v,H):null;k&&(k.get||k.set)?Object.defineProperty(M,H,k):M[H]=v[H]}return M.default=v,N&&N.set(v,M),M}function f(v){return Object.keys(v).length===0}function p(v){return typeof v=="string"&&v.charCodeAt(0)>96}function y(v){return v!=="ownerState"&&v!=="theme"&&v!=="sx"&&v!=="as"}function g(v,E){return E&&v&&typeof v=="object"&&v.styles&&!v.styles.startsWith("@layer")&&(v.styles=`@layer ${E}{${String(v.styles)}}`),v}const b=wa.systemDefaultTheme=(0,a.default)(),O=v=>v&&v.charAt(0).toLowerCase()+v.slice(1);function m({defaultTheme:v,theme:E,themeId:N}){return f(E)?v:E[N]||E}function T(v){return v?(E,N)=>N[v]:null}function I(v,E,N){let{ownerState:M}=E,q=(0,r.default)(E,o);const H=typeof v=="function"?v((0,t.default)({ownerState:M},q)):v;if(Array.isArray(H))return H.flatMap(k=>I(k,(0,t.default)({ownerState:M},q),N));if(H&&typeof H=="object"&&Array.isArray(H.variants)){const{variants:k=[]}=H;let F=(0,r.default)(H,c);return k.forEach(te=>{let ie=!0;if(typeof te.props=="function"?ie=te.props((0,t.default)({ownerState:M},q,M)):Object.keys(te.props).forEach(Z=>{(M==null?void 0:M[Z])!==te.props[Z]&&q[Z]!==te.props[Z]&&(ie=!1)}),ie){Array.isArray(F)||(F=[F]);const Z=typeof te.style=="function"?te.style((0,t.default)({ownerState:M},q,M)):te.style;F.push(N?g((0,n.internal_serializeStyles)(Z),N):Z)}}),F}return N?g((0,n.internal_serializeStyles)(H),N):H}function h(v={}){const{themeId:E,defaultTheme:N=b,rootShouldForwardProp:M=y,slotShouldForwardProp:q=y}=v,H=k=>(0,s.default)((0,t.default)({},k,{theme:m((0,t.default)({},k,{defaultTheme:N,themeId:E}))}));return H.__mui_systemSx=!0,(k,B={})=>{(0,n.internal_processStyles)(k,he=>he.filter(Se=>!(Se!=null&&Se.__mui_systemSx)));const{name:F,slot:te,skipVariantsResolver:ie,skipSx:Z,overridesResolver:X=T(O(te))}=B,Y=(0,r.default)(B,l),U=F&&F.startsWith("Mui")||te?"components":"custom",L=ie!==void 0?ie:te&&te!=="Root"&&te!=="root"||!1,V=Z||!1;let W,P=y;te==="Root"||te==="root"?P=M:te?P=q:p(k)&&(P=void 0);const $=(0,n.default)(k,(0,t.default)({shouldForwardProp:P,label:W},Y)),ee=he=>typeof he=="function"&&he.__emotion_real!==he||(0,i.isPlainObject)(he)?Se=>{const we=m({theme:Se.theme,defaultTheme:N,themeId:E});return I(he,(0,t.default)({},Se,{theme:we}),we.modularCssLayers?U:void 0)}:he,Ee=(he,...Se)=>{let we=ee(he);const ae=Se?Se.map(ee):[];F&&X&&ae.push(pe=>{const be=m((0,t.default)({},pe,{defaultTheme:N,themeId:E}));if(!be.components||!be.components[F]||!be.components[F].styleOverrides)return null;const Ae=be.components[F].styleOverrides,qe={};return Object.entries(Ae).forEach(([We,tt])=>{qe[We]=I(tt,(0,t.default)({},pe,{theme:be}),be.modularCssLayers?"theme":void 0)}),X(pe,qe)}),F&&!L&&ae.push(pe=>{var be;const Ae=m((0,t.default)({},pe,{defaultTheme:N,themeId:E})),qe=Ae==null||(be=Ae.components)==null||(be=be[F])==null?void 0:be.variants;return I({variants:qe},(0,t.default)({},pe,{theme:Ae}),Ae.modularCssLayers?"theme":void 0)}),V||ae.push(H);const ue=ae.length-Se.length;if(Array.isArray(he)&&ue>0){const pe=new Array(ue).fill("");we=[...he,...pe],we.raw=[...he.raw,...pe]}const fe=$(we,...ae);return k.muiName&&(fe.muiName=k.muiName),fe};return $.withConfig&&(Ee.withConfig=$.withConfig),Ee}}return wa}var M7=C7();const j7=Vd(M7);function D7(e,t){return wt({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var xt={};const L7=mi(qG),$7=mi(vz);var VP;function k7(){if(VP)return xt;VP=1;var e=nb();Object.defineProperty(xt,"__esModule",{value:!0}),xt.alpha=y,xt.blend=v,xt.colorChannel=void 0,xt.darken=b,xt.decomposeColor=s,xt.emphasize=I,xt.getContrastRatio=p,xt.getLuminance=f,xt.hexToRgb=i,xt.hslToRgb=d,xt.lighten=m,xt.private_safeAlpha=g,xt.private_safeColorChannel=void 0,xt.private_safeDarken=O,xt.private_safeEmphasize=h,xt.private_safeLighten=T,xt.recomposeColor=l,xt.rgbToHex=u;var t=e(L7),r=e($7);function n(E,N=0,M=1){return(0,r.default)(E,N,M)}function i(E){E=E.slice(1);const N=new RegExp(`.{1,${E.length>=6?2:1}}`,"g");let M=E.match(N);return M&&M[0].length===1&&(M=M.map(q=>q+q)),M?`rgb${M.length===4?"a":""}(${M.map((q,H)=>H<3?parseInt(q,16):Math.round(parseInt(q,16)/255*1e3)/1e3).join(", ")})`:""}function a(E){const N=E.toString(16);return N.length===1?`0${N}`:N}function s(E){if(E.type)return E;if(E.charAt(0)==="#")return s(i(E));const N=E.indexOf("("),M=E.substring(0,N);if(["rgb","rgba","hsl","hsla","color"].indexOf(M)===-1)throw new Error((0,t.default)(9,E));let q=E.substring(N+1,E.length-1),H;if(M==="color"){if(q=q.split(" "),H=q.shift(),q.length===4&&q[3].charAt(0)==="/"&&(q[3]=q[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(H)===-1)throw new Error((0,t.default)(10,H))}else q=q.split(",");return q=q.map(k=>parseFloat(k)),{type:M,values:q,colorSpace:H}}const o=E=>{const N=s(E);return N.values.slice(0,3).map((M,q)=>N.type.indexOf("hsl")!==-1&&q!==0?`${M}%`:M).join(" ")};xt.colorChannel=o;const c=(E,N)=>{try{return o(E)}catch{return E}};xt.private_safeColorChannel=c;function l(E){const{type:N,colorSpace:M}=E;let{values:q}=E;return N.indexOf("rgb")!==-1?q=q.map((H,k)=>k<3?parseInt(H,10):H):N.indexOf("hsl")!==-1&&(q[1]=`${q[1]}%`,q[2]=`${q[2]}%`),N.indexOf("color")!==-1?q=`${M} ${q.join(" ")}`:q=`${q.join(", ")}`,`${N}(${q})`}function u(E){if(E.indexOf("#")===0)return E;const{values:N}=s(E);return`#${N.map((M,q)=>a(q===3?Math.round(255*M):M)).join("")}`}function d(E){E=s(E);const{values:N}=E,M=N[0],q=N[1]/100,H=N[2]/100,k=q*Math.min(H,1-H),B=(ie,Z=(ie+M/30)%12)=>H-k*Math.max(Math.min(Z-3,9-Z,1),-1);let F="rgb";const te=[Math.round(B(0)*255),Math.round(B(8)*255),Math.round(B(4)*255)];return E.type==="hsla"&&(F+="a",te.push(N[3])),l({type:F,values:te})}function f(E){E=s(E);let N=E.type==="hsl"||E.type==="hsla"?s(d(E)).values:E.values;return N=N.map(M=>(E.type!=="color"&&(M/=255),M<=.03928?M/12.92:((M+.055)/1.055)**2.4)),Number((.2126*N[0]+.7152*N[1]+.0722*N[2]).toFixed(3))}function p(E,N){const M=f(E),q=f(N);return(Math.max(M,q)+.05)/(Math.min(M,q)+.05)}function y(E,N){return E=s(E),N=n(N),(E.type==="rgb"||E.type==="hsl")&&(E.type+="a"),E.type==="color"?E.values[3]=`/${N}`:E.values[3]=N,l(E)}function g(E,N,M){try{return y(E,N)}catch{return E}}function b(E,N){if(E=s(E),N=n(N),E.type.indexOf("hsl")!==-1)E.values[2]*=1-N;else if(E.type.indexOf("rgb")!==-1||E.type.indexOf("color")!==-1)for(let M=0;M<3;M+=1)E.values[M]*=1-N;return l(E)}function O(E,N,M){try{return b(E,N)}catch{return E}}function m(E,N){if(E=s(E),N=n(N),E.type.indexOf("hsl")!==-1)E.values[2]+=(100-E.values[2])*N;else if(E.type.indexOf("rgb")!==-1)for(let M=0;M<3;M+=1)E.values[M]+=(255-E.values[M])*N;else if(E.type.indexOf("color")!==-1)for(let M=0;M<3;M+=1)E.values[M]+=(1-E.values[M])*N;return l(E)}function T(E,N,M){try{return m(E,N)}catch{return E}}function I(E,N=.15){return f(E)>.5?b(E,N):m(E,N)}function h(E,N,M){try{return I(E,N)}catch{return E}}function v(E,N,M,q=1){const H=(te,ie)=>Math.round((te**(1/q)*(1-M)+ie**(1/q)*M)**q),k=s(E),B=s(N),F=[H(k.values[0],B.values[0]),H(k.values[1],B.values[1]),H(k.values[2],B.values[2])];return l({type:"rgb",values:F})}return xt}var Lv=k7();const Pc={black:"#000",white:"#fff"},q7={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},ps={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},ms={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Uo={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},hs={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},ys={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},gs={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},B7=["mode","contrastThreshold","tonalOffset"],xP={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Pc.white,default:Pc.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},L_={text:{primary:Pc.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Pc.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function GP(e,t,r,n){const i=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Lv.lighten(e.main,i):t==="dark"&&(e.dark=Lv.darken(e.main,a)))}function U7(e="light"){return e==="dark"?{main:hs[200],light:hs[50],dark:hs[400]}:{main:hs[700],light:hs[400],dark:hs[800]}}function F7(e="light"){return e==="dark"?{main:ps[200],light:ps[50],dark:ps[400]}:{main:ps[500],light:ps[300],dark:ps[700]}}function H7(e="light"){return e==="dark"?{main:ms[500],light:ms[300],dark:ms[700]}:{main:ms[700],light:ms[400],dark:ms[800]}}function V7(e="light"){return e==="dark"?{main:ys[400],light:ys[300],dark:ys[700]}:{main:ys[700],light:ys[500],dark:ys[900]}}function x7(e="light"){return e==="dark"?{main:gs[400],light:gs[300],dark:gs[700]}:{main:gs[800],light:gs[500],dark:gs[900]}}function G7(e="light"){return e==="dark"?{main:Uo[400],light:Uo[300],dark:Uo[700]}:{main:"#ed6c02",light:Uo[500],dark:Uo[900]}}function z7(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=ki(e,B7),a=e.primary||U7(t),s=e.secondary||F7(t),o=e.error||H7(t),c=e.info||V7(t),l=e.success||x7(t),u=e.warning||G7(t);function d(g){return Lv.getContrastRatio(g,L_.text.primary)>=r?L_.text.primary:xP.text.primary}const f=({color:g,name:b,mainShade:O=500,lightShade:m=300,darkShade:T=700})=>{if(g=wt({},g),!g.main&&g[O]&&(g.main=g[O]),!g.hasOwnProperty("main"))throw new Error(Rc(11,b?` (${b})`:"",O));if(typeof g.main!="string")throw new Error(Rc(12,b?` (${b})`:"",JSON.stringify(g.main)));return GP(g,"light",m,n),GP(g,"dark",T,n),g.contrastText||(g.contrastText=d(g.main)),g},p={dark:L_,light:xP};return xn(wt({common:wt({},Pc),mode:t,primary:f({color:a,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:o,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:c,name:"info"}),success:f({color:l,name:"success"}),grey:q7,contrastThreshold:r,getContrastText:d,augmentColor:f,tonalOffset:n},p[t]),i)}const W7=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Y7(e){return Math.round(e*1e5)/1e5}const zP={textTransform:"uppercase"},WP='"Roboto", "Helvetica", "Arial", sans-serif';function K7(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=WP,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:s=400,fontWeightMedium:o=500,fontWeightBold:c=700,htmlFontSize:l=16,allVariants:u,pxToRem:d}=r,f=ki(r,W7),p=i/14,y=d||(O=>`${O/l*p}rem`),g=(O,m,T,I,h)=>wt({fontFamily:n,fontWeight:O,fontSize:y(m),lineHeight:T},n===WP?{letterSpacing:`${Y7(I/m)}em`}:{},h,u),b={h1:g(a,96,1.167,-1.5),h2:g(a,60,1.2,-.5),h3:g(s,48,1.167,0),h4:g(s,34,1.235,.25),h5:g(s,24,1.334,0),h6:g(o,20,1.6,.15),subtitle1:g(s,16,1.75,.15),subtitle2:g(o,14,1.57,.1),body1:g(s,16,1.5,.15),body2:g(s,14,1.43,.15),button:g(o,14,1.75,.4,zP),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,zP),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return xn(wt({htmlFontSize:l,pxToRem:y,fontFamily:n,fontSize:i,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:o,fontWeightBold:c},b),f,{clone:!1})}const X7=.2,J7=.14,Q7=.12;function Ft(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${X7})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${J7})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Q7})`].join(",")}const Z7=["none",Ft(0,2,1,-1,0,1,1,0,0,1,3,0),Ft(0,3,1,-2,0,2,2,0,0,1,5,0),Ft(0,3,3,-2,0,3,4,0,0,1,8,0),Ft(0,2,4,-1,0,4,5,0,0,1,10,0),Ft(0,3,5,-1,0,5,8,0,0,1,14,0),Ft(0,3,5,-1,0,6,10,0,0,1,18,0),Ft(0,4,5,-2,0,7,10,1,0,2,16,1),Ft(0,5,5,-3,0,8,10,1,0,3,14,2),Ft(0,5,6,-3,0,9,12,1,0,3,16,2),Ft(0,6,6,-3,0,10,14,1,0,4,18,3),Ft(0,6,7,-4,0,11,15,1,0,4,20,3),Ft(0,7,8,-4,0,12,17,2,0,5,22,4),Ft(0,7,8,-4,0,13,19,2,0,5,24,4),Ft(0,7,9,-4,0,14,21,2,0,5,26,4),Ft(0,8,9,-5,0,15,22,2,0,6,28,5),Ft(0,8,10,-5,0,16,24,2,0,6,30,5),Ft(0,8,11,-5,0,17,26,2,0,6,32,5),Ft(0,9,11,-5,0,18,28,2,0,7,34,6),Ft(0,9,12,-6,0,19,29,2,0,7,36,6),Ft(0,10,13,-6,0,20,31,3,0,8,38,7),Ft(0,10,13,-6,0,21,33,3,0,8,40,7),Ft(0,10,14,-6,0,22,35,3,0,8,42,7),Ft(0,11,14,-7,0,23,36,3,0,9,44,8),Ft(0,11,15,-7,0,24,38,3,0,9,46,8)],e9=["duration","easing","delay"],t9={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},r9={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function YP(e){return`${Math.round(e)}ms`}function n9(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function i9(e){const t=wt({},t9,e.easing),r=wt({},r9,e.duration);return wt({getAutoHeightDuration:n9,create:(i=["all"],a={})=>{const{duration:s=r.standard,easing:o=t.easeInOut,delay:c=0}=a;return ki(a,e9),(Array.isArray(i)?i:[i]).map(l=>`${l} ${typeof s=="string"?s:YP(s)} ${o} ${typeof c=="string"?c:YP(c)}`).join(",")}},e,{easing:t,duration:r})}const a9={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},s9=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function o9(e={},...t){const{mixins:r={},palette:n={},transitions:i={},typography:a={}}=e,s=ki(e,s9);if(e.vars)throw new Error(Rc(18));const o=z7(n),c=xL(e);let l=xn(c,{mixins:D7(c.breakpoints,r),palette:o,shadows:Z7.slice(),typography:K7(o,a),transitions:i9(i),zIndex:wt({},a9)});return l=xn(l,s),l=t.reduce((u,d)=>xn(u,d),l),l.unstable_sxConfig=wt({},tu,s==null?void 0:s.unstable_sxConfig),l.unstable_sx=function(d){return Cf({sx:d,theme:this})},l}const c9=o9(),u9="$$material";function l9(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const d9=e=>l9(e)&&e!=="classes",f9=j7({themeId:u9,defaultTheme:c9,rootShouldForwardProp:d9});function p9(e){return SL("MuiSvgIcon",e)}gz("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const m9=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],h9=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${Li(t)}`,`fontSize${Li(r)}`]};return mz(i,p9,n)},y9=f9("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Li(r.color)}`],t[`fontSize${Li(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,i,a,s,o,c,l,u,d,f,p,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(s=a.pxToRem)==null?void 0:s.call(a,20))||"1.25rem",medium:((o=e.typography)==null||(c=o.pxToRem)==null?void 0:c.call(o,24))||"1.5rem",large:((l=e.typography)==null||(u=l.pxToRem)==null?void 0:u.call(l,35))||"2.1875rem"}[t.fontSize],color:(d=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?d:{action:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),$v=ve.forwardRef(function(t,r){const n=wz({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:s="inherit",component:o="svg",fontSize:c="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24"}=n,p=ki(n,m9),y=ve.isValidElement(i)&&i.type==="svg",g=wt({},n,{color:s,component:o,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:y}),b={};u||(b.viewBox=f);const O=h9(g);return C.jsxs(y9,wt({as:o,className:Ez(O.root,a),focusable:"false",color:l,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r},b,p,y&&i.props,{ownerState:g,children:[y?i.props.children:i,d?C.jsx("title",{children:d}):null]}))});$v.muiName="SvgIcon";function g9(e,t){function r(n,i){return C.jsx($v,wt({"data-testid":`${t}Icon`,ref:i},n,{children:e}))}return r.muiName=$v.muiName,ve.memo(ve.forwardRef(r))}const _9={configure:e=>{bL.configure(e)}},v9=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Li,createChainedFunction:GG,createSvgIcon:g9,debounce:zG,deprecatedPropType:WG,isMuiElement:YG,ownerDocument:_L,ownerWindow:KG,requirePropFactory:XG,setRef:vL,unstable_ClassNameGenerator:_9,unstable_useEnhancedEffect:EL,unstable_useId:QG,unsupportedProp:ZG,useControlled:ez,useEventCallback:tz,useForkRef:rz,useIsFocusVisible:pz},Symbol.toStringTag,{value:"Module"})),E9=mi(v9);var KP;function b9(){return KP||(KP=1,(function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=E9})(O_)),O_}var XP;function S9(){if(XP)return qo;XP=1;var e=nb();Object.defineProperty(qo,"__esModule",{value:!0}),qo.default=void 0;var t=e(b9()),r=g2();return qo.default=(0,t.default)((0,r.jsx)("path",{d:"M18.3 5.71a.9959.9959 0 0 0-1.41 0L12 10.59 7.11 5.7a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"}),"CloseRounded"),qo}var T9=S9();const GL=Vd(T9),Mf=`${St.nftApiUrl}/v1`;function zL(e){if(!e)return 0;try{return Math.ceil(Number(UC(e))*10)}catch{return 0}}function DJ(e){if(!e)return 0;try{const t=BigInt(e),r=10n**16n;return Number((t+r-1n)/r)}catch{return 0}}async function LJ(e,t){var n,i,a;const r=new URLSearchParams({contractAddresses:e,itemId:t,first:"1"});try{const s=await fetch(`${St.nftApiUrl}/v2/catalog?${r.toString()}`);if(!s.ok)return"";const{data:o}=await s.json(),c=(n=o==null?void 0:o[0])==null?void 0:n.data;return(((i=c==null?void 0:c.wearable)==null?void 0:i.description)??((a=c==null?void 0:c.emote)==null?void 0:a.description)??"").trim()}catch{return""}}async function $J(e){const{listings:t}=await jf({contractAddress:e,first:200}),r={};for(const n of t)n.listingType!=="primary"||n.itemId==null||(r[String(n.itemId)]={isOnSale:!0,priceCredits:n.priceCredits,tradeId:n.tradeId});return r}async function w9(e,t){var a;const r=new URLSearchParams({contractAddress:e,tokenId:t,first:"1"}),n=await fetch(`${Mf}/nfts?${r.toString()}`);if(!n.ok)return null;const{data:i}=await n.json();return((a=i==null?void 0:i[0])==null?void 0:a.nft)??null}function hb(e){return{id:e.tradeId,tradeId:e.tradeId,name:e.name,creator:e.creator,contractAddress:e.contractAddress,itemId:e.itemId,tokenId:e.tokenId??void 0,category:e.category,wearableCategory:e.wearableCategory??void 0,rarity:e.rarity,network:e.network,chainId:e.chainId,thumbnail:e.thumbnail,priceCredits:e.priceCredits,gender:e.gender??null,isSmart:e.isSmart??!1,compareAtCredits:e.compareAtCredits!=null&&e.compareAtCredits>e.priceCredits?e.compareAtCredits:void 0,saleEndsAt:e.saleEndsAt!=null?e.saleEndsAt*1e3:void 0}}async function jf(e){var i,a;const t=new URLSearchParams;(e.category==="wearable"||e.category==="emote")&&t.set("category",e.category),e.first!=null&&t.set("first",String(e.first)),e.skip!=null&&t.set("skip",String(e.skip)),e.contractAddress&&t.set("contractAddress",e.contractAddress),e.itemId!=null&&t.set("itemId",e.itemId),e.creator&&t.set("creator",e.creator),(i=e.rarities)!=null&&i.length&&t.set("rarity",e.rarities.join(",")),(a=e.wearableCategories)!=null&&a.length&&t.set("wearableCategory",e.wearableCategories.join(",")),e.minPriceCredits!=null&&t.set("minPriceCredits",String(e.minPriceCredits)),e.maxPriceCredits!=null&&t.set("maxPriceCredits",String(e.maxPriceCredits)),e.search&&t.set("search",e.search),e.sortBy&&t.set("sortBy",e.sortBy);const r=await fetch(`${St.marketplaceServerUrl}/v3/catalog/shop?${t.toString()}`);if(!r.ok)throw new Error(`fetchShopListings ${r.status}`);const n=await r.json();return{listings:n.data??[],total:n.total??0}}async function kJ(e,t){const{listings:r}=await jf({contractAddress:e,itemId:t,first:1});return r[0]?hb(r[0]):null}async function WL({first:e=100,...t}={}){const{listings:r,total:n}=await jf({...t,first:e});return{items:r.map(hb),total:n}}function I9(e){return{...hb(e),source:e.source,manaWei:e.manaWei??null}}async function qJ({first:e=100,...t}={}){var s,o;const r=new URLSearchParams;(t.category==="wearable"||t.category==="emote")&&r.set("category",t.category),r.set("first",String(e)),t.skip!=null&&r.set("skip",String(t.skip)),t.contractAddress&&r.set("contractAddress",t.contractAddress),t.itemId!=null&&r.set("itemId",t.itemId),t.creator&&r.set("creator",t.creator),(s=t.rarities)!=null&&s.length&&r.set("rarity",t.rarities.join(",")),(o=t.wearableCategories)!=null&&o.length&&r.set("wearableCategory",t.wearableCategories.join(",")),t.minPriceCredits!=null&&r.set("minPriceCredits",String(t.minPriceCredits)),t.maxPriceCredits!=null&&r.set("maxPriceCredits",String(t.maxPriceCredits)),t.search&&r.set("search",t.search),t.sortBy&&r.set("sortBy",t.sortBy);const n=await fetch(`${St.marketplaceServerUrl}/v3/catalog/unified?${r.toString()}`);if(!n.ok)throw new Error(`fetchUnified ${n.status}`);const i=await n.json(),a=i.data??[];return{items:a.map(I9),total:i.total??a.length}}async function BJ(e,t,r){try{const n=new URLSearchParams({owner:e.toLowerCase(),contractAddress:t,itemId:r,first:"1"}),i=await fetch(`${Mf}/nfts?${n.toString()}`);if(!i.ok)return!1;const{total:a}=await i.json();return(a??0)>0}catch{return!1}}async function UJ(e,{category:t="wearable",first:r=48,skip:n=0}={}){const i=new URLSearchParams({owner:e.toLowerCase(),category:t,first:String(r),skip:String(n),sortBy:"newest",orderDirection:"desc"}),a=await fetch(`${Mf}/nfts?${i.toString()}`);if(!a.ok)throw new Error(`Failed to fetch assets (${a.status})`);const{data:s,total:o}=await a.json();return{assets:s.map(l=>{var u,d,f,p,y;return{id:l.nft.id,contractAddress:l.nft.contractAddress,tokenId:l.nft.tokenId,itemId:l.nft.itemId??null,name:l.nft.name,category:l.nft.category,image:l.nft.image,rarity:((d=(u=l.nft.data)==null?void 0:u.wearable)==null?void 0:d.rarity)??((p=(f=l.nft.data)==null?void 0:f.emote)==null?void 0:p.rarity),network:l.nft.network,chainId:l.nft.chainId,isOnSale:l.order!=null,listingPrice:l.order?zL(l.order.price):void 0,tradeId:(y=l.order)==null?void 0:y.tradeId}}),total:o}}const R9="dcl:marketplace";async function FJ(e,t){const{TradeService:r}=await ar(async()=>{const{TradeService:i}=await import("./TradeService-sWmitO7N.js");return{TradeService:i}},__vite__mapDeps([8,5,1,9,2,6,7]));return new r(R9,St.marketplaceServerUrl,()=>t).addTrade(e)}async function YL(e){const t=await fetch(`${St.marketplaceServerUrl}/v1/trades/${e}`);if(!t.ok)throw new Error(`fetchTrade ${t.status}`);const r=await t.json();return r.data??r}async function A9(e,t){const r=new URLSearchParams({contractAddress:e,itemId:t,first:"1"}),n=await fetch(`${Mf}/items?${r.toString()}`);if(!n.ok)return null;const{data:i}=await n.json();return(i==null?void 0:i[0])??null}async function HJ(e){var c,l;let t;try{t=await YL(e)}catch{return null}const r=(c=t.sent)==null?void 0:c[0],n=(l=t.received)==null?void 0:l[0],i=zL(n==null?void 0:n.amount),a=(r==null?void 0:r.contractAddress)??"",s=(r==null?void 0:r.value)??"";if(!a)return{name:"Item",thumbnail:"",credits:i,contractAddress:""};if((r==null?void 0:r.assetType)===Ur.TradeAssetType.COLLECTION_ITEM){const u=await A9(a,s);return{name:(u==null?void 0:u.name)??"Item",thumbnail:(u==null?void 0:u.thumbnail)??"",credits:i,contractAddress:a,itemId:s}}const o=await w9(a,s);return{name:(o==null?void 0:o.name)??`#${s}`,thumbnail:(o==null?void 0:o.image)??"",credits:i,contractAddress:a,tokenId:s}}async function VJ(e,t){var i;const{listings:r}=await jf({contractAddress:e,itemId:t,first:1}),n=(i=r[0])==null?void 0:i.tradeId;return n?YL(n):null}async function O9(e,t=4){const r=new URLSearchParams({search:e,first:String(t)}),n=await fetch(`${St.nftApiUrl}/v1/collections?${r.toString()}`);if(!n.ok)throw new Error(`fetchCollectionSuggestions ${n.status}`);const{data:i}=await n.json();return(i??[]).filter(a=>a.contractAddress&&a.name).map(a=>({contractAddress:a.contractAddress,name:a.name,creator:a.creator??""}))}async function N9(e,t){var s,o,c;const r=new URLSearchParams({category:"ens",search:e,first:String(t)}),n=await fetch(`${St.nftApiUrl}/v1/nfts?${r.toString()}`);if(!n.ok)throw new Error(`fetchNameOwners ${n.status}`);const{data:i}=await n.json(),a=new Map;for(const l of i??[]){const u=(o=(s=l.nft)==null?void 0:s.owner)==null?void 0:o.toLowerCase(),d=(c=l.nft)==null?void 0:c.name;u&&d&&!a.has(u)&&a.set(u,d)}return a}async function P9(e){if(e.length===0)return new Map;const t=new URLSearchParams({sortBy:"most_collections"});for(const a of e)t.append("address",a);const r=await fetch(`${St.nftApiUrl}/v1/accounts?${t.toString()}`);if(!r.ok)throw new Error(`fetchSellerCounts ${r.status}`);const{data:n}=await r.json(),i=new Map;for(const a of n??[])(a.collections??0)>0&&i.set(a.address.toLowerCase(),a.collections??0);return i}async function C9(e,t=4,r=20){const n=e.trim();if(!n)return[];const i=await N9(n,r);if(i.size===0)return[];const a=await P9([...i.keys()]),s=[...i.keys()].filter(o=>a.has(o)).slice(0,t);return s.length===0?[]:Promise.all(s.map(async o=>{var l,u;const c=await QD(o);return{address:o,name:(c==null?void 0:c.name)||(i.get(o)??o),face:(u=(l=c==null?void 0:c.avatar)==null?void 0:l.snapshots)==null?void 0:u.face256}}))}function M9(e){if(!e||e.length===0)return null;const t=e.some(n=>n.includes("Male")),r=e.some(n=>n.includes("Female"));return t&&r?"unisex":t?"male":r?"female":null}function KL(e){var t,r,n,i,a,s,o,c;return{id:e.id,name:e.name,creator:e.creator??"",contractAddress:e.contractAddress,itemId:e.itemId??null,category:e.category,wearableCategory:((r=(t=e.data)==null?void 0:t.wearable)==null?void 0:r.category)??((i=(n=e.data)==null?void 0:n.emote)==null?void 0:i.category),rarity:e.rarity??"common",isSmart:!!((s=(a=e.data)==null?void 0:a.wearable)!=null&&s.isSmart),network:e.network,chainId:e.chainId,thumbnail:e.thumbnail??"",priceCredits:e.priceCredits??0,gender:M9((c=(o=e.data)==null?void 0:o.wearable)==null?void 0:c.bodyShapes)}}async function j9(e,{first:t=20,skip:r=0,category:n,rarities:i,wearableCategories:a,minPriceCredits:s,maxPriceCredits:o,sortBy:c}={}){const l=new URLSearchParams({contractAddress:e,first:String(t),skip:String(r),includeSocialEmotes:"false"});n&&n!=="all"&&l.set("category",n),i==null||i.forEach(y=>l.append("rarity",y)),a==null||a.forEach(y=>l.append("wearableCategory",y)),s!=null&&l.set("minPrice",String(s)),o!=null&&l.set("maxPrice",String(o)),c&&l.set("sortBy",c);const u=await fetch(`${St.marketplaceServerUrl}/v3/catalog/items?${l.toString()}`);if(!u.ok)throw new Error(`fetchCollectionItems ${u.status}`);const{data:d,total:f}=await u.json(),p=(d??[]).map(KL);return{items:p,total:f??r+p.length}}async function D9(e,{first:t=60,skip:r=0}={}){const n=new URLSearchParams({creator:e,first:String(t),skip:String(r),includeSocialEmotes:"false"}),i=await fetch(`${St.marketplaceServerUrl}/v3/catalog/items?${n.toString()}`);if(!i.ok)throw new Error(`fetchCreatorItems ${i.status}`);const{data:a,total:s}=await i.json(),o=(a??[]).map(KL);return{items:o,total:s??r+o.length}}async function xJ(e,{first:t=24,skip:r=0}={}){const n=new URLSearchParams({creator:e,first:String(t),skip:String(r),sortBy:"newest"}),i=await fetch(`${St.nftApiUrl}/v1/collections?${n.toString()}`);if(!i.ok)throw new Error(`fetchCreatorCollections ${i.status}`);const{data:a,total:s}=await i.json(),o=(a??[]).map(c=>({contractAddress:c.contractAddress,name:c.name??"",creator:c.creator??"",itemCount:c.size??0}));return{collections:o,total:s??r+o.length}}async function GJ(e){const t=new URLSearchParams({contractAddress:e,first:"1"}),r=await fetch(`${St.nftApiUrl}/v1/collections?${t.toString()}`);if(!r.ok)throw new Error(`fetchCollection ${r.status}`);const{data:n}=await r.json(),i=n==null?void 0:n[0];return i&&i.contractAddress?{contractAddress:i.contractAddress,name:i.name??"",creator:i.creator??""}:null}const JP="radial-gradient(#c0bdc6, #a09ba8)",QP="#E6E6E6";function XL(e){const t=typeof e=="string"?e.replace("#",""):"";return t.length<6?null:[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]}function L9([e,t,r]){return .299*e+.587*t+.114*r}function JL(e){return e&&Ur.Rarity.getColor(e.toLowerCase())||QP}function $9(e,t=.3){const r=XL(JL(e));return r?`rgba(${r[0]}, ${r[1]}, ${r[2]}, ${t})`:`rgba(160, 155, 168, ${t})`}function k9(e,t=120){const r=JL(e),n=XL(r);if(!n)return"#161518";const i=L9(n);if(i<=t)return r;const a=t/i,s=o=>Math.round(o*a).toString(16).padStart(2,"0");return`#${s(n[0])}${s(n[1])}${s(n[2])}`}function q9(e){try{const[t,r]=Ur.Rarity.getGradient((e??"common").toLowerCase());return!t||!r?JP:`radial-gradient(${t}, ${r})`}catch{return JP}}const QL=4;function B9(e,t=!0){return li({queryKey:["collection-preview",e],queryFn:()=>j9(e,{first:QL}),enabled:t,staleTime:5*6e4})}function U9({items:e,className:t}){const r=e.slice(0,QL);return C.jsx("span",{className:`coll-thumb${t?` ${t}`:""}`,"data-count":r.length,"aria-hidden":!0,children:r.map(n=>C.jsx("span",{className:"coll-thumb__cell",style:{backgroundImage:q9(n.rarity)},children:n.thumbnail?C.jsx("img",{src:n.thumbnail,alt:"",loading:"lazy"}):null},n.id))})}function F9({contractAddress:e,className:t,fallback:r=null}){const{data:n}=B9(e),i=(n==null?void 0:n.items)??[];return i.length===0?C.jsx(C.Fragment,{children:r}):C.jsx(U9,{items:i,className:t})}var kv=function(e,t){return kv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},kv(e,t)};function Kr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");kv(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ke=function(){return ke=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},ke.apply(this,arguments)};function po(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function ZL(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function e$(e,t){return function(r,n){t(r,n,e)}}function t$(e,t,r,n,i,a){function s(O){if(O!==void 0&&typeof O!="function")throw new TypeError("Function expected");return O}for(var o=n.kind,c=o==="getter"?"get":o==="setter"?"set":"value",l=!t&&e?n.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),d,f=!1,p=r.length-1;p>=0;p--){var y={};for(var g in n)y[g]=g==="access"?{}:n[g];for(var g in n.access)y.access[g]=n.access[g];y.addInitializer=function(O){if(f)throw new TypeError("Cannot add initializers after decoration has completed");a.push(s(O||null))};var b=(0,r[p])(o==="accessor"?{get:u.get,set:u.set}:u[c],y);if(o==="accessor"){if(b===void 0)continue;if(b===null||typeof b!="object")throw new TypeError("Object expected");(d=s(b.get))&&(u.get=d),(d=s(b.set))&&(u.set=d),(d=s(b.init))&&i.unshift(d)}else(d=s(b))&&(o==="field"?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,n.name,u),f=!0}function r$(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function n$(e){return typeof e=="symbol"?e:"".concat(e)}function i$(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function a$(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function s$(e,t,r,n){function i(a){return a instanceof r?a:new r(function(s){s(a)})}return new(r||(r=Promise))(function(a,s){function o(u){try{l(n.next(u))}catch(d){s(d)}}function c(u){try{l(n.throw(u))}catch(d){s(d)}}function l(u){u.done?a(u.value):i(u.value).then(o,c)}l((n=n.apply(e,t||[])).next())})}function o$(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=o(0),s.throw=o(1),s.return=o(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(l){return function(u){return c([l,u])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(r=0)),r;)try{if(n=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){r.label=l[1];break}if(l[0]===6&&r.label<a[1]){r.label=a[1],a=l;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(l);break}a[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(u){l=[6,u],i=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}var Df=Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]});function c$(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Df(t,e,r)}function Fd(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function yb(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){s={error:o}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return a}function u$(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(yb(arguments[t]));return e}function l$(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var a=arguments[t],s=0,o=a.length;s<o;s++,i++)n[i]=a[s];return n}function pr(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}function Js(e){return this instanceof Js?(this.v=e,this):new Js(e)}function d$(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),o("next"),o("throw"),o("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(p){return function(y){return Promise.resolve(y).then(p,d)}}function o(p,y){n[p]&&(i[p]=function(g){return new Promise(function(b,O){a.push([p,g,b,O])>1||c(p,g)})},y&&(i[p]=y(i[p])))}function c(p,y){try{l(n[p](y))}catch(g){f(a[0][3],g)}}function l(p){p.value instanceof Js?Promise.resolve(p.value.v).then(u,d):f(a[0][2],p)}function u(p){c("next",p)}function d(p){c("throw",p)}function f(p,y){p(y),a.shift(),a.length&&c(a[0][0],a[0][1])}}function f$(e){var t,r;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,a){t[i]=e[i]?function(s){return(r=!r)?{value:Js(e[i](s)),done:!1}:a?a(s):s}:a}}function p$(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof Fd=="function"?Fd(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(a){r[a]=e[a]&&function(s){return new Promise(function(o,c){s=e[a](s),i(o,c,s.done,s.value)})}}function i(a,s,o,c){Promise.resolve(c).then(function(l){a({value:l,done:o})},s)}}function m$(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var H9=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t},qv=function(e){return qv=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},qv(e)};function h$(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=qv(e),n=0;n<r.length;n++)r[n]!=="default"&&Df(t,e,r[n]);return H9(t,e),t}function y$(e){return e&&e.__esModule?e:{default:e}}function g$(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)}function _$(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}function v$(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function E$(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,i;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(i=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(a){return Promise.reject(a)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var V9=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function b$(e){function t(a){e.error=e.hasError?new V9(a,e.error,"An error was suppressed during disposal."):a,e.hasError=!0}var r,n=0;function i(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(i);if(r.dispose){var a=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(a).then(i,function(s){return t(s),i()})}else n|=1}catch(s){t(s)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i()}function S$(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,i,a,s){return n?t?".jsx":".js":i&&(!a||!s)?r:i+a+"."+s.toLowerCase()+"js"}):e}const x9={__extends:Kr,__assign:ke,__rest:po,__decorate:ZL,__param:e$,__esDecorate:t$,__runInitializers:r$,__propKey:n$,__setFunctionName:i$,__metadata:a$,__awaiter:s$,__generator:o$,__createBinding:Df,__exportStar:c$,__values:Fd,__read:yb,__spread:u$,__spreadArrays:l$,__spreadArray:pr,__await:Js,__asyncGenerator:d$,__asyncDelegator:f$,__asyncValues:p$,__makeTemplateObject:m$,__importStar:h$,__importDefault:y$,__classPrivateFieldGet:g$,__classPrivateFieldSet:_$,__classPrivateFieldIn:v$,__addDisposableResource:E$,__disposeResources:b$,__rewriteRelativeImportExtension:S$},zJ=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:E$,get __assign(){return ke},__asyncDelegator:f$,__asyncGenerator:d$,__asyncValues:p$,__await:Js,__awaiter:s$,__classPrivateFieldGet:g$,__classPrivateFieldIn:v$,__classPrivateFieldSet:_$,__createBinding:Df,__decorate:ZL,__disposeResources:b$,__esDecorate:t$,__exportStar:c$,__extends:Kr,__generator:o$,__importDefault:y$,__importStar:h$,__makeTemplateObject:m$,__metadata:a$,__param:e$,__propKey:n$,__read:yb,__rest:po,__rewriteRelativeImportExtension:S$,__runInitializers:r$,__setFunctionName:i$,__spread:u$,__spreadArray:pr,__spreadArrays:l$,__values:Fd,default:x9},Symbol.toStringTag,{value:"Module"}));function Or(e,t){var r=t&&t.cache?t.cache:X9,n=t&&t.serializer?t.serializer:K9,i=t&&t.strategy?t.strategy:W9;return i(e,{cache:r,serializer:n})}function G9(e){return e==null||typeof e=="number"||typeof e=="boolean"}function z9(e,t,r,n){var i=G9(n)?n:r(n),a=t.get(i);return typeof a>"u"&&(a=e.call(this,n),t.set(i,a)),a}function T$(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),a=t.get(i);return typeof a>"u"&&(a=e.apply(this,n),t.set(i,a)),a}function w$(e,t,r,n,i){return r.bind(t,e,n,i)}function W9(e,t){var r=e.length===1?z9:T$;return w$(e,this,r,t.cache.create(),t.serializer)}function Y9(e,t){return w$(e,this,T$,t.cache.create(),t.serializer)}var K9=function(){return JSON.stringify(arguments)};function gb(){this.cache=Object.create(null)}gb.prototype.get=function(e){return this.cache[e]};gb.prototype.set=function(e,t){this.cache[e]=t};var X9={create:function(){return new gb}},Nr={variadic:Y9};function I$(e,t,r){if(r===void 0&&(r=Error),!e)throw new r(t)}Or(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,pr([void 0],t,!1)))},{strategy:Nr.variadic});Or(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,pr([void 0],t,!1)))},{strategy:Nr.variadic});Or(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,pr([void 0],t,!1)))},{strategy:Nr.variadic});Or(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.Locale).bind.apply(e,pr([void 0],t,!1)))},{strategy:Nr.variadic});Or(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.ListFormat).bind.apply(e,pr([void 0],t,!1)))},{strategy:Nr.variadic});var st;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(st||(st={}));var qt;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(qt||(qt={}));var Qs;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Qs||(Qs={}));function ZP(e){return e.type===qt.literal}function J9(e){return e.type===qt.argument}function R$(e){return e.type===qt.number}function A$(e){return e.type===qt.date}function O$(e){return e.type===qt.time}function N$(e){return e.type===qt.select}function P$(e){return e.type===qt.plural}function Q9(e){return e.type===qt.pound}function C$(e){return e.type===qt.tag}function M$(e){return!!(e&&typeof e=="object"&&e.type===Qs.number)}function Bv(e){return!!(e&&typeof e=="object"&&e.type===Qs.dateTime)}var j$=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Z9=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function eY(e){var t={};return e.replace(Z9,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var tY=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function rY(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(tY).filter(function(f){return f.length>0}),r=[],n=0,i=t;n<i.length;n++){var a=i[n],s=a.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var o=s[0],c=s.slice(1),l=0,u=c;l<u.length;l++){var d=u[l];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:o,options:c})}return r}function nY(e){return e.replace(/^(.*?)-/,"")}var eC=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,D$=/^(@+)?(\+|#+)?[rs]?$/g,iY=/(\*)(0+)|(#+)(0+)|(0+)/g,L$=/^(0+)$/;function tC(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(D$,function(r,n,i){return typeof i!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):i==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof i=="string"?i.length:0)),""}),t}function $$(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function aY(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!L$.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function rC(e){var t={},r=$$(e);return r||t}function sY(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=nY(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=ke(ke(ke({},t),{notation:"scientific"}),i.options.reduce(function(c,l){return ke(ke({},c),rC(l))},{}));continue;case"engineering":t=ke(ke(ke({},t),{notation:"engineering"}),i.options.reduce(function(c,l){return ke(ke({},c),rC(l))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(iY,function(c,l,u,d,f,p){if(l)t.minimumIntegerDigits=u.length;else{if(d&&f)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(L$.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(eC.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(eC,function(c,l,u,d,f,p){return u==="*"?t.minimumFractionDigits=l.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:f&&p?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+p.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var a=i.options[0];a==="w"?t=ke(ke({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=ke(ke({},t),tC(a)));continue}if(D$.test(i.stem)){t=ke(ke({},t),tC(i.stem));continue}var s=$$(i.stem);s&&(t=ke(ke({},t),s));var o=aY(i.stem);o&&(t=ke(ke({},t),o))}return t}var md={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function oY(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var a=0;n+1<e.length&&e.charAt(n+1)===i;)a++,n++;var s=1+(a&1),o=a<2?1:3+(a>>1),c="a",l=cY(t);for((l=="H"||l=="k")&&(o=0);o-- >0;)r+=c;for(;s-- >0;)r=l+r}else i==="J"?r+="H":r+=i}return r}function cY(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=md[n||""]||md[r||""]||md["".concat(r,"-001")]||md["001"];return i[0]}var $_,uY=new RegExp("^".concat(j$.source,"*")),lY=new RegExp("".concat(j$.source,"*$"));function lt(e,t){return{start:e,end:t}}var dY=!!String.prototype.startsWith&&"_a".startsWith("a",1),fY=!!String.fromCodePoint,pY=!!Object.fromEntries,mY=!!String.prototype.codePointAt,hY=!!String.prototype.trimStart,yY=!!String.prototype.trimEnd,gY=!!Number.isSafeInteger,_Y=gY?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Uv=!0;try{var vY=q$("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Uv=(($_=vY.exec("a"))===null||$_===void 0?void 0:$_[0])==="a"}catch{Uv=!1}var nC=dY?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Fv=fY?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,a=0,s;i>a;){if(s=t[a++],s>1114111)throw RangeError(s+" is not a valid code point");n+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return n},iC=pY?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var a=i[n],s=a[0],o=a[1];r[s]=o}return r},k$=mY?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var i=t.charCodeAt(r),a;return i<55296||i>56319||r+1===n||(a=t.charCodeAt(r+1))<56320||a>57343?i:(i-55296<<10)+(a-56320)+65536}},EY=hY?function(t){return t.trimStart()}:function(t){return t.replace(uY,"")},bY=yY?function(t){return t.trimEnd()}:function(t){return t.replace(lY,"")};function q$(e,t){return new RegExp(e,t)}var Hv;if(Uv){var aC=q$("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Hv=function(t,r){var n;aC.lastIndex=r;var i=aC.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else Hv=function(t,r){for(var n=[];;){var i=k$(t,r);if(i===void 0||B$(i)||IY(i))break;n.push(i),r+=i>=65536?2:1}return Fv.apply(void 0,n)};var SY=(function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var a=this.char();if(a===123){var s=this.parseArgument(t,n);if(s.err)return s;i.push(s.val)}else{if(a===125&&t>0)break;if(a===35&&(r==="plural"||r==="selectordinal")){var o=this.clonePosition();this.bump(),i.push({type:qt.pound,location:lt(o,this.clonePosition())})}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(st.UNMATCHED_CLOSING_TAG,lt(this.clonePosition(),this.clonePosition()))}else if(a===60&&!this.ignoreTag&&Vv(this.peek()||0)){var s=this.parseTag(t,r);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,r);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:qt.literal,value:"<".concat(i,"/>"),location:lt(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,r,!0);if(a.err)return a;var s=a.val,o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Vv(this.char()))return this.error(st.INVALID_TAG,lt(o,this.clonePosition()));var c=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(st.UNMATCHED_CLOSING_TAG,lt(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:qt.tag,value:i,children:s,location:lt(n,this.clonePosition())},err:null}:this.error(st.INVALID_TAG,lt(o,this.clonePosition())))}else return this.error(st.UNCLOSED_TAG,lt(n,this.clonePosition()))}else return this.error(st.INVALID_TAG,lt(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&wY(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var a=this.tryParseQuote(r);if(a){i+=a;continue}var s=this.tryParseUnquoted(t,r);if(s){i+=s;continue}var o=this.tryParseLeftAngleBracket();if(o){i+=o;continue}break}var c=lt(n,this.clonePosition());return{val:{type:qt.literal,value:i,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!TY(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return Fv.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),Fv(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(st.EXPECT_ARGUMENT_CLOSING_BRACE,lt(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(st.EMPTY_ARGUMENT,lt(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(st.MALFORMED_ARGUMENT,lt(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(st.EXPECT_ARGUMENT_CLOSING_BRACE,lt(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:qt.argument,value:i,location:lt(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(st.EXPECT_ARGUMENT_CLOSING_BRACE,lt(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(st.MALFORMED_ARGUMENT,lt(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Hv(this.message,r),i=r+n.length;this.bumpTo(i);var a=this.clonePosition(),s=lt(t,a);return{value:n,location:s}},e.prototype.parseArgumentOptions=function(t,r,n,i){var a,s=this.clonePosition(),o=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(o){case"":return this.error(st.EXPECT_ARGUMENT_TYPE,lt(s,c));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var f=bY(d.val);if(f.length===0)return this.error(st.EXPECT_ARGUMENT_STYLE,lt(this.clonePosition(),this.clonePosition()));var p=lt(u,this.clonePosition());l={style:f,styleLocation:p}}var y=this.tryParseArgumentClose(i);if(y.err)return y;var g=lt(i,this.clonePosition());if(l&&nC(l==null?void 0:l.style,"::",0)){var b=EY(l.style.slice(2));if(o==="number"){var d=this.parseNumberSkeletonFromString(b,l.styleLocation);return d.err?d:{val:{type:qt.number,value:n,location:g,style:d.val},err:null}}else{if(b.length===0)return this.error(st.EXPECT_DATE_TIME_SKELETON,g);var O=b;this.locale&&(O=oY(b,this.locale));var f={type:Qs.dateTime,pattern:O,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?eY(O):{}},m=o==="date"?qt.date:qt.time;return{val:{type:m,value:n,location:g,style:f},err:null}}}return{val:{type:o==="number"?qt.number:o==="date"?qt.date:qt.time,value:n,location:g,style:(a=l==null?void 0:l.style)!==null&&a!==void 0?a:null},err:null}}case"plural":case"selectordinal":case"select":{var T=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(st.EXPECT_SELECT_ARGUMENT_OPTIONS,lt(T,ke({},T)));this.bumpSpace();var I=this.parseIdentifierIfPossible(),h=0;if(o!=="select"&&I.value==="offset"){if(!this.bumpIf(":"))return this.error(st.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,lt(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(st.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,st.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),I=this.parseIdentifierIfPossible(),h=d.val}var v=this.tryParsePluralOrSelectOptions(t,o,r,I);if(v.err)return v;var y=this.tryParseArgumentClose(i);if(y.err)return y;var E=lt(i,this.clonePosition());return o==="select"?{val:{type:qt.select,value:n,options:iC(v.val),location:E},err:null}:{val:{type:qt.plural,value:n,options:iC(v.val),offset:h,pluralType:o==="plural"?"cardinal":"ordinal",location:E},err:null}}default:return this.error(st.INVALID_ARGUMENT_TYPE,lt(s,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(st.EXPECT_ARGUMENT_CLOSING_BRACE,lt(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(st.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,lt(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=rY(t)}catch{return this.error(st.INVALID_NUMBER_SKELETON,r)}return{val:{type:Qs.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?sY(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var a,s=!1,o=[],c=new Set,l=i.value,u=i.location;;){if(l.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(st.EXPECT_PLURAL_ARGUMENT_SELECTOR,st.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;u=lt(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}else break}if(c.has(l))return this.error(r==="select"?st.DUPLICATE_SELECT_ARGUMENT_SELECTOR:st.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);l==="other"&&(s=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?st.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:st.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,lt(this.clonePosition(),this.clonePosition()));var y=this.parseMessage(t+1,r,n);if(y.err)return y;var g=this.tryParseArgumentClose(p);if(g.err)return g;o.push([l,{value:y.val,location:lt(p,this.clonePosition())}]),c.add(l),this.bumpSpace(),a=this.parseIdentifierIfPossible(),l=a.value,u=a.location}return o.length===0?this.error(r==="select"?st.EXPECT_SELECT_ARGUMENT_SELECTOR:st.EXPECT_PLURAL_ARGUMENT_SELECTOR,lt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(st.MISSING_OTHER_CLAUSE,lt(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var a=!1,s=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)a=!0,s=s*10+(o-48),this.bump();else break}var c=lt(i,this.clonePosition());return a?(s*=n,_Y(s)?{val:s,err:null}:this.error(r,c)):this.error(t,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=k$(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(nC(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&B$(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n??null},e})();function Vv(e){return e>=97&&e<=122||e>=65&&e<=90}function TY(e){return Vv(e)||e===47}function wY(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function B$(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function IY(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function xv(e){e.forEach(function(t){if(delete t.location,N$(t)||P$(t))for(var r in t.options)delete t.options[r].location,xv(t.options[r].value);else R$(t)&&M$(t.style)||(A$(t)||O$(t))&&Bv(t.style)?delete t.style.location:C$(t)&&xv(t.children)})}function RY(e,t){t===void 0&&(t={}),t=ke({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new SY(e,t).parse();if(r.err){var n=SyntaxError(st[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||xv(r.val),r.val}var zn;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(zn||(zn={}));var qi=(function(e){Kr(t,e);function t(r,n,i){var a=e.call(this,r)||this;return a.code=n,a.originalMessage=i,a}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t})(Error),sC=(function(e){Kr(t,e);function t(r,n,i,a){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),zn.INVALID_VALUE,a)||this}return t})(qi),AY=(function(e){Kr(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),zn.INVALID_VALUE,i)||this}return t})(qi),OY=(function(e){Kr(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),zn.MISSING_VALUE,n)||this}return t})(qi),Ar;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Ar||(Ar={}));function NY(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==Ar.literal||r.type!==Ar.literal?t.push(r):n.value+=r.value,t},[])}function U$(e){return typeof e=="function"}function Rd(e,t,r,n,i,a,s){if(e.length===1&&ZP(e[0]))return[{type:Ar.literal,value:e[0].value}];for(var o=[],c=0,l=e;c<l.length;c++){var u=l[c];if(ZP(u)){o.push({type:Ar.literal,value:u.value});continue}if(Q9(u)){typeof a=="number"&&o.push({type:Ar.literal,value:r.getNumberFormat(t).format(a)});continue}var d=u.value;if(!(i&&d in i))throw new OY(d,s);var f=i[d];if(J9(u)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),o.push({type:typeof f=="string"?Ar.literal:Ar.object,value:f});continue}if(A$(u)){var p=typeof u.style=="string"?n.date[u.style]:Bv(u.style)?u.style.parsedOptions:void 0;o.push({type:Ar.literal,value:r.getDateTimeFormat(t,p).format(f)});continue}if(O$(u)){var p=typeof u.style=="string"?n.time[u.style]:Bv(u.style)?u.style.parsedOptions:n.time.medium;o.push({type:Ar.literal,value:r.getDateTimeFormat(t,p).format(f)});continue}if(R$(u)){var p=typeof u.style=="string"?n.number[u.style]:M$(u.style)?u.style.parsedOptions:void 0;p&&p.scale&&(f=f*(p.scale||1)),o.push({type:Ar.literal,value:r.getNumberFormat(t,p).format(f)});continue}if(C$(u)){var y=u.children,g=u.value,b=i[g];if(!U$(b))throw new AY(g,"function",s);var O=Rd(y,t,r,n,i,a),m=b(O.map(function(h){return h.value}));Array.isArray(m)||(m=[m]),o.push.apply(o,m.map(function(h){return{type:typeof h=="string"?Ar.literal:Ar.object,value:h}}))}if(N$(u)){var T=u.options[f]||u.options.other;if(!T)throw new sC(u.value,f,Object.keys(u.options),s);o.push.apply(o,Rd(T.value,t,r,n,i));continue}if(P$(u)){var T=u.options["=".concat(f)];if(!T){if(!Intl.PluralRules)throw new qi(`Intl.PluralRules is not available in this environment.
|
|
83
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
84
|
-
`,zn.MISSING_INTL_API,s);var I=r.getPluralRules(t,{type:u.pluralType}).select(f-(u.offset||0));T=u.options[I]||u.options.other}if(!T)throw new sC(u.value,f,Object.keys(u.options),s);o.push.apply(o,Rd(T.value,t,r,n,i,f-(u.offset||0)));continue}}return NY(o)}function PY(e,t){return t?ke(ke(ke({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=ke(ke({},e[n]),t[n]||{}),r},{})):e}function CY(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=PY(e[n],t[n]),r},ke({},e)):e}function k_(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function MY(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Or(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,pr([void 0],r,!1)))},{cache:k_(e.number),strategy:Nr.variadic}),getDateTimeFormat:Or(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,pr([void 0],r,!1)))},{cache:k_(e.dateTime),strategy:Nr.variadic}),getPluralRules:Or(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,pr([void 0],r,!1)))},{cache:k_(e.pluralRules),strategy:Nr.variadic})}}var F$=(function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var l=a.formatToParts(c);if(l.length===1)return l[0].value;var u=l.reduce(function(d,f){return!d.length||f.type!==Ar.literal||typeof d[d.length-1]!="string"?d.push(f.value):d[d.length-1]+=f.value,d},[]);return u.length<=1?u[0]||"":u},this.formatToParts=function(c){return Rd(a.ast,a.locales,a.formatters,a.formats,c,void 0,a.message)},this.resolvedOptions=function(){var c;return{locale:((c=a.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};s.formatters;var o=po(s,["formatters"]);this.ast=e.__parse(t,ke(ke({},o),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=CY(e.formats,n),this.formatters=i&&i.formatters||MY(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=RY,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e})(),xa;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(xa||(xa={}));var ru=(function(e){Kr(t,e);function t(r,n,i){var a=this,s=i?i instanceof Error?i:new Error(String(i)):void 0;return a=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,`
|
|
85
|
-
`).concat(s?`
|
|
86
|
-
`.concat(s.message,`
|
|
87
|
-
`).concat(s.stack):""))||this,a.code=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(a,t),a}return t})(Error),jY=(function(e){Kr(t,e);function t(r,n){return e.call(this,xa.UNSUPPORTED_FORMATTER,r,n)||this}return t})(ru),DY=(function(e){Kr(t,e);function t(r,n){return e.call(this,xa.INVALID_CONFIG,r,n)||this}return t})(ru),oC=(function(e){Kr(t,e);function t(r,n){return e.call(this,xa.MISSING_DATA,r,n)||this}return t})(ru),nn=(function(e){Kr(t,e);function t(r,n,i){var a=e.call(this,xa.FORMAT_ERROR,"".concat(r,`
|
|
88
|
-
Locale: `).concat(n,`
|
|
89
|
-
`),i)||this;return a.locale=n,a}return t})(ru),q_=(function(e){Kr(t,e);function t(r,n,i,a){var s=e.call(this,"".concat(r,`
|
|
90
|
-
MessageID: `).concat(i==null?void 0:i.id,`
|
|
91
|
-
Default Message: `).concat(i==null?void 0:i.defaultMessage,`
|
|
92
|
-
Description: `).concat(i==null?void 0:i.description,`
|
|
93
|
-
`),n,a)||this;return s.descriptor=i,s.locale=n,s}return t})(nn),LY=(function(e){Kr(t,e);function t(r,n){var i=e.call(this,xa.MISSING_TRANSLATION,'Missing message: "'.concat(r.id,'" for locale "').concat(n,'", using ').concat(r.defaultMessage?"default message (".concat(typeof r.defaultMessage=="string"?r.defaultMessage:r.defaultMessage.map(function(a){var s;return(s=a.value)!==null&&s!==void 0?s:JSON.stringify(a)}).join(),")"):"id"," as fallback."))||this;return i.descriptor=r,i}return t})(ru);function is(e,t,r){return r===void 0&&(r={}),t.reduce(function(n,i){return i in e?n[i]=e[i]:i in r&&(n[i]=r[i]),n},{})}var $Y=function(e){},kY=function(e){},H$={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:$Y,onWarn:kY};function V$(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Ia(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function qY(e){e===void 0&&(e=V$());var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,i=Or(function(){for(var o,c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return new((o=Intl.DateTimeFormat).bind.apply(o,pr([void 0],c,!1)))},{cache:Ia(e.dateTime),strategy:Nr.variadic}),a=Or(function(){for(var o,c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return new((o=Intl.NumberFormat).bind.apply(o,pr([void 0],c,!1)))},{cache:Ia(e.number),strategy:Nr.variadic}),s=Or(function(){for(var o,c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return new((o=Intl.PluralRules).bind.apply(o,pr([void 0],c,!1)))},{cache:Ia(e.pluralRules),strategy:Nr.variadic});return{getDateTimeFormat:i,getNumberFormat:a,getMessageFormat:Or(function(o,c,l,u){return new F$(o,c,l,ke({formatters:{getNumberFormat:a,getDateTimeFormat:i,getPluralRules:s}},u||{}))},{cache:Ia(e.message),strategy:Nr.variadic}),getRelativeTimeFormat:Or(function(){for(var o=[],c=0;c<arguments.length;c++)o[c]=arguments[c];return new(t.bind.apply(t,pr([void 0],o,!1)))},{cache:Ia(e.relativeTime),strategy:Nr.variadic}),getPluralRules:s,getListFormat:Or(function(){for(var o=[],c=0;c<arguments.length;c++)o[c]=arguments[c];return new(r.bind.apply(r,pr([void 0],o,!1)))},{cache:Ia(e.list),strategy:Nr.variadic}),getDisplayNames:Or(function(){for(var o=[],c=0;c<arguments.length;c++)o[c]=arguments[c];return new(n.bind.apply(n,pr([void 0],o,!1)))},{cache:Ia(e.displayNames),strategy:Nr.variadic})}}function _b(e,t,r,n){var i=e&&e[t],a;if(i&&(a=i[r]),a)return a;n(new jY("No ".concat(t," format named: ").concat(r)))}function hd(e,t){return Object.keys(e).reduce(function(r,n){return r[n]=ke({timeZone:t},e[n]),r},{})}function cC(e,t){var r=Object.keys(ke(ke({},e),t));return r.reduce(function(n,i){return n[i]=ke(ke({},e[i]||{}),t[i]||{}),n},{})}function uC(e,t){if(!t)return e;var r=F$.formats;return ke(ke(ke({},r),e),{date:cC(hd(r.date,t),hd(e.date||{},t)),time:cC(hd(r.time,t),hd(e.time||{},t))})}var Gv=function(e,t,r,n,i){var a=e.locale,s=e.formats,o=e.messages,c=e.defaultLocale,l=e.defaultFormats,u=e.fallbackOnEmptyString,d=e.onError,f=e.timeZone,p=e.defaultRichTextElements;r===void 0&&(r={id:""});var y=r.id,g=r.defaultMessage;I$(!!y,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var b=String(y),O=o&&Object.prototype.hasOwnProperty.call(o,b)&&o[b];if(Array.isArray(O)&&O.length===1&&O[0].type===qt.literal)return O[0].value;if(!n&&O&&typeof O=="string"&&!p)return O.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=ke(ke({},p),n||{}),s=uC(s,f),l=uC(l,f),!O){if(u===!1&&O==="")return O;if((!g||a&&a.toLowerCase()!==c.toLowerCase())&&d(new LY(r,a)),g)try{var m=t.getMessageFormat(g,c,l,i);return m.format(n)}catch(T){return d(new q_('Error formatting default message for: "'.concat(b,'", rendering default message verbatim'),a,r,T)),typeof g=="string"?g:b}return b}try{var m=t.getMessageFormat(O,a,s,ke({formatters:t},i||{}));return m.format(n)}catch(T){d(new q_('Error formatting message: "'.concat(b,'", using ').concat(g?"default message":"id"," as fallback."),a,r,T))}if(g)try{var m=t.getMessageFormat(g,c,l,i);return m.format(n)}catch(T){d(new q_('Error formatting the default message for: "'.concat(b,'", rendering message verbatim'),a,r,T))}return typeof O=="string"?O:typeof g=="string"?g:b},x$=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function Lf(e,t,r,n){var i=e.locale,a=e.formats,s=e.onError,o=e.timeZone;n===void 0&&(n={});var c=n.format,l=ke(ke({},o&&{timeZone:o}),c&&_b(a,t,c,s)),u=is(n,x$,l);return t==="time"&&!u.hour&&!u.minute&&!u.second&&!u.timeStyle&&!u.dateStyle&&(u=ke(ke({},u),{hour:"numeric",minute:"numeric"})),r(i,u)}function BY(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],a=r[1],s=a===void 0?{}:a,o=typeof i=="string"?new Date(i||0):i;try{return Lf(e,"date",t,s).format(o)}catch(c){e.onError(new nn("Error formatting date.",e.locale,c))}return String(o)}function UY(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],a=r[1],s=a===void 0?{}:a,o=typeof i=="string"?new Date(i||0):i;try{return Lf(e,"time",t,s).format(o)}catch(c){e.onError(new nn("Error formatting time.",e.locale,c))}return String(o)}function FY(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],a=r[1],s=r[2],o=s===void 0?{}:s,c=e.timeZone,l=e.locale,u=e.onError,d=is(o,x$,c?{timeZone:c}:{});try{return t(l,d).formatRange(i,a)}catch(f){u(new nn("Error formatting date time range.",e.locale,f))}return String(i)}function HY(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],a=r[1],s=a===void 0?{}:a,o=typeof i=="string"?new Date(i||0):i;try{return Lf(e,"date",t,s).formatToParts(o)}catch(c){e.onError(new nn("Error formatting date.",e.locale,c))}return[]}function VY(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],a=r[1],s=a===void 0?{}:a,o=typeof i=="string"?new Date(i||0):i;try{return Lf(e,"time",t,s).formatToParts(o)}catch(c){e.onError(new nn("Error formatting time.",e.locale,c))}return[]}var xY=["style","type","fallback","languageDisplay"];function GY(e,t,r,n){var i=e.locale,a=e.onError,s=Intl.DisplayNames;s||a(new qi(`Intl.DisplayNames is not available in this environment.
|
|
94
|
-
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
95
|
-
`,zn.MISSING_INTL_API));var o=is(n,xY);try{return t(i,o).of(r)}catch(c){a(new nn("Error formatting display name.",i,c))}}var zY=["type","style"],lC=Date.now();function WY(e){return"".concat(lC,"_").concat(e,"_").concat(lC)}function YY(e,t,r,n){n===void 0&&(n={});var i=G$(e,t,r,n).reduce(function(a,s){var o=s.value;return typeof o!="string"?a.push(o):typeof a[a.length-1]=="string"?a[a.length-1]+=o:a.push(o),a},[]);return i.length===1?i[0]:i.length===0?"":i}function G$(e,t,r,n){var i=e.locale,a=e.onError;n===void 0&&(n={});var s=Intl.ListFormat;s||a(new qi(`Intl.ListFormat is not available in this environment.
|
|
96
|
-
Try polyfilling it using "@formatjs/intl-listformat"
|
|
97
|
-
`,zn.MISSING_INTL_API));var o=is(n,zY);try{var c={},l=r.map(function(u,d){if(typeof u=="object"){var f=WY(d);return c[f]=u,f}return String(u)});return t(i,o).formatToParts(l).map(function(u){return u.type==="literal"?u:ke(ke({},u),{value:c[u.value]||u.value})})}catch(u){a(new nn("Error formatting list.",i,u))}return r}var KY=["type"];function XY(e,t,r,n){var i=e.locale,a=e.onError;n===void 0&&(n={}),Intl.PluralRules||a(new qi(`Intl.PluralRules is not available in this environment.
|
|
98
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
99
|
-
`,zn.MISSING_INTL_API));var s=is(n,KY);try{return t(i,s).select(r)}catch(o){a(new nn("Error formatting plural.",i,o))}return"other"}var JY=["numeric","style"];function QY(e,t,r){var n=e.locale,i=e.formats,a=e.onError;r===void 0&&(r={});var s=r.format,o=!!s&&_b(i,"relative",s,a)||{},c=is(r,JY,o);return t(n,c)}function ZY(e,t,r,n,i){i===void 0&&(i={}),n||(n="second");var a=Intl.RelativeTimeFormat;a||e.onError(new qi(`Intl.RelativeTimeFormat is not available in this environment.
|
|
100
|
-
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
101
|
-
`,zn.MISSING_INTL_API));try{return QY(e,t,i).format(r,n)}catch(s){e.onError(new nn("Error formatting relative time.",e.locale,s))}return String(r)}var eK=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function z$(e,t,r){var n=e.locale,i=e.formats,a=e.onError;r===void 0&&(r={});var s=r.format,o=s&&_b(i,"number",s,a)||{},c=is(r,eK,o);return t(n,c)}function tK(e,t,r,n){n===void 0&&(n={});try{return z$(e,t,n).format(r)}catch(i){e.onError(new nn("Error formatting number.",e.locale,i))}return String(r)}function rK(e,t,r,n){n===void 0&&(n={});try{return z$(e,t,n).formatToParts(r)}catch(i){e.onError(new nn("Error formatting number.",e.locale,i))}return[]}function nK(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function iK(e){e.onWarn&&e.defaultRichTextElements&&nK(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
|
|
102
|
-
Please consider using "@formatjs/cli" to pre-compile your messages for performance.
|
|
103
|
-
For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function aK(e,t){var r=qY(t),n=ke(ke({},H$),e),i=n.locale,a=n.defaultLocale,s=n.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&s?s(new oC('Missing locale data for locale: "'.concat(i,'" in Intl.NumberFormat. Using default locale: "').concat(a,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&s&&s(new oC('Missing locale data for locale: "'.concat(i,'" in Intl.DateTimeFormat. Using default locale: "').concat(a,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(s&&s(new DY('"locale" was not configured, using "'.concat(a,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),n.locale=n.defaultLocale||"en"),iK(n),ke(ke({},n),{formatters:r,formatNumber:tK.bind(null,n,r.getNumberFormat),formatNumberToParts:rK.bind(null,n,r.getNumberFormat),formatRelativeTime:ZY.bind(null,n,r.getRelativeTimeFormat),formatDate:BY.bind(null,n,r.getDateTimeFormat),formatDateToParts:HY.bind(null,n,r.getDateTimeFormat),formatTime:UY.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:FY.bind(null,n,r.getDateTimeFormat),formatTimeToParts:VY.bind(null,n,r.getDateTimeFormat),formatPlural:XY.bind(null,n,r.getPluralRules),formatMessage:Gv.bind(null,n,r),$t:Gv.bind(null,n,r),formatList:YY.bind(null,n,r.getListFormat),formatListToParts:G$.bind(null,n,r.getListFormat),formatDisplayName:GY.bind(null,n,r.getDisplayNames)})}function sK(e){I$(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var oK=ke(ke({},H$),{textComponent:ve.Fragment});function cK(e){return function(t){return e(ve.Children.toArray(t))}}var vb=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=ve.createContext(null)):ve.createContext(null);vb.Consumer;var uK=vb.Provider,lK=uK,dK=vb;function W$(){var e=ve.useContext(dK);return sK(e),e}var zv;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(zv||(zv={}));var Wv;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Wv||(Wv={}));function Y$(e){var t=function(r){var n=W$(),i=r.value,a=r.children,s=po(r,["value","children"]),o=typeof i=="string"?new Date(i||0):i,c=e==="formatDate"?n.formatDateToParts(o,s):n.formatTimeToParts(o,s);return a(c)};return t.displayName=Wv[e],t}function nu(e){var t=function(r){var n=W$(),i=r.value,a=r.children,s=po(r,["value","children"]),o=n[e](i,s);if(typeof a=="function")return a(o);var c=n.textComponent||ve.Fragment;return ve.createElement(c,null,o)};return t.displayName=zv[e],t}function K$(e){return e&&Object.keys(e).reduce(function(t,r){var n=e[r];return t[r]=U$(n)?cK(n):n,t},{})}var dC=function(e,t,r,n){for(var i=[],a=4;a<arguments.length;a++)i[a-4]=arguments[a];var s=K$(n),o=Gv.apply(void 0,pr([e,t,r,s],i,!1));return Array.isArray(o)?ve.Children.toArray(o):o},fK=function(e,t){var r=e.defaultRichTextElements,n=po(e,["defaultRichTextElements"]),i=K$(r),a=aK(ke(ke(ke({},oK),n),{defaultRichTextElements:i}),t),s={locale:a.locale,timeZone:a.timeZone,fallbackOnEmptyString:a.fallbackOnEmptyString,formats:a.formats,defaultLocale:a.defaultLocale,defaultFormats:a.defaultFormats,messages:a.messages,onError:a.onError,defaultRichTextElements:i};return ke(ke({},a),{formatMessage:dC.bind(null,s,a.formatters),$t:dC.bind(null,s,a.formatters)})};nu("formatDate");nu("formatTime");nu("formatNumber");nu("formatList");nu("formatDisplayName");Y$("formatDate");Y$("formatTime");const pK={overview:"Overview",collectibles:"Collectibles",myAssets:"My Assets",myFavorites:"My Favorites",myPurchases:"My Purchases",searchPlaceholder:"Search items…",searchAria:"Search the shop",yourBalance:"Your {currency}",getCredits:"Get {currency}",cart:"Cart"},mK={suggestions:"Search suggestions",recent:"Recent searches",clearRecent:"Clear",removeRecent:"Remove “{query}” from recent searches",searching:"Searching…",noResults:"No results match “{query}”",seeAll:"See all {count} results",clear:"Clear search",creators:"Creators",collections:"Collections",items:"Items",byCreator:"By {name}"},hK={breadcrumb:"Collectibles",fallbackTitle:"Collection",category:"Category",viewProfile:"View profile",copyAddress:"Copy account",copied:"Copied",empty:"This collection has no items to show.",error:"Couldn’t load this collection — please try again."},yK={viewCollection:"View collection",itemCount:"{count, plural, one {# Item} other {# Items}}"},gK={shopAll:"Shop All",wearables:"Wearables",emotes:"Emotes",collections:"Collections",head:"Head",upperBody:"Upper Body",handwear:"Handwear",lowerBody:"Lower Body",feet:"Feet",accessories:"Accessories",skins:"Skins",dance:"Dance",stunt:"Stunt",greetings:"Greetings",fun:"Fun",poses:"Poses",reactions:"Reactions",horror:"Horror",miscellaneous:"Miscellaneous"},_K={breadcrumb:"Assets",category:"Category",fallbackName:"Creator",viewProfile:"View profile",editStore:"Edit store",link:{website:"Website",twitter:"Twitter",discord:"Discord",facebook:"Facebook"},follow:"Follow",following:"Following",followTitle:"Follow creator",unfollowTitle:"Unfollow creator",empty:"This creator has no items to show yet.",collectionsCount:"{count, plural, one {# collection} other {# collections}}",collectionsEmpty:"This creator hasn’t published any collections yet.",error:"Couldn’t load this creator — please try again."},vK={title:"Store settings",back:"Back to your store",signInPrompt:"Sign in to set up your store.",signIn:"Sign in",seeAsGuest:"See store as guest",loading:"Loading your store…",cover:"Store cover",upload:"Upload your own",description:"Description",website:"Website",twitter:"Twitter handle",discord:"Discord invite ID",facebook:"Facebook handle",save:"Save",saving:"Saving…",saved:"Store saved.",saveError:"Couldn’t save your store — please try again.",sizeError:"Maximum cover size is {max}; the image you chose is {current}.",linkError:"Link should start with {value}"},EK={title:"Page not found",body:"The page you’re looking for isn’t here. Let’s get you back to the shop.",cta:"Browse Collectibles"},bK={empty:{title:"Your cart is empty",body:"Find something you love and it’ll show up here.",cta:"Browse Collectibles"}},SK={price:"Price"},TK={sale:"SALE",saleWithDiscount:"SALE -{pct}%",smart:"Smart",addToFavorites:"Add to favorites",removeFromFavorites:"Remove from favorites",marketPrice:"Market price",unavailable:"Unavailable",buyNow:"Buy now",yourItem:"Your item",inCart:"In cart",addToCart:"Add to cart"},wK={nav:pK,search:mK,collection:hK,collectionCard:yK,categories:gK,creator:_K,storeSettings:vK,notFound:EK,cart:bK,filter:SK,assetCard:TK},IK={overview:"Inicio",collectibles:"Coleccionables",myAssets:"Mis artículos",myFavorites:"Mis favoritos",myPurchases:"Mis compras",searchPlaceholder:"Busca artículos…",searchAria:"Buscar en la tienda",yourBalance:"Tus {currency}",getCredits:"Conseguir {currency}",cart:"Carrito"},RK={suggestions:"Sugerencias de búsqueda",recent:"Búsquedas recientes",clearRecent:"Limpiar",removeRecent:"Quitar «{query}» de las búsquedas recientes",searching:"Buscando…",noResults:"Ningún resultado coincide con «{query}»",seeAll:"Ver los {count} resultados",clear:"Limpiar búsqueda",creators:"Creadores",collections:"Colecciones",items:"Artículos",byCreator:"Por {name}"},AK={breadcrumb:"Coleccionables",fallbackTitle:"Colección",category:"Categoría",viewProfile:"Ver perfil",copyAddress:"Copiar cuenta",copied:"Copiado",empty:"Esta colección no tiene artículos para mostrar.",error:"No pudimos cargar esta colección. Inténtalo de nuevo."},OK={viewCollection:"Ver colección",itemCount:"{count, plural, one {# Artículo} other {# Artículos}}"},NK={shopAll:"Ver todo",wearables:"Wearables",emotes:"Emotes",collections:"Colecciones",head:"Cabeza",upperBody:"Torso",handwear:"Manos",lowerBody:"Piernas",feet:"Pies",accessories:"Accesorios",skins:"Skins",dance:"Baile",stunt:"Truco",greetings:"Saludos",fun:"Divertido",poses:"Poses",reactions:"Reacciones",horror:"Horror",miscellaneous:"Misceláneos"},PK={breadcrumb:"Artículos",category:"Categoría",fallbackName:"Creador",viewProfile:"Ver perfil",editStore:"Editar tienda",link:{website:"Sitio web",twitter:"Twitter",discord:"Discord",facebook:"Facebook"},follow:"Seguir",following:"Siguiendo",followTitle:"Seguir al creador",unfollowTitle:"Dejar de seguir al creador",empty:"Este creador todavía no tiene artículos para mostrar.",collectionsCount:"{count, plural, one {# colección} other {# colecciones}}",collectionsEmpty:"Este creador todavía no ha publicado colecciones.",error:"No pudimos cargar este creador. Prueba de nuevo."},CK={title:"Configuración de la tienda",back:"Volver a tu tienda",signInPrompt:"Inicia sesión para configurar tu tienda.",signIn:"Iniciar sesión",seeAsGuest:"Ver tienda como visitante",loading:"Cargando tu tienda…",cover:"Portada de la tienda",upload:"Sube tu portada",description:"Descripción",website:"Sitio web",twitter:"Usuario de Twitter",discord:"ID de invitación de Discord",facebook:"Usuario de Facebook",save:"Guardar",saving:"Guardando…",saved:"Tienda guardada.",saveError:"No pudimos guardar tu tienda. Prueba de nuevo.",sizeError:"El tamaño máximo de la portada es {max}; la imagen que elegiste pesa {current}.",linkError:"El enlace debe comenzar con {value}"},MK={title:"Página no encontrada",body:"La página que buscas no está aquí. Volvamos a la tienda.",cta:"Ver coleccionables"},jK={empty:{title:"Tu carrito está vacío",body:"Encuentra algo que te guste y aparecerá aquí.",cta:"Ver coleccionables"}},DK={price:"Precio"},LK={sale:"OFERTA",saleWithDiscount:"OFERTA -{pct}%",smart:"Smart",addToFavorites:"Agregar a favoritos",removeFromFavorites:"Quitar de favoritos",marketPrice:"Precio de mercado",unavailable:"No disponible",buyNow:"Comprar ahora",yourItem:"Tu artículo",inCart:"En el carrito",addToCart:"Agregar al carrito"},$K={nav:IK,search:RK,collection:AK,collectionCard:OK,categories:NK,creator:PK,storeSettings:CK,notFound:MK,cart:jK,filter:DK,assetCard:LK},Ad=["en","es"];function Yv(e,t="",r={}){for(const[n,i]of Object.entries(e)){const a=t?`${t}.${n}`:n;i&&typeof i=="object"&&!Array.isArray(i)?Yv(i,a,r):r[a]=String(i)}return r}const kK={en:Yv(wK),es:Yv($K)},qK=V$(),B_={};function Eb(e){return B_[e]||(B_[e]=fK({locale:e,defaultLocale:"en",messages:kK[e],onError:()=>{}},qK)),B_[e]}let X$=Eb("en");function BK(e){X$=Eb(e)}function et(e,t){return X$.formatMessage({id:e},t)}function UK(e){return/^0x[a-fA-F0-9]{40}$/.test(e)?`${e.slice(0,6)}…${e.slice(-4)}`:e}function fC({address:e,className:t}){const{data:r}=hf(e),n=(r==null?void 0:r.name)||UK(e);return C.jsx("span",{className:t,children:et("search.byCreator",{name:n})})}function FK({contractAddress:e}){return C.jsx(F9,{contractAddress:e,className:"search-pop__collthumb",fallback:C.jsx("span",{className:"search-pop__thumb search-pop__thumb--icon",children:C.jsx("span",{className:"ico ico-search","aria-hidden":!0})})})}const HK=5,VK=2;function xK({query:e,recent:t,onSelectItem:r,onSelectCollection:n,onSelectCreator:i,onRunSearch:a,onRemoveRecent:s,onClearRecent:o}){const c=e.length>=VK,{data:l,isFetching:u}=li({queryKey:["search-suggest",e],queryFn:()=>WL({search:e,first:HK}),enabled:c,placeholderData:Gf,staleTime:3e4}),{data:d=[]}=li({queryKey:["search-suggest-collections",e],queryFn:()=>O9(e),enabled:c,placeholderData:Gf,staleTime:3e4}),{data:f=[]}=li({queryKey:["search-suggest-creators",e],queryFn:()=>C9(e),enabled:c,placeholderData:Gf,staleTime:3e4}),p=c?(l==null?void 0:l.items)??[]:[],y=(l==null?void 0:l.total)??0;if(!c)return t.length===0?null:C.jsxs("div",{className:"search-pop",role:"listbox","aria-label":et("search.suggestions"),children:[C.jsxs("div",{className:"search-pop__section-head",children:[C.jsx("span",{children:et("search.recent")}),C.jsx("button",{type:"button",className:"search-pop__clear",onClick:o,children:et("search.clearRecent")})]}),C.jsx("ul",{className:"search-pop__list",children:t.map(b=>C.jsxs("li",{className:"search-pop__recent",children:[C.jsxs("button",{type:"button",className:"search-pop__recent-btn",onClick:()=>a(b),children:[C.jsx("span",{className:"ico ico-search search-pop__recent-ico","aria-hidden":!0}),C.jsx("span",{className:"search-pop__recent-text",children:b})]}),C.jsx("button",{type:"button",className:"search-pop__recent-remove","aria-label":et("search.removeRecent",{query:b}),onClick:()=>s(b),children:C.jsx(GL,{})})]},b))})]});const g=p.length===0&&d.length===0&&f.length===0;return C.jsx("div",{className:"search-pop",role:"listbox","aria-label":et("search.suggestions"),children:g?C.jsx("p",{className:"search-pop__empty",children:u?et("search.searching"):et("search.noResults",{query:e})}):C.jsxs(C.Fragment,{children:[p.length>0?C.jsxs(C.Fragment,{children:[C.jsx("div",{className:"search-pop__section-head",children:C.jsx("span",{children:et("search.items")})}),C.jsx("ul",{className:"search-pop__list",children:p.map(b=>C.jsx("li",{children:C.jsxs("button",{type:"button",className:"search-pop__row",onClick:()=>r(b),children:[C.jsx("span",{className:"search-pop__thumb",children:b.thumbnail?C.jsx("img",{src:b.thumbnail,alt:""}):null}),C.jsxs("span",{className:"search-pop__text",children:[C.jsx("span",{className:"search-pop__name",title:b.name,children:b.name}),b.creator?C.jsx(fC,{address:b.creator,className:"search-pop__sub"}):null]}),C.jsxs("span",{className:"search-pop__price",children:[C.jsx(yn,{className:"ccy-mark"})," ",b.priceCredits]})]})},b.id))})]}):null,d.length>0?C.jsxs(C.Fragment,{children:[C.jsx("div",{className:"search-pop__section-head",children:C.jsx("span",{children:et("search.collections")})}),C.jsx("ul",{className:"search-pop__list",children:d.map(b=>C.jsx("li",{children:C.jsxs("button",{type:"button",className:"search-pop__row search-pop__row--collection",onClick:()=>n(b),children:[C.jsx(FK,{contractAddress:b.contractAddress}),C.jsxs("span",{className:"search-pop__text",children:[C.jsx("span",{className:"search-pop__name",title:b.name,children:b.name}),b.creator?C.jsx(fC,{address:b.creator,className:"search-pop__sub"}):null]})]})},b.contractAddress))})]}):null,f.length>0?C.jsxs(C.Fragment,{children:[C.jsx("div",{className:"search-pop__section-head",children:C.jsx("span",{children:et("search.creators")})}),C.jsx("ul",{className:"search-pop__list",children:f.map(b=>C.jsx("li",{children:C.jsxs("button",{type:"button",className:"search-pop__row search-pop__row--creator",onClick:()=>i(b),children:[C.jsx("span",{className:"search-pop__thumb search-pop__thumb--round",children:b.face?C.jsx("img",{src:b.face,alt:""}):null}),C.jsx("span",{className:"search-pop__text",children:C.jsx("span",{className:"search-pop__name",title:b.name,children:b.name})})]})},b.address))})]}):null,y>0?C.jsx("button",{type:"button",className:"search-pop__seeall",onClick:()=>a(e),children:et("search.seeAll",{count:y.toLocaleString()})}):null]})})}const $f="shop:recent-searches",J$=8;function Hd(){try{const e=localStorage.getItem($f);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(r=>typeof r=="string"&&r.length>0).slice(0,J$):[]}catch{return[]}}function yd(e){const t=e.trim();if(t)try{const r=[t,...Hd().filter(n=>n.toLowerCase()!==t.toLowerCase())].slice(0,J$);localStorage.setItem($f,JSON.stringify(r))}catch{}}function GK(e){try{const t=Hd().filter(r=>r.toLowerCase()!==e.trim().toLowerCase());localStorage.setItem($f,JSON.stringify(t))}catch{}}function zK(){try{localStorage.removeItem($f)}catch{}}function WK(){const{session:e,connecting:t,signIn:r,disconnect:n,restore:i}=uo(),a=e==null?void 0:e.address,{data:s,isLoading:o}=hf(a),{data:c,isError:l}=MG(e),u=hn(X=>X.items.length),d=Qv(),[f]=_2(),p=f.get("q")??"",[y,g]=ve.useState(p),[b,O]=ve.useState(p),[m,T]=ve.useState(!1),[I,h]=ve.useState([]),v=ve.useRef(),E=ve.useRef(null);ve.useEffect(()=>{i()},[i]),ve.useEffect(()=>{g(p),O(p)},[p]),ve.useEffect(()=>{if(!m)return;const X=Y=>{E.current&&!E.current.contains(Y.target)&&T(!1)};return document.addEventListener("mousedown",X),()=>document.removeEventListener("mousedown",X)},[m]);function N(){h(Hd()),T(!0)}function M(X){const Y=X.trim();T(!1),Y&&yd(Y),d(Y?`/assets?q=${encodeURIComponent(Y)}`:"/assets",{replace:!0})}function q(X){T(!1),y.trim()&&yd(y.trim()),_n("Shop Search Suggestion Clicked",{query:y.trim(),type:"item",item_id:X.id});const Y=X.tokenId??X.itemId;X.contractAddress&&Y?d(`/item/${X.contractAddress}/${Y}`,{state:{item:X,tradeId:X.tradeId}}):M(y)}function H(X){T(!1),y.trim()&&yd(y.trim()),_n("Shop Search Suggestion Clicked",{query:y.trim(),type:"collection",contract_address:X.contractAddress}),d(`/collection/${X.contractAddress}`)}function k(X){T(!1),y.trim()&&yd(y.trim()),_n("Shop Search Suggestion Clicked",{query:y.trim(),type:"creator",creator_address:X.address}),d(`/assets/creator/${X.address}`)}function B(X){g(X),T(!0),v.current&&clearTimeout(v.current),v.current=setTimeout(()=>O(X.trim()),300)}function F(){g(""),O(""),T(!1),d("/assets",{replace:!0})}function te(X){GK(X),h(Hd())}function ie(){zK(),h([])}function Z(X){if(X.key==="Escape"){T(!1);return}X.key==="Enter"&&(v.current&&clearTimeout(v.current),M(y))}return C.jsxs(C.Fragment,{children:[C.jsx(F4,{activePage:"shop",isSignedIn:!!e,isSigningIn:t,isLoadingProfile:!!e&&o,address:a,avatar:s,onClickSignIn:()=>r(),onClickSignOut:()=>void n()}),C.jsxs("div",{className:"subnav",children:[C.jsxs("nav",{className:"subnav__tabs",children:[C.jsx(Bi,{to:"/overview",children:et("nav.overview")}),C.jsx(Bi,{to:"/assets",children:et("nav.collectibles")}),C.jsx(Bi,{to:"/my-assets",children:et("nav.myAssets")}),e?C.jsx(Bi,{to:"/my-purchases",children:et("nav.myPurchases")}):null]}),C.jsxs("div",{className:"subnav__search",ref:E,children:[C.jsx("span",{className:"ico ico-search subnav__search-ico","aria-hidden":!0}),C.jsx("input",{value:y,"aria-label":et("nav.searchAria"),placeholder:et("nav.searchPlaceholder"),onChange:X=>B(X.target.value),onFocus:N,onKeyDown:Z}),y?C.jsx("button",{type:"button",className:"subnav__search-clear","aria-label":et("search.clear"),onClick:F,children:C.jsx(GL,{})}):null,m?C.jsx(xK,{query:b,recent:I,onSelectItem:q,onSelectCollection:H,onSelectCreator:k,onRunSearch:M,onRemoveRecent:te,onClearRecent:ie}):null]}),e?C.jsxs("span",{className:"subnav__balance",title:et("nav.yourBalance",{currency:Ks.name}),children:[C.jsx(yn,{className:"subnav__balance-ico"}),jG(c,l)]}):null,C.jsxs(Bi,{to:"/credits",className:"subnav__credits",children:[C.jsx(yn,{className:"subnav__credits-ico"}),et("nav.getCredits",{currency:Ks.name})]}),C.jsx(Bi,{to:"/my-favorites",className:"subnav__fav","aria-label":et("nav.myFavorites"),children:C.jsx("span",{className:"ico ico-heart","aria-hidden":!0})}),C.jsxs("div",{className:"subnav__cart-wrap",children:[C.jsxs(Bi,{to:"/cart",className:"subnav__cart","aria-label":et("nav.cart"),children:[C.jsx("span",{className:"ico ico-cart","aria-hidden":!0}),u>0?C.jsx("span",{className:"subnav__cart-badge",children:u}):null]}),C.jsx($G,{})]})]})]})}let YK=0;const yc=Ja(e=>({toasts:[],push:t=>{const r=++YK;return e(n=>({toasts:[...n.toasts,{...t,id:r}]})),r},dismiss:t=>e(r=>({toasts:r.toasts.filter(n=>n.id!==t)}))})),WJ={success:e=>yc.getState().push({message:e,kind:"success"}),error:e=>yc.getState().push({message:e,kind:"error"}),info:e=>yc.getState().push({message:e,kind:"info"})},KK={success:"✓",error:"!",info:"i"};function XK({t:e}){const t=yc(r=>r.dismiss);return ve.useEffect(()=>{const r=setTimeout(()=>t(e.id),4500);return()=>clearTimeout(r)},[e.id,t]),C.jsxs("div",{className:`toast toast--${e.kind}`,role:e.kind==="error"?"alert":"status",onClick:()=>t(e.id),children:[C.jsx("span",{className:"toast__icon","aria-hidden":!0,children:KK[e.kind]}),C.jsx("span",{className:"toast__msg",children:e.message})]})}function JK(){const e=yc(t=>t.toasts);return e.length===0?null:C.jsx("div",{className:"toaster","aria-live":"polite",children:e.map(t=>C.jsx(XK,{t},t.id))})}const QK=ve.lazy(()=>ar(()=>import("./index-BsVbqXUp.js"),__vite__mapDeps([10,1,11,5,12,4,13,3])).then(e=>({default:e.WearablePreview})));function bb(e){return C.jsx(ve.Suspense,{fallback:null,children:C.jsx(QK,{...e})})}function ZK(e){return e.itemId?`urn:decentraland:${St.chainId===80002?"amoy":"matic"}:collections-v2:${e.contractAddress.toLowerCase()}:${e.itemId}`:null}const Os=Ur.BodyShape.MALE,Ns=Ur.BodyShape.FEMALE;function Kv(e){if(e.category==="emote")return[Os,Ns];switch(e.gender){case"male":return[Os];case"female":return[Ns];default:return[Os,Ns]}}function eX(e){var r;const t=(r=e==null?void 0:e.avatar)==null?void 0:r.bodyShape;return t?t.includes("BaseFemale")?Ns:Os:null}function Sb(e,t){return t==null||Kv(e).includes(t)}function pC(e){return e===Ns?"Female":"Male"}function tX(e){let t=0,r=0;for(const n of e)n.category!=="emote"&&(n.gender==="male"?t++:n.gender==="female"&&r++);return t===0&&r===0?null:r>t?Ns:Os}function qa(e){return e.category!=="emote"}function Zs(e){return qa(e)?e.wearableCategory??`unknown:${e.id}`:null}const rX=new Set(["hat","helmet","mask","tiara","top_head","hair","facial_hair","eyewear","earring","eyes","eyebrows","mouth"]);function nX(e){if(!qa(e))return"item";const t=e.wearableCategory;return t?rX.has(t)?"head":t==="upper_body"?"upper":t==="lower_body"?"lower":t==="feet"?"feet":t==="hands"||t==="hands_wear"?"hands":"item":"item"}function mC(e,t=null){const r=new Set,n=new Set;for(const i of e){const a=Zs(i);a==null||n.has(a)||Sb(i,t)&&(n.add(a),r.add(i.id))}return r}function iX(e,t,r){if(!qa(t))return e;const n=new Set(e);if(n.has(t.id))return n.delete(t.id),n;const i=Zs(t);if(i!=null)for(const a of r)a.id!==t.id&&n.has(a.id)&&Zs(a)===i&&n.delete(a.id);return n.add(t.id),n}function aX(e){const t=new Map;for(const n of e){const i=Zs(n);if(i==null)continue;const a=t.get(i)??[];a.push(n.id),t.set(i,a)}const r=new Set;for(const n of t.values())n.length>1&&n.forEach(i=>r.add(i));return r}function sX(e,t,r=null){const n=[];for(const i of e){if(!t.has(i.id)||!qa(i)||!Sb(i,r))continue;const a=ZK(i);a&&n.push(a)}return n}const oX=ve.lazy(()=>ar(()=>import("./AnimatedBackground-Y-secaKv.js"),__vite__mapDeps([14,1,15])));function hC(e){return!e||e.startsWith("unknown:")?"Wearable":e.charAt(0).toUpperCase()+e.slice(1).replace(/_/g," ")}function cX(){const e=hn(h=>h.fittingOpen),t=hn(h=>h.setFittingOpen),r=hn(h=>h.items),n=hn(h=>h.remove),i=Qv(),a=uo(h=>{var v;return(v=h.session)==null?void 0:v.address}),{data:s,isFetched:o}=hf(a),c=!a||o,l=!!a&&!!s,u=l?a:"default",d=eX(s)??tX(r)??Os,[f,p]=ve.useState(()=>mC(r,d)),[y,g]=ve.useState(!1);ve.useEffect(()=>{e&&p(mC(r,d))},[e,d]),ve.useEffect(()=>{const h=new Set(r.map(v=>v.id));p(v=>{const E=new Set([...v].filter(N=>h.has(N)));return E.size===v.size?v:E})},[r]);const b=ve.useMemo(()=>aX(r),[r]),O=ve.useMemo(()=>sX(r,f,d),[r,f,d]),m=r.reduce((h,v)=>h+v.priceCredits,0),T=O.join(",");ve.useEffect(()=>{g(!1)},[T,u]);const I=ve.useRef(!1);return ve.useEffect(()=>{if(!e){I.current=!1;return}I.current||(I.current=!0,_n("Shop Tried On Outfit",{cart_size:r.length,wearables:r.filter(qa).length,emotes:r.filter(h=>!qa(h)).length,cart_value_credits:m}))},[e,r,m]),ve.useEffect(()=>{if(!e)return;const h=v=>{v.key==="Escape"&&t(!1)};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[e,t]),!e||r.length===0?null:C.jsxs("div",{className:"fitting",role:"dialog","aria-modal":"true","aria-label":"Fitting room",children:[C.jsx("div",{className:"fitting__scrim",onClick:()=>t(!1)}),C.jsxs("div",{className:"fitting__panel",children:[C.jsx("button",{className:"fitting__close",onClick:()=>t(!1),"aria-label":"Close",children:"×"}),C.jsxs("div",{className:"fitting__stage",children:[C.jsx(ve.Suspense,{fallback:null,children:C.jsx(oX,{})}),c?O.length>0?C.jsxs(C.Fragment,{children:[C.jsx(bb,{profile:u,bodyShape:l?void 0:d,urns:O,type:Ur.PreviewType.AVATAR,emote:Ur.PreviewEmote.FASHION,disableBackground:!0,disableFadeEffect:!0,dev:St.chainId===80002,onLoad:()=>g(!0)},u),y?null:C.jsx("div",{className:"fitting__loading","aria-hidden":!0,children:C.jsx("span",{className:"fitting__spinner"})})]}):C.jsxs("div",{className:"fitting__empty-stage",children:[C.jsx("p",{children:"Nothing on right now."}),C.jsx("p",{className:"muted",children:"Turn on an item from the list to try it."})]}):C.jsx("div",{className:"fitting__loading","aria-hidden":!0,children:C.jsx("span",{className:"fitting__spinner"})})]}),C.jsxs("div",{className:"fitting__side",children:[C.jsxs("div",{className:"fitting__head",children:[C.jsx("h2",{className:"fitting__title",children:"Fitting room"}),C.jsx("p",{className:"fitting__sub muted",children:"Mix and match your cart. Turn items on and off to see the look."})]}),C.jsx("div",{className:"fitting__items",children:r.map(h=>{const v=qa(h),E=v&&!Sb(h,d),N=f.has(h.id),M=b.has(h.id);return C.jsxs("div",{className:`fitting-row${N?" is-on":""}${E?" is-incompatible":""}`,children:[C.jsxs("label",{className:"fitting-row__toggle",children:[C.jsx("input",{type:"checkbox",checked:N,disabled:!v||E,onChange:()=>p(q=>iX(q,h,r))}),C.jsx("span",{className:"fitting-row__box","aria-hidden":!0})]}),C.jsx("div",{className:"fitting-row__thumb",children:h.thumbnail?C.jsx("img",{src:h.thumbnail,alt:h.name}):null}),C.jsxs("div",{className:"fitting-row__info",children:[C.jsx("div",{className:"fitting-row__name",title:h.name,children:h.name}),C.jsxs("div",{className:"fitting-row__meta",children:[C.jsx("span",{className:`ico ico-slot-${v?nX(h):"item"} fitting-row__slot-ico`,title:v?hC(Zs(h)):"Emote",role:"img","aria-label":v?hC(Zs(h)):"Emote"}),M&&!E?C.jsx("span",{className:"fitting-row__conflict",title:"Only one item per slot can be worn",children:"1 per slot"}):null,E?C.jsxs("span",{className:"fitting-row__incompat",title:`This item is made for the ${pC(Kv(h)[0])} body shape`,children:[pC(Kv(h)[0])," only"]}):null]})]}),C.jsxs("div",{className:"fitting-row__price",children:[C.jsx(yn,{className:"fitting-row__diamond"}),h.priceCredits]}),C.jsx("button",{className:"fitting-row__remove",onClick:()=>n(h.id),"aria-label":`Remove ${h.name} from cart`,title:"Remove",children:C.jsx("span",{className:"ico ico-trash","aria-hidden":!0})})]},h.id)})}),C.jsxs("div",{className:"fitting__foot",children:[C.jsxs("div",{className:"fitting__total",children:[r.length," item",r.length>1?"s":""," ·"," ",C.jsxs("strong",{children:[Ks.symbol," ",m]})]}),C.jsx("button",{className:"btn btn--purple fitting__checkout",onClick:()=>{t(!1),i("/cart")},children:"Checkout"})]})]})]})]})}const Q$="shop:locale";function uX(){var e;try{const t=new URLSearchParams(window.location.search).get("lang");if(t&&Ad.includes(t))return t;const r=localStorage.getItem(Q$);if(r&&Ad.includes(r))return r;const n=(e=navigator.language)==null?void 0:e.slice(0,2);if(n&&Ad.includes(n))return n}catch{}return"en"}const Xv=Ja(e=>({locale:uX(),setLocale:t=>{try{localStorage.setItem(Q$,t)}catch{}e({locale:t})}})),lX="https://embeds.beehiiv.com/ff89783d-748b-4ba3-8700-4759f6f62831?slim=true",yC=[{label:"What is Decentraland",url:"https://docs.decentraland.org/introduction/about-decentraland"},{label:"Download",url:"https://decentraland.org/download"},{label:"System Requirements",url:"https://docs.decentraland.org/in-world/settings-and-performance"},{label:"FAQs",url:"https://docs.decentraland.org/faqs/decentraland-101"},{label:"Contact Support",url:"https://decentraland.org/help/"}],gC=[{label:"Marketplace",url:"https://decentraland.org/marketplace"},{label:"Creator Hub",url:"https://decentraland.org/create/"},{label:"Docs",url:"https://docs.decentraland.org"},{label:"Blog",url:"https://decentraland.org/blog/"},{label:"Vote",url:"https://decentraland.org/dao"}],dX=[{name:"Discord",url:"https://dcl.gg/discord",icon:mX},{name:"GitHub",url:"https://github.com/decentraland",icon:hX},{name:"X",url:"https://x.com/decentraland",icon:yX},{name:"Instagram",url:"https://instagram.com/decentraland_foundation/",icon:gX},{name:"YouTube",url:"https://youtube.com/@decentraland_foundation",icon:_X},{name:"TikTok",url:"https://tiktok.com/@decentraland_fdn",icon:vX},{name:"LinkedIn",url:"https://linkedin.com/company/decentralandorg",icon:EX}],fX=[{label:"Privacy Policy",url:"https://decentraland.org/privacy/"},{label:"Terms of Use",url:"https://decentraland.org/terms/"},{label:"Content Policy",url:"https://decentraland.org/content/"},{label:"Code of Ethics",url:"https://decentraland.org/ethics/"}],gd={en:{label:"English",flag:"🇺🇸"},es:{label:"Español",flag:"🇪🇸"}};function _C(){return C.jsx("div",{className:"dcl-footer__social",children:dX.map(({name:e,url:t,icon:r})=>C.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer","aria-label":e,children:C.jsx(r,{})},e))})}function pX(){const e=Xv(l=>l.locale),t=Xv(l=>l.setLocale),[r,n]=ve.useState(null),[i,a]=ve.useState(!1),s=ve.useRef(null),o=gd[e]??gd.en;ve.useEffect(()=>{if(!i)return;const l=u=>{s.current&&!s.current.contains(u.target)&&a(!1)};return document.addEventListener("mousedown",l),()=>document.removeEventListener("mousedown",l)},[i]);const c=l=>n(u=>u===l?null:l);return C.jsxs("footer",{className:"dcl-footer",children:[C.jsxs("div",{className:"dcl-footer__main",children:[C.jsxs("div",{className:"dcl-footer__left",children:[C.jsx("span",{className:"dcl-footer__wordmark",children:"Decentraland"}),C.jsxs("div",{className:"dcl-footer__news",children:[C.jsx("p",{className:"dcl-footer__news-title",children:"Get the weekly highlights in your inbox"}),C.jsx("iframe",{className:"dcl-footer__news-frame",src:lX,height:"65",frameBorder:"0",scrolling:"no",title:"Newsletter signup"})]}),C.jsxs("div",{className:"dcl-footer__connect dcl-footer__connect--desktop",children:[C.jsx("p",{className:"dcl-footer__label",children:"Connect"}),C.jsx(_C,{})]})]}),C.jsxs("div",{className:"dcl-footer__right",children:[C.jsxs("div",{className:"dcl-footer__col",children:[C.jsx("p",{className:"dcl-footer__label",children:"Getting Started"}),yC.map(l=>C.jsx("a",{className:"dcl-footer__link",href:l.url,target:"_blank",rel:"noopener noreferrer",children:l.label},l.label))]}),C.jsxs("div",{className:"dcl-footer__col",children:[C.jsx("p",{className:"dcl-footer__label",children:"Resources"}),gC.map(l=>C.jsx("a",{className:"dcl-footer__link",href:l.url,target:"_blank",rel:"noopener noreferrer",children:l.label},l.label))]})]}),C.jsxs("div",{className:"dcl-footer__mobile-menu",children:[C.jsx("p",{className:"dcl-footer__menu-label",children:"Menu"}),[{key:"getting-started",label:"Getting Started",links:yC},{key:"resources",label:"Resources",links:gC}].map(l=>C.jsxs("div",{children:[C.jsxs("button",{type:"button",className:"dcl-footer__dropdown","aria-expanded":r===l.key,onClick:()=>c(l.key),children:[l.label,C.jsx("span",{className:`dcl-footer__chev${r===l.key?" is-open":""}`,children:C.jsx(vC,{})})]}),C.jsx("div",{className:`dcl-footer__dropdown-content${r===l.key?" is-open":""}`,children:l.links.map(u=>C.jsx("a",{className:"dcl-footer__mlink",href:u.url,target:"_blank",rel:"noopener noreferrer",children:u.label},u.label))})]},l.key))]}),C.jsxs("div",{className:"dcl-footer__connect dcl-footer__connect--mobile",children:[C.jsx("p",{className:"dcl-footer__label",children:"Connect"}),C.jsx(_C,{})]})]}),C.jsxs("div",{className:"dcl-footer__bottom",children:[C.jsxs("div",{className:"dcl-footer__bottom-left",children:[C.jsxs("div",{className:"dcl-footer__lang",ref:s,children:[C.jsxs("button",{type:"button",className:"dcl-footer__lang-btn",onClick:()=>a(l=>!l),children:[C.jsx("span",{"aria-hidden":!0,children:o.flag}),o.label,C.jsx("span",{className:`dcl-footer__chev${i?" is-open":""}`,children:C.jsx(vC,{})})]}),i?C.jsx("div",{className:"dcl-footer__lang-menu",children:Ad.map(l=>C.jsxs("button",{className:l===e?"is-active":"",onClick:()=>{t(l),a(!1)},children:[C.jsx("span",{"aria-hidden":!0,children:gd[l].flag}),gd[l].label]},l))}):null]}),C.jsx("div",{className:"dcl-footer__legal",children:fX.map(l=>C.jsx("a",{className:"dcl-footer__legal-link",href:l.url,target:"_blank",rel:"noopener noreferrer",children:l.label},l.label))})]}),C.jsxs("span",{className:"dcl-footer__copy",children:["© ",new Date().getFullYear()," Decentraland"]})]})]})}function mX(){return C.jsx("svg",{viewBox:"0 0 28 22",fill:"currentColor",width:"26",height:"20","aria-hidden":!0,children:C.jsx("path",{d:"M23.7 1.84A23.25 23.25 0 0 0 17.96 0c-.25.45-.54 1.05-.74 1.53a21.5 21.5 0 0 0-6.45 0C10.57 1.05 10.27.45 10.02 0A23.2 23.2 0 0 0 4.27 1.85C.62 7.34-.38 12.7.12 18a23.37 23.37 0 0 0 7.13 3.6 17.4 17.4 0 0 0 1.53-2.49 15.17 15.17 0 0 1-2.41-1.16c.2-.15.4-.3.59-.46a16.63 16.63 0 0 0 14.1 0c.19.16.39.31.58.46-.77.45-1.57.84-2.41 1.16.44.87.96 1.7 1.53 2.49a23.3 23.3 0 0 0 7.14-3.61c.58-6.15-1-11.47-4.1-16.15ZM9.35 14.74c-1.4 0-2.54-1.28-2.54-2.85s1.12-2.86 2.54-2.86 2.56 1.29 2.54 2.86c0 1.57-1.12 2.85-2.54 2.85Zm9.38 0c-1.4 0-2.54-1.28-2.54-2.85s1.12-2.86 2.54-2.86 2.56 1.29 2.54 2.86c0 1.57-1.12 2.85-2.54 2.85Z"})})}function hX(){return C.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"24",height:"24","aria-hidden":!0,children:C.jsx("path",{d:"M12 .3a12 12 0 0 0-3.8 23.38c.6.12.82-.26.82-.58v-2.02c-3.34.73-4.04-1.61-4.04-1.61-.55-1.39-1.34-1.76-1.34-1.76-1.08-.74.08-.73.08-.73 1.2.09 1.84 1.24 1.84 1.24 1.07 1.83 2.8 1.3 3.49 1 .1-.78.42-1.3.76-1.6-2.67-.31-5.47-1.34-5.47-5.93 0-1.31.47-2.38 1.24-3.22-.13-.3-.54-1.52.12-3.18 0 0 1-.33 3.3 1.23a11.5 11.5 0 0 1 6.02 0c2.28-1.56 3.29-1.23 3.29-1.23.66 1.66.25 2.88.12 3.18a4.65 4.65 0 0 1 1.24 3.22c0 4.61-2.81 5.62-5.48 5.92.43.37.81 1.1.81 2.22v3.29c0 .32.22.7.82.58A12 12 0 0 0 12 .3Z"})})}function yX(){return C.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"22",height:"22","aria-hidden":!0,children:C.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231 5.45-6.231Zm-1.161 17.52h1.833L7.084 4.126H5.117L17.083 19.77Z"})})}function gX(){return C.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"24",height:"24","aria-hidden":!0,children:C.jsx("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069ZM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0Zm0 5.838a6.162 6.162 0 1 0 0 12.324 6.162 6.162 0 0 0 0-12.324ZM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8Zm6.406-11.845a1.44 1.44 0 1 0 0 2.881 1.44 1.44 0 0 0 0-2.881Z"})})}function _X(){return C.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"24",height:"24","aria-hidden":!0,children:C.jsx("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.546 12 3.546 12 3.546s-7.505 0-9.377.504A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.504 9.376.504 9.376.504s7.505 0 9.377-.504a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814ZM9.545 15.568V8.432L15.818 12l-6.273 3.568Z"})})}function vX(){return C.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"22",height:"22","aria-hidden":!0,children:C.jsx("path",{d:"M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07Z"})})}function EX(){return C.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"24",height:"24","aria-hidden":!0,children:C.jsx("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286ZM5.337 7.433a2.062 2.062 0 1 1 0-4.123 2.062 2.062 0 0 1 0 4.123ZM6.863 20.452H3.804V9h3.059v11.452ZM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003Z"})})}function vC(){return C.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"18",height:"18","aria-hidden":!0,children:C.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41Z"})})}var EC=mD();const Zr=Ja((e,t)=>({item:null,anchor:null,ready:!1,token:0,show:(r,n)=>{var a;const i=t();((a=i.item)==null?void 0:a.id)===r.id&&i.anchor===n||e(s=>({item:r,anchor:n,ready:!1,token:s.token+1}))},hide:()=>e({item:null,anchor:null,ready:!1}),setReady:()=>e({ready:!0})})),bC="hover-preview";function bX(){const e=Zr(b=>b.item),t=Zr(b=>b.anchor),r=Zr(b=>b.token),n=Zr(b=>b.ready),i=Zr(b=>b.setReady),[a,s]=ve.useState(!1),[o,c]=ve.useState(!1),l=ve.useRef(!1),u=ve.useRef(-1),[d,f]=ve.useState(null);ve.useEffect(()=>{if(typeof window.requestIdleCallback=="function"){const O=window.requestIdleCallback(()=>s(!0),{timeout:3e3});return()=>window.cancelIdleCallback(O)}const b=window.setTimeout(()=>s(!0),1500);return()=>window.clearTimeout(b)},[]),ve.useEffect(()=>{if(!t){f(null);return}let b=0;const O=()=>f(t.getBoundingClientRect());O();const m=()=>{cancelAnimationFrame(b),b=requestAnimationFrame(O)};return window.addEventListener("scroll",m,!0),window.addEventListener("resize",m),()=>{cancelAnimationFrame(b),window.removeEventListener("scroll",m,!0),window.removeEventListener("resize",m)}},[t]),ve.useEffect(()=>{if(!e)return;const b=document.getElementById(bC);if(!(b!=null&&b.contentWindow)||!l.current)return;u.current=r;const O=e.category==="emote";EC.sendMessage(b.contentWindow,EC.PreviewMessageType.UPDATE,{options:{contractAddress:e.contractAddress,itemId:e.itemId??void 0,profile:"default",type:O?void 0:Ur.PreviewType.AVATAR,emote:O?void 0:Ur.PreviewEmote.FASHION,disableBackground:!0,disableFadeEffect:!0}})},[e,r,o]);function p(){if(!l.current){l.current=!0,c(!0);return}const b=Zr.getState();b.item&&b.token===u.current&&i()}if(!a)return null;const g=!!e&&!!d?{position:"fixed",left:d.left,top:d.top,width:d.width,height:d.height,zIndex:5,pointerEvents:"none",opacity:n?1:0,transition:"opacity .25s ease"}:{position:"fixed",left:-9999,top:-9999,width:2,height:2,opacity:0,pointerEvents:"none",overflow:"hidden"};return C.jsx("div",{className:"hover-preview","aria-hidden":!0,style:g,children:C.jsx(bb,{id:bC,profile:"default",disableBackground:!0,disableFadeEffect:!0,dev:St.chainId===80002,onLoad:p})})}function SX(){const e=uo(t=>t.session);ve.useEffect(()=>{if(!e||e.providerType!==Ur.ProviderType.INJECTED)return;const t=e.web3Provider.provider;if(!(t!=null&&t.on)||!t.removeListener)return;const r=e.address.toLowerCase(),n=(...i)=>{var o;((o=(i[0]??[])[0])==null?void 0:o.toLowerCase())!==r&&window.location.reload()};return t.on("accountsChanged",n),()=>{var i;return(i=t.removeListener)==null?void 0:i.call(t,"accountsChanged",n)}},[e])}function TX(e,t){return!t||!e.creator?!1:ZE(e)&&e.creator.toLowerCase()===t.toLowerCase()}function YJ(e,t){return!!e.signer&&!!t&&e.signer.toLowerCase()===t.toLowerCase()}function wX(e){return/^0x[a-fA-F0-9]{40}$/.test(e)?`${e.slice(0,6)}…${e.slice(-4)}`:e}function IX(e){let t=0;for(let r=0;r<e.length;r++)t=t*31+e.charCodeAt(r)>>>0;return`hsl(${t%360}, 52%, 45%)`}function RX(e,t){var r;return(((r=e==null?void 0:e.trim())==null?void 0:r[0])||t.replace(/^0x/i,"")[0]||"?").toUpperCase()}function Z$({address:e,className:t,linkToProfile:r}){var f,p;const n=Qv(),{data:i}=hf(e),a=(p=(f=i==null?void 0:i.avatar)==null?void 0:f.snapshots)==null?void 0:p.face256,[s,o]=ve.useState(!1);if(ve.useEffect(()=>o(!1),[a]),!e)return null;const c=(i==null?void 0:i.name)||wX(e),u=!!a&&!s?C.jsx("img",{className:"creator__ava",src:a,alt:"",loading:"lazy",onError:()=>o(!0)}):C.jsx("span",{className:"creator__ava creator__ava--letter",style:{backgroundColor:IX(e)},"aria-hidden":!0,children:RX(i==null?void 0:i.name,e)}),d=C.jsxs(C.Fragment,{children:[u,C.jsxs("span",{className:"creator__name",children:["By ",C.jsx("span",{className:"creator__display",children:c})]})]});return r?C.jsx("button",{className:`creator creator--link${t?` ${t}`:""}`,onClick:y=>{y.stopPropagation(),n(`/assets/creator/${e}`)},children:d}):C.jsx("span",{className:`creator${t?` ${t}`:""}`,children:d})}const SC={head:"cat-head",hat:"cat-head",hair:"cat-head",facial_hair:"cat-head",eyes:"cat-head",eyebrows:"cat-head",mouth:"cat-head",mask:"cat-head",helmet:"cat-head",tiara:"cat-head",top_head:"cat-head",upper_body:"cat-upper",hands_wear:"cat-handwear",lower_body:"cat-lower",feet:"cat-feet",earring:"cat-accessories",eyewear:"cat-accessories",skin:"cat-skins",dance:"emote-dance",stunt:"emote-stunt",greetings:"emote-greetings",fun:"emote-fun",poses:"emote-poses",reactions:"emote-reactions",horror:"emote-horror"};function AX(e){var r;const t=(r=e.wearableCategory)==null?void 0:r.toLowerCase();return t&&SC[t]?SC[t]:e.category==="emote"?"emote-misc":null}function OX(e){return e==="male"?"gender-male":e==="female"?"gender-female":e==="unisex"?"gender-unisex":null}function NX(e,t=Date.now()){const{priceCredits:r,compareAtCredits:n,saleEndsAt:i}=e;return!(n==null||!(n>r)||i!=null&&i<=t)}function PX(e,t){if(!(e>0)||!(t>=0)||t>=e)return 0;const r=Math.round((1-t/e)*100);return Math.min(99,Math.max(1,r))}function fc(e,t=Date.now()){return e==null?1/0:Math.max(0,e-t)}function CX(e){if(!isFinite(e)||e<=0)return"";const t=Math.floor(e/1e3),r=Math.floor(t/86400),n=Math.floor(t%86400/3600),i=Math.floor(t%3600/60),a=t%60;return r>0?n>0?`${r}d ${n}h`:`${r}d`:n>0?`${n}h ${i}m`:i>0?`${i}m ${a}s`:`${a}s`}function TC(e){return!isFinite(e)||e<=0?0:e<36e5?1e3:6e4}function MX({endsAt:e,className:t}){const[r,n]=ve.useState(()=>fc(e));ve.useEffect(()=>{if(n(fc(e)),e==null)return;let a;const s=()=>{const c=fc(e);n(c);const l=TC(c);l>0&&(a=setTimeout(s,l))},o=TC(fc(e));return o>0&&(a=setTimeout(s,o)),()=>clearTimeout(a)},[e]);const i=CX(r);return i?C.jsxs("span",{className:t??"sale-countdown",children:[C.jsx("span",{className:"ico ico-clock sale-countdown__ico","aria-hidden":!0}),i]}):null}function jX(e){const[,t]=ve.useState(0);return ve.useEffect(()=>{const r=fc(e.saleEndsAt);if(!isFinite(r)||r<=0||r>2147483647)return;const n=setTimeout(()=>t(i=>i+1),r+1);return()=>clearTimeout(n)},[e.saleEndsAt]),NX(e)}const DX=120;function Tb(e){const{item:t}=e,r=e.mode==="market",[n,i]=ve.useState(!1),a=ve.useRef(),s=ve.useRef(null),o=hn(k=>k.add),c=hn(k=>k.items.some(B=>B.id===t.id)),l=uo(k=>{var B;return(B=k.session)==null?void 0:B.address}),u=TX(t,l),d=qd(k=>k.toggle),f=qd(k=>!!k.items[t.id]),p=Zr(k=>k.show),y=Zr(k=>k.hide),g=Zr(k=>{var B;return((B=k.item)==null?void 0:B.id)===t.id}),b=Zr(k=>{var B;return((B=k.item)==null?void 0:B.id)===t.id?k.ready:!1}),O=!!t.contractAddress&&!!t.itemId,m=t.tokenId??t.itemId,T=!r&&!!t.contractAddress&&!!m,I=`/item/${t.contractAddress}/${m}`;function h(){typeof window<"u"&&window.matchMedia&&!window.matchMedia("(hover: hover)").matches||(a.current&&clearTimeout(a.current),a.current=setTimeout(()=>{i(!0),O&&s.current&&p(t,s.current)},DX))}function v(){var k;a.current&&clearTimeout(a.current),i(!1),((k=Zr.getState().item)==null?void 0:k.id)===t.id&&y()}ve.useEffect(()=>()=>{var k;a.current&&clearTimeout(a.current),((k=Zr.getState().item)==null?void 0:k.id)===t.id&&y()},[t.id,y]);const E=AX(t),N=OX(t.gender),M=jX({priceCredits:t.priceCredits,compareAtCredits:t.compareAtCredits,saleEndsAt:t.saleEndsAt}),q=!r&&M,H=q?PX(t.compareAtCredits,t.priceCredits):0;return C.jsxs("article",{className:`card${n?" card--hover":""}`,style:T?{cursor:"pointer"}:void 0,onMouseEnter:h,onMouseLeave:v,children:[T?C.jsx(Ra,{className:"card__link",to:I,state:{item:t,tradeId:t.tradeId},"aria-label":t.name}):null,C.jsx("button",{className:`card__fav${f?" is-on":""}`,onClick:k=>{k.stopPropagation(),d(t)},"aria-label":et(f?"assetCard.removeFromFavorites":"assetCard.addToFavorites"),children:C.jsx("span",{className:`ico ${f?"ico-heart-solid":"ico-heart"}`,"aria-hidden":!0})}),C.jsxs("div",{className:"card__media",ref:s,children:[q?C.jsx("span",{className:"card__sale-badge",children:H>0?et("assetCard.saleWithDiscount",{pct:H}):et("assetCard.sale")}):null,t.thumbnail?C.jsx("img",{className:`card__img${g&&b?" card__img--hidden":""}`,src:t.thumbnail,alt:t.name,loading:"lazy"}):null,n&&O?C.jsxs(C.Fragment,{children:[C.jsx("div",{className:`card__preview${b?" is-ready":""}`,children:C.jsx(bb,{contractAddress:t.contractAddress,itemId:t.itemId??void 0,profile:"default",type:t.category==="emote"?void 0:Ur.PreviewType.AVATAR,emote:t.category==="emote"?void 0:Ur.PreviewEmote.FASHION,disableBackground:!0,disableFadeEffect:!0})}),C.jsx("span",{className:"card__preview-shield","aria-hidden":!0}),b?null:C.jsx("span",{className:"card__skeleton","aria-hidden":!0})]}):null]}),C.jsxs("div",{className:"card__body",children:[C.jsxs("div",{className:"card__top",children:[C.jsxs("div",{className:"card__desc",children:[C.jsx("div",{className:"card__name",title:t.name,children:t.name}),t.creator?C.jsx(Z$,{address:t.creator,className:"card__creator",linkToProfile:!0}):C.jsx("div",{className:"card__creator",children:" "})]}),r&&e.mode==="market"?C.jsxs("div",{className:"card__price card__price--market",children:[C.jsx("span",{className:"card__approx","aria-hidden":!0,children:"≈"}),C.jsx(yn,{className:"card__diamond"}),e.marketPriceCredits==null?"—":fd(e.marketPriceCredits),C.jsx("span",{className:"chip card__market-chip",children:et("assetCard.marketPrice")})]}):q?C.jsxs("div",{className:"card__price card__price--sale",children:[C.jsxs("span",{className:"card__price-now",title:R_(t.priceCredits),children:[C.jsx(yn,{className:"card__diamond"}),fd(t.priceCredits)]}),C.jsxs("span",{className:"card__price-was",title:R_(t.compareAtCredits),children:[C.jsx(yn,{className:"card__diamond card__diamond--was"}),fd(t.compareAtCredits)]}),C.jsx(MX,{endsAt:t.saleEndsAt,className:"card__countdown"})]}):C.jsxs("div",{className:"card__price",title:R_(t.priceCredits),children:[C.jsx(yn,{className:"card__diamond"}),fd(t.priceCredits)]})]}),C.jsxs("div",{className:"card__action",children:[C.jsxs("div",{className:"card__chips",children:[C.jsx("span",{className:"chip chip--rarity",style:{background:$9(t.rarity),color:k9(t.rarity)},children:t.rarity}),t.isSmart?C.jsxs("span",{className:"chip chip--smart",children:[C.jsx("span",{className:"ico ico-smart","aria-hidden":!0}),et("assetCard.smart")]}):null,E?C.jsx("span",{className:"chip chip--icon",children:C.jsx("span",{className:`ico ico-${E}`,"aria-hidden":!0})}):null,N?C.jsx("span",{className:"chip chip--icon",children:C.jsx("span",{className:`ico ico-${N}`,"aria-hidden":!0})}):null]}),r&&e.mode==="market"?C.jsx("button",{className:"card__add-round",onClick:k=>{k.stopPropagation(),e.onBuyNow(t)},disabled:e.marketPriceCredits==null,"aria-label":e.marketPriceCredits==null?et("assetCard.unavailable"):et("assetCard.buyNow"),children:C.jsx("span",{className:"ico ico-plus","aria-hidden":!0})}):C.jsx("button",{className:`card__add-round${c?" is-in":""}`,onClick:k=>{k.stopPropagation(),u||o(t,"grid")},disabled:c||u,"aria-label":et(u?"assetCard.yourItem":c?"assetCard.inCart":"assetCard.addToCart"),children:C.jsx("span",{className:"ico ico-plus","aria-hidden":!0})}),r&&e.mode==="market"?C.jsx("button",{className:"card__cart",onClick:k=>{k.stopPropagation(),e.onBuyNow(t)},disabled:e.marketPriceCredits==null,children:e.marketPriceCredits==null?et("assetCard.unavailable"):et("assetCard.buyNow")}):C.jsxs("button",{className:`card__cart${c?" is-in":""}`,onClick:k=>{k.stopPropagation(),u||o(t,"grid")},disabled:c||u,children:[u?null:C.jsx("span",{className:"ico ico-cart-solid card__cart-ico","aria-hidden":!0}),et(u?"assetCard.yourItem":c?"assetCard.inCart":"assetCard.addToCart")]})]})]})]})}const LX=8,$X=8,kX=12;function qX(){const t=Ov(i=>i.followed).slice(0,LX),{data:r=[],isLoading:n}=li({queryKey:["followed-creators-row",t.join(",")],enabled:t.length>0,queryFn:async()=>{const i=await Promise.all(t.map(a=>D9(a,{first:$X}).then(s=>s.items).catch(()=>[])));return BX(i).filter(a=>a.priceCredits>0).slice(0,kX)}});return t.length===0||!n&&r.length===0?null:C.jsxs("section",{className:"row",children:[C.jsx("div",{className:"row__head",children:C.jsx("h2",{className:"row__title",children:"From creators you follow"})}),C.jsx("div",{className:"row__track",children:n?Array.from({length:6}).map((i,a)=>C.jsx("div",{className:"card card--skeleton"},a)):r.map(i=>C.jsx(Tb,{item:i},i.id))})]})}function BX(e){const t=[],r=new Set,n=e.reduce((i,a)=>Math.max(i,a.length),0);for(let i=0;i<n;i++)for(const a of e){const s=a[i];s&&!r.has(s.id)&&(r.add(s.id),t.push(s))}return t}const e2="shop:recently-viewed",t2=12;function r2(){try{const e=localStorage.getItem(e2);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.slice(0,t2):[]}catch{return[]}}function KJ(e){if(e!=null&&e.id)try{const t=[e,...r2().filter(r=>r.id!==e.id)].slice(0,t2);localStorage.setItem(e2,JSON.stringify(t))}catch{}}function UX({excludeId:e}){const t=ve.useMemo(()=>r2().filter(r=>r.id!==e),[e]);return t.length===0?null:C.jsxs("section",{className:"row",children:[C.jsx("div",{className:"row__head",children:C.jsx("h2",{className:"row__title",children:"Recently viewed"})}),C.jsx("div",{className:"row__track",children:t.map(r=>C.jsx(Tb,{item:r},r.id))})]})}async function FX(e="week",t=10,r="most_volume"){const n=new URLSearchParams({sortBy:r,first:String(t)}),i=await fetch(`${St.marketplaceServerUrl}/v1/rankings/creators/${e}?${n.toString()}`);if(!i.ok)throw new Error(`fetchTopCreators ${i.status}`);return(await i.json()).data??[]}const wC=10;function HX(e){try{return Math.floor(Number(UC(e))).toLocaleString("en-US")}catch{return"0"}}function VX({rank:e,creator:t}){return C.jsxs("tr",{className:"ov-creators__row",children:[C.jsx("td",{className:"ov-creators__rank-cell",children:C.jsx("span",{className:"ov-creators__rank",children:e})}),C.jsx("td",{className:"ov-creators__creator-cell",children:C.jsx(Z$,{address:t.id,className:"ov-creators__creator",linkToProfile:!0})}),C.jsx("td",{className:"ov-creators__num",children:t.collections.toLocaleString("en-US")}),C.jsx("td",{className:"ov-creators__num",children:t.sales.toLocaleString("en-US")}),C.jsxs("td",{className:"ov-creators__num ov-creators__volume",children:[C.jsx(yn,{className:"ov-creators__coin"}),HX(t.earned)]})]})}function xX(){return C.jsxs("tr",{className:"ov-creators__row",children:[C.jsx("td",{className:"ov-creators__rank-cell",children:C.jsx("span",{className:"ov-creators__rank ov-creators__rank--skeleton"})}),C.jsx("td",{className:"ov-creators__creator-cell",children:C.jsx("span",{className:"ov-creators__skeleton ov-creators__skeleton--creator"})}),C.jsx("td",{className:"ov-creators__num",children:C.jsx("span",{className:"ov-creators__skeleton"})}),C.jsx("td",{className:"ov-creators__num",children:C.jsx("span",{className:"ov-creators__skeleton"})}),C.jsx("td",{className:"ov-creators__num",children:C.jsx("span",{className:"ov-creators__skeleton"})})]})}function GX(){const{data:e,isLoading:t,isError:r}=li({queryKey:["rankings","creators","week"],queryFn:()=>FX("week",wC)}),n=e??[];return r||!t&&n.length===0?null:C.jsxs("section",{className:"ov-creators",children:[C.jsxs("div",{className:"ov-creators__head",children:[C.jsx("h2",{className:"ov-creators__title",children:"Week Top Creators"}),C.jsx("span",{className:"ov-creators__period",children:"This Week"})]}),C.jsx("div",{className:"ov-creators__scroll",children:C.jsxs("table",{className:"ov-creators__table",children:[C.jsx("thead",{children:C.jsxs("tr",{className:"ov-creators__header",children:[C.jsx("th",{className:"ov-creators__th ov-creators__th--rank",scope:"col",children:"Rank"}),C.jsx("th",{className:"ov-creators__th",scope:"col",children:"Creator"}),C.jsx("th",{className:"ov-creators__th ov-creators__th--num",scope:"col",children:"Collections"}),C.jsx("th",{className:"ov-creators__th ov-creators__th--num",scope:"col",children:"Sales"}),C.jsx("th",{className:"ov-creators__th ov-creators__th--num",scope:"col",children:"Volume"})]})}),C.jsx("tbody",{children:t?Array.from({length:wC}).map((i,a)=>C.jsx(xX,{},a)):n.map((i,a)=>C.jsx(VX,{rank:a+1,creator:i},i.id))})]})})]})}const IC="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2059.7045%2058.9085'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Slider%20Arrows'%3e%3cpath%20id='Oval'%20opacity='0.8'%20d='M29.8522%201.59244C45.437%201.59244%2058.1117%2014.0437%2058.112%2029.4538C58.112%2044.8641%2045.4372%2057.3161%2029.8522%2057.3161C14.2672%2057.3161%201.59244%2044.8641%201.59244%2029.4538C1.5927%2014.0437%2014.2674%201.59247%2029.8522%201.59244Z'%20fill='var(--fill-0,%20white)'%20stroke='var(--stroke-0,%20white)'%20stroke-width='3.18424'/%3e%3cg%20id='bounds'%3e%3c/g%3e%3cpath%20id='icon'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M40.2842%2029.0164L25.652%2043.0901C24.8014%2043.9083%2023.4222%2043.9083%2022.5716%2043.0901C21.721%2042.2719%2021.721%2040.9454%2022.5716%2040.1272L34.1233%2029.0164L22.5716%2017.9056C21.721%2017.0874%2021.721%2015.7609%2022.5716%2014.9427C23.4222%2014.1245%2024.8014%2014.1245%2025.652%2014.9427L40.2842%2029.0164Z'%20fill='var(--fill-0,%20black)'/%3e%3c/g%3e%3c/svg%3e",zX="https://cdn.decentraland.org/@dcl/shop/0.1.0-29571500722.commit-8ea45d8/assets/hero-fashion-week-B9LOzkde.png",WX="https://cdn.decentraland.org/@dcl/shop/0.1.0-29571500722.commit-8ea45d8/assets/promo-best-rated-emotes-C6kNvB-a.png",YX="https://cdn.decentraland.org/@dcl/shop/0.1.0-29571500722.commit-8ea45d8/assets/promo-week-selected-outfits-BBmkZYZx.png",RC=6;function AC({title:e,items:t,loading:r}){const n=ve.useRef(null),[i,a]=ve.useState(1),[s,o]=ve.useState(0),c=r?RC:t.length,l=ve.useCallback(()=>{const f=n.current;if(!f)return;const p=f.clientWidth;if(p<=0)return;const y=Math.max(1,Math.ceil((f.scrollWidth-p)/p)+1);a(y),o(Math.min(y-1,Math.round(f.scrollLeft/p)));const g=f.querySelector(".card__media"),b=f.parentElement;b&&b.style.setProperty("--ov-arrow-top",`${12+(g?g.offsetHeight:150)/2}px`)},[]);ve.useEffect(()=>{l();const f=n.current;if(!f)return;const p=()=>o(Math.round(f.scrollLeft/Math.max(1,f.clientWidth)));return f.addEventListener("scroll",p,{passive:!0}),window.addEventListener("resize",l),()=>{f.removeEventListener("scroll",p),window.removeEventListener("resize",l)}},[l,c]);const u=ve.useCallback(f=>{const p=n.current;if(!p)return;const y=Math.max(0,Math.min(i-1,f));p.scrollTo({left:y*p.clientWidth,behavior:"smooth"})},[i]),d=!r&&i>1;return C.jsxs("section",{className:"row ov-carousel",children:[C.jsxs("div",{className:"row__head",children:[C.jsx("h2",{className:"row__title",children:e}),C.jsxs(Ra,{className:"row__viewall",to:"/assets",children:["View all ",C.jsx("span",{className:"ico ico-viewall","aria-hidden":!0})]})]}),C.jsxs("div",{className:"ov-carousel__viewport",children:[d?C.jsx("button",{className:"ov-arrow ov-arrow--left",onClick:()=>u(s-1),disabled:s<=0,"aria-label":"Previous",children:C.jsx("img",{src:IC,alt:"","aria-hidden":!0})}):null,C.jsx("div",{className:"ov-carousel__track",ref:n,children:r?Array.from({length:RC}).map((f,p)=>C.jsx("div",{className:"card card--skeleton"},p)):t.map(f=>C.jsx(Tb,{item:f},f.id))}),d?C.jsx("button",{className:"ov-arrow ov-arrow--right",onClick:()=>u(s+1),disabled:s>=i-1,"aria-label":"Next",children:C.jsx("img",{src:IC,alt:"","aria-hidden":!0})}):null]}),d?C.jsx("div",{className:"ov-carousel__dots","aria-label":`${e} pages`,children:Array.from({length:i}).map((f,p)=>C.jsx("button",{className:`ov-dot${p===s?" is-active":""}`,onClick:()=>u(p),"aria-label":`Go to page ${p+1}`,"aria-current":p===s?"true":void 0},p))}):null]})}function KX(){const{data:e,isLoading:t}=li({queryKey:["overview-listings"],queryFn:()=>WL({first:24})}),r=(e==null?void 0:e.items)??[];return C.jsxs("div",{className:"overview",children:[C.jsxs("section",{className:"ov-hero",children:[C.jsx("img",{className:"ov-hero__bg",src:zX,alt:"","aria-hidden":!0}),C.jsx("div",{className:"ov-hero__scrim","aria-hidden":!0}),C.jsxs("div",{className:"ov-hero__inner",children:[C.jsx("h1",{className:"ov-hero__title",children:"Fashion week outfits"}),C.jsx(Ra,{className:"btn btn--purple ov-hero__cta",to:"/assets",children:"Explore collection"})]})]}),t||r.length>0?C.jsxs(C.Fragment,{children:[C.jsx(AC,{title:"Featured Products",items:r.slice(0,12),loading:t}),C.jsxs("section",{className:"ov-promos",children:[C.jsx(Ra,{className:"ov-promo",to:"/assets","aria-label":"Best rated emotes — explore collection",children:C.jsx("img",{src:WX,alt:"Best rated emotes"})}),C.jsx(Ra,{className:"ov-promo",to:"/assets","aria-label":"Week selected outfits — explore collection",children:C.jsx("img",{src:YX,alt:"Week selected outfits"})})]}),r.length>12?C.jsx(AC,{title:"New Creations",items:r.slice(12,24),loading:!1}):null]}):C.jsxs("div",{className:"overview__empty",children:[C.jsx("p",{className:"overview__empty-title",children:"New drops are on the way"}),C.jsx("p",{className:"muted",children:"There are no items on sale right now — check back soon."}),C.jsx(Ra,{className:"btn btn--purple",to:"/assets",children:"Browse Collectibles"})]}),C.jsx(UX,{}),C.jsx(qX,{}),C.jsx(GX,{})]})}const XX={"/overview":"overview","/assets":"assets","/my-assets":"my_assets","/my-favorites":"favorites","/my-purchases":"my_purchases","/import":"import","/store-settings":"store_settings","/cart":"cart","/credits":"credits","/success":"success"},JX=ve.lazy(()=>ar(()=>import("./Assets-sWyggSzY.js"),__vite__mapDeps([16,1,17,9,5,18,19,20,21,22,23,24])).then(e=>({default:e.Assets}))),QX=ve.lazy(()=>ar(()=>import("./ItemDetail-CblzRtB5.js"),__vite__mapDeps([25,1,21,22,9,5,23,26])).then(e=>({default:e.ItemDetail}))),ZX=ve.lazy(()=>ar(()=>import("./Collection-D-dr6oYY.js"),__vite__mapDeps([27,1,28,29,30,18,19,20,24,5,31])).then(e=>({default:e.Collection}))),eJ=ve.lazy(()=>ar(()=>import("./Creator-DpZ1qFEV.js"),__vite__mapDeps([32,1,28,29,30,18,19,20,24,5,33])).then(e=>({default:e.Creator}))),tJ=ve.lazy(()=>ar(()=>import("./StoreSettings-C-yDm4Ah.js"),__vite__mapDeps([34,1,30,5,35])).then(e=>({default:e.StoreSettings}))),rJ=ve.lazy(()=>ar(()=>import("./MyAssets-26oYZL-x.js"),__vite__mapDeps([36,1,37,21,22,9,5,17,38,20,24,39])).then(e=>({default:e.MyAssets}))),nJ=ve.lazy(()=>ar(()=>import("./MyFavorites-BfWQjhlL.js"),__vite__mapDeps([40,1,20,5])).then(e=>({default:e.MyFavorites}))),iJ=ve.lazy(()=>ar(()=>import("./MyPurchases-DbU97xcR.js"),__vite__mapDeps([41,1,20,24,5])).then(e=>({default:e.MyPurchases}))),aJ=ve.lazy(()=>ar(()=>import("./ImportListings-Ry47KtP_.js"),__vite__mapDeps([42,1,37,21,22,9,5,17,38,43])).then(e=>({default:e.ImportListings}))),sJ=ve.lazy(()=>ar(()=>import("./Cart-DVt0m7-J.js"),__vite__mapDeps([44,1,21,22,9,5,23])).then(e=>({default:e.Cart}))),oJ=ve.lazy(()=>ar(()=>import("./GetCredits-B-2Nu_Cx.js"),__vite__mapDeps([45,1,13,5])).then(e=>({default:e.GetCredits}))),cJ=ve.lazy(()=>ar(()=>import("./Success-CW65bxXN.js"),__vite__mapDeps([46,1,38,23,22,9,5])).then(e=>({default:e.Success}))),uJ=ve.lazy(()=>ar(()=>import("./NotFound-CWys1EXA.js"),__vite__mapDeps([47,1,5])).then(e=>({default:e.NotFound})));function lJ(){return C.jsx("div",{className:"page-loading","aria-busy":"true",children:C.jsx("span",{className:"spinner","aria-hidden":!0})})}function dJ(){return C.jsxs("div",{className:"overview__empty",children:[C.jsx("p",{className:"overview__empty-title",children:"Something went wrong"}),C.jsx("p",{className:"muted",children:"This page hit an unexpected error. Try reloading."}),C.jsx("button",{className:"btn btn--purple",onClick:()=>window.location.reload(),children:"Reload"})]})}function fJ(){SX();const e=v2();return ve.useEffect(()=>{U8()},[]),ve.useEffect(()=>{const t=e.pathname,r=XX[t]??(t.startsWith("/item/")?"item":t.startsWith("/collection/")?"collection":t.startsWith("/assets/creator/")?"creator":"other");$8(r)},[e.pathname]),C.jsxs(C.Fragment,{children:[C.jsx(JK,{}),C.jsx(bX,{}),C.jsx(cX,{}),C.jsx(WK,{}),C.jsx("main",{className:"page",children:C.jsx($d,{fallback:C.jsx(dJ,{}),children:C.jsx(ve.Suspense,{fallback:C.jsx(lJ,{}),children:C.jsxs(E2,{children:[C.jsx(Er,{path:"/",element:C.jsx(Vb,{to:"/overview",replace:!0})}),C.jsx(Er,{path:"/overview",element:C.jsx(KX,{})}),C.jsx(Er,{path:"/assets",element:C.jsx(JX,{})}),C.jsx(Er,{path:"/market",element:C.jsx(Vb,{to:"/assets",replace:!0})}),C.jsx(Er,{path:"/item/:contractAddress/:tokenId",element:C.jsx(QX,{})}),C.jsx(Er,{path:"/collection/:contractAddress",element:C.jsx(ZX,{})}),C.jsx(Er,{path:"/assets/creator/:address",element:C.jsx(eJ,{})}),C.jsx(Er,{path:"/store-settings",element:C.jsx(tJ,{})}),C.jsx(Er,{path:"/my-assets",element:C.jsx(rJ,{})}),C.jsx(Er,{path:"/my-favorites",element:C.jsx(nJ,{})}),C.jsx(Er,{path:"/my-purchases",element:C.jsx(iJ,{})}),C.jsx(Er,{path:"/import",element:C.jsx(aJ,{})}),C.jsx(Er,{path:"/cart",element:C.jsx(sJ,{})}),C.jsx(Er,{path:"/credits",element:C.jsx(oJ,{})}),C.jsx(Er,{path:"/success",element:C.jsx(cJ,{})}),C.jsx(Er,{path:"*",element:C.jsx(uJ,{})})]})})})}),C.jsx($d,{fallback:C.jsx(C.Fragment,{}),children:C.jsx(pX,{})})]})}function pJ({children:e}){const t=Xv(r=>r.locale);return BK(t),C.jsx(lK,{value:Eb(t),children:e},t)}W8();const mJ=new K2({defaultOptions:{queries:{staleTime:3e4,refetchOnWindowFocus:!1}}}),hJ=["localhost","127.0.0.1"].includes(window.location.hostname),yJ=hJ?void 0:"/shop";b2.createRoot(document.getElementById("root")).render(C.jsx(BC.StrictMode,{children:C.jsx(J2,{client:mJ,children:C.jsx(pJ,{children:C.jsx(S2,{basename:yJ,children:C.jsx(fJ,{})})})})}));export{yW as $,Tb as A,b1 as B,yn as C,q8 as D,PJ as E,VJ as F,WL as G,hf as H,ZK as I,eX as J,Sb as K,tX as L,Os as M,BJ as N,SL as O,gz as P,wz as Q,ki as R,wt as S,Ez as T,Li as U,mz as V,bb as W,f9 as X,qL as Y,mW as Z,ar as _,uo as a,l9 as a$,ub as a0,wf as a1,jL as a2,Qc as a3,ob as a4,$L as a5,cb as a6,MJ as a7,qJ as a8,H2 as a9,$J as aA,B9 as aB,U9 as aC,Ov as aD,xJ as aE,$v as aF,Sn as aG,UV as aH,NG as aI,Yc as aJ,FE as aK,EC as aL,u9 as aM,c9 as aN,Lv as aO,rz as aP,yz as aQ,tz as aR,_L as aS,EL as aT,vL as aU,ez as aV,_z as aW,pz as aX,PW as aY,jJ as aZ,d9 as a_,bJ as aa,EJ as ab,ck as ac,Gf as ad,WJ as ae,_f as af,CJ as ag,Mx as ah,Vn as ai,Kv as aj,pC as ak,jX as al,IJ as am,KJ as an,AX as ao,OX as ap,TX as aq,k9 as ar,$9 as as,PX as at,MX as au,j9 as av,kJ as aw,LJ as ax,GJ as ay,UJ as az,li as b,nb as b0,b9 as b1,PE as b2,Fj as b3,Hj as b4,zJ as b5,ZV as b6,xL as b7,RW as b8,Cf as b9,O7 as ba,bL as bb,o9 as bc,Pv as bd,HJ as c,YL as d,St as e,NJ as f,Ur as g,Ex as h,iN as i,YJ as j,DJ as k,hn as l,MG as m,X2 as n,Z$ as o,FJ as p,jG as q,bn as r,Ks as s,et as t,qd as u,_n as v,Ic as w,OJ as x,RJ as y,AJ as z};
|