@dcl/shop 0.1.0-28849951791.commit-e0fa315 → 0.1.0-28866858903.commit-27edcd7

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.
Files changed (160) hide show
  1. package/assets/{Assets-uXzVK3Qk.js → Assets-CT28s3tn.js} +1 -1
  2. package/assets/{Cart-B_feHFWP.js → Cart-DM50ezI4.js} +1 -1
  3. package/assets/{CircularProgress-MlGhFCHM.js → CircularProgress-DG2FpN0J.js} +1 -1
  4. package/assets/{Collection-HISXJvQ9.js → Collection-C1Lg8iud.js} +1 -1
  5. package/assets/{Creator-DckKaL-1.js → Creator-DEfpeOuR.js} +1 -1
  6. package/assets/{ExchangeController-Baa0YVeA.js → ExchangeController-CgeVuXaK.js} +1 -1
  7. package/assets/{GetCredits-DqKwryal.js → GetCredits-D2PhJWRd.js} +2 -2
  8. package/assets/{HelpersUtil-BVXkvMyH.js → HelpersUtil-BMvoH0KX.js} +1 -1
  9. package/assets/{ImportListings-3PSkCxI9.js → ImportListings-BW6Whd2Z.js} +1 -1
  10. package/assets/{ItemDetail-Ck5cudTI.js → ItemDetail-Cm6-wcV1.js} +1 -1
  11. package/assets/{Market-r9wggpqR.js → Market-ByTd4_V6.js} +1 -1
  12. package/assets/{MenuItem-CTKZTFhj.js → MenuItem-fSoZrIOB.js} +1 -1
  13. package/assets/{MyAssets-DbjlwVgI.js → MyAssets-DrK5wf4w.js} +1 -1
  14. package/assets/{MyFavorites-CUJsTl4U.js → MyFavorites-BYYLAkSE.js} +1 -1
  15. package/assets/{MyPurchases-D231IumZ.js → MyPurchases-uiVXvPAV.js} +1 -1
  16. package/assets/{NotFound-MYCYhimC.js → NotFound-DBcHTJ9Q.js} +1 -1
  17. package/assets/{RealCheckout-_Z3g7ZbH.js → RealCheckout-BH-IXEKW.js} +1 -1
  18. package/assets/{ShopFooterInner-gDzKrctg.js → ShopFooterInner-BecaIUMc.js} +2 -2
  19. package/assets/{Success-vyQPaFjH.js → Success-XVaAYlbU.js} +1 -1
  20. package/assets/{SvgIcon-DHNKm7fg.js → SvgIcon-_uqtXVDj.js} +1 -1
  21. package/assets/{SwapController-C28NtHea.js → SwapController-Dt7v7c5Z.js} +1 -1
  22. package/assets/{TradeService-CV6tm-S-.js → TradeService-BtTy0G3e.js} +1 -1
  23. package/assets/{W3MFrameProviderSingleton-CPW2Gx43.js → W3MFrameProviderSingleton-BGrWzqsE.js} +3 -3
  24. package/assets/{WebCryptoP256-CJ8gEFrP.js → WebCryptoP256-Ddd92cBG.js} +1 -1
  25. package/assets/{basic-Cp5xCH29.js → basic-Cs_uWRSy.js} +1 -1
  26. package/assets/{biconomy-DE6VN2MK.js → biconomy-C-red-Y4.js} +1 -1
  27. package/assets/{buy-gasless-C0vjtz9e.js → buy-gasless-k9AJLehR.js} +1 -1
  28. package/assets/{buy-DW_YPH6-.js → buy-ywa6QYOz.js} +1 -1
  29. package/assets/{ccip-Dw1-xWm0.js → ccip-C-81g62f.js} +1 -1
  30. package/assets/{ccip-CO-J9tPJ.js → ccip-DZmtf0-e.js} +1 -1
  31. package/assets/{collection-gU9snfSG.js → collection-BgiwV3T2.js} +1 -1
  32. package/assets/{controller-Dp-L0bGU.js → controller-Ujfw8iYY.js} +2 -2
  33. package/assets/{core-DOKNMejd.js → core-BBXU740E.js} +4 -4
  34. package/assets/{custom-DrZvVkR4.js → custom-DdewCaHO.js} +1 -1
  35. package/assets/{data-capture-CWmntLCH.js → data-capture-CAQuoq2H.js} +1 -1
  36. package/assets/decimals-Bf_Oizd2.js +1 -0
  37. package/assets/{decimals-BpJkRsKM.js → decimals-DbV6JWsZ.js} +1 -1
  38. package/assets/{detectExtension-BOrmaly3.js → detectExtension-BsnimyTc.js} +1 -1
  39. package/assets/{email-DTaLpEKv.js → email-D-Gg6ktV.js} +1 -1
  40. package/assets/{embedded-wallet-DVickMII.js → embedded-wallet-BygK-cU5.js} +1 -1
  41. package/assets/{engine-Cyf0wDMH.js → engine-CqQgekFY.js} +1 -1
  42. package/assets/{estimate-l1-fee-Ci_3qNsd.js → estimate-l1-fee-CON30Z4C.js} +1 -1
  43. package/assets/{eth_estimateGas-Bu7KbsjJ.js → eth_estimateGas-CDpfukc1.js} +1 -1
  44. package/assets/{eth_getStorageAt-gEhkd3Dl.js → eth_getStorageAt-B88Q9upn.js} +1 -1
  45. package/assets/{eth_getTransactionCount-CZrmDIpa.js → eth_getTransactionCount-C4d33r-r.js} +1 -1
  46. package/assets/{extractIPFS-HSGbtFdH.js → extractIPFS-SF68IVsy.js} +1 -1
  47. package/assets/{features-CjtSZKbI.js → features-CCBnPBuN.js} +1 -1
  48. package/assets/{fetchTokenMetadata-DcoAGAFy.js → fetchTokenMetadata-D8XVhXk_.js} +2 -2
  49. package/assets/{generateUtilityClasses-DMMGtITh.js → generateUtilityClasses-CKIya6ur.js} +1 -1
  50. package/assets/{get-ecosystem-wallet-info-GpWofI03.js → get-ecosystem-wallet-info-CyYDgfFp.js} +1 -1
  51. package/assets/{getBalance-IAhn1Sx7.js → getBalance-BfAqIBxL.js} +1 -1
  52. package/assets/{getInstalledModules-Clea_yJr.js → getInstalledModules-mqQipjK8.js} +1 -1
  53. package/assets/{getNFT-CbT_NWLy.js → getNFT-BtODCVGa.js} +2 -2
  54. package/assets/{getNFT-BkaCCDU5.js → getNFT-DErJLjpR.js} +1 -1
  55. package/assets/{hashTypedData-DAd66wY6.js → hashTypedData-BYNlhvPL.js} +1 -1
  56. package/assets/{hashTypedData-PYLB7hJl.js → hashTypedData-CW0ZlbZA.js} +1 -1
  57. package/assets/{import-dVEuzimB.js → import-Bw-yAc9q.js} +1 -1
  58. package/assets/{in-app-wallet-calls-l67EA4DZ.js → in-app-wallet-calls-NeNIVGtZ.js} +1 -1
  59. package/assets/{index-D1gEge8-.js → index-0GXqquxu.js} +3 -3
  60. package/assets/{index-B_NuPdf0.js → index-B0XE7Qzl.js} +1 -1
  61. package/assets/{index-B6lLVyUf.js → index-BB2MAbAB.js} +1 -1
  62. package/assets/{index-DnQG3NAn.js → index-BFHCiXWB.js} +1 -1
  63. package/assets/{index-B1ZF46Ko.js → index-BKh4fLim.js} +1 -1
  64. package/assets/{index-BWbKKFVK.js → index-B_F6pJEu.js} +1 -1
  65. package/assets/{index-DVcL7J_t.js → index-B_TejJ9A.js} +1 -1
  66. package/assets/{index-Bd4x7TMP.js → index-Be3GyXzC.js} +1 -1
  67. package/assets/{index-B94ghhpu.js → index-Bpm2At5Q.js} +1 -1
  68. package/assets/{index-BcZPRgUv.js → index-C0cx32sg.js} +1 -1
  69. package/assets/{index-BeUILvqM.js → index-C4D-6CtP.js} +1 -1
  70. package/assets/{index-a4k6LaYK.js → index-C6e6OYT7.js} +1 -1
  71. package/assets/{index-BjptEpaJ.js → index-C8d0rRhd.js} +1 -1
  72. package/assets/{index-CqnsV9lR.js → index-CAsWPx_4.js} +1 -1
  73. package/assets/{index-zbujtMDB.js → index-CI9qvWc6.js} +1 -1
  74. package/assets/{index-D5JjqjjU.js → index-CMgbQJrl.js} +1 -1
  75. package/assets/{index-CENUxZfv.js → index-CMnbAjSo.js} +1 -1
  76. package/assets/{index-rk-RtPGh.js → index-CORGgUhI.js} +1 -1
  77. package/assets/{index-BuedKT8D.js → index-CWKaW9cZ.js} +2 -2
  78. package/assets/{index-jCrNn234.js → index-CYiwoWgV.js} +1 -1
  79. package/assets/{index-CcsWoBJK.js → index-CZG-YTaJ.js} +1 -1
  80. package/assets/{index-DURh1PEo.js → index-C_jnF2T8.js} +1 -1
  81. package/assets/{index-CsVrdKM8.js → index-CqovlPfY.js} +1 -1
  82. package/assets/{index-CdO-kfoS.js → index-Cv6gBdhQ.js} +1 -1
  83. package/assets/{index-zVvLDKBh.js → index-CxlLn_V3.js} +2 -2
  84. package/assets/{index-7rWaFD7f.js → index-Cxu2kNxx.js} +1 -1
  85. package/assets/{index-o3xLbiUm.js → index-D2F7BUhb.js} +1 -1
  86. package/assets/{index-CuBAn4iR.js → index-D5Bpra19.js} +1 -1
  87. package/assets/{index-u77btqjQ.js → index-D6o05Q0p.js} +1 -1
  88. package/assets/{index-Bv11rzVa.js → index-D9OsLyrU.js} +1 -1
  89. package/assets/{index-o2j-czuk.js → index-DKI889w4.js} +1 -1
  90. package/assets/{index-u8nH4Rw0.js → index-DNkn2UX9.js} +1 -1
  91. package/assets/{index-Df6GKZpc.js → index-DUjm2IcF.js} +2 -2
  92. package/assets/{index-BVcNzXap.js → index-DaF3Vnaw.js} +1 -1
  93. package/assets/{index-CbyAJw4-.js → index-DauDncRr.js} +1 -1
  94. package/assets/{index-CAXOAo7E.js → index-De3Z7JXD.js} +1 -1
  95. package/assets/{index-C7St4Q5o.js → index-DeRdsl6L.js} +1 -1
  96. package/assets/{index-D9XZpwfV.js → index-Dh_23qfs.js} +5 -5
  97. package/assets/{index-CcUfpaSP.js → index-Dq_E0wOW.js} +1 -1
  98. package/assets/{index-DxWP3gak.js → index-DtsePI_i.js} +1 -1
  99. package/assets/{index-DOLdge0g.js → index-DuUdctHy.js} +1 -1
  100. package/assets/{index-BrR0WZ0Y.js → index-KR_pcYvC.js} +1 -1
  101. package/assets/{index-Dv41StGm.js → index-PX_c3Qb_.js} +1 -1
  102. package/assets/{index-B3P6BPci.js → index-QmaSqjcW.js} +1 -1
  103. package/assets/{index-uzc4dT8s.js → index-RYxtgu1n.js} +1 -1
  104. package/assets/{index-Bl9N3aWR.js → index-RbaKVJaM.js} +1 -1
  105. package/assets/{index-BKA2Kk9C.js → index-TS-e7Dqh.js} +1 -1
  106. package/assets/{index-BYg62rD6.js → index-ZkliCE3r.js} +1 -1
  107. package/assets/{index-C6uhDE9h.js → index-_K2YCvAG.js} +1 -1
  108. package/assets/{index-B0--HMVL.js → index-sV0xAzf6.js} +3 -3
  109. package/assets/{index-DqnX5uAR.js → index-uDlFzubM.js} +1 -1
  110. package/assets/{index.es-CYMyZCD-.js → index.es-CCdB6eaE.js} +1 -1
  111. package/assets/{index.es-DJUkBdGr.js → index.es-CQ0R_jWA.js} +1 -1
  112. package/assets/{index.es-UvEfkSna.js → index.es-d5kuURHY.js} +4 -4
  113. package/assets/{localBatchGatewayRequest-C9D88kZr.js → localBatchGatewayRequest-BexY9Mde.js} +1 -1
  114. package/assets/{mana-rate-Dx_lqKWQ.js → mana-rate-embrvpxV.js} +1 -1
  115. package/assets/network-mdKz8jdP.js +1 -0
  116. package/assets/{networks-KbQXXD7P.js → networks-ATqZYe-g.js} +1 -1
  117. package/assets/{onramp-iekcmGjJ.js → onramp-CC_Mk4Gm.js} +1 -1
  118. package/assets/{openzeppelin-41206uN_.js → openzeppelin-bDyc7per.js} +1 -1
  119. package/assets/{ownerOf-DH7SAQYs.js → ownerOf-B3YC-1gG.js} +1 -1
  120. package/assets/{parseNft-Dy8OsAtf.js → parseNft-Bp_loQO2.js} +2 -2
  121. package/assets/{parseSignature-BiaWpR8i.js → parseSignature-G8Ir60N1.js} +1 -1
  122. package/assets/{parseSignature-D9IuPuaA.js → parseSignature-k_e-4JPE.js} +3 -3
  123. package/assets/{pay-with-exchange-D0U4VJXZ.js → pay-with-exchange-C9Y_CGg6.js} +1 -1
  124. package/assets/{qr-overlay-35KmnL99.js → qr-overlay-KvaIp7-h.js} +1 -1
  125. package/assets/{receive-D80uh9Rj.js → receive-8erCTY1F.js} +1 -1
  126. package/assets/{resolveImplementation-BuxyNBBw.js → resolveImplementation-D0m-RM9g.js} +1 -1
  127. package/assets/{rpc-CV4XQPwJ.js → rpc-Db5G0SW1.js} +1 -1
  128. package/assets/{secp256k1-CZj9lLpY.js → secp256k1-CqOSmkL9.js} +1 -1
  129. package/assets/{secp256k1-lf00rTSa.js → secp256k1-d1PVlyhU.js} +1 -1
  130. package/assets/{secp256k1-Bz9G1VTq.js → secp256k1-hr2xO75Q.js} +1 -1
  131. package/assets/{send-batch-transaction-uDBYU3an.js → send-batch-transaction-DLM-_LrZ.js} +1 -1
  132. package/assets/{send-eip712-transaction-DR18L-sh.js → send-eip712-transaction-DP17AWWu.js} +2 -2
  133. package/assets/{send-gasless-transaction-BfuwoIYy.js → send-gasless-transaction-BFbMbtLp.js} +2 -2
  134. package/assets/{send-CZjs1yZc.js → send-oFAx02yK.js} +1 -1
  135. package/assets/{sendRawTransaction-BUgSPkVd.js → sendRawTransaction-B-N14GCq.js} +3 -3
  136. package/assets/{serializeTransaction-Dmi33xSK.js → serializeTransaction-BLc8aQzS.js} +1 -1
  137. package/assets/{session-proposal-BOa4yxBl.js → session-proposal-M_2My__Q.js} +1 -1
  138. package/assets/{session-request-Bcaq75nd.js → session-request-DBYaO4q5.js} +2 -2
  139. package/assets/{sha256-zMI7s0-F.js → sha256-Cx7Ij8et.js} +1 -1
  140. package/assets/{signing-Cvv8O8BI.js → signing-DbptdEFO.js} +4 -4
  141. package/assets/{socials-C_Nw_-aT.js → socials-DAwqYnxC.js} +1 -1
  142. package/assets/{swaps-DrEprVp5.js → swaps-D7FObwMZ.js} +1 -1
  143. package/assets/{thirdweb-D3908hZR.js → thirdweb-CI-IL5Al.js} +3 -3
  144. package/assets/{totalSupply-CpI009r1.js → totalSupply-CnFxFHEm.js} +1 -1
  145. package/assets/{transactionReceipt-CRiBJ28i.js → transactionReceipt-BZFMW0kN.js} +1 -1
  146. package/assets/{transactions-63jnvtFL.js → transactions-40IT23nK.js} +1 -1
  147. package/assets/{useInfiniteGrid-xOdKaR3H.js → useInfiniteGrid-CjjuujTH.js} +1 -1
  148. package/assets/{verifyHash-BR9R1RG0.js → verifyHash-ClHnvqLw.js} +1 -1
  149. package/assets/{w3m-modal-lZE_ZuOa.js → w3m-modal-CNI9aYj6.js} +1 -1
  150. package/assets/{w3m-modal-BlMrqGaw.js → w3m-modal-cIgLRAbD.js} +1 -1
  151. package/assets/{wait-for-tx-receipt-Do82Sucy.js → wait-for-tx-receipt-RA8zh0o7.js} +1 -1
  152. package/assets/{wallet-kind-WAQetlRX.js → wallet-kind-DspYSL12.js} +1 -1
  153. package/assets/{wallets-CoP2jTeJ.js → wallets-CdAU3xHZ.js} +6 -6
  154. package/assets/{web-connector-uOzuTTW_.js → web-connector-BVaGSh3Y.js} +3 -3
  155. package/assets/{writeContract-D-hfmcKA.js → writeContract-DCf0vGST.js} +1 -1
  156. package/assets/{zoraTestnet-BMgpy9AE.js → zoraTestnet-DeE2yd9D.js} +1 -1
  157. package/index.html +8 -8
  158. package/package.json +2 -2
  159. package/assets/decimals-D1rmvFNT.js +0 -1
  160. package/assets/network-CCTP_tzM.js +0 -1
@@ -1,4 +1,4 @@
1
- import{i as _,b as l,a as ve}from"./lit-element-B3y9oplH.js";import{n as b,o as f,r as h,a as Ie}from"./class-map-CxwNmq0D.js";import{d as U,r as Ne,e as Se,v as ke}from"./index-B0--HMVL.js";import{c as C,U as _e}from"./index-DOLdge0g.js";import"./index-CdO-kfoS.js";import"./index-BrR0WZ0Y.js";import"./index-CsVrdKM8.js";import"./index-CcUfpaSP.js";import"./index-C7St4Q5o.js";import"./index-uzc4dT8s.js";import"./index-Bv11rzVa.js";import{$ as Ce,k as v,a0 as $e,a1 as y,b as O,a2 as Re,a3 as N,O as ce,N as A,a4 as me,C as m,q as T,E as M,S as R,n as Oe,M as G,e as Ue,i as Le,p as qe,o as P,R as z}from"./W3MFrameProviderSingleton-CPW2Gx43.js";import{au as I}from"./NetworkUtil-aE1iGnVj.js";import"./index-DVcL7J_t.js";import{M as ge}from"./MathUtil-BGCe3rZ3.js";const De=U`
1
+ import{i as _,b as l,a as ve}from"./lit-element-B3y9oplH.js";import{n as b,o as f,r as h,a as Ie}from"./class-map-CxwNmq0D.js";import{d as U,r as Ne,e as Se,v as ke}from"./index-sV0xAzf6.js";import{c as C,U as _e}from"./index-DuUdctHy.js";import"./index-Cv6gBdhQ.js";import"./index-KR_pcYvC.js";import"./index-CqovlPfY.js";import"./index-Dq_E0wOW.js";import"./index-DeRdsl6L.js";import"./index-RYxtgu1n.js";import"./index-D9OsLyrU.js";import{$ as Ce,k as v,a0 as $e,a1 as y,b as O,a2 as Re,a3 as N,O as ce,N as A,a4 as me,C as m,q as T,E as M,S as R,n as Oe,M as G,e as Ue,i as Le,p as qe,o as P,R as z}from"./W3MFrameProviderSingleton-BGrWzqsE.js";import{au as I}from"./NetworkUtil-aE1iGnVj.js";import"./index-B_TejJ9A.js";import{M as ge}from"./MathUtil-BGCe3rZ3.js";const De=U`
2
2
  :host {
3
3
  position: relative;
4
4
  }
@@ -1,3 +1,3 @@
1
- import{d as G}from"./index-BWbKKFVK.js";/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */function P(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function V(e,r){return Array.isArray(r)?r.length===0?!0:e?r.every(n=>typeof n=="string"):r.every(n=>Number.isSafeInteger(n)):!1}function I(e,r){if(typeof r!="string")throw new Error(`${e}: string expected`);return!0}function B(e){if(!Number.isSafeInteger(e))throw new Error(`invalid integer: ${e}`)}function v(e){if(!Array.isArray(e))throw new Error("array expected")}function S(e,r){if(!V(!0,r))throw new Error(`${e}: array of strings expected`)}function K(e,r){if(!V(!1,r))throw new Error(`${e}: array of numbers expected`)}function J(...e){const r=s=>s,n=(s,u)=>i=>s(u(i)),b=e.map(s=>s.encode).reduceRight(n,r),d=e.map(s=>s.decode).reduce(n,r);return{encode:b,decode:d}}function Q(e){const r=typeof e=="string"?e.split(""):e,n=r.length;S("alphabet",r);const b=new Map(r.map((d,s)=>[d,s]));return{encode:d=>(v(d),d.map(s=>{if(!Number.isSafeInteger(s)||s<0||s>=n)throw new Error(`alphabet.encode: digit index outside alphabet "${s}". Allowed: ${e}`);return r[s]})),decode:d=>(v(d),d.map(s=>{I("alphabet.decode",s);const u=b.get(s);if(u===void 0)throw new Error(`Unknown letter: "${s}". Allowed: ${e}`);return u}))}}function W(e=""){return I("join",e),{encode:r=>(S("join.decode",r),r.join(e)),decode:r=>(I("join.decode",r),r.split(e))}}function fe(e,r="="){return B(e),I("padding",r),{encode(n){for(S("padding.encode",n);n.length*e%8;)n.push(r);return n},decode(n){S("padding.decode",n);let b=n.length;if(b*e%8)throw new Error("padding: invalid, string should have whole number of bytes");for(;b>0&&n[b-1]===r;b--)if((b-1)*e%8===0)throw new Error("padding: invalid, string has too much padding");return n.slice(0,b)}}}function _(e,r,n){if(r<2)throw new Error(`convertRadix: invalid from=${r}, base cannot be less than 2`);if(n<2)throw new Error(`convertRadix: invalid to=${n}, base cannot be less than 2`);if(v(e),!e.length)return[];let b=0;const d=[],s=Array.from(e,i=>{if(B(i),i<0||i>=r)throw new Error(`invalid integer: ${i}`);return i}),u=s.length;for(;;){let i=0,a=!0;for(let w=b;w<u;w++){const p=s[w],x=r*i,A=x+p;if(!Number.isSafeInteger(A)||x/r!==i||A-p!==x)throw new Error("convertRadix: carry overflow");const m=A/n;i=A%n;const l=Math.floor(m);if(s[w]=l,!Number.isSafeInteger(l)||l*n+i!==A)throw new Error("convertRadix: carry overflow");if(a)l?a=!1:b=w;else continue}if(d.push(i),a)break}for(let i=0;i<e.length-1&&e[i]===0;i++)d.push(0);return d.reverse()}const X=(e,r)=>r===0?e:X(r,e%r),$=(e,r)=>e+(r-X(e,r)),R=(()=>{let e=[];for(let r=0;r<40;r++)e.push(2**r);return e})();function F(e,r,n,b){if(v(e),r<=0||r>32)throw new Error(`convertRadix2: wrong from=${r}`);if(n<=0||n>32)throw new Error(`convertRadix2: wrong to=${n}`);if($(r,n)>32)throw new Error(`convertRadix2: carry overflow from=${r} to=${n} carryBits=${$(r,n)}`);let d=0,s=0;const u=R[r],i=R[n]-1,a=[];for(const w of e){if(B(w),w>=u)throw new Error(`convertRadix2: invalid data word=${w} from=${r}`);if(d=d<<r|w,s+r>32)throw new Error(`convertRadix2: carry overflow pos=${s} from=${r}`);for(s+=r;s>=n;s-=n)a.push((d>>s-n&i)>>>0);const p=R[s];if(p===void 0)throw new Error("invalid carry");d&=p-1}if(d=d<<n-s&i,!b&&s>=r)throw new Error("Excess padding");if(!b&&d>0)throw new Error(`Non-zero padding: ${d}`);return b&&s>0&&a.push(d>>>0),a}function ae(e){B(e);const r=2**8;return{encode:n=>{if(!P(n))throw new Error("radix.encode input should be Uint8Array");return _(Array.from(n),r,e)},decode:n=>(K("radix.decode",n),Uint8Array.from(_(n,e,r)))}}function le(e,r=!1){if(B(e),e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if($(8,e)>32||$(e,8)>32)throw new Error("radix2: carry overflow");return{encode:n=>{if(!P(n))throw new Error("radix2.encode input should be Uint8Array");return F(Array.from(n),8,e,!r)},decode:n=>(K("radix2.decode",n),Uint8Array.from(F(n,e,8,r)))}}const be=J(le(5),Q("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),fe(5),W("")),se=e=>J(ae(58),Q(e),W("")),we=se("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");function D(e){return globalThis.Buffer!=null?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}function Y(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?D(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}function ge(e,r){r||(r=e.reduce((d,s)=>d+s.length,0));const n=Y(r);let b=0;for(const d of e)n.set(d,b),b+=d.length;return D(n)}function Z(e,r,n,b){return{name:e,prefix:r,encoder:{name:e,prefix:r,encode:n},decoder:{decode:b}}}const q=Z("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),T=Z("ascii","a",e=>{let r="a";for(let n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return r},e=>{e=e.substring(1);const r=Y(e.length);for(let n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return r}),ee={utf8:q,"utf-8":q,hex:G.base16,latin1:T,ascii:T,binary:T,...G};function pe(e,r="utf8"){const n=ee[r];if(!n)throw new Error(`Unsupported encoding "${r}"`);return(r==="utf8"||r==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?D(globalThis.Buffer.from(e,"utf-8")):n.decoder.decode(`${n.prefix}${e}`)}function ye(e,r="utf8"){const n=ee[r];if(!n)throw new Error(`Unsupported encoding "${r}"`);return(r==="utf8"||r==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):n.encoder.encode(e).substring(1)}var H,N;function re(){if(N)return H;N=1;const e="Input must be an string, Buffer or Uint8Array";function r(u){let i;if(u instanceof Uint8Array)i=u;else if(typeof u=="string")i=new TextEncoder().encode(u);else throw new Error(e);return i}function n(u){return Array.prototype.map.call(u,function(i){return(i<16?"0":"")+i.toString(16)}).join("")}function b(u){return(4294967296+u).toString(16).substring(1)}function d(u,i,a){let w=`
1
+ import{d as G}from"./index-B_F6pJEu.js";/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */function P(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function V(e,r){return Array.isArray(r)?r.length===0?!0:e?r.every(n=>typeof n=="string"):r.every(n=>Number.isSafeInteger(n)):!1}function I(e,r){if(typeof r!="string")throw new Error(`${e}: string expected`);return!0}function B(e){if(!Number.isSafeInteger(e))throw new Error(`invalid integer: ${e}`)}function v(e){if(!Array.isArray(e))throw new Error("array expected")}function S(e,r){if(!V(!0,r))throw new Error(`${e}: array of strings expected`)}function K(e,r){if(!V(!1,r))throw new Error(`${e}: array of numbers expected`)}function J(...e){const r=s=>s,n=(s,u)=>i=>s(u(i)),b=e.map(s=>s.encode).reduceRight(n,r),d=e.map(s=>s.decode).reduce(n,r);return{encode:b,decode:d}}function Q(e){const r=typeof e=="string"?e.split(""):e,n=r.length;S("alphabet",r);const b=new Map(r.map((d,s)=>[d,s]));return{encode:d=>(v(d),d.map(s=>{if(!Number.isSafeInteger(s)||s<0||s>=n)throw new Error(`alphabet.encode: digit index outside alphabet "${s}". Allowed: ${e}`);return r[s]})),decode:d=>(v(d),d.map(s=>{I("alphabet.decode",s);const u=b.get(s);if(u===void 0)throw new Error(`Unknown letter: "${s}". Allowed: ${e}`);return u}))}}function W(e=""){return I("join",e),{encode:r=>(S("join.decode",r),r.join(e)),decode:r=>(I("join.decode",r),r.split(e))}}function fe(e,r="="){return B(e),I("padding",r),{encode(n){for(S("padding.encode",n);n.length*e%8;)n.push(r);return n},decode(n){S("padding.decode",n);let b=n.length;if(b*e%8)throw new Error("padding: invalid, string should have whole number of bytes");for(;b>0&&n[b-1]===r;b--)if((b-1)*e%8===0)throw new Error("padding: invalid, string has too much padding");return n.slice(0,b)}}}function _(e,r,n){if(r<2)throw new Error(`convertRadix: invalid from=${r}, base cannot be less than 2`);if(n<2)throw new Error(`convertRadix: invalid to=${n}, base cannot be less than 2`);if(v(e),!e.length)return[];let b=0;const d=[],s=Array.from(e,i=>{if(B(i),i<0||i>=r)throw new Error(`invalid integer: ${i}`);return i}),u=s.length;for(;;){let i=0,a=!0;for(let w=b;w<u;w++){const p=s[w],x=r*i,A=x+p;if(!Number.isSafeInteger(A)||x/r!==i||A-p!==x)throw new Error("convertRadix: carry overflow");const m=A/n;i=A%n;const l=Math.floor(m);if(s[w]=l,!Number.isSafeInteger(l)||l*n+i!==A)throw new Error("convertRadix: carry overflow");if(a)l?a=!1:b=w;else continue}if(d.push(i),a)break}for(let i=0;i<e.length-1&&e[i]===0;i++)d.push(0);return d.reverse()}const X=(e,r)=>r===0?e:X(r,e%r),$=(e,r)=>e+(r-X(e,r)),R=(()=>{let e=[];for(let r=0;r<40;r++)e.push(2**r);return e})();function F(e,r,n,b){if(v(e),r<=0||r>32)throw new Error(`convertRadix2: wrong from=${r}`);if(n<=0||n>32)throw new Error(`convertRadix2: wrong to=${n}`);if($(r,n)>32)throw new Error(`convertRadix2: carry overflow from=${r} to=${n} carryBits=${$(r,n)}`);let d=0,s=0;const u=R[r],i=R[n]-1,a=[];for(const w of e){if(B(w),w>=u)throw new Error(`convertRadix2: invalid data word=${w} from=${r}`);if(d=d<<r|w,s+r>32)throw new Error(`convertRadix2: carry overflow pos=${s} from=${r}`);for(s+=r;s>=n;s-=n)a.push((d>>s-n&i)>>>0);const p=R[s];if(p===void 0)throw new Error("invalid carry");d&=p-1}if(d=d<<n-s&i,!b&&s>=r)throw new Error("Excess padding");if(!b&&d>0)throw new Error(`Non-zero padding: ${d}`);return b&&s>0&&a.push(d>>>0),a}function ae(e){B(e);const r=2**8;return{encode:n=>{if(!P(n))throw new Error("radix.encode input should be Uint8Array");return _(Array.from(n),r,e)},decode:n=>(K("radix.decode",n),Uint8Array.from(_(n,e,r)))}}function le(e,r=!1){if(B(e),e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if($(8,e)>32||$(e,8)>32)throw new Error("radix2: carry overflow");return{encode:n=>{if(!P(n))throw new Error("radix2.encode input should be Uint8Array");return F(Array.from(n),8,e,!r)},decode:n=>(K("radix2.decode",n),Uint8Array.from(F(n,e,8,r)))}}const be=J(le(5),Q("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),fe(5),W("")),se=e=>J(ae(58),Q(e),W("")),we=se("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");function D(e){return globalThis.Buffer!=null?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}function Y(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?D(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}function ge(e,r){r||(r=e.reduce((d,s)=>d+s.length,0));const n=Y(r);let b=0;for(const d of e)n.set(d,b),b+=d.length;return D(n)}function Z(e,r,n,b){return{name:e,prefix:r,encoder:{name:e,prefix:r,encode:n},decoder:{decode:b}}}const q=Z("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),T=Z("ascii","a",e=>{let r="a";for(let n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return r},e=>{e=e.substring(1);const r=Y(e.length);for(let n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return r}),ee={utf8:q,"utf-8":q,hex:G.base16,latin1:T,ascii:T,binary:T,...G};function pe(e,r="utf8"){const n=ee[r];if(!n)throw new Error(`Unsupported encoding "${r}"`);return(r==="utf8"||r==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?D(globalThis.Buffer.from(e,"utf-8")):n.decoder.decode(`${n.prefix}${e}`)}function ye(e,r="utf8"){const n=ee[r];if(!n)throw new Error(`Unsupported encoding "${r}"`);return(r==="utf8"||r==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):n.encoder.encode(e).substring(1)}var H,N;function re(){if(N)return H;N=1;const e="Input must be an string, Buffer or Uint8Array";function r(u){let i;if(u instanceof Uint8Array)i=u;else if(typeof u=="string")i=new TextEncoder().encode(u);else throw new Error(e);return i}function n(u){return Array.prototype.map.call(u,function(i){return(i<16?"0":"")+i.toString(16)}).join("")}function b(u){return(4294967296+u).toString(16).substring(1)}function d(u,i,a){let w=`
2
2
  `+u+" = ";for(let p=0;p<i.length;p+=2){if(a===32)w+=b(i[p]).toUpperCase(),w+=" ",w+=b(i[p+1]).toUpperCase();else if(a===64)w+=b(i[p+1]).toUpperCase(),w+=b(i[p]).toUpperCase();else throw new Error("Invalid size "+a);p%6===4?w+=`
3
3
  `+new Array(u.length+4).join(" "):p<i.length-2&&(w+=" ")}console.log(w)}function s(u,i,a){let w=new Date().getTime();const p=new Uint8Array(i);for(let A=0;A<i;A++)p[A]=A%256;const x=new Date().getTime();console.log("Generated random input in "+(x-w)+"ms"),w=x;for(let A=0;A<a;A++){const m=u(p),l=new Date().getTime(),h=l-w;w=l,console.log("Hashed in "+h+"ms: "+m.substring(0,20)+"..."),console.log(Math.round(i/(1<<20)/(h/1e3)*100)/100+" MB PER SECOND")}}return H={normalizeInput:r,toHex:n,debugPrint:d,testSpeed:s},H}var C,O;function ue(){if(O)return C;O=1;const e=re();function r(t,c,o){const g=t[c]+t[o];let y=t[c+1]+t[o+1];g>=4294967296&&y++,t[c]=g,t[c+1]=y}function n(t,c,o,g){let y=t[c]+o;o<0&&(y+=4294967296);let U=t[c+1]+g;y>=4294967296&&U++,t[c]=y,t[c+1]=U}function b(t,c){return t[c]^t[c+1]<<8^t[c+2]<<16^t[c+3]<<24}function d(t,c,o,g,y,U){const ne=w[y],te=w[y+1],oe=w[U],ie=w[U+1];r(a,t,c),n(a,t,ne,te);let k=a[g]^a[t],E=a[g+1]^a[t+1];a[g]=E,a[g+1]=k,r(a,o,g),k=a[c]^a[o],E=a[c+1]^a[o+1],a[c]=k>>>24^E<<8,a[c+1]=E>>>24^k<<8,r(a,t,c),n(a,t,oe,ie),k=a[g]^a[t],E=a[g+1]^a[t+1],a[g]=k>>>16^E<<16,a[g+1]=E>>>16^k<<16,r(a,o,g),k=a[c]^a[o],E=a[c+1]^a[o+1],a[c]=E>>>31^k<<1,a[c+1]=k>>>31^E<<1}const s=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),u=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],i=new Uint8Array(u.map(function(t){return t*2})),a=new Uint32Array(32),w=new Uint32Array(32);function p(t,c){let o=0;for(o=0;o<16;o++)a[o]=t.h[o],a[o+16]=s[o];for(a[24]=a[24]^t.t,a[25]=a[25]^t.t/4294967296,c&&(a[28]=~a[28],a[29]=~a[29]),o=0;o<32;o++)w[o]=b(t.b,4*o);for(o=0;o<12;o++)d(0,8,16,24,i[o*16+0],i[o*16+1]),d(2,10,18,26,i[o*16+2],i[o*16+3]),d(4,12,20,28,i[o*16+4],i[o*16+5]),d(6,14,22,30,i[o*16+6],i[o*16+7]),d(0,10,20,30,i[o*16+8],i[o*16+9]),d(2,12,22,24,i[o*16+10],i[o*16+11]),d(4,14,16,26,i[o*16+12],i[o*16+13]),d(6,8,18,28,i[o*16+14],i[o*16+15]);for(o=0;o<16;o++)t.h[o]=t.h[o]^a[o]^a[o+16]}const x=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function A(t,c,o,g){if(t===0||t>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(c&&c.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(o&&o.length!==16)throw new Error("Illegal salt, expected Uint8Array with length is 16");if(g&&g.length!==16)throw new Error("Illegal personal, expected Uint8Array with length is 16");const y={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:t};x.fill(0),x[0]=t,c&&(x[1]=c.length),x[2]=1,x[3]=1,o&&x.set(o,32),g&&x.set(g,48);for(let U=0;U<16;U++)y.h[U]=s[U]^b(x,U*4);return c&&(m(y,c),y.c=128),y}function m(t,c){for(let o=0;o<c.length;o++)t.c===128&&(t.t+=t.c,p(t,!1),t.c=0),t.b[t.c++]=c[o]}function l(t){for(t.t+=t.c;t.c<128;)t.b[t.c++]=0;p(t,!0);const c=new Uint8Array(t.outlen);for(let o=0;o<t.outlen;o++)c[o]=t.h[o>>2]>>8*(o&3);return c}function h(t,c,o,g,y){o=o||64,t=e.normalizeInput(t),g&&(g=e.normalizeInput(g)),y&&(y=e.normalizeInput(y));const U=A(o,c,g,y);return m(U,t),l(U)}function f(t,c,o,g,y){const U=h(t,c,o,g,y);return e.toHex(U)}return C={blake2b:h,blake2bHex:f,blake2bInit:A,blake2bUpdate:m,blake2bFinal:l},C}var M,z;function ce(){if(z)return M;z=1;const e=re();function r(l,h){return l[h]^l[h+1]<<8^l[h+2]<<16^l[h+3]<<24}function n(l,h,f,t,c,o){u[l]=u[l]+u[h]+c,u[t]=b(u[t]^u[l],16),u[f]=u[f]+u[t],u[h]=b(u[h]^u[f],12),u[l]=u[l]+u[h]+o,u[t]=b(u[t]^u[l],8),u[f]=u[f]+u[t],u[h]=b(u[h]^u[f],7)}function b(l,h){return l>>>h^l<<32-h}const d=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),s=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),u=new Uint32Array(16),i=new Uint32Array(16);function a(l,h){let f=0;for(f=0;f<8;f++)u[f]=l.h[f],u[f+8]=d[f];for(u[12]^=l.t,u[13]^=l.t/4294967296,h&&(u[14]=~u[14]),f=0;f<16;f++)i[f]=r(l.b,4*f);for(f=0;f<10;f++)n(0,4,8,12,i[s[f*16+0]],i[s[f*16+1]]),n(1,5,9,13,i[s[f*16+2]],i[s[f*16+3]]),n(2,6,10,14,i[s[f*16+4]],i[s[f*16+5]]),n(3,7,11,15,i[s[f*16+6]],i[s[f*16+7]]),n(0,5,10,15,i[s[f*16+8]],i[s[f*16+9]]),n(1,6,11,12,i[s[f*16+10]],i[s[f*16+11]]),n(2,7,8,13,i[s[f*16+12]],i[s[f*16+13]]),n(3,4,9,14,i[s[f*16+14]],i[s[f*16+15]]);for(f=0;f<8;f++)l.h[f]^=u[f]^u[f+8]}function w(l,h){if(!(l>0&&l<=32))throw new Error("Incorrect output length, should be in [1, 32]");const f=h?h.length:0;if(h&&!(f>0&&f<=32))throw new Error("Incorrect key length, should be in [1, 32]");const t={h:new Uint32Array(d),b:new Uint8Array(64),c:0,t:0,outlen:l};return t.h[0]^=16842752^f<<8^l,f>0&&(p(t,h),t.c=64),t}function p(l,h){for(let f=0;f<h.length;f++)l.c===64&&(l.t+=l.c,a(l,!1),l.c=0),l.b[l.c++]=h[f]}function x(l){for(l.t+=l.c;l.c<64;)l.b[l.c++]=0;a(l,!0);const h=new Uint8Array(l.outlen);for(let f=0;f<l.outlen;f++)h[f]=l.h[f>>2]>>8*(f&3)&255;return h}function A(l,h,f){f=f||32,l=e.normalizeInput(l);const t=w(f,h);return p(t,l),x(t)}function m(l,h,f){const t=A(l,h,f);return e.toHex(t)}return M={blake2s:A,blake2sHex:m,blake2sInit:w,blake2sUpdate:p,blake2sFinal:x},M}var j,L;function de(){if(L)return j;L=1;const e=ue(),r=ce();return j={blake2b:e.blake2b,blake2bHex:e.blake2bHex,blake2bInit:e.blake2bInit,blake2bUpdate:e.blake2bUpdate,blake2bFinal:e.blake2bFinal,blake2s:r.blake2s,blake2sHex:r.blake2sHex,blake2sInit:r.blake2sInit,blake2sUpdate:r.blake2sUpdate,blake2sFinal:r.blake2sFinal},j}var Ae=de();export{be as a,we as b,ge as c,Ae as d,pe as f,ye as t};
@@ -1,4 +1,4 @@
1
- import{i as u,b as h}from"./lit-element-B3y9oplH.js";import{n as d,o as f}from"./class-map-CxwNmq0D.js";import{c as p}from"./index-DOLdge0g.js";import{d as g,r as m,e as b}from"./index-B0--HMVL.js";const y=g`
1
+ import{i as u,b as h}from"./lit-element-B3y9oplH.js";import{n as d,o as f}from"./class-map-CxwNmq0D.js";import{c as p}from"./index-DuUdctHy.js";import{d as g,r as m,e as b}from"./index-sV0xAzf6.js";const y=g`
2
2
  :host {
3
3
  display: inline-flex;
4
4
  justify-content: center;
@@ -1,4 +1,4 @@
1
- import{e as Vv,g as Wv}from"./react-4iaCnQ6n.js";import{r as Kv}from"./index-BV8s6ez1.js";import{n as Zv}from"./native-zogUBnfz.js";import{r as Yv}from"./index-zVvLDKBh.js";function Jv(e,r){for(var n=0;n<r.length;n++){const t=r[n];if(typeof t!="string"&&!Array.isArray(t)){for(const o in t)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(t,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>t[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Nd={},Wn={},Nt={},sn={},xr={},Kn={},Zn={},Tl;function wg(){if(Tl)return Zn;Tl=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.getSDKVersion=void 0;const e=()=>"9.1.0";return Zn.getSDKVersion=e,Zn}var Yn={},Sl;function Xv(){if(Sl)return Yn;Sl=1,Object.defineProperty(Yn,"__esModule",{value:!0}),Yn.generateRequestId=void 0;const e=t=>t.toString(16).padStart(2,"0"),r=t=>{const o=new Uint8Array(t/2);return window.crypto.getRandomValues(o),Array.from(o,e).join("")},n=()=>typeof window<"u"?r(10):new Date().getTime().toString(36);return Yn.generateRequestId=n,Yn}var Il;function Pg(){if(Il)return Kn;Il=1,Object.defineProperty(Kn,"__esModule",{value:!0}),Kn.MessageFormatter=void 0;const e=wg(),r=Xv();class n{}return Kn.MessageFormatter=n,n.makeRequest=(t,o)=>({id:(0,r.generateRequestId)(),method:t,params:o,env:{sdkVersion:(0,e.getSDKVersion)()}}),n.makeResponse=(t,o,s)=>({id:t,success:!0,version:s,data:o}),n.makeErrorResponse=(t,o,s)=>({id:t,success:!1,error:o,version:s}),Kn}var qr={},Rl;function Kr(){if(Rl)return qr;Rl=1,Object.defineProperty(qr,"__esModule",{value:!0}),qr.RestrictedMethods=qr.Methods=void 0;var e;(function(n){n.sendTransactions="sendTransactions",n.rpcCall="rpcCall",n.getChainInfo="getChainInfo",n.getSafeInfo="getSafeInfo",n.getTxBySafeTxHash="getTxBySafeTxHash",n.getSafeBalances="getSafeBalances",n.signMessage="signMessage",n.signTypedMessage="signTypedMessage",n.getEnvironmentInfo="getEnvironmentInfo",n.getOffChainSignature="getOffChainSignature",n.requestAddressBook="requestAddressBook",n.wallet_getPermissions="wallet_getPermissions",n.wallet_requestPermissions="wallet_requestPermissions"})(e||(qr.Methods=e={}));var r;return(function(n){n.requestAddressBook="requestAddressBook"})(r||(qr.RestrictedMethods=r={})),qr}var Bl;function Qv(){return Bl||(Bl=1,(function(e){var r=xr&&xr.__createBinding||(Object.create?(function(s,a,i,c){c===void 0&&(c=i);var d=Object.getOwnPropertyDescriptor(a,i);(!d||("get"in d?!a.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(s,c,d)}):(function(s,a,i,c){c===void 0&&(c=i),s[c]=a[i]})),n=xr&&xr.__exportStar||function(s,a){for(var i in s)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&r(a,s,i)};Object.defineProperty(e,"__esModule",{value:!0});const t=Pg();class o{constructor(a=null,i=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:c,data:d,source:f})=>{const l=!d,m=!this.isServer&&f===window.parent,y=typeof d.version<"u"&&parseInt(d.version.split(".")[0]),h=typeof y=="number"&&y>=1;let b=!0;return Array.isArray(this.allowedOrigins)&&(b=this.allowedOrigins.find(E=>E.test(c))!==void 0),!l&&m&&h&&b},this.logIncomingMessage=c=>{console.info(`Safe Apps SDK v1: A message was received from origin ${c.origin}. `,c.data)},this.onParentMessage=c=>{this.isValidMessage(c)&&(this.debugMode&&this.logIncomingMessage(c),this.handleIncomingMessage(c.data))},this.handleIncomingMessage=c=>{const{id:d}=c,f=this.callbacks.get(d);f&&(f(c),this.callbacks.delete(d))},this.send=(c,d)=>{const f=t.MessageFormatter.makeRequest(c,d);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(f,"*"),new Promise((l,m)=>{this.callbacks.set(f.id,y=>{if(!y.success){m(new Error(y.error));return}l(y)})})},this.allowedOrigins=a,this.debugMode=i,this.isServer||window.addEventListener("message",this.onParentMessage)}}e.default=o,n(Kr(),e)})(xr)),xr}var Jn={},Mr={},Xn={},Ol;function e6(){if(Ol)return Xn;Ol=1,Object.defineProperty(Xn,"__esModule",{value:!0}),Xn.isObjectEIP712TypedData=void 0;const e=r=>typeof r=="object"&&r!=null&&"domain"in r&&"types"in r&&"message"in r;return Xn.isObjectEIP712TypedData=e,Xn}var $d={},Cl;function t6(){return Cl||(Cl=1,Object.defineProperty($d,"__esModule",{value:!0})),$d}var zd={},xl;function r6(){return xl||(xl=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TransferDirection=e.TransactionStatus=e.TokenType=e.Operation=void 0;var r=Kv();Object.defineProperty(e,"Operation",{enumerable:!0,get:function(){return r.Operation}}),Object.defineProperty(e,"TokenType",{enumerable:!0,get:function(){return r.TokenType}}),Object.defineProperty(e,"TransactionStatus",{enumerable:!0,get:function(){return r.TransactionStatus}}),Object.defineProperty(e,"TransferDirection",{enumerable:!0,get:function(){return r.TransferDirection}})})(zd)),zd}var Ld={},ql;function n6(){return ql||(ql=1,Object.defineProperty(Ld,"__esModule",{value:!0}),Kr()),Ld}var Ml;function gf(){return Ml||(Ml=1,(function(e){var r=Mr&&Mr.__createBinding||(Object.create?(function(t,o,s,a){a===void 0&&(a=s);var i=Object.getOwnPropertyDescriptor(o,s);(!i||("get"in i?!o.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return o[s]}}),Object.defineProperty(t,a,i)}):(function(t,o,s,a){a===void 0&&(a=s),t[a]=o[s]})),n=Mr&&Mr.__exportStar||function(t,o){for(var s in t)s!=="default"&&!Object.prototype.hasOwnProperty.call(o,s)&&r(o,t,s)};Object.defineProperty(e,"__esModule",{value:!0}),n(e6(),e),n(t6(),e),n(r6(),e),n(n6(),e)})(Mr)),Mr}var kl;function o6(){if(kl)return Jn;kl=1,Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.TXs=void 0;const e=Kr(),r=gf();class n{constructor(o){this.communicator=o}async getBySafeTxHash(o){if(!o)throw new Error("Invalid safeTxHash");return(await this.communicator.send(e.Methods.getTxBySafeTxHash,{safeTxHash:o})).data}async signMessage(o){const s={message:o};return(await this.communicator.send(e.Methods.signMessage,s)).data}async signTypedMessage(o){if(!(0,r.isObjectEIP712TypedData)(o))throw new Error("Invalid typed data");return(await this.communicator.send(e.Methods.signTypedMessage,{typedData:o})).data}async send({txs:o,params:s}){if(!o||!o.length)throw new Error("No transactions were passed");const a={txs:o,params:s};return(await this.communicator.send(e.Methods.sendTransactions,a)).data}}return Jn.TXs=n,Jn}var Qn={},eo={},Hl;function _f(){return Hl||(Hl=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.RPC_CALLS=void 0,eo.RPC_CALLS={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"}),eo}var Fl;function a6(){if(Fl)return Qn;Fl=1,Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.Eth=void 0;const e=_f(),r=Kr(),n={defaultBlockParam:(o="latest")=>o,returnFullTxObjectParam:(o=!1)=>o,blockNumberToHex:o=>Number.isInteger(o)?`0x${o.toString(16)}`:o};class t{constructor(s){this.communicator=s,this.call=this.buildRequest({call:e.RPC_CALLS.eth_call,formatters:[null,n.defaultBlockParam]}),this.getBalance=this.buildRequest({call:e.RPC_CALLS.eth_getBalance,formatters:[null,n.defaultBlockParam]}),this.getCode=this.buildRequest({call:e.RPC_CALLS.eth_getCode,formatters:[null,n.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:e.RPC_CALLS.eth_getStorageAt,formatters:[null,n.blockNumberToHex,n.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:e.RPC_CALLS.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:e.RPC_CALLS.eth_getBlockByHash,formatters:[null,n.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:e.RPC_CALLS.eth_getBlockByNumber,formatters:[n.blockNumberToHex,n.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:e.RPC_CALLS.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:e.RPC_CALLS.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:e.RPC_CALLS.eth_getTransactionCount,formatters:[null,n.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:e.RPC_CALLS.eth_gasPrice}),this.getEstimateGas=a=>this.buildRequest({call:e.RPC_CALLS.eth_estimateGas})([a]),this.setSafeSettings=this.buildRequest({call:e.RPC_CALLS.safe_setSettings})}buildRequest(s){const{call:a,formatters:i}=s;return async c=>{i&&Array.isArray(c)&&i.forEach((l,m)=>{l&&(c[m]=l(c[m]))});const d={call:a,params:c||[]};return(await this.communicator.send(r.Methods.rpcCall,d)).data}}}return Qn.Eth=t,Qn}var $t={},Ud={},Dd={},to={},ro={},Nl;function i6(){return Nl||(Nl=1,Object.defineProperty(ro,"__esModule",{value:!0}),ro.version=void 0,ro.version="1.2.3"),ro}var $l;function Bn(){if($l)return to;$l=1,Object.defineProperty(to,"__esModule",{value:!0}),to.BaseError=void 0;const e=i6();class r extends Error{constructor(t,o={}){var c;const s=o.cause instanceof r?o.cause.details:(c=o.cause)!=null&&c.message?o.cause.message:o.details,a=o.cause instanceof r&&o.cause.docsPath||o.docsPath,i=[t||"An error occurred.","",...o.metaMessages?[...o.metaMessages,""]:[],...a?[`Docs: https://abitype.dev${a}`]:[],...s?[`Details: ${s}`]:[],`Version: abitype@${e.version}`].join(`
1
+ import{e as Vv,g as Wv}from"./react-4iaCnQ6n.js";import{r as Kv}from"./index-BV8s6ez1.js";import{n as Zv}from"./native-zogUBnfz.js";import{r as Yv}from"./index-CxlLn_V3.js";function Jv(e,r){for(var n=0;n<r.length;n++){const t=r[n];if(typeof t!="string"&&!Array.isArray(t)){for(const o in t)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(t,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>t[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Nd={},Wn={},Nt={},sn={},xr={},Kn={},Zn={},Tl;function wg(){if(Tl)return Zn;Tl=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.getSDKVersion=void 0;const e=()=>"9.1.0";return Zn.getSDKVersion=e,Zn}var Yn={},Sl;function Xv(){if(Sl)return Yn;Sl=1,Object.defineProperty(Yn,"__esModule",{value:!0}),Yn.generateRequestId=void 0;const e=t=>t.toString(16).padStart(2,"0"),r=t=>{const o=new Uint8Array(t/2);return window.crypto.getRandomValues(o),Array.from(o,e).join("")},n=()=>typeof window<"u"?r(10):new Date().getTime().toString(36);return Yn.generateRequestId=n,Yn}var Il;function Pg(){if(Il)return Kn;Il=1,Object.defineProperty(Kn,"__esModule",{value:!0}),Kn.MessageFormatter=void 0;const e=wg(),r=Xv();class n{}return Kn.MessageFormatter=n,n.makeRequest=(t,o)=>({id:(0,r.generateRequestId)(),method:t,params:o,env:{sdkVersion:(0,e.getSDKVersion)()}}),n.makeResponse=(t,o,s)=>({id:t,success:!0,version:s,data:o}),n.makeErrorResponse=(t,o,s)=>({id:t,success:!1,error:o,version:s}),Kn}var qr={},Rl;function Kr(){if(Rl)return qr;Rl=1,Object.defineProperty(qr,"__esModule",{value:!0}),qr.RestrictedMethods=qr.Methods=void 0;var e;(function(n){n.sendTransactions="sendTransactions",n.rpcCall="rpcCall",n.getChainInfo="getChainInfo",n.getSafeInfo="getSafeInfo",n.getTxBySafeTxHash="getTxBySafeTxHash",n.getSafeBalances="getSafeBalances",n.signMessage="signMessage",n.signTypedMessage="signTypedMessage",n.getEnvironmentInfo="getEnvironmentInfo",n.getOffChainSignature="getOffChainSignature",n.requestAddressBook="requestAddressBook",n.wallet_getPermissions="wallet_getPermissions",n.wallet_requestPermissions="wallet_requestPermissions"})(e||(qr.Methods=e={}));var r;return(function(n){n.requestAddressBook="requestAddressBook"})(r||(qr.RestrictedMethods=r={})),qr}var Bl;function Qv(){return Bl||(Bl=1,(function(e){var r=xr&&xr.__createBinding||(Object.create?(function(s,a,i,c){c===void 0&&(c=i);var d=Object.getOwnPropertyDescriptor(a,i);(!d||("get"in d?!a.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(s,c,d)}):(function(s,a,i,c){c===void 0&&(c=i),s[c]=a[i]})),n=xr&&xr.__exportStar||function(s,a){for(var i in s)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&r(a,s,i)};Object.defineProperty(e,"__esModule",{value:!0});const t=Pg();class o{constructor(a=null,i=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:c,data:d,source:f})=>{const l=!d,m=!this.isServer&&f===window.parent,y=typeof d.version<"u"&&parseInt(d.version.split(".")[0]),h=typeof y=="number"&&y>=1;let b=!0;return Array.isArray(this.allowedOrigins)&&(b=this.allowedOrigins.find(E=>E.test(c))!==void 0),!l&&m&&h&&b},this.logIncomingMessage=c=>{console.info(`Safe Apps SDK v1: A message was received from origin ${c.origin}. `,c.data)},this.onParentMessage=c=>{this.isValidMessage(c)&&(this.debugMode&&this.logIncomingMessage(c),this.handleIncomingMessage(c.data))},this.handleIncomingMessage=c=>{const{id:d}=c,f=this.callbacks.get(d);f&&(f(c),this.callbacks.delete(d))},this.send=(c,d)=>{const f=t.MessageFormatter.makeRequest(c,d);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(f,"*"),new Promise((l,m)=>{this.callbacks.set(f.id,y=>{if(!y.success){m(new Error(y.error));return}l(y)})})},this.allowedOrigins=a,this.debugMode=i,this.isServer||window.addEventListener("message",this.onParentMessage)}}e.default=o,n(Kr(),e)})(xr)),xr}var Jn={},Mr={},Xn={},Ol;function e6(){if(Ol)return Xn;Ol=1,Object.defineProperty(Xn,"__esModule",{value:!0}),Xn.isObjectEIP712TypedData=void 0;const e=r=>typeof r=="object"&&r!=null&&"domain"in r&&"types"in r&&"message"in r;return Xn.isObjectEIP712TypedData=e,Xn}var $d={},Cl;function t6(){return Cl||(Cl=1,Object.defineProperty($d,"__esModule",{value:!0})),$d}var zd={},xl;function r6(){return xl||(xl=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TransferDirection=e.TransactionStatus=e.TokenType=e.Operation=void 0;var r=Kv();Object.defineProperty(e,"Operation",{enumerable:!0,get:function(){return r.Operation}}),Object.defineProperty(e,"TokenType",{enumerable:!0,get:function(){return r.TokenType}}),Object.defineProperty(e,"TransactionStatus",{enumerable:!0,get:function(){return r.TransactionStatus}}),Object.defineProperty(e,"TransferDirection",{enumerable:!0,get:function(){return r.TransferDirection}})})(zd)),zd}var Ld={},ql;function n6(){return ql||(ql=1,Object.defineProperty(Ld,"__esModule",{value:!0}),Kr()),Ld}var Ml;function gf(){return Ml||(Ml=1,(function(e){var r=Mr&&Mr.__createBinding||(Object.create?(function(t,o,s,a){a===void 0&&(a=s);var i=Object.getOwnPropertyDescriptor(o,s);(!i||("get"in i?!o.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return o[s]}}),Object.defineProperty(t,a,i)}):(function(t,o,s,a){a===void 0&&(a=s),t[a]=o[s]})),n=Mr&&Mr.__exportStar||function(t,o){for(var s in t)s!=="default"&&!Object.prototype.hasOwnProperty.call(o,s)&&r(o,t,s)};Object.defineProperty(e,"__esModule",{value:!0}),n(e6(),e),n(t6(),e),n(r6(),e),n(n6(),e)})(Mr)),Mr}var kl;function o6(){if(kl)return Jn;kl=1,Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.TXs=void 0;const e=Kr(),r=gf();class n{constructor(o){this.communicator=o}async getBySafeTxHash(o){if(!o)throw new Error("Invalid safeTxHash");return(await this.communicator.send(e.Methods.getTxBySafeTxHash,{safeTxHash:o})).data}async signMessage(o){const s={message:o};return(await this.communicator.send(e.Methods.signMessage,s)).data}async signTypedMessage(o){if(!(0,r.isObjectEIP712TypedData)(o))throw new Error("Invalid typed data");return(await this.communicator.send(e.Methods.signTypedMessage,{typedData:o})).data}async send({txs:o,params:s}){if(!o||!o.length)throw new Error("No transactions were passed");const a={txs:o,params:s};return(await this.communicator.send(e.Methods.sendTransactions,a)).data}}return Jn.TXs=n,Jn}var Qn={},eo={},Hl;function _f(){return Hl||(Hl=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.RPC_CALLS=void 0,eo.RPC_CALLS={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"}),eo}var Fl;function a6(){if(Fl)return Qn;Fl=1,Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.Eth=void 0;const e=_f(),r=Kr(),n={defaultBlockParam:(o="latest")=>o,returnFullTxObjectParam:(o=!1)=>o,blockNumberToHex:o=>Number.isInteger(o)?`0x${o.toString(16)}`:o};class t{constructor(s){this.communicator=s,this.call=this.buildRequest({call:e.RPC_CALLS.eth_call,formatters:[null,n.defaultBlockParam]}),this.getBalance=this.buildRequest({call:e.RPC_CALLS.eth_getBalance,formatters:[null,n.defaultBlockParam]}),this.getCode=this.buildRequest({call:e.RPC_CALLS.eth_getCode,formatters:[null,n.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:e.RPC_CALLS.eth_getStorageAt,formatters:[null,n.blockNumberToHex,n.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:e.RPC_CALLS.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:e.RPC_CALLS.eth_getBlockByHash,formatters:[null,n.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:e.RPC_CALLS.eth_getBlockByNumber,formatters:[n.blockNumberToHex,n.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:e.RPC_CALLS.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:e.RPC_CALLS.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:e.RPC_CALLS.eth_getTransactionCount,formatters:[null,n.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:e.RPC_CALLS.eth_gasPrice}),this.getEstimateGas=a=>this.buildRequest({call:e.RPC_CALLS.eth_estimateGas})([a]),this.setSafeSettings=this.buildRequest({call:e.RPC_CALLS.safe_setSettings})}buildRequest(s){const{call:a,formatters:i}=s;return async c=>{i&&Array.isArray(c)&&i.forEach((l,m)=>{l&&(c[m]=l(c[m]))});const d={call:a,params:c||[]};return(await this.communicator.send(r.Methods.rpcCall,d)).data}}}return Qn.Eth=t,Qn}var $t={},Ud={},Dd={},to={},ro={},Nl;function i6(){return Nl||(Nl=1,Object.defineProperty(ro,"__esModule",{value:!0}),ro.version=void 0,ro.version="1.2.3"),ro}var $l;function Bn(){if($l)return to;$l=1,Object.defineProperty(to,"__esModule",{value:!0}),to.BaseError=void 0;const e=i6();class r extends Error{constructor(t,o={}){var c;const s=o.cause instanceof r?o.cause.details:(c=o.cause)!=null&&c.message?o.cause.message:o.details,a=o.cause instanceof r&&o.cause.docsPath||o.docsPath,i=[t||"An error occurred.","",...o.metaMessages?[...o.metaMessages,""]:[],...a?[`Docs: https://abitype.dev${a}`]:[],...s?[`Details: ${s}`]:[],`Version: abitype@${e.version}`].join(`
2
2
  `);super(i),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),o.cause&&(this.cause=o.cause),this.details=s,this.docsPath=a,this.metaMessages=o.metaMessages,this.shortMessage=t}}return to.BaseError=r,to}var Ia={},zl;function s6(){if(zl)return Ia;zl=1,Object.defineProperty(Ia,"__esModule",{value:!0}),Ia.narrow=e;function e(r){return r}return Ia}var Ra={},Ba={},Oa={},Ca={},qt={},Ll;function Ku(){if(Ll)return qt;Ll=1,Object.defineProperty(qt,"__esModule",{value:!0}),qt.isTupleRegex=qt.integerRegex=qt.bytesRegex=void 0,qt.execTyped=e;function e(r,n){const t=r.exec(n);return t==null?void 0:t.groups}return qt.bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,qt.integerRegex=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,qt.isTupleRegex=/^\(.+?\).*?$/,qt}var Ul;function Ag(){if(Ul)return Ca;Ul=1,Object.defineProperty(Ca,"__esModule",{value:!0}),Ca.formatAbiParameter=n;const e=Ku(),r=/^tuple(?<array>(\[(\d*)\])*)$/;function n(t){let o=t.type;if(r.test(t.type)&&"components"in t){o="(";const s=t.components.length;for(let i=0;i<s;i++){const c=t.components[i];o+=n(c),i<s-1&&(o+=", ")}const a=(0,e.execTyped)(r,t.type);return o+=`)${(a==null?void 0:a.array)||""}`,n({...t,type:o})}return"indexed"in t&&t.indexed&&(o=`${o} indexed`),t.name?`${o} ${t.name}`:o}return Ca}var Dl;function Tg(){if(Dl)return Oa;Dl=1,Object.defineProperty(Oa,"__esModule",{value:!0}),Oa.formatAbiParameters=r;const e=Ag();function r(n){let t="";const o=n.length;for(let s=0;s<o;s++){const a=n[s];t+=(0,e.formatAbiParameter)(a),s!==o-1&&(t+=", ")}return t}return Oa}var Gl;function Sg(){if(Gl)return Ba;Gl=1,Object.defineProperty(Ba,"__esModule",{value:!0}),Ba.formatAbiItem=r;const e=Tg();function r(n){var t;return n.type==="function"?`function ${n.name}(${(0,e.formatAbiParameters)(n.inputs)})${n.stateMutability&&n.stateMutability!=="nonpayable"?` ${n.stateMutability}`:""}${(t=n.outputs)!=null&&t.length?` returns (${(0,e.formatAbiParameters)(n.outputs)})`:""}`:n.type==="event"?`event ${n.name}(${(0,e.formatAbiParameters)(n.inputs)})`:n.type==="error"?`error ${n.name}(${(0,e.formatAbiParameters)(n.inputs)})`:n.type==="constructor"?`constructor(${(0,e.formatAbiParameters)(n.inputs)})${n.stateMutability==="payable"?" payable":""}`:n.type==="fallback"?`fallback() external${n.stateMutability==="payable"?" payable":""}`:"receive() external payable"}return Ba}var Vl;function c6(){if(Vl)return Ra;Vl=1,Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.formatAbi=r;const e=Sg();function r(n){const t=[],o=n.length;for(let s=0;s<o;s++){const a=n[s],i=(0,e.formatAbiItem)(a);t.push(i)}return t}return Ra}var xa={},Ce={},Wl;function On(){if(Wl)return Ce;Wl=1,Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.functionModifiers=Ce.eventModifiers=Ce.modifiers=void 0,Ce.isErrorSignature=n,Ce.execErrorSignature=t,Ce.isEventSignature=s,Ce.execEventSignature=a,Ce.isFunctionSignature=c,Ce.execFunctionSignature=d,Ce.isStructSignature=l,Ce.execStructSignature=m,Ce.isConstructorSignature=h,Ce.execConstructorSignature=b,Ce.isFallbackSignature=g,Ce.execFallbackSignature=v,Ce.isReceiveSignature=u;const e=Ku(),r=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function n(w){return r.test(w)}function t(w){return(0,e.execTyped)(r,w)}const o=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function s(w){return o.test(w)}function a(w){return(0,e.execTyped)(o,w)}const i=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function c(w){return i.test(w)}function d(w){return(0,e.execTyped)(i,w)}const f=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function l(w){return f.test(w)}function m(w){return(0,e.execTyped)(f,w)}const y=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function h(w){return y.test(w)}function b(w){return(0,e.execTyped)(y,w)}const E=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function g(w){return E.test(w)}function v(w){return(0,e.execTyped)(E,w)}const P=/^receive\(\) external payable$/;function u(w){return P.test(w)}return Ce.modifiers=new Set(["memory","indexed","storage","calldata"]),Ce.eventModifiers=new Set(["indexed"]),Ce.functionModifiers=new Set(["calldata","memory","storage"]),Ce}var qa={},zt={},Kl;function Zu(){if(Kl)return zt;Kl=1,Object.defineProperty(zt,"__esModule",{value:!0}),zt.UnknownSolidityTypeError=zt.UnknownTypeError=zt.InvalidAbiItemError=void 0;const e=Bn();class r extends e.BaseError{constructor({signature:s}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(s,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}zt.InvalidAbiItemError=r;class n extends e.BaseError{constructor({type:s}){super("Unknown type.",{metaMessages:[`Type "${s}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}zt.UnknownTypeError=n;class t extends e.BaseError{constructor({type:s}){super("Unknown type.",{metaMessages:[`Type "${s}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}return zt.UnknownSolidityTypeError=t,zt}var Fe={},Zl;function Qo(){if(Zl)return Fe;Zl=1,Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.InvalidAbiTypeParameterError=Fe.InvalidFunctionModifierError=Fe.InvalidModifierError=Fe.SolidityProtectedKeywordError=Fe.InvalidParameterError=Fe.InvalidAbiParametersError=Fe.InvalidAbiParameterError=void 0;const e=Bn();class r extends e.BaseError{constructor({param:d}){super("Failed to parse ABI parameter.",{details:`parseAbiParameter(${JSON.stringify(d,null,2)})`,docsPath:"/api/human#parseabiparameter-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParameterError"})}}Fe.InvalidAbiParameterError=r;class n extends e.BaseError{constructor({params:d}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(d,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}Fe.InvalidAbiParametersError=n;class t extends e.BaseError{constructor({param:d}){super("Invalid ABI parameter.",{details:d}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}Fe.InvalidParameterError=t;class o extends e.BaseError{constructor({param:d,name:f}){super("Invalid ABI parameter.",{details:d,metaMessages:[`"${f}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}Fe.SolidityProtectedKeywordError=o;class s extends e.BaseError{constructor({param:d,type:f,modifier:l}){super("Invalid ABI parameter.",{details:d,metaMessages:[`Modifier "${l}" not allowed${f?` in "${f}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}Fe.InvalidModifierError=s;class a extends e.BaseError{constructor({param:d,type:f,modifier:l}){super("Invalid ABI parameter.",{details:d,metaMessages:[`Modifier "${l}" not allowed${f?` in "${f}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${l}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}Fe.InvalidFunctionModifierError=a;class i extends e.BaseError{constructor({abiParameter:d}){super("Invalid ABI parameter.",{details:JSON.stringify(d,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}return Fe.InvalidAbiTypeParameterError=i,Fe}var Lt={},Yl;function vf(){if(Yl)return Lt;Yl=1,Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.InvalidStructSignatureError=Lt.UnknownSignatureError=Lt.InvalidSignatureError=void 0;const e=Bn();class r extends e.BaseError{constructor({signature:s,type:a}){super(`Invalid ${a} signature.`,{details:s}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}Lt.InvalidSignatureError=r;class n extends e.BaseError{constructor({signature:s}){super("Unknown signature.",{details:s}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}Lt.UnknownSignatureError=n;class t extends e.BaseError{constructor({signature:s}){super("Invalid struct signature.",{details:s,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}return Lt.InvalidStructSignatureError=t,Lt}var no={},Jl;function Ig(){if(Jl)return no;Jl=1,Object.defineProperty(no,"__esModule",{value:!0}),no.CircularReferenceError=void 0;const e=Bn();class r extends e.BaseError{constructor({type:t}){super("Circular reference detected.",{metaMessages:[`Struct "${t}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}return no.CircularReferenceError=r,no}var at={},oo={},Xl;function Rg(){if(Xl)return oo;Xl=1,Object.defineProperty(oo,"__esModule",{value:!0}),oo.InvalidParenthesisError=void 0;const e=Bn();class r extends e.BaseError{constructor({current:t,depth:o}){super("Unbalanced parentheses.",{metaMessages:[`"${t.trim()}" has too many ${o>0?"opening":"closing"} parentheses.`],details:`Depth "${o}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}return oo.InvalidParenthesisError=r,oo}var cn={},Ql;function u6(){if(Ql)return cn;Ql=1,Object.defineProperty(cn,"__esModule",{value:!0}),cn.parameterCache=void 0,cn.getParameterCacheKey=e;function e(r,n,t){let o="";if(t)for(const s of Object.entries(t)){if(!s)continue;let a="";for(const i of s[1])a+=`[${i.type}${i.name?`:${i.name}`:""}]`;o+=`(${s[0]}{${a}})`}return n?`${n}:${r}${o}`:`${r}${o}`}return cn.parameterCache=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]),cn}var e0;function Rn(){if(e0)return at;e0=1,Object.defineProperty(at,"__esModule",{value:!0}),at.parseSignature=i,at.parseFunctionSignature=c,at.parseEventSignature=d,at.parseErrorSignature=f,at.parseConstructorSignature=l,at.parseFallbackSignature=m,at.parseAbiParameter=E,at.splitParameters=g,at.isSolidityType=v,at.isSolidityKeyword=u,at.isValidDataLocation=w;const e=Ku(),r=Zu(),n=Qo(),t=vf(),o=Rg(),s=u6(),a=On();function i(_,p={}){if((0,a.isFunctionSignature)(_))return c(_,p);if((0,a.isEventSignature)(_))return d(_,p);if((0,a.isErrorSignature)(_))return f(_,p);if((0,a.isConstructorSignature)(_))return l(_,p);if((0,a.isFallbackSignature)(_))return m(_);if((0,a.isReceiveSignature)(_))return{type:"receive",stateMutability:"payable"};throw new t.UnknownSignatureError({signature:_})}function c(_,p={}){const S=(0,a.execFunctionSignature)(_);if(!S)throw new t.InvalidSignatureError({signature:_,type:"function"});const A=g(S.parameters),T=[],O=A.length;for(let R=0;R<O;R++)T.push(E(A[R],{modifiers:a.functionModifiers,structs:p,type:"function"}));const I=[];if(S.returns){const R=g(S.returns),H=R.length;for(let F=0;F<H;F++)I.push(E(R[F],{modifiers:a.functionModifiers,structs:p,type:"function"}))}return{name:S.name,type:"function",stateMutability:S.stateMutability??"nonpayable",inputs:T,outputs:I}}function d(_,p={}){const S=(0,a.execEventSignature)(_);if(!S)throw new t.InvalidSignatureError({signature:_,type:"event"});const A=g(S.parameters),T=[],O=A.length;for(let I=0;I<O;I++)T.push(E(A[I],{modifiers:a.eventModifiers,structs:p,type:"event"}));return{name:S.name,type:"event",inputs:T}}function f(_,p={}){const S=(0,a.execErrorSignature)(_);if(!S)throw new t.InvalidSignatureError({signature:_,type:"error"});const A=g(S.parameters),T=[],O=A.length;for(let I=0;I<O;I++)T.push(E(A[I],{structs:p,type:"error"}));return{name:S.name,type:"error",inputs:T}}function l(_,p={}){const S=(0,a.execConstructorSignature)(_);if(!S)throw new t.InvalidSignatureError({signature:_,type:"constructor"});const A=g(S.parameters),T=[],O=A.length;for(let I=0;I<O;I++)T.push(E(A[I],{structs:p,type:"constructor"}));return{type:"constructor",stateMutability:S.stateMutability??"nonpayable",inputs:T}}function m(_){const p=(0,a.execFallbackSignature)(_);if(!p)throw new t.InvalidSignatureError({signature:_,type:"fallback"});return{type:"fallback",stateMutability:p.stateMutability??"nonpayable"}}const y=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,h=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,b=/^u?int$/;function E(_,p){var j,k;const S=(0,s.getParameterCacheKey)(_,p==null?void 0:p.type,p==null?void 0:p.structs);if(s.parameterCache.has(S))return s.parameterCache.get(S);const A=e.isTupleRegex.test(_),T=(0,e.execTyped)(A?h:y,_);if(!T)throw new n.InvalidParameterError({param:_});if(T.name&&u(T.name))throw new n.SolidityProtectedKeywordError({param:_,name:T.name});const O=T.name?{name:T.name}:{},I=T.modifier==="indexed"?{indexed:!0}:{},R=(p==null?void 0:p.structs)??{};let H,F={};if(A){H="tuple";const B=g(T.type),C=[],q=B.length;for(let M=0;M<q;M++)C.push(E(B[M],{structs:R}));F={components:C}}else if(T.type in R)H="tuple",F={components:R[T.type]};else if(b.test(T.type))H=`${T.type}256`;else if(T.type==="address payable")H="address";else if(H=T.type,(p==null?void 0:p.type)!=="struct"&&!v(H))throw new r.UnknownSolidityTypeError({type:H});if(T.modifier){if(!((k=(j=p==null?void 0:p.modifiers)==null?void 0:j.has)!=null&&k.call(j,T.modifier)))throw new n.InvalidModifierError({param:_,type:p==null?void 0:p.type,modifier:T.modifier});if(a.functionModifiers.has(T.modifier)&&!w(H,!!T.array))throw new n.InvalidFunctionModifierError({param:_,type:p==null?void 0:p.type,modifier:T.modifier})}const x={type:`${H}${T.array??""}`,...O,...I,...F};return s.parameterCache.set(S,x),x}function g(_,p=[],S="",A=0){const T=_.trim().length;for(let O=0;O<T;O++){const I=_[O],R=_.slice(O+1);switch(I){case",":return A===0?g(R,[...p,S.trim()]):g(R,p,`${S}${I}`,A);case"(":return g(R,p,`${S}${I}`,A+1);case")":return g(R,p,`${S}${I}`,A-1);default:return g(R,p,`${S}${I}`,A)}}if(S==="")return p;if(A!==0)throw new o.InvalidParenthesisError({current:S,depth:A});return p.push(S.trim()),p}function v(_){return _==="address"||_==="bool"||_==="function"||_==="string"||e.bytesRegex.test(_)||e.integerRegex.test(_)}const P=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;function u(_){return _==="address"||_==="bool"||_==="function"||_==="string"||_==="tuple"||e.bytesRegex.test(_)||e.integerRegex.test(_)||P.test(_)}function w(_,p){return p||_==="bytes"||_==="string"||_==="tuple"}return at}var t0;function Yu(){if(t0)return qa;t0=1,Object.defineProperty(qa,"__esModule",{value:!0}),qa.parseStructs=i;const e=Ku(),r=Zu(),n=Qo(),t=vf(),o=Ig(),s=On(),a=Rn();function i(f){const l={},m=f.length;for(let E=0;E<m;E++){const g=f[E];if(!(0,s.isStructSignature)(g))continue;const v=(0,s.execStructSignature)(g);if(!v)throw new t.InvalidSignatureError({signature:g,type:"struct"});const P=v.properties.split(";"),u=[],w=P.length;for(let _=0;_<w;_++){const S=P[_].trim();if(!S)continue;const A=(0,a.parseAbiParameter)(S,{type:"struct"});u.push(A)}if(!u.length)throw new t.InvalidStructSignatureError({signature:g});l[v.name]=u}const y={},h=Object.entries(l),b=h.length;for(let E=0;E<b;E++){const[g,v]=h[E];y[g]=d(v,l)}return y}const c=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function d(f=[],l={},m=new Set){const y=[],h=f.length;for(let b=0;b<h;b++){const E=f[b];if(e.isTupleRegex.test(E.type))y.push(E);else{const v=(0,e.execTyped)(c,E.type);if(!(v!=null&&v.type))throw new n.InvalidAbiTypeParameterError({abiParameter:E});const{array:P,type:u}=v;if(u in l){if(m.has(u))throw new o.CircularReferenceError({type:u});y.push({...E,type:`tuple${P??""}`,components:d(l[u],l,new Set([...m,u]))})}else if((0,a.isSolidityType)(u))y.push(E);else throw new r.UnknownTypeError({type:u})}}return y}return qa}var r0;function d6(){if(r0)return xa;r0=1,Object.defineProperty(xa,"__esModule",{value:!0}),xa.parseAbi=t;const e=On(),r=Yu(),n=Rn();function t(o){const s=(0,r.parseStructs)(o),a=[],i=o.length;for(let c=0;c<i;c++){const d=o[c];(0,e.isStructSignature)(d)||a.push((0,n.parseSignature)(d,s))}return a}return xa}var Ma={},n0;function f6(){if(n0)return Ma;n0=1,Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.parseAbiItem=o;const e=Zu(),r=On(),n=Yu(),t=Rn();function o(s){let a;if(typeof s=="string")a=(0,t.parseSignature)(s);else{const i=(0,n.parseStructs)(s),c=s.length;for(let d=0;d<c;d++){const f=s[d];if(!(0,r.isStructSignature)(f)){a=(0,t.parseSignature)(f,i);break}}}if(!a)throw new e.InvalidAbiItemError({signature:s});return a}return Ma}var ka={},o0;function l6(){if(o0)return ka;o0=1,Object.defineProperty(ka,"__esModule",{value:!0}),ka.parseAbiParameter=o;const e=Qo(),r=On(),n=Yu(),t=Rn();function o(s){let a;if(typeof s=="string")a=(0,t.parseAbiParameter)(s,{modifiers:r.modifiers});else{const i=(0,n.parseStructs)(s),c=s.length;for(let d=0;d<c;d++){const f=s[d];if(!(0,r.isStructSignature)(f)){a=(0,t.parseAbiParameter)(f,{modifiers:r.modifiers,structs:i});break}}}if(!a)throw new e.InvalidAbiParameterError({param:s});return a}return ka}var Ha={},a0;function b6(){if(a0)return Ha;a0=1,Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.parseAbiParameters=s;const e=Qo(),r=On(),n=Yu(),t=Rn(),o=Rn();function s(a){const i=[];if(typeof a=="string"){const c=(0,t.splitParameters)(a),d=c.length;for(let f=0;f<d;f++)i.push((0,o.parseAbiParameter)(c[f],{modifiers:r.modifiers}))}else{const c=(0,n.parseStructs)(a),d=a.length;for(let f=0;f<d;f++){const l=a[f];if((0,r.isStructSignature)(l))continue;const m=(0,t.splitParameters)(l),y=m.length;for(let h=0;h<y;h++)i.push((0,o.parseAbiParameter)(m[h],{modifiers:r.modifiers,structs:c}))}}if(i.length===0)throw new e.InvalidAbiParametersError({params:a});return i}return Ha}var i0;function hr(){return i0||(i0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CircularReferenceError=e.InvalidParenthesisError=e.UnknownSignatureError=e.InvalidSignatureError=e.InvalidStructSignatureError=e.InvalidAbiParameterError=e.InvalidAbiParametersError=e.InvalidParameterError=e.SolidityProtectedKeywordError=e.InvalidModifierError=e.InvalidFunctionModifierError=e.InvalidAbiTypeParameterError=e.UnknownSolidityTypeError=e.InvalidAbiItemError=e.UnknownTypeError=e.parseAbiParameters=e.parseAbiParameter=e.parseAbiItem=e.parseAbi=e.formatAbiParameters=e.formatAbiParameter=e.formatAbiItem=e.formatAbi=e.narrow=e.BaseError=void 0;var r=Bn();Object.defineProperty(e,"BaseError",{enumerable:!0,get:function(){return r.BaseError}});var n=s6();Object.defineProperty(e,"narrow",{enumerable:!0,get:function(){return n.narrow}});var t=c6();Object.defineProperty(e,"formatAbi",{enumerable:!0,get:function(){return t.formatAbi}});var o=Sg();Object.defineProperty(e,"formatAbiItem",{enumerable:!0,get:function(){return o.formatAbiItem}});var s=Ag();Object.defineProperty(e,"formatAbiParameter",{enumerable:!0,get:function(){return s.formatAbiParameter}});var a=Tg();Object.defineProperty(e,"formatAbiParameters",{enumerable:!0,get:function(){return a.formatAbiParameters}});var i=d6();Object.defineProperty(e,"parseAbi",{enumerable:!0,get:function(){return i.parseAbi}});var c=f6();Object.defineProperty(e,"parseAbiItem",{enumerable:!0,get:function(){return c.parseAbiItem}});var d=l6();Object.defineProperty(e,"parseAbiParameter",{enumerable:!0,get:function(){return d.parseAbiParameter}});var f=b6();Object.defineProperty(e,"parseAbiParameters",{enumerable:!0,get:function(){return f.parseAbiParameters}});var l=Zu();Object.defineProperty(e,"UnknownTypeError",{enumerable:!0,get:function(){return l.UnknownTypeError}}),Object.defineProperty(e,"InvalidAbiItemError",{enumerable:!0,get:function(){return l.InvalidAbiItemError}}),Object.defineProperty(e,"UnknownSolidityTypeError",{enumerable:!0,get:function(){return l.UnknownSolidityTypeError}});var m=Qo();Object.defineProperty(e,"InvalidAbiTypeParameterError",{enumerable:!0,get:function(){return m.InvalidAbiTypeParameterError}}),Object.defineProperty(e,"InvalidFunctionModifierError",{enumerable:!0,get:function(){return m.InvalidFunctionModifierError}}),Object.defineProperty(e,"InvalidModifierError",{enumerable:!0,get:function(){return m.InvalidModifierError}}),Object.defineProperty(e,"SolidityProtectedKeywordError",{enumerable:!0,get:function(){return m.SolidityProtectedKeywordError}}),Object.defineProperty(e,"InvalidParameterError",{enumerable:!0,get:function(){return m.InvalidParameterError}}),Object.defineProperty(e,"InvalidAbiParametersError",{enumerable:!0,get:function(){return m.InvalidAbiParametersError}}),Object.defineProperty(e,"InvalidAbiParameterError",{enumerable:!0,get:function(){return m.InvalidAbiParameterError}});var y=vf();Object.defineProperty(e,"InvalidStructSignatureError",{enumerable:!0,get:function(){return y.InvalidStructSignatureError}}),Object.defineProperty(e,"InvalidSignatureError",{enumerable:!0,get:function(){return y.InvalidSignatureError}}),Object.defineProperty(e,"UnknownSignatureError",{enumerable:!0,get:function(){return y.UnknownSignatureError}});var h=Rg();Object.defineProperty(e,"InvalidParenthesisError",{enumerable:!0,get:function(){return h.InvalidParenthesisError}});var b=Ig();Object.defineProperty(e,"CircularReferenceError",{enumerable:!0,get:function(){return b.CircularReferenceError}})})(Dd)),Dd}var un={},Fa={},s0;function me(){if(s0)return Fa;s0=1,Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.getAction=e;function e(r,n,t){const o=r[n.name];if(typeof o=="function")return o;const s=r[t];return typeof s=="function"?s:a=>n(r,a)}return Fa}var Na={},$a={},se={},ao={},c0;function er(){if(c0)return ao;c0=1,Object.defineProperty(ao,"__esModule",{value:!0}),ao.formatAbiItem=r,ao.formatAbiParams=n;const e=Be();function r(o,{includeName:s=!1}={}){if(o.type!=="function"&&o.type!=="event"&&o.type!=="error")throw new e.InvalidDefinitionTypeError(o.type);return`${o.name}(${n(o.inputs,{includeName:s})})`}function n(o,{includeName:s=!1}={}){return o?o.map(a=>t(a,{includeName:s})).join(s?", ":","):""}function t(o,{includeName:s}){return o.type.startsWith("tuple")?`(${n(o.components,{includeName:s})})${o.type.slice(5)}`:o.type+(s&&o.name?` ${o.name}`:"")}return ao}var za={},La={},u0;function Qe(){if(u0)return La;u0=1,Object.defineProperty(La,"__esModule",{value:!0}),La.isHex=e;function e(r,{strict:n=!0}={}){return!r||typeof r!="string"?!1:n?/^0x[0-9a-fA-F]*$/.test(r):r.startsWith("0x")}return La}var d0;function De(){if(d0)return za;d0=1,Object.defineProperty(za,"__esModule",{value:!0}),za.size=r;const e=Qe();function r(n){return(0,e.isHex)(n,{strict:!1})?Math.ceil((n.length-2)/2):n.length}return za}var dn={},io={},f0;function m6(){return f0||(f0=1,Object.defineProperty(io,"__esModule",{value:!0}),io.version=void 0,io.version="2.54.1"),io}var l0;function ue(){if(l0)return dn;l0=1,Object.defineProperty(dn,"__esModule",{value:!0}),dn.BaseError=void 0,dn.setErrorConfig=n;const e=m6();let r={getDocsUrl:({docsBaseUrl:s,docsPath:a="",docsSlug:i})=>a?`${s??"https://viem.sh"}${a}${i?`#${i}`:""}`:void 0,version:`viem@${e.version}`};function n(s){r=s}class t extends Error{constructor(a,i={}){var m;const c=(()=>{var y;return i.cause instanceof t?i.cause.details:(y=i.cause)!=null&&y.message?i.cause.message:i.details})(),d=i.cause instanceof t&&i.cause.docsPath||i.docsPath,f=(m=r.getDocsUrl)==null?void 0:m.call(r,{...i,docsPath:d}),l=[a||"An error occurred.","",...i.metaMessages?[...i.metaMessages,""]:[],...f?[`Docs: ${f}`]:[],...c?[`Details: ${c}`]:[],...r.version?[`Version: ${r.version}`]:[]].join(`
3
3
  `);super(l,i.cause?{cause:i.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=c,this.docsPath=d,this.metaMessages=i.metaMessages,this.name=i.name??this.name,this.shortMessage=a,this.version=e.version}walk(a){return o(this,a)}}dn.BaseError=t;function o(s,a){return a!=null&&a(s)?s:s&&typeof s=="object"&&"cause"in s&&s.cause!==void 0?o(s.cause,a):a?null:s}return dn}var b0;function Be(){if(b0)return se;b0=1,Object.defineProperty(se,"__esModule",{value:!0}),se.UnsupportedPackedAbiType=se.InvalidDefinitionTypeError=se.InvalidArrayError=se.InvalidAbiDecodingTypeError=se.InvalidAbiEncodingTypeError=se.DecodeLogTopicsMismatch=se.DecodeLogDataMismatch=se.BytesSizeMismatchError=se.AbiItemAmbiguityError=se.AbiFunctionSignatureNotFoundError=se.AbiFunctionOutputsNotFoundError=se.AbiFunctionNotFoundError=se.AbiEventNotFoundError=se.AbiEventSignatureNotFoundError=se.AbiEventSignatureEmptyTopicsError=se.AbiErrorSignatureNotFoundError=se.AbiErrorNotFoundError=se.AbiErrorInputsNotFoundError=se.AbiEncodingLengthMismatchError=se.AbiEncodingBytesSizeMismatchError=se.AbiEncodingArrayLengthMismatchError=se.AbiDecodingZeroDataError=se.AbiDecodingDataSizeTooSmallError=se.AbiDecodingDataSizeInvalidError=se.AbiConstructorParamsNotFoundError=se.AbiConstructorNotFoundError=void 0;const e=er(),r=De(),n=ue();class t extends n.BaseError{constructor({docsPath:H}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join(`
4
4
  `),{docsPath:H,name:"AbiConstructorNotFoundError"})}}se.AbiConstructorNotFoundError=t;class o extends n.BaseError{constructor({docsPath:H}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join(`
@@ -1,4 +1,4 @@
1
- import{w as t,a as d,i as p,b as n}from"./lit-element-B3y9oplH.js";import{n as f}from"./class-map-CxwNmq0D.js";import{c as w,t as k}from"./index-DOLdge0g.js";import{r as v}from"./index-B0--HMVL.js";const g=t`<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
1
+ import{w as t,a as d,i as p,b as n}from"./lit-element-B3y9oplH.js";import{n as f}from"./class-map-CxwNmq0D.js";import{c as w,t as k}from"./index-DuUdctHy.js";import{r as v}from"./index-sV0xAzf6.js";const g=t`<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <rect width="64" height="64" fill="#F7931A"/>
3
3
  <g clip-path="url(#clip0_1045_17)">
4
4
  <path d="M63.0394 39.7409C58.7654 56.8839 41.4024 67.3169 24.2574 63.0419C7.11937 58.7679 -3.31363 41.4039 0.962367 24.2619C5.23437 7.11686 22.5974 -3.31714 39.7374 0.956863C56.8814 5.23086 67.3134 22.5969 63.0394 39.7409Z" fill="#F7931A"/>
@@ -1,4 +1,4 @@
1
- import{i as c,b as a}from"./lit-element-B3y9oplH.js";import{n as o,o as h}from"./class-map-CxwNmq0D.js";import{e as m,n as b}from"./ref-BsAZ42-h.js";import{c as x}from"./index-DOLdge0g.js";import{d as f,r as $,e as g}from"./index-B0--HMVL.js";const w=f`
1
+ import{i as c,b as a}from"./lit-element-B3y9oplH.js";import{n as o,o as h}from"./class-map-CxwNmq0D.js";import{e as m,n as b}from"./ref-BsAZ42-h.js";import{c as x}from"./index-DuUdctHy.js";import{d as f,r as $,e as g}from"./index-sV0xAzf6.js";const w=f`
2
2
  :host {
3
3
  position: relative;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{i as b,b as l,a as O}from"./lit-element-B3y9oplH.js";import{n as h,r as d}from"./class-map-CxwNmq0D.js";import{d as C,r as E,e as P}from"./index-B0--HMVL.js";import{c as v,U as x}from"./index-DOLdge0g.js";import"./index-C6uhDE9h.js";import"./index-C7St4Q5o.js";import{u as g,R as S,o as $,b as R,S as T}from"./W3MFrameProviderSingleton-CPW2Gx43.js";const L=C`
1
+ import{i as b,b as l,a as O}from"./lit-element-B3y9oplH.js";import{n as h,r as d}from"./class-map-CxwNmq0D.js";import{d as C,r as E,e as P}from"./index-sV0xAzf6.js";import{c as v,U as x}from"./index-DuUdctHy.js";import"./index-_K2YCvAG.js";import"./index-DeRdsl6L.js";import{u as g,R as S,o as $,b as R,S as T}from"./W3MFrameProviderSingleton-BGrWzqsE.js";const L=C`
2
2
  :host {
3
3
  position: relative;
4
4
  display: inline-block;
@@ -1,4 +1,4 @@
1
- import{e as Fa,c as Ln,g as Ye,r as S,j,f as st,l as Ua}from"./react-4iaCnQ6n.js";import{aa as Ga,ab as Ya}from"./index-D9XZpwfV.js";import{h as na,i as oa,j as aa,a as Xe,k as Xa,l as nr,m as xt,b as Pt,e as Za,n as Ka,o as Ja,p as Qa,q as ei,d as xr,s as ia,g as sa,c as la,f as ti,t as ri,r as ni}from"./index-D3oE2u-n.js";import{p as Ir}from"./ethers-CU3Ctw5k.js";import{n as Ie,c as oi}from"./SvgIcon-DHNKm7fg.js";import{C as lt,L as ai,_ as Lt,b as N,e as Pr,M as jt,N as ii,u as Or,s as Ze,g as ua,a as ca,c as vt,d as be,t as dt,O as fa}from"./generateUtilityClasses-DMMGtITh.js";import{t as ut,d as Qt,h as mr,o as at,P as si,c as bn,m as ot,x as li,y as ui,j as Ar,z as ci,A as fi,C as pi,q as hr,s as di,B as pa,w as Rr,G as vi,n as mi,M as hi,v as gi}from"./MenuItem-CTKZTFhj.js";import{C as yi}from"./CircularProgress-MlGhFCHM.js";var _e=Ga(),Mr,jn;function da(){if(jn)return Mr;jn=1;var e=Object.prototype.toString;return Mr=function(r){var n=e.call(r),o=n==="[object Arguments]";return o||(o=n!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&e.call(r.callee)==="[object Function]"),o},Mr}var Tr,qn;function bi(){if(qn)return Tr;qn=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=da(),o=Object.prototype.propertyIsEnumerable,s=!o.call({toString:null},"toString"),i=o.call(function(){},"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(g){var v=g.constructor;return v&&v.prototype===g},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=(function(){if(typeof window>"u")return!1;for(var g in window)try{if(!f["$"+g]&&t.call(window,g)&&window[g]!==null&&typeof window[g]=="object")try{l(window[g])}catch{return!0}}catch{return!0}return!1})(),c=function(g){if(typeof window>"u"||!p)return l(g);try{return l(g)}catch{return!1}};e=function(v){var h=v!==null&&typeof v=="object",y=r.call(v)==="[object Function]",k=n(v),P=h&&r.call(v)==="[object String]",x=[];if(!h&&!y&&!k)throw new TypeError("Object.keys called on a non-object");var b=i&&y;if(P&&v.length>0&&!t.call(v,0))for(var R=0;R<v.length;++R)x.push(String(R));if(k&&v.length>0)for(var E=0;E<v.length;++E)x.push(String(E));else for(var A in v)!(b&&A==="prototype")&&t.call(v,A)&&x.push(String(A));if(s)for(var T=c(v),I=0;I<a.length;++I)!(T&&a[I]==="constructor")&&t.call(v,a[I])&&x.push(a[I]);return x}}return Tr=e,Tr}var Br,Dn;function Rn(){if(Dn)return Br;Dn=1;var e=Array.prototype.slice,t=da(),r=Object.keys,n=r?function(i){return r(i)}:bi(),o=Object.keys;return n.shim=function(){if(Object.keys){var i=(function(){var a=Object.keys(arguments);return a&&a.length===arguments.length})(1,2);i||(Object.keys=function(l){return t(l)?o(e.call(l)):o(l)})}else Object.keys=n;return Object.keys||n},Br=n,Br}var Lr,_n;function Ot(){if(_n)return Lr;_n=1;var e=Rn(),t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",r=Object.prototype.toString,n=Array.prototype.concat,o=oa(),s=function(f){return typeof f=="function"&&r.call(f)==="[object Function]"},i=na()(),a=function(f,p,c,g){if(p in f){if(g===!0){if(f[p]===c)return}else if(!s(g)||!g())return}i?o(f,p,c,!0):o(f,p,c)},l=function(f,p){var c=arguments.length>2?arguments[2]:{},g=e(p);t&&(g=n.call(g,Object.getOwnPropertySymbols(p)));for(var v=0;v<g.length;v+=1)a(f,g[v],p[g[v]],c[g[v]])};return l.supportsDescriptors=!!i,Lr=l,Lr}var jr,Wn;function va(){if(Wn)return jr;Wn=1;var e=Rn(),t=aa()(),r=Xe(),n=Xa(),o=r("Array.prototype.push"),s=r("Object.prototype.propertyIsEnumerable"),i=t?n.getOwnPropertySymbols:null;return jr=function(l,f){if(l==null)throw new TypeError("target must be an object");var p=n(l);if(arguments.length===1)return p;for(var c=1;c<arguments.length;++c){var g=n(arguments[c]),v=e(g),h=t&&(n.getOwnPropertySymbols||i);if(h)for(var y=h(g),k=0;k<y.length;++k){var P=y[k];s(g,P)&&o(v,P)}for(var x=0;x<v.length;++x){var b=v[x];if(s(g,b)){var R=g[b];p[b]=R}}}return p},jr}var qr,Nn;function ma(){if(Nn)return qr;Nn=1;var e=va(),t=function(){if(!Object.assign)return!1;for(var n="abcdefghijklmnopqrst",o=n.split(""),s={},i=0;i<o.length;++i)s[o[i]]=o[i];var a=Object.assign({},s),l="";for(var f in a)l+=f;return n!==l},r=function(){if(!Object.assign||!Object.preventExtensions)return!1;var n=Object.preventExtensions({1:2});try{Object.assign(n,"xy")}catch{return n[1]==="y"}return!1};return qr=function(){return!Object.assign||t()||r()?e:Object.assign},qr}var Dr,Hn;function wi(){if(Hn)return Dr;Hn=1;var e=Ot(),t=ma();return Dr=function(){var n=t();return e(Object,{assign:n},{assign:function(){return Object.assign!==n}}),n},Dr}var _r,Vn;function Si(){if(Vn)return _r;Vn=1;var e=Ot(),t=nr(),r=va(),n=ma(),o=wi(),s=t.apply(n()),i=function(l,f){return s(Object,arguments)};return e(i,{getPolyfill:n,implementation:r,shim:o}),_r=i,_r}var Wr,zn;function ha(){if(zn)return Wr;zn=1;var e=xt(),t=nr(),r=t(e("String.prototype.indexOf"));return Wr=function(o,s){var i=e(o,!!s);return typeof i=="function"&&r(o,".prototype.")>-1?t(i):i},Wr}var Nr,Fn;function xi(){if(Fn)return Nr;Fn=1;var e=function(){return typeof(function(){}).name=="string"},t=Object.getOwnPropertyDescriptor;if(t)try{t([],"length")}catch{t=null}e.functionsHaveConfigurableNames=function(){if(!e()||!t)return!1;var o=t(function(){},"name");return!!o&&!!o.configurable};var r=Function.prototype.bind;return e.boundFunctionsHaveNames=function(){return e()&&typeof r=="function"&&(function(){}).bind().name!==""},Nr=e,Nr}var Hr,Un;function Pi(){if(Un)return Hr;Un=1;var e=oa(),t=na()(),r=xi().functionsHaveConfigurableNames(),n=Pt();return Hr=function(s,i){if(typeof s!="function")throw new n("`fn` is not a function");var a=arguments.length>2&&!!arguments[2];return(!a||r)&&(t?e(s,"name",i,!0,!0):e(s,"name",i)),s},Hr}var Vr,Gn;function ga(){if(Gn)return Vr;Gn=1;var e=Pi(),t=Pt(),r=Object;return Vr=e(function(){if(this==null||this!==r(this))throw new t("RegExp.prototype.flags getter called on non-object");var o="";return this.hasIndices&&(o+="d"),this.global&&(o+="g"),this.ignoreCase&&(o+="i"),this.multiline&&(o+="m"),this.dotAll&&(o+="s"),this.unicode&&(o+="u"),this.unicodeSets&&(o+="v"),this.sticky&&(o+="y"),o},"get flags",!0),Vr}var zr,Yn;function ya(){if(Yn)return zr;Yn=1;var e=ga(),t=Ot().supportsDescriptors,r=Object.getOwnPropertyDescriptor;return zr=function(){if(t&&/a/mig.flags==="gim"){var o=r(RegExp.prototype,"flags");if(o&&typeof o.get=="function"&&"dotAll"in RegExp.prototype&&"hasIndices"in RegExp.prototype){var s="",i={};if(Object.defineProperty(i,"hasIndices",{get:function(){s+="d"}}),Object.defineProperty(i,"sticky",{get:function(){s+="y"}}),o.get.call(i),s==="dy")return o.get}}return e},zr}var Fr,Xn;function Oi(){if(Xn)return Fr;Xn=1;var e=Ot().supportsDescriptors,t=ya(),r=Ja(),n=Object.defineProperty,o=Ka(),s=Za(),i=/a/;return Fr=function(){if(!e||!s)throw new o("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var l=t(),f=s(i),p=r(f,"flags");return(!p||p.get!==l)&&n(f,"flags",{configurable:!0,enumerable:!1,get:l}),l},Fr}var Ur,Zn;function Ri(){if(Zn)return Ur;Zn=1;var e=Ot(),t=nr(),r=ga(),n=ya(),o=Oi(),s=t(n());return e(s,{getPolyfill:n,implementation:r,shim:o}),Ur=s,Ur}var qt={exports:{}};const Ei={},ki=Object.freeze(Object.defineProperty({__proto__:null,default:Ei},Symbol.toStringTag,{value:"Module"})),$i=Fa(ki);var Gr,Kn;function Er(){if(Kn)return Gr;Kn=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&typeof t.get=="function"?t.get:null,n=e&&Map.prototype.forEach,o=typeof Set=="function"&&Set.prototype,s=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,i=o&&s&&typeof s.get=="function"?s.get:null,a=o&&Set.prototype.forEach,l=typeof WeakMap=="function"&&WeakMap.prototype,f=l?WeakMap.prototype.has:null,p=typeof WeakSet=="function"&&WeakSet.prototype,c=p?WeakSet.prototype.has:null,g=typeof WeakRef=="function"&&WeakRef.prototype,v=g?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,y=Object.prototype.toString,k=Function.prototype.toString,P=String.prototype.match,x=String.prototype.slice,b=String.prototype.replace,R=String.prototype.toUpperCase,E=String.prototype.toLowerCase,A=RegExp.prototype.test,T=Array.prototype.concat,I=Array.prototype.join,$=Array.prototype.slice,M=Math.floor,D=typeof BigInt=="function"?BigInt.prototype.valueOf:null,V=Object.getOwnPropertySymbols,q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,re=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Y=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===re||!0)?Symbol.toStringTag:null,te=Object.prototype.propertyIsEnumerable,U=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(u){return u.__proto__}:null);function ue(u,d){if(u===1/0||u===-1/0||u!==u||u&&u>-1e3&&u<1e3||A.call(/e/,d))return d;var X=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof u=="number"){var ce=u<0?-M(-u):M(u);if(ce!==u){var fe=String(ce),G=x.call(d,fe.length+1);return b.call(fe,X,"$&_")+"."+b.call(b.call(G,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(d,X,"$&_")}var se=$i,ge=se.custom,Pe=oe(ge)?ge:null,B={__proto__:null,double:'"',single:"'"},de={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Gr=function u(d,X,ce,fe){var G=X||{};if(ve(G,"quoteStyle")&&!ve(B,G.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ve(G,"maxStringLength")&&(typeof G.maxStringLength=="number"?G.maxStringLength<0&&G.maxStringLength!==1/0:G.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Me=ve(G,"customInspect")?G.customInspect:!0;if(typeof Me!="boolean"&&Me!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ve(G,"indent")&&G.indent!==null&&G.indent!==" "&&!(parseInt(G.indent,10)===G.indent&&G.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ve(G,"numericSeparator")&&typeof G.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var De=G.numericSeparator;if(typeof d>"u")return"undefined";if(d===null)return"null";if(typeof d=="boolean")return d?"true":"false";if(typeof d=="string")return Re(d,G);if(typeof d=="number"){if(d===0)return 1/0/d>0?"0":"-0";var Se=String(d);return De?ue(d,Se):Se}if(typeof d=="bigint"){var Te=String(d)+"n";return De?ue(d,Te):Te}var ht=typeof G.depth>"u"?5:G.depth;if(typeof ce>"u"&&(ce=0),ce>=ht&&ht>0&&typeof d=="object")return _(d)?"[Array]":"[Object]";var Ve=J(G,ce);if(typeof fe>"u")fe=[];else if(le(fe,d)>=0)return"[Circular]";function $e(xe,Ct,Cr){if(Ct&&(fe=$.call(fe),fe.push(Ct)),Cr){var ir={depth:G.depth};return ve(G,"quoteStyle")&&(ir.quoteStyle=G.quoteStyle),u(xe,ir,ce+1,fe)}return u(xe,G,ce+1,fe)}if(typeof d=="function"&&!ie(d)){var ct=Ne(d),Rt=ke(d,$e);return"[Function"+(ct?": "+ct:" (anonymous)")+"]"+(Rt.length>0?" { "+I.call(Rt,", ")+" }":"")}if(oe(d)){var Et=re?b.call(String(d),/^(Symbol\(.*\))_[^)]*$/,"$1"):q.call(d);return typeof d=="object"&&!re?C(Et):Et}if(Oe(d)){for(var tt="<"+E.call(String(d.nodeName)),gt=d.attributes||[],ft=0;ft<gt.length;ft++)tt+=" "+gt[ft].name+"="+m(O(gt[ft].value),"double",G);return tt+=">",d.childNodes&&d.childNodes.length&&(tt+="..."),tt+="</"+E.call(String(d.nodeName))+">",tt}if(_(d)){if(d.length===0)return"[]";var yt=ke(d,$e);return Ve&&!ae(yt)?"["+Ee(yt,Ve)+"]":"[ "+I.call(yt,", ")+" ]"}if(ne(d)){var rt=ke(d,$e);return!("cause"in Error.prototype)&&"cause"in d&&!te.call(d,"cause")?"{ ["+String(d)+"] "+I.call(T.call("[cause]: "+$e(d.cause),rt),", ")+" }":rt.length===0?"["+String(d)+"]":"{ ["+String(d)+"] "+I.call(rt,", ")+" }"}if(typeof d=="object"&&Me){if(Pe&&typeof d[Pe]=="function"&&se)return se(d,{depth:ht-ce});if(Me!=="symbol"&&typeof d.inspect=="function")return d.inspect()}if(we(d)){var kt=[];return n&&n.call(d,function(xe,Ct){kt.push($e(Ct,d,!0)+" => "+$e(xe,d))}),ee("Map",r.call(d),kt,Ve)}if(Ae(d)){var pt=[];return a&&a.call(d,function(xe){pt.push($e(xe,d))}),ee("Set",i.call(d),pt,Ve)}if(je(d))return L("WeakMap");if(He(d))return L("WeakSet");if(qe(d))return L("WeakRef");if(z(d))return C($e(Number(d)));if(K(d))return C($e(D.call(d)));if(Z(d))return C(h.call(d));if(Q(d))return C($e(String(d)));if(typeof window<"u"&&d===window)return"{ [object Window] }";if(typeof globalThis<"u"&&d===globalThis||typeof Ln<"u"&&d===Ln)return"{ [object globalThis] }";if(!W(d)&&!ie(d)){var nt=ke(d,$e),$t=U?U(d)===Object.prototype:d instanceof Object||d.constructor===Object,me=d instanceof Object?"":"null prototype",he=!$t&&Y&&Object(d)===d&&Y in d?x.call(pe(d),8,-1):me?"Object":"",bt=$t||typeof d.constructor!="function"?"":d.constructor.name?d.constructor.name+" ":"",Ke=bt+(he||me?"["+I.call(T.call([],he||[],me||[]),": ")+"] ":"");return nt.length===0?Ke+"{}":Ve?Ke+"{"+Ee(nt,Ve)+"}":Ke+"{ "+I.call(nt,", ")+" }"}return String(d)};function m(u,d,X){var ce=X.quoteStyle||d,fe=B[ce];return fe+u+fe}function O(u){return b.call(String(u),/"/g,"&quot;")}function H(u){return!Y||!(typeof u=="object"&&(Y in u||typeof u[Y]<"u"))}function _(u){return pe(u)==="[object Array]"&&H(u)}function W(u){return pe(u)==="[object Date]"&&H(u)}function ie(u){return pe(u)==="[object RegExp]"&&H(u)}function ne(u){return pe(u)==="[object Error]"&&H(u)}function Q(u){return pe(u)==="[object String]"&&H(u)}function z(u){return pe(u)==="[object Number]"&&H(u)}function Z(u){return pe(u)==="[object Boolean]"&&H(u)}function oe(u){if(re)return u&&typeof u=="object"&&u instanceof Symbol;if(typeof u=="symbol")return!0;if(!u||typeof u!="object"||!q)return!1;try{return q.call(u),!0}catch{}return!1}function K(u){if(!u||typeof u!="object"||!D)return!1;try{return D.call(u),!0}catch{}return!1}var ye=Object.prototype.hasOwnProperty||function(u){return u in this};function ve(u,d){return ye.call(u,d)}function pe(u){return y.call(u)}function Ne(u){if(u.name)return u.name;var d=P.call(k.call(u),/^function\s*([\w$]+)/);return d?d[1]:null}function le(u,d){if(u.indexOf)return u.indexOf(d);for(var X=0,ce=u.length;X<ce;X++)if(u[X]===d)return X;return-1}function we(u){if(!r||!u||typeof u!="object")return!1;try{r.call(u);try{i.call(u)}catch{return!0}return u instanceof Map}catch{}return!1}function je(u){if(!f||!u||typeof u!="object")return!1;try{f.call(u,f);try{c.call(u,c)}catch{return!0}return u instanceof WeakMap}catch{}return!1}function qe(u){if(!v||!u||typeof u!="object")return!1;try{return v.call(u),!0}catch{}return!1}function Ae(u){if(!i||!u||typeof u!="object")return!1;try{i.call(u);try{r.call(u)}catch{return!0}return u instanceof Set}catch{}return!1}function He(u){if(!c||!u||typeof u!="object")return!1;try{c.call(u,c);try{f.call(u,f)}catch{return!0}return u instanceof WeakSet}catch{}return!1}function Oe(u){return!u||typeof u!="object"?!1:typeof HTMLElement<"u"&&u instanceof HTMLElement?!0:typeof u.nodeName=="string"&&typeof u.getAttribute=="function"}function Re(u,d){if(u.length>d.maxStringLength){var X=u.length-d.maxStringLength,ce="... "+X+" more character"+(X>1?"s":"");return Re(x.call(u,0,d.maxStringLength),d)+ce}var fe=de[d.quoteStyle||"single"];fe.lastIndex=0;var G=b.call(b.call(u,fe,"\\$1"),/[\x00-\x1f]/g,w);return m(G,"single",d)}function w(u){var d=u.charCodeAt(0),X={8:"b",9:"t",10:"n",12:"f",13:"r"}[d];return X?"\\"+X:"\\x"+(d<16?"0":"")+R.call(d.toString(16))}function C(u){return"Object("+u+")"}function L(u){return u+" { ? }"}function ee(u,d,X,ce){var fe=ce?Ee(X,ce):I.call(X,", ");return u+" ("+d+") {"+fe+"}"}function ae(u){for(var d=0;d<u.length;d++)if(le(u[d],`
1
+ import{e as Fa,c as Ln,g as Ye,r as S,j,f as st,l as Ua}from"./react-4iaCnQ6n.js";import{aa as Ga,ab as Ya}from"./index-Dh_23qfs.js";import{h as na,i as oa,j as aa,a as Xe,k as Xa,l as nr,m as xt,b as Pt,e as Za,n as Ka,o as Ja,p as Qa,q as ei,d as xr,s as ia,g as sa,c as la,f as ti,t as ri,r as ni}from"./index-D3oE2u-n.js";import{p as Ir}from"./ethers-CU3Ctw5k.js";import{n as Ie,c as oi}from"./SvgIcon-_uqtXVDj.js";import{C as lt,L as ai,_ as Lt,b as N,e as Pr,M as jt,N as ii,u as Or,s as Ze,g as ua,a as ca,c as vt,d as be,t as dt,O as fa}from"./generateUtilityClasses-CKIya6ur.js";import{t as ut,d as Qt,h as mr,o as at,P as si,c as bn,m as ot,x as li,y as ui,j as Ar,z as ci,A as fi,C as pi,q as hr,s as di,B as pa,w as Rr,G as vi,n as mi,M as hi,v as gi}from"./MenuItem-fSoZrIOB.js";import{C as yi}from"./CircularProgress-DG2FpN0J.js";var _e=Ga(),Mr,jn;function da(){if(jn)return Mr;jn=1;var e=Object.prototype.toString;return Mr=function(r){var n=e.call(r),o=n==="[object Arguments]";return o||(o=n!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&e.call(r.callee)==="[object Function]"),o},Mr}var Tr,qn;function bi(){if(qn)return Tr;qn=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=da(),o=Object.prototype.propertyIsEnumerable,s=!o.call({toString:null},"toString"),i=o.call(function(){},"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(g){var v=g.constructor;return v&&v.prototype===g},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=(function(){if(typeof window>"u")return!1;for(var g in window)try{if(!f["$"+g]&&t.call(window,g)&&window[g]!==null&&typeof window[g]=="object")try{l(window[g])}catch{return!0}}catch{return!0}return!1})(),c=function(g){if(typeof window>"u"||!p)return l(g);try{return l(g)}catch{return!1}};e=function(v){var h=v!==null&&typeof v=="object",y=r.call(v)==="[object Function]",k=n(v),P=h&&r.call(v)==="[object String]",x=[];if(!h&&!y&&!k)throw new TypeError("Object.keys called on a non-object");var b=i&&y;if(P&&v.length>0&&!t.call(v,0))for(var R=0;R<v.length;++R)x.push(String(R));if(k&&v.length>0)for(var E=0;E<v.length;++E)x.push(String(E));else for(var A in v)!(b&&A==="prototype")&&t.call(v,A)&&x.push(String(A));if(s)for(var T=c(v),I=0;I<a.length;++I)!(T&&a[I]==="constructor")&&t.call(v,a[I])&&x.push(a[I]);return x}}return Tr=e,Tr}var Br,Dn;function Rn(){if(Dn)return Br;Dn=1;var e=Array.prototype.slice,t=da(),r=Object.keys,n=r?function(i){return r(i)}:bi(),o=Object.keys;return n.shim=function(){if(Object.keys){var i=(function(){var a=Object.keys(arguments);return a&&a.length===arguments.length})(1,2);i||(Object.keys=function(l){return t(l)?o(e.call(l)):o(l)})}else Object.keys=n;return Object.keys||n},Br=n,Br}var Lr,_n;function Ot(){if(_n)return Lr;_n=1;var e=Rn(),t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",r=Object.prototype.toString,n=Array.prototype.concat,o=oa(),s=function(f){return typeof f=="function"&&r.call(f)==="[object Function]"},i=na()(),a=function(f,p,c,g){if(p in f){if(g===!0){if(f[p]===c)return}else if(!s(g)||!g())return}i?o(f,p,c,!0):o(f,p,c)},l=function(f,p){var c=arguments.length>2?arguments[2]:{},g=e(p);t&&(g=n.call(g,Object.getOwnPropertySymbols(p)));for(var v=0;v<g.length;v+=1)a(f,g[v],p[g[v]],c[g[v]])};return l.supportsDescriptors=!!i,Lr=l,Lr}var jr,Wn;function va(){if(Wn)return jr;Wn=1;var e=Rn(),t=aa()(),r=Xe(),n=Xa(),o=r("Array.prototype.push"),s=r("Object.prototype.propertyIsEnumerable"),i=t?n.getOwnPropertySymbols:null;return jr=function(l,f){if(l==null)throw new TypeError("target must be an object");var p=n(l);if(arguments.length===1)return p;for(var c=1;c<arguments.length;++c){var g=n(arguments[c]),v=e(g),h=t&&(n.getOwnPropertySymbols||i);if(h)for(var y=h(g),k=0;k<y.length;++k){var P=y[k];s(g,P)&&o(v,P)}for(var x=0;x<v.length;++x){var b=v[x];if(s(g,b)){var R=g[b];p[b]=R}}}return p},jr}var qr,Nn;function ma(){if(Nn)return qr;Nn=1;var e=va(),t=function(){if(!Object.assign)return!1;for(var n="abcdefghijklmnopqrst",o=n.split(""),s={},i=0;i<o.length;++i)s[o[i]]=o[i];var a=Object.assign({},s),l="";for(var f in a)l+=f;return n!==l},r=function(){if(!Object.assign||!Object.preventExtensions)return!1;var n=Object.preventExtensions({1:2});try{Object.assign(n,"xy")}catch{return n[1]==="y"}return!1};return qr=function(){return!Object.assign||t()||r()?e:Object.assign},qr}var Dr,Hn;function wi(){if(Hn)return Dr;Hn=1;var e=Ot(),t=ma();return Dr=function(){var n=t();return e(Object,{assign:n},{assign:function(){return Object.assign!==n}}),n},Dr}var _r,Vn;function Si(){if(Vn)return _r;Vn=1;var e=Ot(),t=nr(),r=va(),n=ma(),o=wi(),s=t.apply(n()),i=function(l,f){return s(Object,arguments)};return e(i,{getPolyfill:n,implementation:r,shim:o}),_r=i,_r}var Wr,zn;function ha(){if(zn)return Wr;zn=1;var e=xt(),t=nr(),r=t(e("String.prototype.indexOf"));return Wr=function(o,s){var i=e(o,!!s);return typeof i=="function"&&r(o,".prototype.")>-1?t(i):i},Wr}var Nr,Fn;function xi(){if(Fn)return Nr;Fn=1;var e=function(){return typeof(function(){}).name=="string"},t=Object.getOwnPropertyDescriptor;if(t)try{t([],"length")}catch{t=null}e.functionsHaveConfigurableNames=function(){if(!e()||!t)return!1;var o=t(function(){},"name");return!!o&&!!o.configurable};var r=Function.prototype.bind;return e.boundFunctionsHaveNames=function(){return e()&&typeof r=="function"&&(function(){}).bind().name!==""},Nr=e,Nr}var Hr,Un;function Pi(){if(Un)return Hr;Un=1;var e=oa(),t=na()(),r=xi().functionsHaveConfigurableNames(),n=Pt();return Hr=function(s,i){if(typeof s!="function")throw new n("`fn` is not a function");var a=arguments.length>2&&!!arguments[2];return(!a||r)&&(t?e(s,"name",i,!0,!0):e(s,"name",i)),s},Hr}var Vr,Gn;function ga(){if(Gn)return Vr;Gn=1;var e=Pi(),t=Pt(),r=Object;return Vr=e(function(){if(this==null||this!==r(this))throw new t("RegExp.prototype.flags getter called on non-object");var o="";return this.hasIndices&&(o+="d"),this.global&&(o+="g"),this.ignoreCase&&(o+="i"),this.multiline&&(o+="m"),this.dotAll&&(o+="s"),this.unicode&&(o+="u"),this.unicodeSets&&(o+="v"),this.sticky&&(o+="y"),o},"get flags",!0),Vr}var zr,Yn;function ya(){if(Yn)return zr;Yn=1;var e=ga(),t=Ot().supportsDescriptors,r=Object.getOwnPropertyDescriptor;return zr=function(){if(t&&/a/mig.flags==="gim"){var o=r(RegExp.prototype,"flags");if(o&&typeof o.get=="function"&&"dotAll"in RegExp.prototype&&"hasIndices"in RegExp.prototype){var s="",i={};if(Object.defineProperty(i,"hasIndices",{get:function(){s+="d"}}),Object.defineProperty(i,"sticky",{get:function(){s+="y"}}),o.get.call(i),s==="dy")return o.get}}return e},zr}var Fr,Xn;function Oi(){if(Xn)return Fr;Xn=1;var e=Ot().supportsDescriptors,t=ya(),r=Ja(),n=Object.defineProperty,o=Ka(),s=Za(),i=/a/;return Fr=function(){if(!e||!s)throw new o("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var l=t(),f=s(i),p=r(f,"flags");return(!p||p.get!==l)&&n(f,"flags",{configurable:!0,enumerable:!1,get:l}),l},Fr}var Ur,Zn;function Ri(){if(Zn)return Ur;Zn=1;var e=Ot(),t=nr(),r=ga(),n=ya(),o=Oi(),s=t(n());return e(s,{getPolyfill:n,implementation:r,shim:o}),Ur=s,Ur}var qt={exports:{}};const Ei={},ki=Object.freeze(Object.defineProperty({__proto__:null,default:Ei},Symbol.toStringTag,{value:"Module"})),$i=Fa(ki);var Gr,Kn;function Er(){if(Kn)return Gr;Kn=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&typeof t.get=="function"?t.get:null,n=e&&Map.prototype.forEach,o=typeof Set=="function"&&Set.prototype,s=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,i=o&&s&&typeof s.get=="function"?s.get:null,a=o&&Set.prototype.forEach,l=typeof WeakMap=="function"&&WeakMap.prototype,f=l?WeakMap.prototype.has:null,p=typeof WeakSet=="function"&&WeakSet.prototype,c=p?WeakSet.prototype.has:null,g=typeof WeakRef=="function"&&WeakRef.prototype,v=g?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,y=Object.prototype.toString,k=Function.prototype.toString,P=String.prototype.match,x=String.prototype.slice,b=String.prototype.replace,R=String.prototype.toUpperCase,E=String.prototype.toLowerCase,A=RegExp.prototype.test,T=Array.prototype.concat,I=Array.prototype.join,$=Array.prototype.slice,M=Math.floor,D=typeof BigInt=="function"?BigInt.prototype.valueOf:null,V=Object.getOwnPropertySymbols,q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,re=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Y=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===re||!0)?Symbol.toStringTag:null,te=Object.prototype.propertyIsEnumerable,U=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(u){return u.__proto__}:null);function ue(u,d){if(u===1/0||u===-1/0||u!==u||u&&u>-1e3&&u<1e3||A.call(/e/,d))return d;var X=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof u=="number"){var ce=u<0?-M(-u):M(u);if(ce!==u){var fe=String(ce),G=x.call(d,fe.length+1);return b.call(fe,X,"$&_")+"."+b.call(b.call(G,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(d,X,"$&_")}var se=$i,ge=se.custom,Pe=oe(ge)?ge:null,B={__proto__:null,double:'"',single:"'"},de={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Gr=function u(d,X,ce,fe){var G=X||{};if(ve(G,"quoteStyle")&&!ve(B,G.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ve(G,"maxStringLength")&&(typeof G.maxStringLength=="number"?G.maxStringLength<0&&G.maxStringLength!==1/0:G.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Me=ve(G,"customInspect")?G.customInspect:!0;if(typeof Me!="boolean"&&Me!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ve(G,"indent")&&G.indent!==null&&G.indent!==" "&&!(parseInt(G.indent,10)===G.indent&&G.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ve(G,"numericSeparator")&&typeof G.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var De=G.numericSeparator;if(typeof d>"u")return"undefined";if(d===null)return"null";if(typeof d=="boolean")return d?"true":"false";if(typeof d=="string")return Re(d,G);if(typeof d=="number"){if(d===0)return 1/0/d>0?"0":"-0";var Se=String(d);return De?ue(d,Se):Se}if(typeof d=="bigint"){var Te=String(d)+"n";return De?ue(d,Te):Te}var ht=typeof G.depth>"u"?5:G.depth;if(typeof ce>"u"&&(ce=0),ce>=ht&&ht>0&&typeof d=="object")return _(d)?"[Array]":"[Object]";var Ve=J(G,ce);if(typeof fe>"u")fe=[];else if(le(fe,d)>=0)return"[Circular]";function $e(xe,Ct,Cr){if(Ct&&(fe=$.call(fe),fe.push(Ct)),Cr){var ir={depth:G.depth};return ve(G,"quoteStyle")&&(ir.quoteStyle=G.quoteStyle),u(xe,ir,ce+1,fe)}return u(xe,G,ce+1,fe)}if(typeof d=="function"&&!ie(d)){var ct=Ne(d),Rt=ke(d,$e);return"[Function"+(ct?": "+ct:" (anonymous)")+"]"+(Rt.length>0?" { "+I.call(Rt,", ")+" }":"")}if(oe(d)){var Et=re?b.call(String(d),/^(Symbol\(.*\))_[^)]*$/,"$1"):q.call(d);return typeof d=="object"&&!re?C(Et):Et}if(Oe(d)){for(var tt="<"+E.call(String(d.nodeName)),gt=d.attributes||[],ft=0;ft<gt.length;ft++)tt+=" "+gt[ft].name+"="+m(O(gt[ft].value),"double",G);return tt+=">",d.childNodes&&d.childNodes.length&&(tt+="..."),tt+="</"+E.call(String(d.nodeName))+">",tt}if(_(d)){if(d.length===0)return"[]";var yt=ke(d,$e);return Ve&&!ae(yt)?"["+Ee(yt,Ve)+"]":"[ "+I.call(yt,", ")+" ]"}if(ne(d)){var rt=ke(d,$e);return!("cause"in Error.prototype)&&"cause"in d&&!te.call(d,"cause")?"{ ["+String(d)+"] "+I.call(T.call("[cause]: "+$e(d.cause),rt),", ")+" }":rt.length===0?"["+String(d)+"]":"{ ["+String(d)+"] "+I.call(rt,", ")+" }"}if(typeof d=="object"&&Me){if(Pe&&typeof d[Pe]=="function"&&se)return se(d,{depth:ht-ce});if(Me!=="symbol"&&typeof d.inspect=="function")return d.inspect()}if(we(d)){var kt=[];return n&&n.call(d,function(xe,Ct){kt.push($e(Ct,d,!0)+" => "+$e(xe,d))}),ee("Map",r.call(d),kt,Ve)}if(Ae(d)){var pt=[];return a&&a.call(d,function(xe){pt.push($e(xe,d))}),ee("Set",i.call(d),pt,Ve)}if(je(d))return L("WeakMap");if(He(d))return L("WeakSet");if(qe(d))return L("WeakRef");if(z(d))return C($e(Number(d)));if(K(d))return C($e(D.call(d)));if(Z(d))return C(h.call(d));if(Q(d))return C($e(String(d)));if(typeof window<"u"&&d===window)return"{ [object Window] }";if(typeof globalThis<"u"&&d===globalThis||typeof Ln<"u"&&d===Ln)return"{ [object globalThis] }";if(!W(d)&&!ie(d)){var nt=ke(d,$e),$t=U?U(d)===Object.prototype:d instanceof Object||d.constructor===Object,me=d instanceof Object?"":"null prototype",he=!$t&&Y&&Object(d)===d&&Y in d?x.call(pe(d),8,-1):me?"Object":"",bt=$t||typeof d.constructor!="function"?"":d.constructor.name?d.constructor.name+" ":"",Ke=bt+(he||me?"["+I.call(T.call([],he||[],me||[]),": ")+"] ":"");return nt.length===0?Ke+"{}":Ve?Ke+"{"+Ee(nt,Ve)+"}":Ke+"{ "+I.call(nt,", ")+" }"}return String(d)};function m(u,d,X){var ce=X.quoteStyle||d,fe=B[ce];return fe+u+fe}function O(u){return b.call(String(u),/"/g,"&quot;")}function H(u){return!Y||!(typeof u=="object"&&(Y in u||typeof u[Y]<"u"))}function _(u){return pe(u)==="[object Array]"&&H(u)}function W(u){return pe(u)==="[object Date]"&&H(u)}function ie(u){return pe(u)==="[object RegExp]"&&H(u)}function ne(u){return pe(u)==="[object Error]"&&H(u)}function Q(u){return pe(u)==="[object String]"&&H(u)}function z(u){return pe(u)==="[object Number]"&&H(u)}function Z(u){return pe(u)==="[object Boolean]"&&H(u)}function oe(u){if(re)return u&&typeof u=="object"&&u instanceof Symbol;if(typeof u=="symbol")return!0;if(!u||typeof u!="object"||!q)return!1;try{return q.call(u),!0}catch{}return!1}function K(u){if(!u||typeof u!="object"||!D)return!1;try{return D.call(u),!0}catch{}return!1}var ye=Object.prototype.hasOwnProperty||function(u){return u in this};function ve(u,d){return ye.call(u,d)}function pe(u){return y.call(u)}function Ne(u){if(u.name)return u.name;var d=P.call(k.call(u),/^function\s*([\w$]+)/);return d?d[1]:null}function le(u,d){if(u.indexOf)return u.indexOf(d);for(var X=0,ce=u.length;X<ce;X++)if(u[X]===d)return X;return-1}function we(u){if(!r||!u||typeof u!="object")return!1;try{r.call(u);try{i.call(u)}catch{return!0}return u instanceof Map}catch{}return!1}function je(u){if(!f||!u||typeof u!="object")return!1;try{f.call(u,f);try{c.call(u,c)}catch{return!0}return u instanceof WeakMap}catch{}return!1}function qe(u){if(!v||!u||typeof u!="object")return!1;try{return v.call(u),!0}catch{}return!1}function Ae(u){if(!i||!u||typeof u!="object")return!1;try{i.call(u);try{r.call(u)}catch{return!0}return u instanceof Set}catch{}return!1}function He(u){if(!c||!u||typeof u!="object")return!1;try{c.call(u,c);try{f.call(u,f)}catch{return!0}return u instanceof WeakSet}catch{}return!1}function Oe(u){return!u||typeof u!="object"?!1:typeof HTMLElement<"u"&&u instanceof HTMLElement?!0:typeof u.nodeName=="string"&&typeof u.getAttribute=="function"}function Re(u,d){if(u.length>d.maxStringLength){var X=u.length-d.maxStringLength,ce="... "+X+" more character"+(X>1?"s":"");return Re(x.call(u,0,d.maxStringLength),d)+ce}var fe=de[d.quoteStyle||"single"];fe.lastIndex=0;var G=b.call(b.call(u,fe,"\\$1"),/[\x00-\x1f]/g,w);return m(G,"single",d)}function w(u){var d=u.charCodeAt(0),X={8:"b",9:"t",10:"n",12:"f",13:"r"}[d];return X?"\\"+X:"\\x"+(d<16?"0":"")+R.call(d.toString(16))}function C(u){return"Object("+u+")"}function L(u){return u+" { ? }"}function ee(u,d,X,ce){var fe=ce?Ee(X,ce):I.call(X,", ");return u+" ("+d+") {"+fe+"}"}function ae(u){for(var d=0;d<u.length;d++)if(le(u[d],`
2
2
  `)>=0)return!1;return!0}function J(u,d){var X;if(u.indent===" ")X=" ";else if(typeof u.indent=="number"&&u.indent>0)X=I.call(Array(u.indent+1)," ");else return null;return{base:X,prev:I.call(Array(d+1),X)}}function Ee(u,d){if(u.length===0)return"";var X=`
3
3
  `+d.prev+d.base;return X+I.call(u,","+X)+`
4
4
  `+d.prev}function ke(u,d){var X=_(u),ce=[];if(X){ce.length=u.length;for(var fe=0;fe<u.length;fe++)ce[fe]=ve(u,fe)?d(u[fe],u):""}var G=typeof V=="function"?V(u):[],Me;if(re){Me={};for(var De=0;De<G.length;De++)Me["$"+G[De]]=G[De]}for(var Se in u)ve(u,Se)&&(X&&String(Number(Se))===Se&&Se<u.length||re&&Me["$"+Se]instanceof Symbol||(A.call(/[^\w$]/,Se)?ce.push(d(Se,u)+": "+d(u[Se],u)):ce.push(Se+": "+d(u[Se],u))));if(typeof V=="function")for(var Te=0;Te<G.length;Te++)te.call(u,G[Te])&&ce.push("["+d(G[Te])+"]: "+d(u[G[Te]],u));return ce}return Gr}var Yr,Jn;function Ci(){if(Jn)return Yr;Jn=1;var e=Er(),t=Pt(),r=function(a,l,f){for(var p=a,c;(c=p.next)!=null;p=c)if(c.key===l)return p.next=c.next,f||(c.next=a.next,a.next=c),c},n=function(a,l){if(a){var f=r(a,l);return f&&f.value}},o=function(a,l,f){var p=r(a,l);p?p.value=f:a.next={key:l,next:a.next,value:f}},s=function(a,l){return a?!!r(a,l):!1},i=function(a,l){if(a)return r(a,l,!0)};return Yr=function(){var l,f={assert:function(p){if(!f.has(p))throw new t("Side channel does not contain "+e(p))},delete:function(p){var c=i(l,p);return c&&l&&!l.next&&(l=void 0),!!c},get:function(p){return n(l,p)},has:function(p){return s(l,p)},set:function(p,c){l||(l={next:void 0}),o(l,p,c)}};return f},Yr}var Xr,Qn;function ba(){if(Qn)return Xr;Qn=1;var e=xt(),t=Xe(),r=Er(),n=Pt(),o=e("%Map%",!0),s=t("Map.prototype.get",!0),i=t("Map.prototype.set",!0),a=t("Map.prototype.has",!0),l=t("Map.prototype.delete",!0),f=t("Map.prototype.size",!0);return Xr=!!o&&function(){var c,g={assert:function(v){if(!g.has(v))throw new n("Side channel does not contain "+r(v))},delete:function(v){if(c){var h=l(c,v);return f(c)===0&&(c=void 0),h}return!1},get:function(v){if(c)return s(c,v)},has:function(v){return c?a(c,v):!1},set:function(v,h){c||(c=new o),i(c,v,h)}};return g},Xr}var Zr,eo;function Ii(){if(eo)return Zr;eo=1;var e=xt(),t=Xe(),r=Er(),n=ba(),o=Pt(),s=e("%WeakMap%",!0),i=t("WeakMap.prototype.get",!0),a=t("WeakMap.prototype.set",!0),l=t("WeakMap.prototype.has",!0),f=t("WeakMap.prototype.delete",!0);return Zr=s?function(){var c,g,v={assert:function(h){if(!v.has(h))throw new o("Side channel does not contain "+r(h))},delete:function(h){if(s&&h&&(typeof h=="object"||typeof h=="function")){if(c)return f(c,h)}else if(n&&g)return g.delete(h);return!1},get:function(h){return s&&h&&(typeof h=="object"||typeof h=="function")&&c?i(c,h):g&&g.get(h)},has:function(h){return s&&h&&(typeof h=="object"||typeof h=="function")&&c?l(c,h):!!g&&g.has(h)},set:function(h,y){s&&h&&(typeof h=="object"||typeof h=="function")?(c||(c=new s),a(c,h,y)):n&&(g||(g=n()),g.set(h,y))}};return v}:n,Zr}var Kr,to;function wa(){if(to)return Kr;to=1;var e=Pt(),t=Er(),r=Ci(),n=ba(),o=Ii(),s=o||n||r;return Kr=function(){var a,l={assert:function(f){if(!l.has(f)){var p=f&&Object(f)===f?"the given object key":t(f);throw new e("Side channel does not contain "+p)}},delete:function(f){return!!a&&a.delete(f)},get:function(f){return a&&a.get(f)},has:function(f){return!!a&&a.has(f)},set:function(f,p){a||(a=s()),a.set(f,p)}};return l},Kr}var Jr,ro;function Ai(){if(ro)return Jr;ro=1;var e=Qa(),t=wa()(),r=Pt(),n={assert:function(o,s){if(!o||typeof o!="object"&&typeof o!="function")throw new r("`O` is not an object");if(typeof s!="string")throw new r("`slot` must be a string");if(t.assert(o),!n.has(o,s))throw new r("`"+s+"` is not present on `O`")},get:function(o,s){if(!o||typeof o!="object"&&typeof o!="function")throw new r("`O` is not an object");if(typeof s!="string")throw new r("`slot` must be a string");var i=t.get(o);return i&&i["$"+s]},has:function(o,s){if(!o||typeof o!="object"&&typeof o!="function")throw new r("`O` is not an object");if(typeof s!="string")throw new r("`slot` must be a string");var i=t.get(o);return!!i&&e(i,"$"+s)},set:function(o,s,i){if(!o||typeof o!="object"&&typeof o!="function")throw new r("`O` is not an object");if(typeof s!="string")throw new r("`slot` must be a string");var a=t.get(o);a||(a={},t.set(o,a)),a["$"+s]=i}};return Object.freeze&&Object.freeze(n),Jr=n,Jr}var Qr,no;function Mi(){if(no)return Qr;no=1;var e=Ai(),t=ei(),r=typeof StopIteration=="object"?StopIteration:null;return Qr=function(o){if(!r)throw new t("this environment lacks StopIteration");e.set(o,"[[Done]]",!1);var s={next:function(){var a=e.get(this,"[[Iterator]]"),l=!!e.get(a,"[[Done]]");try{return{done:l,value:l?void 0:a.next()}}catch(f){if(e.set(a,"[[Done]]",!0),f!==r)throw f;return{done:!0,value:void 0}}}};return e.set(s,"[[Iterator]]",o),s},Qr}var en,oo;function Sa(){if(oo)return en;oo=1;var e=Xe(),t=e("String.prototype.valueOf"),r=function(a){try{return t(a),!0}catch{return!1}},n=e("Object.prototype.toString"),o="[object String]",s=xr()();return en=function(a){return typeof a=="string"?!0:!a||typeof a!="object"?!1:s?r(a):n(a)===o},en}var tn,ao;function xa(){if(ao)return tn;ao=1;var e=typeof Map=="function"&&Map.prototype?Map:null,t=typeof Set=="function"&&Set.prototype?Set:null,r;e||(r=function(i){return!1});var n=e?Map.prototype.has:null,o=t?Set.prototype.has:null;return!r&&!n&&(r=function(i){return!1}),tn=r||function(i){if(!i||typeof i!="object")return!1;try{if(n.call(i),o)try{o.call(i)}catch{return!0}return i instanceof e}catch{}return!1},tn}var rn,io;function Pa(){if(io)return rn;io=1;var e=typeof Map=="function"&&Map.prototype?Map:null,t=typeof Set=="function"&&Set.prototype?Set:null,r;t||(r=function(i){return!1});var n=e?Map.prototype.has:null,o=t?Set.prototype.has:null;return!r&&!o&&(r=function(i){return!1}),rn=r||function(i){if(!i||typeof i!="object")return!1;try{if(o.call(i),n)try{n.call(i)}catch{return!0}return i instanceof t}catch{}return!1},rn}var so;function Ti(){if(so)return qt.exports;so=1;var e=sa(),t=Mi();if(ia()()||aa()()){var r=Symbol.iterator;qt.exports=function($){if($!=null&&typeof $[r]<"u")return $[r]();if(e($))return Array.prototype[r].call($)}}else{var n=la(),o=Sa(),s=xt(),i=s("%Map%",!0),a=s("%Set%",!0),l=ha(),f=l("Array.prototype.push"),p=l("String.prototype.charCodeAt"),c=l("String.prototype.slice"),g=function($,M){var D=$.length;if(M+1>=D)return M+1;var V=p($,M);if(V<55296||V>56319)return M+1;var q=p($,M+1);return q<56320||q>57343?M+1:M+2},v=function($){var M=0;return{next:function(){var V=M>=$.length,q;return V||(q=$[M],M+=1),{done:V,value:q}}}},h=function($,M){if(n($)||e($))return v($);if(o($)){var D=0;return{next:function(){var q=g($,D),re=c($,D,q);return D=q,{done:q>$.length,value:re}}}}if(M&&typeof $["_es6-shim iterator_"]<"u")return $["_es6-shim iterator_"]()};if(!i&&!a)qt.exports=function($){if($!=null)return h($,!0)};else{var y=xa(),k=Pa(),P=l("Map.prototype.forEach",!0),x=l("Set.prototype.forEach",!0);if(typeof Ir>"u"||!Ir.versions||!Ir.versions.node)var b=l("Map.prototype.iterator",!0),R=l("Set.prototype.iterator",!0);var E=l("Map.prototype.@@iterator",!0)||l("Map.prototype._es6-shim iterator_",!0),A=l("Set.prototype.@@iterator",!0)||l("Set.prototype._es6-shim iterator_",!0),T=function($){if(y($)){if(b)return t(b($));if(E)return E($);if(P){var M=[];return P($,function(V,q){f(M,[q,V])}),v(M)}}if(k($)){if(R)return t(R($));if(A)return A($);if(x){var D=[];return x($,function(V){f(D,V)}),v(D)}}};qt.exports=function($){return T($)||h($)}}}return qt.exports}var nn,lo;function Oa(){if(lo)return nn;lo=1;var e=function(t){return t!==t};return nn=function(r,n){return r===0&&n===0?1/r===1/n:!!(r===n||e(r)&&e(n))},nn}var on,uo;function Ra(){if(uo)return on;uo=1;var e=Oa();return on=function(){return typeof Object.is=="function"?Object.is:e},on}var an,co;function Bi(){if(co)return an;co=1;var e=Ra(),t=Ot();return an=function(){var n=e();return t(Object,{is:n},{is:function(){return Object.is!==n}}),n},an}var sn,fo;function Li(){if(fo)return sn;fo=1;var e=Ot(),t=nr(),r=Oa(),n=Ra(),o=Bi(),s=t(n(),Object);return e(s,{getPolyfill:n,implementation:r,shim:o}),sn=s,sn}var ln,po;function Ea(){if(po)return ln;po=1;var e=nr(),t=Xe(),r=xt(),n=r("%ArrayBuffer%",!0),o=t("ArrayBuffer.prototype.byteLength",!0),s=t("Object.prototype.toString"),i=!!n&&!o&&new n(0).slice,a=!!i&&e(i);return ln=o||a?function(f){if(!f||typeof f!="object")return!1;try{return o?o(f):a(f,0),!0}catch{return!1}}:n?function(f){return s(f)==="[object ArrayBuffer]"}:function(f){return!1},ln}var un,vo;function ji(){if(vo)return un;vo=1;var e=Xe(),t=e("Date.prototype.getDay"),r=function(a){try{return t(a),!0}catch{return!1}},n=e("Object.prototype.toString"),o="[object Date]",s=xr()();return un=function(a){return typeof a!="object"||a===null?!1:s?r(a):n(a)===o},un}var cn,mo;function qi(){if(mo)return cn;mo=1;var e=Xe(),t=e("SharedArrayBuffer.prototype.byteLength",!0);return cn=t?function(n){if(!n||typeof n!="object")return!1;try{return t(n),!0}catch{return!1}}:function(n){return!1},cn}var fn,ho;function Di(){if(ho)return fn;ho=1;var e=Xe(),t=e("Number.prototype.toString"),r=function(a){try{return t(a),!0}catch{return!1}},n=e("Object.prototype.toString"),o="[object Number]",s=xr()();return fn=function(a){return typeof a=="number"?!0:!a||typeof a!="object"?!1:s?r(a):n(a)===o},fn}var pn,go;function _i(){if(go)return pn;go=1;var e=Xe(),t=e("Boolean.prototype.toString"),r=e("Object.prototype.toString"),n=function(a){try{return t(a),!0}catch{return!1}},o="[object Boolean]",s=xr()();return pn=function(a){return typeof a=="boolean"?!0:a===null||typeof a!="object"?!1:s?n(a):r(a)===o},pn}var sr={exports:{}},yo;function Wi(){if(yo)return sr.exports;yo=1;var e=Xe(),t=e("Object.prototype.toString"),r=ia()(),n=ti();if(r){var o=e("Symbol.prototype.toString"),s=n(/^Symbol\(.*\)$/),i=function(l){return typeof l.valueOf()!="symbol"?!1:s(o(l))};sr.exports=function(l){if(typeof l=="symbol")return!0;if(!l||typeof l!="object"||t(l)!=="[object Symbol]")return!1;try{return i(l)}catch{return!1}}}else sr.exports=function(l){return!1};return sr.exports}var lr={exports:{}},dn,bo;function Ni(){if(bo)return dn;bo=1;var e=typeof BigInt<"u"&&BigInt;return dn=function(){return typeof e=="function"&&typeof BigInt=="function"&&typeof e(42)=="bigint"&&typeof BigInt(42)=="bigint"},dn}var wo;function Hi(){if(wo)return lr.exports;wo=1;var e=Ni()();if(e){var t=BigInt.prototype.valueOf,r=function(o){try{return t.call(o),!0}catch{}return!1};lr.exports=function(o){return o===null||typeof o>"u"||typeof o=="boolean"||typeof o=="string"||typeof o=="number"||typeof o=="symbol"||typeof o=="function"?!1:typeof o=="bigint"?!0:r(o)}}else lr.exports=function(o){return!1};return lr.exports}var vn,So;function Vi(){if(So)return vn;So=1;var e=Sa(),t=Di(),r=_i(),n=Wi(),o=Hi();return vn=function(i){if(i==null||typeof i!="object"&&typeof i!="function")return null;if(e(i))return"String";if(t(i))return"Number";if(r(i))return"Boolean";if(n(i))return"Symbol";if(o(i))return"BigInt"},vn}var mn,xo;function zi(){if(xo)return mn;xo=1;var e=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,t=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,r;e||(r=function(i){return!1});var n=e?e.prototype.has:null,o=t?t.prototype.has:null;return!r&&!n&&(r=function(i){return!1}),mn=r||function(i){if(!i||typeof i!="object")return!1;try{if(n.call(i,n),o)try{o.call(i,o)}catch{return!0}return i instanceof e}catch{}return!1},mn}var ur={exports:{}},Po;function Fi(){if(Po)return ur.exports;Po=1;var e=xt(),t=Xe(),r=e("%WeakSet%",!0),n=t("WeakSet.prototype.has",!0);if(n){var o=t("WeakMap.prototype.has",!0);ur.exports=function(i){if(!i||typeof i!="object")return!1;try{if(n(i,n),o)try{o(i,o)}catch{return!0}return i instanceof r}catch{}return!1}}else ur.exports=function(i){return!1};return ur.exports}var hn,Oo;function Ui(){if(Oo)return hn;Oo=1;var e=xa(),t=Pa(),r=zi(),n=Fi();return hn=function(s){if(s&&typeof s=="object"){if(e(s))return"Map";if(t(s))return"Set";if(r(s))return"WeakMap";if(n(s))return"WeakSet"}return!1},hn}var gn,Ro;function Gi(){if(Ro)return gn;Ro=1;var e=Xe(),t=e("ArrayBuffer.prototype.byteLength",!0),r=Ea();return gn=function(o){return r(o)?t?t(o):o.byteLength:NaN},gn}var yn,Eo;function Yi(){if(Eo)return yn;Eo=1;var e=Si(),t=ha(),r=Ri(),n=xt(),o=Ti(),s=wa(),i=Li(),a=sa(),l=la(),f=Ea(),p=ji(),c=ri(),g=qi(),v=Rn(),h=Vi(),y=Ui(),k=ni(),P=Gi(),x=t("SharedArrayBuffer.prototype.byteLength",!0),b=t("Date.prototype.getTime"),R=Object.getPrototypeOf,E=t("Object.prototype.toString"),A=n("%Set%",!0),T=t("Map.prototype.has",!0),I=t("Map.prototype.get",!0),$=t("Map.prototype.size",!0),M=t("Set.prototype.add",!0),D=t("Set.prototype.delete",!0),V=t("Set.prototype.has",!0),q=t("Set.prototype.size",!0);function re(m,O,H,_){for(var W=o(m),ie;(ie=W.next())&&!ie.done;)if(se(O,ie.value,H,_))return D(m,ie.value),!0;return!1}function Y(m){if(typeof m>"u")return null;if(typeof m!="object")return typeof m=="symbol"?!1:typeof m=="string"||typeof m=="number"?+m==+m:!0}function te(m,O,H,_,W,ie){var ne=Y(H);if(ne!=null)return ne;var Q=I(O,ne),z=e({},W,{strict:!1});return typeof Q>"u"&&!T(O,ne)||!se(_,Q,z,ie)?!1:!T(m,ne)&&se(_,Q,z,ie)}function U(m,O,H){var _=Y(H);return _??(V(O,_)&&!V(m,_))}function ue(m,O,H,_,W,ie){for(var ne=o(m),Q,z;(Q=ne.next())&&!Q.done;)if(z=Q.value,se(H,z,W,ie)&&se(_,I(O,z),W,ie))return D(m,z),!0;return!1}function se(m,O,H,_){var W=H||{};if(W.strict?i(m,O):m===O)return!0;var ie=h(m),ne=h(O);if(ie!==ne)return!1;if(!m||!O||typeof m!="object"&&typeof O!="object")return W.strict?i(m,O):m==O;var Q=_.has(m),z=_.has(O),Z;if(Q&&z){if(_.get(m)===_.get(O))return!0}else Z={};return Q||_.set(m,Z),z||_.set(O,Z),de(m,O,W,_)}function ge(m){return!m||typeof m!="object"||typeof m.length!="number"||typeof m.copy!="function"||typeof m.slice!="function"||m.length>0&&typeof m[0]!="number"?!1:!!(m.constructor&&m.constructor.isBuffer&&m.constructor.isBuffer(m))}function Pe(m,O,H,_){if(q(m)!==q(O))return!1;for(var W=o(m),ie=o(O),ne,Q,z;(ne=W.next())&&!ne.done;)if(ne.value&&typeof ne.value=="object")z||(z=new A),M(z,ne.value);else if(!V(O,ne.value)){if(H.strict||!U(m,O,ne.value))return!1;z||(z=new A),M(z,ne.value)}if(z){for(;(Q=ie.next())&&!Q.done;)if(Q.value&&typeof Q.value=="object"){if(!re(z,Q.value,H.strict,_))return!1}else if(!H.strict&&!V(m,Q.value)&&!re(z,Q.value,H.strict,_))return!1;return q(z)===0}return!0}function B(m,O,H,_){if($(m)!==$(O))return!1;for(var W=o(m),ie=o(O),ne,Q,z,Z,oe,K;(ne=W.next())&&!ne.done;)if(Z=ne.value[0],oe=ne.value[1],Z&&typeof Z=="object")z||(z=new A),M(z,Z);else if(K=I(O,Z),typeof K>"u"&&!T(O,Z)||!se(oe,K,H,_)){if(H.strict||!te(m,O,Z,oe,H,_))return!1;z||(z=new A),M(z,Z)}if(z){for(;(Q=ie.next())&&!Q.done;)if(Z=Q.value[0],K=Q.value[1],Z&&typeof Z=="object"){if(!ue(z,m,Z,K,H,_))return!1}else if(!H.strict&&(!m.has(Z)||!se(I(m,Z),K,H,_))&&!ue(z,m,Z,K,e({},H,{strict:!1}),_))return!1;return q(z)===0}return!0}function de(m,O,H,_){var W,ie;if(typeof m!=typeof O||m==null||O==null||E(m)!==E(O)||a(m)!==a(O))return!1;var ne=l(m),Q=l(O);if(ne!==Q)return!1;var z=m instanceof Error,Z=O instanceof Error;if(z!==Z||(z||Z)&&(m.name!==O.name||m.message!==O.message))return!1;var oe=c(m),K=c(O);if(oe!==K||(oe||K)&&(m.source!==O.source||r(m)!==r(O)))return!1;var ye=p(m),ve=p(O);if(ye!==ve||(ye||ve)&&b(m)!==b(O)||H.strict&&R&&R(m)!==R(O))return!1;var pe=k(m),Ne=k(O);if(pe!==Ne)return!1;if(pe||Ne){if(m.length!==O.length)return!1;for(W=0;W<m.length;W++)if(m[W]!==O[W])return!1;return!0}var le=ge(m),we=ge(O);if(le!==we)return!1;if(le||we){if(m.length!==O.length)return!1;for(W=0;W<m.length;W++)if(m[W]!==O[W])return!1;return!0}var je=f(m),qe=f(O);if(je!==qe)return!1;if(je||qe)return P(m)!==P(O)?!1:typeof Uint8Array=="function"&&se(new Uint8Array(m),new Uint8Array(O),H,_);var Ae=g(m),He=g(O);if(Ae!==He)return!1;if(Ae||He)return x(m)!==x(O)?!1:typeof Uint8Array=="function"&&se(new Uint8Array(m),new Uint8Array(O),H,_);if(typeof m!=typeof O)return!1;var Oe=v(m),Re=v(O);if(Oe.length!==Re.length)return!1;for(Oe.sort(),Re.sort(),W=Oe.length-1;W>=0;W--)if(Oe[W]!=Re[W])return!1;for(W=Oe.length-1;W>=0;W--)if(ie=Oe[W],!se(m[ie],O[ie],H,_))return!1;var w=y(m),C=y(O);return w!==C?!1:w==="Set"||C==="Set"?Pe(m,O,H,_):w==="Map"?B(m,O,H,_):!0}return yn=function(O,H,_){return se(O,H,_,s())},yn}var Xi=Yi();const ko=Ye(Xi);var Dt={},$o;function Zi(){if($o)return Dt;$o=1,Object.defineProperty(Dt,"__esModule",{value:!0});function e(){let t,r;const n=new Promise((o,s)=>{t=i=>{o(i),n.isPending=!1},r=i=>{s(i),n.isPending=!1}}).catch(o=>Promise.reject(o));return n.resolve=t,n.reject=r,"finally"in n||(n.finally=o=>{n.then(o),n.catch(o)}),n.isPending=!0,n}return Dt.future=e,Dt.default=e,Dt}var Ki=Zi();const Ji=Ye(Ki);function Co(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(o){o(r)}),(n=e.get("*"))&&n.slice().map(function(o){o(t,r)})}}}const It=new Map,wn=new Map,En=new Map,yr=new Map;function Io(e){const t=document.getElementById(e);return!t||!t.contentWindow?!1:En.get(t.contentWindow)??!1}function Sn(e){if(e.data&&e.data.type)try{switch(e.data.type){case _e.PreviewMessageType.CONTROLLER_RESPONSE:{const t=e.data.payload,{id:r}=t,n=It.get(r);n&&(It.delete(r),t.ok?n.resolve(t.result):t.ok===!1&&n.reject(new Error(t.error)));break}case _e.PreviewMessageType.EMOTE_EVENT:{const t=e.data.payload,{type:r,payload:n}=t,o=e.source?wn.get(e.source):null;o&&r&&o.emit(r,n);break}case _e.PreviewMessageType.LOAD:{e.source&&(En.set(e.source,!0),(yr.get(e.source)||[]).filter(n=>{var o;return((o=n.data)==null?void 0:o.type)!==_e.PreviewMessageType.LOAD}).forEach(Sn),yr.delete(e.source));break}default:}}catch(t){console.error("Error processing WearablePreview message:",t)}}const Qi=e=>{var r;if(((r=e.data)==null?void 0:r.type)===_e.PreviewMessageType.LOAD){Sn(e);return}if(!(e.source?En.get(e.source):!1)&&e.source){const n=yr.get(e.source)||[];n.push(e),yr.set(e.source,n);return}Sn(e)};typeof window<"u"&&window.addEventListener("message",Qi,!1);let Ao=0;function es(e){return function(r,n,o){const s=document.getElementById(e);if(!s||!s.contentWindow){const v=new Error("iframe not found or not accessible");return Promise.reject(v)}const i=e+"-"+Ao,a=Ji();It.set(i,a);const l=_e.PreviewMessageType.CONTROLLER_REQUEST,f={id:i,namespace:r,method:n,params:o},p=setTimeout(()=>{It.delete(i),a.reject(new Error(`Request timeout for ${n}`))},1e4),c=a.resolve,g=a.reject;a.resolve=v=>{clearTimeout(p),c(v)},a.reject=v=>{clearTimeout(p),g(v)};try{_e.sendMessage(s.contentWindow,l,f)}catch(v){const h=v instanceof Error?v.message:String(v);a.reject(new Error(`Failed to send message: ${h}`)),It.delete(i),clearTimeout(p)}return Ao++,a}}function ka(e){const t=document.getElementById(e);if(!t)throw new Error(`Could not find an iframe with id="${e}"`);It.clear();const r=t.contentWindow?wn.get(t.contentWindow)??Co():Co();t.contentWindow&&wn.set(t.contentWindow,r);const n=es(e);return{scene:{getScreenshot(o,s){return n("scene","getScreenshot",[o,s])},getMetrics(){return n("scene","getMetrics",[])},changeZoom:function(o){return n("scene","changeZoom",[o])},panCamera:function(o){return n("scene","panCamera",[o])},changeCameraPosition:function(o){return n("scene","changeCameraPosition",[o])},cleanup(){return n("scene","cleanup",[])},setUsername:function(o){return n("scene","setUsername",[o])}},emote:{getLength(){return n("emote","getLength",[])},isPlaying(){return n("emote","isPlaying",[])},goTo(o){return n("emote","goTo",[o])},play(){return n("emote","play",[])},pause(){return n("emote","pause",[])},stop(){return n("emote","stop",[])},enableSound(){return n("emote","enableSound",[])},disableSound(){return n("emote","disableSound",[])},hasSound(){return n("emote","hasSound",[])},isSocialEmote(){return n("emote","isSocialEmote",[])},getSocialEmoteAnimations(){return n("emote","getSocialEmoteAnimations",[])},getPlayingSocialEmoteAnimation(){return n("emote","getPlayingSocialEmoteAnimation",[])},emote:null,events:r},physics:{setSpringBonesParams(o,s){return n("physics","setSpringBonesParams",[o,s])}}}}function ts(){let e=null;return(t,r,...n)=>{e&&clearTimeout(e),e=setTimeout(t,r,...n)}}const rs=Ie("iframe")({background:"transparent",border:0,width:"100%",height:"100%"}),ns=ts(),F=(e,t)=>t==null||t===""?"":Array.isArray(t)?t.length>0?t.map(r=>`${e}=${encodeURIComponent(String(r))}`).join("&"):"":`${e}=${encodeURIComponent(String(t))}`,os=e=>{const{dev:t=!1,baseUrl:r=oi.get("WEARABLE_PREVIEW_URL"),unity:n=!1,onLoad:o=()=>{},onError:s=()=>{},onUpdate:i=()=>{},...a}=e,[l,f]=S.useState({isReady:!1,pendingOptions:null}),p=S.useRef(null),c=S.useRef(null),g=S.useMemo(()=>{const{contractAddress:P,tokenId:x,itemId:b,profile:R,urns:E,urls:A,base64s:T,skin:I,hair:$,eyes:M,bodyShape:D,emote:V,camera:q,projection:re,zoom:Y,background:te,offsetX:U,offsetY:ue,offsetZ:se,cameraX:ge,cameraY:Pe,cameraZ:B,wheelZoom:de,wheelPrecision:m,wheelStart:O,disableBackground:H,disableAutoRotate:_,disableAutoCenter:W,disableFace:ie,disableDefaultWearables:ne,disableDefaultEmotes:Q,disableFadeEffect:z,showSceneBoundaries:Z,showThumbnailBoundaries:oe,panning:K,lockAlpha:ye,lockBeta:ve,lockRadius:pe,peerUrl:Ne,nftServerUrl:le,marketplaceServerUrl:we,type:je,unityMode:qe,username:Ae,socialEmote:He}=a,Oe=F("contract",P),Re=F("token",x),w=F("item",b),C=F("profile",R),L=F("urn",E),ee=F("url",A),ae=F("base64",T),J=F("skin",I),Ee=F("hair",$),ke=F("eyes",M),u=F("bodyShape",D),d=F("emote",V),X=F("camera",q),ce=F("projection",re),fe=F("zoom",Y),G=F("background",te),Me=F("offsetX",U),De=F("offsetY",ue),Se=F("offsetZ",se),Te=F("cameraX",ge),ht=F("cameraY",Pe),Ve=F("cameraZ",B),$e=F("wheelZoom",de),ct=F("wheelPrecision",m),Rt=F("wheelStart",O),Et=F("disableBackground",H),tt=F("disableAutoRotate",_),gt=F("disableAutoCenter",W),ft=F("disableFace",ie),yt=F("disableDefaultWearables",ne),rt=F("disableDefaultEmotes",Q),kt=F("disableFadeEffect",z),pt=F("showSceneBoundaries",Z),nt=F("showThumbnailBoundaries",oe),$t=F("peerUrl",Ne),he=F("marketplaceServerUrl",we??le),bt=F("type",je),Ke=F("panning",K),xe=F("lockAlpha",ye),Ct=F("lockBeta",ve),Cr=F("lockRadius",pe),ir=F("env",t?"dev":void 0),Wa=F("unity",n),Na=F("mode",qe),Ha=F("username",Ae),Va=F("socialEmote",He);return r+"?"+[Oe,Re,w,C,L,ee,ae,J,Ee,ke,u,d,X,ce,fe,G,Me,De,Se,Te,ht,Ve,$e,ct,Rt,Et,tt,gt,ft,yt,rt,kt,pt,nt,$t,he,bt,Ke,xe,Ct,Cr,ir,Wa,Na,Ha,Va].filter(za=>!!za).join("&")},[a,r,t,n]),v=S.useMemo(()=>{const P={};for(const x in a)typeof a[x]!="function"&&(P[x]=a[x]);return P},[a]),h=S.useCallback(P=>{var b;const x=c.current;(!x||!ko(P,x))&&((b=p.current)!=null&&b.contentWindow&&_e.sendMessage(p.current.contentWindow,_e.PreviewMessageType.UPDATE,{options:P}),i(P),c.current=P)},[i]),y=S.useCallback(()=>{p.current?typeof window<"u"&&(l.isReady?h(v):ko(l.pendingOptions,v)||f(P=>({...P,pendingOptions:v,url:g}))):console.warn("Could not send update, iframe is not referenced")},[v,l.pendingOptions,l.isReady,h]),k=S.useCallback(P=>{var R;const{origin:x}=P;if(x!==r||!((R=P.data)!=null&&R.type))return;switch(P.data.type){case _e.PreviewMessageType.LOAD:{const E=P.data.payload;o(E==null?void 0:E.renderer);break}case _e.PreviewMessageType.ERROR:{const E=P.data.payload;s(new Error(E.message));break}case _e.PreviewMessageType.READY:{f(E=>E.isReady?E:E.pendingOptions!==null?(h(E.pendingOptions),{...E,isReady:!0,pendingOptions:null}):{...E,isReady:!0});break}}},[r,o,s,h]);return S.useEffect(()=>(window.addEventListener("message",k,!1),()=>{window.removeEventListener("message",k,!1)}),[k]),S.useEffect(()=>{e.blob&&y()},[e.blob,y]),S.useEffect(()=>{ns(y,500)},[y]),e.tokenId&&e.itemId&&console.warn("You should NOT use `tokenId` and `itemId` props simultaneously"),j.jsx(rs,{id:e.id,src:g,ref:p,allow:"autoplay"})};os.createController=ka;var Je=Ya(),_t={};function as(e){return S.Children.toArray(e).filter(t=>S.isValidElement(t))}const is={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};var Mo;function ss(){if(Mo)return _t;Mo=1;var e=lt();Object.defineProperty(_t,"__esModule",{value:!0}),_t.default=void 0;var t=e(ut()),r=st();return _t.default=(0,t.default)((0,r.jsx)("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause"),_t}var ls=ss();const us=Ye(ls);var Wt={},To;function cs(){if(To)return Wt;To=1;var e=lt();Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.default=void 0;var t=e(ut()),r=st();return Wt.default=(0,t.default)((0,r.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow"),Wt}var fs=cs();const ps=Ye(fs);var Nt={},Bo;function ds(){if(Bo)return Nt;Bo=1;var e=lt();Object.defineProperty(Nt,"__esModule",{value:!0}),Nt.default=void 0;var t=e(ut()),r=st();return Nt.default=(0,t.default)((0,r.jsx)("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63m2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71M4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9zM12 4 9.91 6.09 12 8.18z"}),"VolumeOff"),Nt}var vs=ds();const ms=Ye(vs);var Ht={},Lo;function hs(){if(Lo)return Ht;Lo=1;var e=lt();Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.default=void 0;var t=e(ut()),r=st();return Ht.default=(0,t.default)((0,r.jsx)("path",{d:"M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77"}),"VolumeUp"),Ht}var gs=hs();const ys=Ye(gs),kr=(e,t)=>{const r=S.useRef(null),[n,o]=S.useState(!1);return S.useEffect(()=>{const s=t??ka(e);if(r.current=s,Io(e)){o(!0);return}const i=document.getElementById(e);if(!i){console.error(`Could not find iframe with id="${e}"`);return}if(!i.contentWindow){console.error(`Iframe contentWindow is not accessible for id="${e}"`);return}const l=f=>{var p;((p=f.data)==null?void 0:p.type)===_e.PreviewMessageType.LOAD&&Io(e)&&o(!0)};return window.addEventListener("message",l),()=>{window.removeEventListener("message",l),o(!1),r.current=null}},[e,t]),{controllerRef:r,isReady:n}};function bs(e,t,r=(n,o)=>n===o){return e.length===t.length&&e.every((n,o)=>r(n,t[o]))}const ws={disableDefaultClasses:!1},Ss=S.createContext(ws);function xs(e){const{disableDefaultClasses:t}=S.useContext(Ss);return r=>t?"":e(r)}const $a="base";function Ps(e){return`${$a}--${e}`}function Os(e,t){return`${$a}-${e}-${t}`}function Rs(e,t){const r=ai[t];return r?Ps(r):Os(e,t)}function jo(e){return e.substring(2).toLowerCase()}function Es(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function ks(e){const{children:t,disableReactTree:r=!1,mouseEvent:n="onClick",onClickAway:o,touchEvent:s="onTouchEnd"}=e,i=S.useRef(!1),a=S.useRef(null),l=S.useRef(!1),f=S.useRef(!1);S.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const p=Qt(t.ref,a),c=mr(h=>{const y=f.current;f.current=!1;const k=at(a.current);if(!l.current||!a.current||"clientX"in h&&Es(h,k))return;if(i.current){i.current=!1;return}let P;h.composedPath?P=h.composedPath().indexOf(a.current)>-1:P=!k.documentElement.contains(h.target)||a.current.contains(h.target),!P&&(r||!y)&&o(h)}),g=h=>y=>{f.current=!0;const k=t.props[h];k&&k(y)},v={ref:p};return s!==!1&&(v[s]=g(s)),S.useEffect(()=>{if(s!==!1){const h=jo(s),y=at(a.current),k=()=>{i.current=!0};return y.addEventListener(h,c),y.addEventListener("touchmove",k),()=>{y.removeEventListener(h,c),y.removeEventListener("touchmove",k)}}},[c,s]),n!==!1&&(v[n]=g(n)),S.useEffect(()=>{if(n!==!1){const h=jo(n),y=at(a.current);return y.addEventListener(h,c),()=>{y.removeEventListener(h,c)}}},[c,n]),j.jsx(S.Fragment,{children:S.cloneElement(t,v)})}var Be="top",Ue="bottom",Ge="right",Le="left",kn="auto",or=[Be,Ue,Ge,Le],At="start",er="end",$s="clippingParents",Ca="viewport",Vt="popper",Cs="reference",qo=or.reduce(function(e,t){return e.concat([t+"-"+At,t+"-"+er])},[]),Ia=[].concat(or,[kn]).reduce(function(e,t){return e.concat([t,t+"-"+At,t+"-"+er])},[]),Is="beforeRead",As="read",Ms="afterRead",Ts="beforeMain",Bs="main",Ls="afterMain",js="beforeWrite",qs="write",Ds="afterWrite",_s=[Is,As,Ms,Ts,Bs,Ls,js,qs,Ds];function et(e){return e?(e.nodeName||"").toLowerCase():null}function We(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function St(e){var t=We(e).Element;return e instanceof t||e instanceof Element}function Fe(e){var t=We(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function $n(e){if(typeof ShadowRoot>"u")return!1;var t=We(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Ws(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},s=t.elements[r];!Fe(s)||!et(s)||(Object.assign(s.style,n),Object.keys(o).forEach(function(i){var a=o[i];a===!1?s.removeAttribute(i):s.setAttribute(i,a===!0?"":a)}))})}function Ns(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],s=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),a=i.reduce(function(l,f){return l[f]="",l},{});!Fe(o)||!et(o)||(Object.assign(o.style,a),Object.keys(s).forEach(function(l){o.removeAttribute(l)}))})}}const Hs={name:"applyStyles",enabled:!0,phase:"write",fn:Ws,effect:Ns,requires:["computeStyles"]};function Qe(e){return e.split("-")[0]}var wt=Math.max,br=Math.min,Mt=Math.round;function xn(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Aa(){return!/^((?!chrome|android).)*safari/i.test(xn())}function Tt(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,s=1;t&&Fe(e)&&(o=e.offsetWidth>0&&Mt(n.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Mt(n.height)/e.offsetHeight||1);var i=St(e)?We(e):window,a=i.visualViewport,l=!Aa()&&r,f=(n.left+(l&&a?a.offsetLeft:0))/o,p=(n.top+(l&&a?a.offsetTop:0))/s,c=n.width/o,g=n.height/s;return{width:c,height:g,top:p,right:f+c,bottom:p+g,left:f,x:f,y:p}}function Cn(e){var t=Tt(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Ma(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&$n(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function it(e){return We(e).getComputedStyle(e)}function Vs(e){return["table","td","th"].indexOf(et(e))>=0}function mt(e){return((St(e)?e.ownerDocument:e.document)||window.document).documentElement}function $r(e){return et(e)==="html"?e:e.assignedSlot||e.parentNode||($n(e)?e.host:null)||mt(e)}function Do(e){return!Fe(e)||it(e).position==="fixed"?null:e.offsetParent}function zs(e){var t=/firefox/i.test(xn()),r=/Trident/i.test(xn());if(r&&Fe(e)){var n=it(e);if(n.position==="fixed")return null}var o=$r(e);for($n(o)&&(o=o.host);Fe(o)&&["html","body"].indexOf(et(o))<0;){var s=it(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function ar(e){for(var t=We(e),r=Do(e);r&&Vs(r)&&it(r).position==="static";)r=Do(r);return r&&(et(r)==="html"||et(r)==="body"&&it(r).position==="static")?t:r||zs(e)||t}function In(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Zt(e,t,r){return wt(e,br(t,r))}function Fs(e,t,r){var n=Zt(e,t,r);return n>r?r:n}function Ta(){return{top:0,right:0,bottom:0,left:0}}function Ba(e){return Object.assign({},Ta(),e)}function La(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Us=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Ba(typeof t!="number"?t:La(t,or))};function Gs(e){var t,r=e.state,n=e.name,o=e.options,s=r.elements.arrow,i=r.modifiersData.popperOffsets,a=Qe(r.placement),l=In(a),f=[Le,Ge].indexOf(a)>=0,p=f?"height":"width";if(!(!s||!i)){var c=Us(o.padding,r),g=Cn(s),v=l==="y"?Be:Le,h=l==="y"?Ue:Ge,y=r.rects.reference[p]+r.rects.reference[l]-i[l]-r.rects.popper[p],k=i[l]-r.rects.reference[l],P=ar(s),x=P?l==="y"?P.clientHeight||0:P.clientWidth||0:0,b=y/2-k/2,R=c[v],E=x-g[p]-c[h],A=x/2-g[p]/2+b,T=Zt(R,A,E),I=l;r.modifiersData[n]=(t={},t[I]=T,t.centerOffset=T-A,t)}}function Ys(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Ma(t.elements.popper,o)&&(t.elements.arrow=o))}const Xs={name:"arrow",enabled:!0,phase:"main",fn:Gs,effect:Ys,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Bt(e){return e.split("-")[1]}var Zs={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ks(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Mt(r*o)/o||0,y:Mt(n*o)/o||0}}function _o(e){var t,r=e.popper,n=e.popperRect,o=e.placement,s=e.variation,i=e.offsets,a=e.position,l=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,c=e.isFixed,g=i.x,v=g===void 0?0:g,h=i.y,y=h===void 0?0:h,k=typeof p=="function"?p({x:v,y}):{x:v,y};v=k.x,y=k.y;var P=i.hasOwnProperty("x"),x=i.hasOwnProperty("y"),b=Le,R=Be,E=window;if(f){var A=ar(r),T="clientHeight",I="clientWidth";if(A===We(r)&&(A=mt(r),it(A).position!=="static"&&a==="absolute"&&(T="scrollHeight",I="scrollWidth")),A=A,o===Be||(o===Le||o===Ge)&&s===er){R=Ue;var $=c&&A===E&&E.visualViewport?E.visualViewport.height:A[T];y-=$-n.height,y*=l?1:-1}if(o===Le||(o===Be||o===Ue)&&s===er){b=Ge;var M=c&&A===E&&E.visualViewport?E.visualViewport.width:A[I];v-=M-n.width,v*=l?1:-1}}var D=Object.assign({position:a},f&&Zs),V=p===!0?Ks({x:v,y},We(r)):{x:v,y};if(v=V.x,y=V.y,l){var q;return Object.assign({},D,(q={},q[R]=x?"0":"",q[b]=P?"0":"",q.transform=(E.devicePixelRatio||1)<=1?"translate("+v+"px, "+y+"px)":"translate3d("+v+"px, "+y+"px, 0)",q))}return Object.assign({},D,(t={},t[R]=x?y+"px":"",t[b]=P?v+"px":"",t.transform="",t))}function Js(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,s=r.adaptive,i=s===void 0?!0:s,a=r.roundOffsets,l=a===void 0?!0:a,f={placement:Qe(t.placement),variation:Bt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,_o(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,_o(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Qs={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Js,data:{}};var cr={passive:!0};function el(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,s=o===void 0?!0:o,i=n.resize,a=i===void 0?!0:i,l=We(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&f.forEach(function(p){p.addEventListener("scroll",r.update,cr)}),a&&l.addEventListener("resize",r.update,cr),function(){s&&f.forEach(function(p){p.removeEventListener("scroll",r.update,cr)}),a&&l.removeEventListener("resize",r.update,cr)}}const tl={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:el,data:{}};var rl={left:"right",right:"left",bottom:"top",top:"bottom"};function gr(e){return e.replace(/left|right|bottom|top/g,function(t){return rl[t]})}var nl={start:"end",end:"start"};function Wo(e){return e.replace(/start|end/g,function(t){return nl[t]})}function An(e){var t=We(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Mn(e){return Tt(mt(e)).left+An(e).scrollLeft}function ol(e,t){var r=We(e),n=mt(e),o=r.visualViewport,s=n.clientWidth,i=n.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;var f=Aa();(f||!f&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a+Mn(e),y:l}}function al(e){var t,r=mt(e),n=An(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=wt(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=wt(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+Mn(e),l=-n.scrollTop;return it(o||r).direction==="rtl"&&(a+=wt(r.clientWidth,o?o.clientWidth:0)-s),{width:s,height:i,x:a,y:l}}function Tn(e){var t=it(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function ja(e){return["html","body","#document"].indexOf(et(e))>=0?e.ownerDocument.body:Fe(e)&&Tn(e)?e:ja($r(e))}function Kt(e,t){var r;t===void 0&&(t=[]);var n=ja(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),s=We(n),i=o?[s].concat(s.visualViewport||[],Tn(n)?n:[]):n,a=t.concat(i);return o?a:a.concat(Kt($r(i)))}function Pn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function il(e,t){var r=Tt(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function No(e,t,r){return t===Ca?Pn(ol(e,r)):St(t)?il(t,r):Pn(al(mt(e)))}function sl(e){var t=Kt($r(e)),r=["absolute","fixed"].indexOf(it(e).position)>=0,n=r&&Fe(e)?ar(e):e;return St(n)?t.filter(function(o){return St(o)&&Ma(o,n)&&et(o)!=="body"}):[]}function ll(e,t,r,n){var o=t==="clippingParents"?sl(e):[].concat(t),s=[].concat(o,[r]),i=s[0],a=s.reduce(function(l,f){var p=No(e,f,n);return l.top=wt(p.top,l.top),l.right=br(p.right,l.right),l.bottom=br(p.bottom,l.bottom),l.left=wt(p.left,l.left),l},No(e,i,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function qa(e){var t=e.reference,r=e.element,n=e.placement,o=n?Qe(n):null,s=n?Bt(n):null,i=t.x+t.width/2-r.width/2,a=t.y+t.height/2-r.height/2,l;switch(o){case Be:l={x:i,y:t.y-r.height};break;case Ue:l={x:i,y:t.y+t.height};break;case Ge:l={x:t.x+t.width,y:a};break;case Le:l={x:t.x-r.width,y:a};break;default:l={x:t.x,y:t.y}}var f=o?In(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(s){case At:l[f]=l[f]-(t[p]/2-r[p]/2);break;case er:l[f]=l[f]+(t[p]/2-r[p]/2);break}}return l}function tr(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,s=r.strategy,i=s===void 0?e.strategy:s,a=r.boundary,l=a===void 0?$s:a,f=r.rootBoundary,p=f===void 0?Ca:f,c=r.elementContext,g=c===void 0?Vt:c,v=r.altBoundary,h=v===void 0?!1:v,y=r.padding,k=y===void 0?0:y,P=Ba(typeof k!="number"?k:La(k,or)),x=g===Vt?Cs:Vt,b=e.rects.popper,R=e.elements[h?x:g],E=ll(St(R)?R:R.contextElement||mt(e.elements.popper),l,p,i),A=Tt(e.elements.reference),T=qa({reference:A,element:b,placement:o}),I=Pn(Object.assign({},b,T)),$=g===Vt?I:A,M={top:E.top-$.top+P.top,bottom:$.bottom-E.bottom+P.bottom,left:E.left-$.left+P.left,right:$.right-E.right+P.right},D=e.modifiersData.offset;if(g===Vt&&D){var V=D[o];Object.keys(M).forEach(function(q){var re=[Ge,Ue].indexOf(q)>=0?1:-1,Y=[Be,Ue].indexOf(q)>=0?"y":"x";M[q]+=V[Y]*re})}return M}function ul(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,s=r.rootBoundary,i=r.padding,a=r.flipVariations,l=r.allowedAutoPlacements,f=l===void 0?Ia:l,p=Bt(n),c=p?a?qo:qo.filter(function(h){return Bt(h)===p}):or,g=c.filter(function(h){return f.indexOf(h)>=0});g.length===0&&(g=c);var v=g.reduce(function(h,y){return h[y]=tr(e,{placement:y,boundary:o,rootBoundary:s,padding:i})[Qe(y)],h},{});return Object.keys(v).sort(function(h,y){return v[h]-v[y]})}function cl(e){if(Qe(e)===kn)return[];var t=gr(e);return[Wo(e),t,Wo(t)]}function fl(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,s=o===void 0?!0:o,i=r.altAxis,a=i===void 0?!0:i,l=r.fallbackPlacements,f=r.padding,p=r.boundary,c=r.rootBoundary,g=r.altBoundary,v=r.flipVariations,h=v===void 0?!0:v,y=r.allowedAutoPlacements,k=t.options.placement,P=Qe(k),x=P===k,b=l||(x||!h?[gr(k)]:cl(k)),R=[k].concat(b).reduce(function(m,O){return m.concat(Qe(O)===kn?ul(t,{placement:O,boundary:p,rootBoundary:c,padding:f,flipVariations:h,allowedAutoPlacements:y}):O)},[]),E=t.rects.reference,A=t.rects.popper,T=new Map,I=!0,$=R[0],M=0;M<R.length;M++){var D=R[M],V=Qe(D),q=Bt(D)===At,re=[Be,Ue].indexOf(V)>=0,Y=re?"width":"height",te=tr(t,{placement:D,boundary:p,rootBoundary:c,altBoundary:g,padding:f}),U=re?q?Ge:Le:q?Ue:Be;E[Y]>A[Y]&&(U=gr(U));var ue=gr(U),se=[];if(s&&se.push(te[V]<=0),a&&se.push(te[U]<=0,te[ue]<=0),se.every(function(m){return m})){$=D,I=!1;break}T.set(D,se)}if(I)for(var ge=h?3:1,Pe=function(O){var H=R.find(function(_){var W=T.get(_);if(W)return W.slice(0,O).every(function(ie){return ie})});if(H)return $=H,"break"},B=ge;B>0;B--){var de=Pe(B);if(de==="break")break}t.placement!==$&&(t.modifiersData[n]._skip=!0,t.placement=$,t.reset=!0)}}const pl={name:"flip",enabled:!0,phase:"main",fn:fl,requiresIfExists:["offset"],data:{_skip:!1}};function Ho(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Vo(e){return[Be,Ge,Ue,Le].some(function(t){return e[t]>=0})}function dl(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,i=tr(t,{elementContext:"reference"}),a=tr(t,{altBoundary:!0}),l=Ho(i,n),f=Ho(a,o,s),p=Vo(l),c=Vo(f);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":c})}const vl={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:dl};function ml(e,t,r){var n=Qe(e),o=[Le,Be].indexOf(n)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=s[0],a=s[1];return i=i||0,a=(a||0)*o,[Le,Ge].indexOf(n)>=0?{x:a,y:i}:{x:i,y:a}}function hl(e){var t=e.state,r=e.options,n=e.name,o=r.offset,s=o===void 0?[0,0]:o,i=Ia.reduce(function(p,c){return p[c]=ml(c,t.rects,s),p},{}),a=i[t.placement],l=a.x,f=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=f),t.modifiersData[n]=i}const gl={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:hl};function yl(e){var t=e.state,r=e.name;t.modifiersData[r]=qa({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const bl={name:"popperOffsets",enabled:!0,phase:"read",fn:yl,data:{}};function wl(e){return e==="x"?"y":"x"}function Sl(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,s=o===void 0?!0:o,i=r.altAxis,a=i===void 0?!1:i,l=r.boundary,f=r.rootBoundary,p=r.altBoundary,c=r.padding,g=r.tether,v=g===void 0?!0:g,h=r.tetherOffset,y=h===void 0?0:h,k=tr(t,{boundary:l,rootBoundary:f,padding:c,altBoundary:p}),P=Qe(t.placement),x=Bt(t.placement),b=!x,R=In(P),E=wl(R),A=t.modifiersData.popperOffsets,T=t.rects.reference,I=t.rects.popper,$=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,M=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(A){if(s){var q,re=R==="y"?Be:Le,Y=R==="y"?Ue:Ge,te=R==="y"?"height":"width",U=A[R],ue=U+k[re],se=U-k[Y],ge=v?-I[te]/2:0,Pe=x===At?T[te]:I[te],B=x===At?-I[te]:-T[te],de=t.elements.arrow,m=v&&de?Cn(de):{width:0,height:0},O=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ta(),H=O[re],_=O[Y],W=Zt(0,T[te],m[te]),ie=b?T[te]/2-ge-W-H-M.mainAxis:Pe-W-H-M.mainAxis,ne=b?-T[te]/2+ge+W+_+M.mainAxis:B+W+_+M.mainAxis,Q=t.elements.arrow&&ar(t.elements.arrow),z=Q?R==="y"?Q.clientTop||0:Q.clientLeft||0:0,Z=(q=D==null?void 0:D[R])!=null?q:0,oe=U+ie-Z-z,K=U+ne-Z,ye=Zt(v?br(ue,oe):ue,U,v?wt(se,K):se);A[R]=ye,V[R]=ye-U}if(a){var ve,pe=R==="x"?Be:Le,Ne=R==="x"?Ue:Ge,le=A[E],we=E==="y"?"height":"width",je=le+k[pe],qe=le-k[Ne],Ae=[Be,Le].indexOf(P)!==-1,He=(ve=D==null?void 0:D[E])!=null?ve:0,Oe=Ae?je:le-T[we]-I[we]-He+M.altAxis,Re=Ae?le+T[we]+I[we]-He-M.altAxis:qe,w=v&&Ae?Fs(Oe,le,Re):Zt(v?Oe:je,le,v?Re:qe);A[E]=w,V[E]=w-le}t.modifiersData[n]=V}}const xl={name:"preventOverflow",enabled:!0,phase:"main",fn:Sl,requiresIfExists:["offset"]};function Pl(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Ol(e){return e===We(e)||!Fe(e)?An(e):Pl(e)}function Rl(e){var t=e.getBoundingClientRect(),r=Mt(t.width)/e.offsetWidth||1,n=Mt(t.height)/e.offsetHeight||1;return r!==1||n!==1}function El(e,t,r){r===void 0&&(r=!1);var n=Fe(t),o=Fe(t)&&Rl(t),s=mt(t),i=Tt(e,o,r),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((et(t)!=="body"||Tn(s))&&(a=Ol(t)),Fe(t)?(l=Tt(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=Mn(s))),{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}function kl(e){var t=new Map,r=new Set,n=[];e.forEach(function(s){t.set(s.name,s)});function o(s){r.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(a){if(!r.has(a)){var l=t.get(a);l&&o(l)}}),n.push(s)}return e.forEach(function(s){r.has(s.name)||o(s)}),n}function $l(e){var t=kl(e);return _s.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function Cl(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Il(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var zo={placement:"bottom",modifiers:[],strategy:"absolute"};function Fo(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Al(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,s=o===void 0?zo:o;return function(a,l,f){f===void 0&&(f=s);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},zo,s),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},c=[],g=!1,v={state:p,setOptions:function(P){var x=typeof P=="function"?P(p.options):P;y(),p.options=Object.assign({},s,p.options,x),p.scrollParents={reference:St(a)?Kt(a):a.contextElement?Kt(a.contextElement):[],popper:Kt(l)};var b=$l(Il([].concat(n,p.options.modifiers)));return p.orderedModifiers=b.filter(function(R){return R.enabled}),h(),v.update()},forceUpdate:function(){if(!g){var P=p.elements,x=P.reference,b=P.popper;if(Fo(x,b)){p.rects={reference:El(x,ar(b),p.options.strategy==="fixed"),popper:Cn(b)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(M){return p.modifiersData[M.name]=Object.assign({},M.data)});for(var R=0;R<p.orderedModifiers.length;R++){if(p.reset===!0){p.reset=!1,R=-1;continue}var E=p.orderedModifiers[R],A=E.fn,T=E.options,I=T===void 0?{}:T,$=E.name;typeof A=="function"&&(p=A({state:p,options:I,name:$,instance:v})||p)}}}},update:Cl(function(){return new Promise(function(k){v.forceUpdate(),k(p)})}),destroy:function(){y(),g=!0}};if(!Fo(a,l))return v;v.setOptions(f).then(function(k){!g&&f.onFirstUpdate&&f.onFirstUpdate(k)});function h(){p.orderedModifiers.forEach(function(k){var P=k.name,x=k.options,b=x===void 0?{}:x,R=k.effect;if(typeof R=="function"){var E=R({state:p,name:P,instance:v,options:b}),A=function(){};c.push(E||A)}})}function y(){c.forEach(function(k){return k()}),c=[]}return v}}var Ml=[tl,bl,Qs,Hs,gl,pl,xl,Xs,vl],Tl=Al({defaultModifiers:Ml});const Bl="Popper";function Ll(e){return Rs(Bl,e)}const jl=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],ql=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Dl(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function On(e){return typeof e=="function"?e():e}function _l(e){return e.nodeType!==void 0}const Wl=()=>Pr({root:["root"]},xs(Ll)),Nl={},Hl=S.forwardRef(function(t,r){var n;const{anchorEl:o,children:s,direction:i,disablePortal:a,modifiers:l,open:f,placement:p,popperOptions:c,popperRef:g,slotProps:v={},slots:h={},TransitionProps:y}=t,k=Lt(t,jl),P=S.useRef(null),x=Qt(P,r),b=S.useRef(null),R=Qt(b,g),E=S.useRef(R);bn(()=>{E.current=R},[R]),S.useImperativeHandle(g,()=>b.current,[]);const A=Dl(p,i),[T,I]=S.useState(A),[$,M]=S.useState(On(o));S.useEffect(()=>{b.current&&b.current.forceUpdate()}),S.useEffect(()=>{o&&M(On(o))},[o]),bn(()=>{if(!$||!f)return;const Y=ue=>{I(ue.placement)};let te=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:ue})=>{Y(ue)}}];l!=null&&(te=te.concat(l)),c&&c.modifiers!=null&&(te=te.concat(c.modifiers));const U=Tl($,P.current,N({placement:A},c,{modifiers:te}));return E.current(U),()=>{U.destroy(),E.current(null)}},[$,a,l,f,c,A]);const D={placement:T};y!==null&&(D.TransitionProps=y);const V=Wl(),q=(n=h.root)!=null?n:"div",re=ot({elementType:q,externalSlotProps:v.root,externalForwardedProps:k,additionalProps:{role:"tooltip",ref:x},ownerState:t,className:V.root});return j.jsx(q,N({},re,{children:typeof s=="function"?s(D):s}))}),Vl=S.forwardRef(function(t,r){const{anchorEl:n,children:o,container:s,direction:i="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:f,open:p,placement:c="bottom",popperOptions:g=Nl,popperRef:v,style:h,transition:y=!1,slotProps:k={},slots:P={}}=t,x=Lt(t,ql),[b,R]=S.useState(!0),E=()=>{R(!1)},A=()=>{R(!0)};if(!l&&!p&&(!y||b))return null;let T;if(s)T=s;else if(n){const M=On(n);T=M&&_l(M)?at(M).body:at(null).body}const I=!p&&l&&(!y||b)?"none":void 0,$=y?{in:p,onEnter:E,onExited:A}:void 0;return j.jsx(si,{disablePortal:a,container:T,children:j.jsx(Hl,N({anchorEl:n,direction:i,disablePortal:a,modifiers:f,ref:r,open:y?!b:p,placement:c,popperOptions:g,popperRef:v,slotProps:k,slots:P},x,{style:N({position:"fixed",top:0,left:0,display:I},h),TransitionProps:$,children:o}))})}),zl=2;function Da(e,t){return e-t}function Uo(e,t){var r;const{index:n}=(r=e.reduce((o,s,i)=>{const a=Math.abs(t-s);return o===null||a<o.distance||a===o.distance?{distance:a,index:i}:o},null))!=null?r:{};return n}function fr(e,t){if(t.current!==void 0&&e.changedTouches){const r=e;for(let n=0;n<r.changedTouches.length;n+=1){const o=r.changedTouches[n];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function wr(e,t,r){return(e-t)*100/(r-t)}function Fl(e,t,r){return(r-t)*e+t}function Ul(e){if(Math.abs(e)<1){const r=e.toExponential().split("e-"),n=r[0].split(".")[1];return(n?n.length:0)+parseInt(r[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function Gl(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(Ul(t)))}function Go({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(Da)}function pr({sliderRef:e,activeIndex:t,setActive:r}){var n,o;const s=at(e.current);if(!((n=e.current)!=null&&n.contains(s.activeElement))||Number(s==null||(o=s.activeElement)==null?void 0:o.getAttribute("data-index"))!==t){var i;(i=e.current)==null||i.querySelector(`[type="range"][data-index="${t}"]`).focus()}r&&r(t)}function dr(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?bs(e,t):!1}const Yl={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},Xl=e=>e;let vr;function Yo(){return vr===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?vr=CSS.supports("touch-action","none"):vr=!0),vr}function Zl(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:s=!1,marks:i=!1,max:a=100,min:l=0,name:f,onChange:p,onChangeCommitted:c,orientation:g="horizontal",rootRef:v,scale:h=Xl,step:y=1,shiftStep:k=10,tabIndex:P,value:x}=e,b=S.useRef(),[R,E]=S.useState(-1),[A,T]=S.useState(-1),[I,$]=S.useState(!1),M=S.useRef(0),[D,V]=li({controlled:x,default:r??l,name:"Slider"}),q=p&&((w,C,L)=>{const ee=w.nativeEvent||w,ae=new ee.constructor(ee.type,ee);Object.defineProperty(ae,"target",{writable:!0,value:{value:C,name:f}}),p(ae,C,L)}),re=Array.isArray(D);let Y=re?D.slice().sort(Da):[D];Y=Y.map(w=>w==null?l:jt(w,l,a));const te=i===!0&&y!==null?[...Array(Math.floor((a-l)/y)+1)].map((w,C)=>({value:l+y*C})):i||[],U=te.map(w=>w.value),{isFocusVisibleRef:ue,onBlur:se,onFocus:ge,ref:Pe}=ui(),[B,de]=S.useState(-1),m=S.useRef(),O=Qt(Pe,m),H=Qt(v,O),_=w=>C=>{var L;const ee=Number(C.currentTarget.getAttribute("data-index"));ge(C),ue.current===!0&&de(ee),T(ee),w==null||(L=w.onFocus)==null||L.call(w,C)},W=w=>C=>{var L;se(C),ue.current===!1&&de(-1),T(-1),w==null||(L=w.onBlur)==null||L.call(w,C)},ie=(w,C)=>{const L=Number(w.currentTarget.getAttribute("data-index")),ee=Y[L],ae=U.indexOf(ee);let J=C;if(te&&y==null){const Ee=U[U.length-1];J>Ee?J=Ee:J<U[0]?J=U[0]:J=J<ee?U[ae-1]:U[ae+1]}if(J=jt(J,l,a),re){o&&(J=jt(J,Y[L-1]||-1/0,Y[L+1]||1/0));const Ee=J;J=Go({values:Y,newValue:J,index:L});let ke=L;o||(ke=J.indexOf(Ee)),pr({sliderRef:m,activeIndex:ke})}V(J),de(L),q&&!dr(J,D)&&q(w,J,L),c&&c(w,J)},ne=w=>C=>{var L;if(y!==null){const ee=Number(C.currentTarget.getAttribute("data-index")),ae=Y[ee];let J=null;(C.key==="ArrowLeft"||C.key==="ArrowDown")&&C.shiftKey||C.key==="PageDown"?J=Math.max(ae-k,l):((C.key==="ArrowRight"||C.key==="ArrowUp")&&C.shiftKey||C.key==="PageUp")&&(J=Math.min(ae+k,a)),J!==null&&(ie(C,J),C.preventDefault())}w==null||(L=w.onKeyDown)==null||L.call(w,C)};bn(()=>{if(n&&m.current.contains(document.activeElement)){var w;(w=document.activeElement)==null||w.blur()}},[n]),n&&R!==-1&&E(-1),n&&B!==-1&&de(-1);const Q=w=>C=>{var L;(L=w.onChange)==null||L.call(w,C),ie(C,C.target.valueAsNumber)},z=S.useRef();let Z=g;s&&g==="horizontal"&&(Z+="-reverse");const oe=({finger:w,move:C=!1})=>{const{current:L}=m,{width:ee,height:ae,bottom:J,left:Ee}=L.getBoundingClientRect();let ke;Z.indexOf("vertical")===0?ke=(J-w.y)/ae:ke=(w.x-Ee)/ee,Z.indexOf("-reverse")!==-1&&(ke=1-ke);let u;if(u=Fl(ke,l,a),y)u=Gl(u,y,l);else{const X=Uo(U,u);u=U[X]}u=jt(u,l,a);let d=0;if(re){C?d=z.current:d=Uo(Y,u),o&&(u=jt(u,Y[d-1]||-1/0,Y[d+1]||1/0));const X=u;u=Go({values:Y,newValue:u,index:d}),o&&C||(d=u.indexOf(X),z.current=d)}return{newValue:u,activeIndex:d}},K=mr(w=>{const C=fr(w,b);if(!C)return;if(M.current+=1,w.type==="mousemove"&&w.buttons===0){ye(w);return}const{newValue:L,activeIndex:ee}=oe({finger:C,move:!0});pr({sliderRef:m,activeIndex:ee,setActive:E}),V(L),!I&&M.current>zl&&$(!0),q&&!dr(L,D)&&q(w,L,ee)}),ye=mr(w=>{const C=fr(w,b);if($(!1),!C)return;const{newValue:L}=oe({finger:C,move:!0});E(-1),w.type==="touchend"&&T(-1),c&&c(w,L),b.current=void 0,pe()}),ve=mr(w=>{if(n)return;Yo()||w.preventDefault();const C=w.changedTouches[0];C!=null&&(b.current=C.identifier);const L=fr(w,b);if(L!==!1){const{newValue:ae,activeIndex:J}=oe({finger:L});pr({sliderRef:m,activeIndex:J,setActive:E}),V(ae),q&&!dr(ae,D)&&q(w,ae,J)}M.current=0;const ee=at(m.current);ee.addEventListener("touchmove",K,{passive:!0}),ee.addEventListener("touchend",ye,{passive:!0})}),pe=S.useCallback(()=>{const w=at(m.current);w.removeEventListener("mousemove",K),w.removeEventListener("mouseup",ye),w.removeEventListener("touchmove",K),w.removeEventListener("touchend",ye)},[ye,K]);S.useEffect(()=>{const{current:w}=m;return w.addEventListener("touchstart",ve,{passive:Yo()}),()=>{w.removeEventListener("touchstart",ve),pe()}},[pe,ve]),S.useEffect(()=>{n&&pe()},[n,pe]);const Ne=w=>C=>{var L;if((L=w.onMouseDown)==null||L.call(w,C),n||C.defaultPrevented||C.button!==0)return;C.preventDefault();const ee=fr(C,b);if(ee!==!1){const{newValue:J,activeIndex:Ee}=oe({finger:ee});pr({sliderRef:m,activeIndex:Ee,setActive:E}),V(J),q&&!dr(J,D)&&q(C,J,Ee)}M.current=0;const ae=at(m.current);ae.addEventListener("mousemove",K,{passive:!0}),ae.addEventListener("mouseup",ye)},le=wr(re?Y[0]:l,l,a),we=wr(Y[Y.length-1],l,a)-le,je=(w={})=>{const C=Ar(w),L={onMouseDown:Ne(C||{})},ee=N({},C,L);return N({},w,{ref:H},ee)},qe=w=>C=>{var L;(L=w.onMouseOver)==null||L.call(w,C);const ee=Number(C.currentTarget.getAttribute("data-index"));T(ee)},Ae=w=>C=>{var L;(L=w.onMouseLeave)==null||L.call(w,C),T(-1)};return{active:R,axis:Z,axisProps:Yl,dragging:I,focusedThumbIndex:B,getHiddenInputProps:(w={})=>{var C;const L=Ar(w),ee={onChange:Q(L||{}),onFocus:_(L||{}),onBlur:W(L||{}),onKeyDown:ne(L||{})},ae=N({},L,ee);return N({tabIndex:P,"aria-labelledby":t,"aria-orientation":g,"aria-valuemax":h(a),"aria-valuemin":h(l),name:f,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(C=e.step)!=null?C:void 0,disabled:n},w,ae,{style:N({},is,{direction:s?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:je,getThumbProps:(w={})=>{const C=Ar(w),L={onMouseOver:qe(C||{}),onMouseLeave:Ae(C||{})};return N({},w,C,L)},marks:te,open:A,range:re,rootRef:H,trackLeap:we,trackOffset:le,values:Y,getThumbStyle:w=>({pointerEvents:R!==-1&&R!==w?"none":void 0})}}var zt={},Xo;function Kl(){if(Xo)return zt;Xo=1,Object.defineProperty(zt,"__esModule",{value:!0}),zt.default=void 0;var e=n(Ua()),t=ii;function r(i){if(typeof WeakMap!="function")return null;var a=new WeakMap,l=new WeakMap;return(r=function(f){return f?l:a})(i)}function n(i,a){if(i&&i.__esModule)return i;if(i===null||typeof i!="object"&&typeof i!="function")return{default:i};var l=r(a);if(l&&l.has(i))return l.get(i);var f={__proto__:null},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in i)if(c!=="default"&&Object.prototype.hasOwnProperty.call(i,c)){var g=p?Object.getOwnPropertyDescriptor(i,c):null;g&&(g.get||g.set)?Object.defineProperty(f,c,g):f[c]=i[c]}return f.default=i,l&&l.set(i,f),f}function o(i){return Object.keys(i).length===0}function s(i=null){const a=e.useContext(t.ThemeContext);return!a||o(a)?i:a}return zt.default=s,zt}var Jl=Kl();const Ql=Ye(Jl),eu=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],tu=Ze(Vl,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ru=S.forwardRef(function(t,r){var n;const o=Ql(),s=Or({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:l,componentsProps:f,container:p,disablePortal:c,keepMounted:g,modifiers:v,open:h,placement:y,popperOptions:k,popperRef:P,transition:x,slots:b,slotProps:R}=s,E=Lt(s,eu),A=(n=b==null?void 0:b.root)!=null?n:l==null?void 0:l.Root,T=N({anchorEl:i,container:p,disablePortal:c,keepMounted:g,modifiers:v,open:h,placement:y,popperOptions:k,popperRef:P,transition:x},E);return j.jsx(tu,N({as:a,direction:o==null?void 0:o.direction,slots:{root:A},slotProps:R??f},T,{ref:r}))});function nu(e){return ua("MuiButtonGroup",e)}const Ce=ca("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),ou=["children","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"],au=(e,t)=>{const{ownerState:r}=e;return[{[`& .${Ce.grouped}`]:t.grouped},{[`& .${Ce.grouped}`]:t[`grouped${be(r.orientation)}`]},{[`& .${Ce.grouped}`]:t[`grouped${be(r.variant)}`]},{[`& .${Ce.grouped}`]:t[`grouped${be(r.variant)}${be(r.orientation)}`]},{[`& .${Ce.grouped}`]:t[`grouped${be(r.variant)}${be(r.color)}`]},{[`& .${Ce.firstButton}`]:t.firstButton},{[`& .${Ce.lastButton}`]:t.lastButton},{[`& .${Ce.middleButton}`]:t.middleButton},t.root,t[r.variant],r.disableElevation===!0&&t.disableElevation,r.fullWidth&&t.fullWidth,r.orientation==="vertical"&&t.vertical]},iu=e=>{const{classes:t,color:r,disabled:n,disableElevation:o,fullWidth:s,orientation:i,variant:a}=e,l={root:["root",a,i==="vertical"&&"vertical",s&&"fullWidth",o&&"disableElevation"],grouped:["grouped",`grouped${be(i)}`,`grouped${be(a)}`,`grouped${be(a)}${be(i)}`,`grouped${be(a)}${be(r)}`,n&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Pr(l,nu,t)},su=Ze("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:au})(({theme:e,ownerState:t})=>N({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[2]},t.disableElevation&&{boxShadow:"none"},t.fullWidth&&{width:"100%"},t.orientation==="vertical"&&{flexDirection:"column"},{[`& .${Ce.grouped}`]:N({minWidth:40,"&:hover":N({},t.variant==="contained"&&{boxShadow:"none"})},t.variant==="contained"&&{boxShadow:"none"}),[`& .${Ce.firstButton},& .${Ce.middleButton}`]:N({},t.orientation==="horizontal"&&{borderTopRightRadius:0,borderBottomRightRadius:0},t.orientation==="vertical"&&{borderBottomRightRadius:0,borderBottomLeftRadius:0},t.variant==="text"&&t.orientation==="horizontal"&&{borderRight:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Ce.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}},t.variant==="text"&&t.orientation==="vertical"&&{borderBottom:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Ce.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}},t.variant==="text"&&t.color!=="inherit"&&{borderColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:dt.alpha(e.palette[t.color].main,.5)},t.variant==="outlined"&&t.orientation==="horizontal"&&{borderRightColor:"transparent"},t.variant==="outlined"&&t.orientation==="vertical"&&{borderBottomColor:"transparent"},t.variant==="contained"&&t.orientation==="horizontal"&&{borderRight:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Ce.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}},t.variant==="contained"&&t.orientation==="vertical"&&{borderBottom:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Ce.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}},t.variant==="contained"&&t.color!=="inherit"&&{borderColor:(e.vars||e).palette[t.color].dark},{"&:hover":N({},t.variant==="outlined"&&t.orientation==="horizontal"&&{borderRightColor:"currentColor"},t.variant==="outlined"&&t.orientation==="vertical"&&{borderBottomColor:"currentColor"})}),[`& .${Ce.lastButton},& .${Ce.middleButton}`]:N({},t.orientation==="horizontal"&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},t.orientation==="vertical"&&{borderTopRightRadius:0,borderTopLeftRadius:0},t.variant==="outlined"&&t.orientation==="horizontal"&&{marginLeft:-1},t.variant==="outlined"&&t.orientation==="vertical"&&{marginTop:-1})})),lu=S.forwardRef(function(t,r){const n=Or({props:t,name:"MuiButtonGroup"}),{children:o,className:s,color:i="primary",component:a="div",disabled:l=!1,disableElevation:f=!1,disableFocusRipple:p=!1,disableRipple:c=!1,fullWidth:g=!1,orientation:v="horizontal",size:h="medium",variant:y="outlined"}=n,k=Lt(n,ou),P=N({},n,{color:i,component:a,disabled:l,disableElevation:f,disableFocusRipple:p,disableRipple:c,fullWidth:g,orientation:v,size:h,variant:y}),x=iu(P),b=S.useMemo(()=>({className:x.grouped,color:i,disabled:l,disableElevation:f,disableFocusRipple:p,disableRipple:c,fullWidth:g,size:h,variant:y}),[i,l,f,p,c,g,h,y,x.grouped]),R=as(o),E=R.length,A=T=>{const I=T===0,$=T===E-1;return I&&$?"":I?x.firstButton:$?x.lastButton:x.middleButton};return j.jsx(su,N({as:a,role:"group",className:vt(x.root,s),ref:r,ownerState:P},k,{children:j.jsx(ci.Provider,{value:b,children:R.map((T,I)=>j.jsx(fi.Provider,{value:A(I),children:T},I))})}))}),uu=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],cu=e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:s,orientation:i,textAlign:a,variant:l}=e;return Pr({root:["root",t&&"absolute",l,s&&"light",i==="vertical"&&"vertical",o&&"flexItem",r&&"withChildren",r&&i==="vertical"&&"withChildrenVertical",a==="right"&&i!=="vertical"&&"textAlignRight",a==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},pi,n)},fu=Ze("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>N({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:dt.alpha(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>N({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>N({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>N({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>N({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),pu=Ze("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>N({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),_a=S.forwardRef(function(t,r){const n=Or({props:t,name:"MuiDivider"}),{absolute:o=!1,children:s,className:i,component:a=s?"div":"hr",flexItem:l=!1,light:f=!1,orientation:p="horizontal",role:c=a!=="hr"?"separator":void 0,textAlign:g="center",variant:v="fullWidth"}=n,h=Lt(n,uu),y=N({},n,{absolute:o,component:a,flexItem:l,light:f,orientation:p,role:c,textAlign:g,variant:v}),k=cu(y);return j.jsx(fu,N({as:a,className:vt(k.root,i),role:c,ref:r,ownerState:y},h,{children:s?j.jsx(pu,{className:k.wrapper,ownerState:y,children:s}):null}))});_a.muiSkipListHighlight=!0;const du=e=>!e||!hr(e);function vu(e){return ua("MuiSlider",e)}const ze=ca("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),mu=e=>{const{open:t}=e;return{offset:vt(t&&ze.valueLabelOpen),circle:ze.valueLabelCircle,label:ze.valueLabelLabel}};function hu(e){const{children:t,className:r,value:n}=e,o=mu(e);return t?S.cloneElement(t,{className:vt(t.props.className)},j.jsxs(S.Fragment,{children:[t.props.children,j.jsx("span",{className:vt(o.offset,r),"aria-hidden":!0,children:j.jsx("span",{className:o.circle,children:j.jsx("span",{className:o.label,children:n})})})]})):null}const gu=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function Zo(e){return e}const yu=Ze("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${be(r.color)}`],r.size!=="medium"&&t[`size${be(r.size)}`],r.marked&&t.marked,r.orientation==="vertical"&&t.vertical,r.track==="inverted"&&t.trackInverted,r.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${ze.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${ze.dragging}`]:{[`& .${ze.thumb}, & .${ze.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),bu=Ze("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),wu=Ze("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r,track:"inverted"},style:N({},e.vars?{backgroundColor:e.vars.palette.Slider[`${r}Track`],borderColor:e.vars.palette.Slider[`${r}Track`]}:N({backgroundColor:dt.lighten(e.palette[r].main,.62),borderColor:dt.lighten(e.palette[r].main,.62)},e.applyStyles("dark",{backgroundColor:dt.darken(e.palette[r].main,.5)}),e.applyStyles("dark",{borderColor:dt.darken(e.palette[r].main,.5)})))}))]}}),Su=Ze("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${be(r.color)}`],r.size!=="medium"&&t[`thumbSize${be(r.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${ze.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r},style:{[`&:hover, &.${ze.focusVisible}`]:N({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${dt.alpha(e.palette[r].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${ze.active}`]:N({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${dt.alpha(e.palette[r].main,.16)}`})}}))]}}),xu=Ze(hu,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>N({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${ze.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${ze.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),Pu=Ze("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>fa(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),Ou=Ze("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>fa(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>N({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),Ru=e=>{const{disabled:t,dragging:r,marked:n,orientation:o,track:s,classes:i,color:a,size:l}=e,f={root:["root",t&&"disabled",r&&"dragging",n&&"marked",o==="vertical"&&"vertical",s==="inverted"&&"trackInverted",s===!1&&"trackFalse",a&&`color${be(a)}`,l&&`size${be(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${be(l)}`,a&&`thumbColor${be(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Pr(f,vu,i)},Eu=({children:e})=>e,ku=S.forwardRef(function(t,r){var n,o,s,i,a,l,f,p,c,g,v,h,y,k,P,x,b,R,E,A,T,I,$,M;const D=Or({props:t,name:"MuiSlider"}),V=di(),{"aria-label":q,"aria-valuetext":re,"aria-labelledby":Y,component:te="span",components:U={},componentsProps:ue={},color:se="primary",classes:ge,className:Pe,disableSwap:B=!1,disabled:de=!1,getAriaLabel:m,getAriaValueText:O,marks:H=!1,max:_=100,min:W=0,orientation:ie="horizontal",shiftStep:ne=10,size:Q="medium",step:z=1,scale:Z=Zo,slotProps:oe,slots:K,track:ye="normal",valueLabelDisplay:ve="off",valueLabelFormat:pe=Zo}=D,Ne=Lt(D,gu),le=N({},D,{isRtl:V,max:_,min:W,classes:ge,disabled:de,disableSwap:B,orientation:ie,marks:H,color:se,size:Q,step:z,shiftStep:ne,scale:Z,track:ye,valueLabelDisplay:ve,valueLabelFormat:pe}),{axisProps:we,getRootProps:je,getHiddenInputProps:qe,getThumbProps:Ae,open:He,active:Oe,axis:Re,focusedThumbIndex:w,range:C,dragging:L,marks:ee,values:ae,trackOffset:J,trackLeap:Ee,getThumbStyle:ke}=Zl(N({},le,{rootRef:r}));le.marked=ee.length>0&&ee.some(me=>me.label),le.dragging=L,le.focusedThumbIndex=w;const u=Ru(le),d=(n=(o=K==null?void 0:K.root)!=null?o:U.Root)!=null?n:yu,X=(s=(i=K==null?void 0:K.rail)!=null?i:U.Rail)!=null?s:bu,ce=(a=(l=K==null?void 0:K.track)!=null?l:U.Track)!=null?a:wu,fe=(f=(p=K==null?void 0:K.thumb)!=null?p:U.Thumb)!=null?f:Su,G=(c=(g=K==null?void 0:K.valueLabel)!=null?g:U.ValueLabel)!=null?c:xu,Me=(v=(h=K==null?void 0:K.mark)!=null?h:U.Mark)!=null?v:Pu,De=(y=(k=K==null?void 0:K.markLabel)!=null?k:U.MarkLabel)!=null?y:Ou,Se=(P=(x=K==null?void 0:K.input)!=null?x:U.Input)!=null?P:"input",Te=(b=oe==null?void 0:oe.root)!=null?b:ue.root,ht=(R=oe==null?void 0:oe.rail)!=null?R:ue.rail,Ve=(E=oe==null?void 0:oe.track)!=null?E:ue.track,$e=(A=oe==null?void 0:oe.thumb)!=null?A:ue.thumb,ct=(T=oe==null?void 0:oe.valueLabel)!=null?T:ue.valueLabel,Rt=(I=oe==null?void 0:oe.mark)!=null?I:ue.mark,Et=($=oe==null?void 0:oe.markLabel)!=null?$:ue.markLabel,tt=(M=oe==null?void 0:oe.input)!=null?M:ue.input,gt=ot({elementType:d,getSlotProps:je,externalSlotProps:Te,externalForwardedProps:Ne,additionalProps:N({},du(d)&&{as:te}),ownerState:N({},le,Te==null?void 0:Te.ownerState),className:[u.root,Pe]}),ft=ot({elementType:X,externalSlotProps:ht,ownerState:le,className:u.rail}),yt=ot({elementType:ce,externalSlotProps:Ve,additionalProps:{style:N({},we[Re].offset(J),we[Re].leap(Ee))},ownerState:N({},le,Ve==null?void 0:Ve.ownerState),className:u.track}),rt=ot({elementType:fe,getSlotProps:Ae,externalSlotProps:$e,ownerState:N({},le,$e==null?void 0:$e.ownerState),className:u.thumb}),kt=ot({elementType:G,externalSlotProps:ct,ownerState:N({},le,ct==null?void 0:ct.ownerState),className:u.valueLabel}),pt=ot({elementType:Me,externalSlotProps:Rt,ownerState:le,className:u.mark}),nt=ot({elementType:De,externalSlotProps:Et,ownerState:le,className:u.markLabel}),$t=ot({elementType:Se,getSlotProps:qe,externalSlotProps:tt,ownerState:le});return j.jsxs(d,N({},gt,{children:[j.jsx(X,N({},ft)),j.jsx(ce,N({},yt)),ee.filter(me=>me.value>=W&&me.value<=_).map((me,he)=>{const bt=wr(me.value,W,_),Ke=we[Re].offset(bt);let xe;return ye===!1?xe=ae.indexOf(me.value)!==-1:xe=ye==="normal"&&(C?me.value>=ae[0]&&me.value<=ae[ae.length-1]:me.value<=ae[0])||ye==="inverted"&&(C?me.value<=ae[0]||me.value>=ae[ae.length-1]:me.value>=ae[0]),j.jsxs(S.Fragment,{children:[j.jsx(Me,N({"data-index":he},pt,!hr(Me)&&{markActive:xe},{style:N({},Ke,pt.style),className:vt(pt.className,xe&&u.markActive)})),me.label!=null?j.jsx(De,N({"aria-hidden":!0,"data-index":he},nt,!hr(De)&&{markLabelActive:xe},{style:N({},Ke,nt.style),className:vt(u.markLabel,nt.className,xe&&u.markLabelActive),children:me.label})):null]},he)}),ae.map((me,he)=>{const bt=wr(me,W,_),Ke=we[Re].offset(bt),xe=ve==="off"?Eu:G;return j.jsx(xe,N({},!hr(xe)&&{valueLabelFormat:pe,valueLabelDisplay:ve,value:typeof pe=="function"?pe(Z(me),he):pe,index:he,open:He===he||Oe===he||ve==="on",disabled:de},kt,{children:j.jsx(fe,N({"data-index":he},rt,{className:vt(u.thumb,rt.className,Oe===he&&u.active,w===he&&u.focusVisible),style:N({},Ke,ke(he),rt.style),children:j.jsx(Se,N({"data-index":he,"aria-label":m?m(he):q,"aria-valuenow":Z(me),"aria-labelledby":Y,"aria-valuetext":O?O(Z(me),he):re,value:ae[he]},$t))}))}),he)})]}))}),$u={small:16,medium:20,large:24},Bn=({children:e,startIcon:t,endIcon:r,loading:n=!1,loadingIcon:o,loadingPosition:s="center",disabled:i=!1,size:a="medium",...l})=>{const f=j.jsx(yi,{color:"inherit",size:$u[a]}),p=o||f,c=n&&s==="center"?p:e;return j.jsx(pa,{disabled:i||n,startIcon:n&&s==="start"?p:t,endIcon:n&&s==="end"?p:r,size:a,...l,children:c})},Cu=Ie(Rr)(({theme:e})=>({display:"flex",position:"absolute",width:"100%",bottom:0,margin:`${e.spacing(2)} 0`,padding:`0 ${e.spacing(3)}`,gap:e.spacing(2)})),Iu=Ie(Bn)(({theme:e})=>({width:56,height:44,padding:0,minWidth:"unset",background:"rgba(0, 0, 0, 0.64) !important","& svg":{marginLeft:e.spacing(.5)}})),Au=Ie(Bn)(({theme:e,muted:t})=>({marginLeft:e.spacing(2.5),minWidth:25,background:"none",padding:0,opacity:t?.5:1})),Mu=Ie("input")(({theme:e})=>({flex:1,width:"100%",background:"none",WebkitAppearance:"none","&:focus":{outline:"none"},"&::-webkit-slider-thumb":{WebkitAppearance:"none",width:24,height:24,borderRadius:10,backgroundColor:"#736e7d",overflow:"visible",cursor:"pointer",paddingBottom:e.spacing(.625),marginTop:e.spacing(-.5)},"&::-moz-range-thumb":{width:24,height:24,borderRadius:20,backgroundColor:"#736e7d",overflow:"visible",cursor:"pointer",border:"none"},"&::-ms-thumb":{width:24,height:24,borderRadius:20,backgroundColor:"#736e7d",overflow:"visible",cursor:"pointer"},"&::-webkit-slider-runnable-track":{width:300,height:15,background:"rgba(115, 110, 125, 0.32)",border:"none",borderRadius:10},"&::-moz-range-track":{width:"100%",height:15,borderRadius:10,cursor:"pointer",background:"rgba(115, 110, 125, 0.32)"}})),Tu=Ie("div")({display:"flex",alignItems:"center"}),Bu=Ie("input")({width:56,height:44,borderRadius:5,background:"transparent",border:"1px solid rgba(115, 110, 125, 0.4)",color:"white",textAlign:"center","&:focus-visible":{outline:"1px solid"}}),vc=({wearablePreviewId:e,className:t,hideFrameInput:r,hideProgressInput:n,hidePlayButton:o,hideSoundButton:s,wearablePreviewController:i,renderPlayButton:a,renderSoundButton:l,renderProgressBar:f,renderFrameInput:p})=>{const{controllerRef:c,isReady:g}=kr(e,i),[v,h]=S.useState(0),[y,k]=S.useState(!1),[P,x]=S.useState(void 0),[b,R]=S.useState(!0),[E,A]=S.useState(void 0),[T,I]=S.useState(!1),[$,M]=S.useState(!1),D=S.useCallback(()=>{h(0)},[]),V=S.useCallback(()=>{k(!1),h(B=>B>=Math.floor((P??0)*100)?0:B)},[P]),q=S.useCallback(()=>{k(!1)},[]),re=S.useCallback(async()=>{if(!$){let B=P;!P&&c.current&&(B=await c.current.emote.getLength()),k(!0),x(B)}},[P,$,c]),Y=S.useCallback(({length:B})=>{h(Math.ceil((B??0)*100))},[]);S.useEffect(()=>{const B=c.current;if(B)return B.emote.events.on(Je.PreviewEmoteEventType.ANIMATION_PLAY,re),B.emote.events.on(Je.PreviewEmoteEventType.ANIMATION_PLAYING,Y),B.emote.events.on(Je.PreviewEmoteEventType.ANIMATION_END,V),B.emote.events.on(Je.PreviewEmoteEventType.ANIMATION_PAUSE,q),B.emote.events.on(Je.PreviewEmoteEventType.ANIMATION_LOOP,D),()=>{B.emote.events.off(Je.PreviewEmoteEventType.ANIMATION_PLAY,re),B.emote.events.off(Je.PreviewEmoteEventType.ANIMATION_PLAYING,Y),B.emote.events.off(Je.PreviewEmoteEventType.ANIMATION_END,V),B.emote.events.off(Je.PreviewEmoteEventType.ANIMATION_PAUSE,q),B.emote.events.off(Je.PreviewEmoteEventType.ANIMATION_LOOP,D)}},[c,re,Y,V,q,D]),S.useEffect(()=>{E===void 0&&g&&c.current&&c.current.emote.hasSound().then(B=>A(B)).catch(B=>{console.error("Error checking sound:",B),A(!1)})},[E,g,c]);const te=S.useCallback(async()=>{if(c.current)try{await c.current.emote.play()}catch(B){console.error("Error playing emote:",B)}},[c]),U=S.useCallback(async()=>{if(c.current)try{await c.current.emote.pause()}catch(B){console.error("Error pausing emote:",B)}},[c]),ue=S.useCallback(async()=>{y?await U():await te()},[y,te,U]),se=S.useCallback(()=>{var B,de;b?(B=c.current)==null||B.emote.disableSound():(de=c.current)==null||de.emote.enableSound(),R(!b)},[b,c]),ge=S.useCallback(async B=>{if(isNaN(B)||!c.current)return;let de=B;const m=P??0;m*100<B&&(de=m*100),h(de),M(!0);try{y&&(await c.current.emote.pause(),I(!0)),await c.current.emote.goTo(de/100)}catch(O){console.error("Error changing frame:",O)}},[P,y,c]),Pe=S.useCallback(async()=>{if(M(!1),T&&c.current){try{await c.current.emote.play()}catch(B){console.error("Error resuming play:",B)}I(!1)}},[T,c]);return j.jsxs(Cu,{className:t,children:[o?null:a?a({isPlaying:y,onPlay:te,onPause:U,onToggle:ue}):j.jsx(Iu,{onClick:ue,children:y?j.jsx(us,{}):j.jsx(ps,{})}),n?null:f?f({frame:v,length:P??0,onChange:ge,onMouseUp:Pe}):j.jsx(Mu,{type:"range",value:v,max:Math.ceil((P??0)*100),min:0,step:1,onChange:B=>ge(Number(B.target.value)),onMouseUp:Pe}),r?null:j.jsx(Tu,{children:p?p({frame:Math.round(v/100),onChange:B=>ge(B*100)}):j.jsx(Bu,{type:"number",value:Math.round(v/100),onChange:B=>ge(Number(B.target.value)*100)})}),s||!E?null:l?l({isSoundEnabled:b,hasSound:E,onToggle:se}):j.jsx(Au,{muted:!b,onClick:se,children:b?j.jsx(ys,{}):j.jsx(ms,{})})]})};var Ft={},Ko;function Lu(){if(Ko)return Ft;Ko=1;var e=lt();Object.defineProperty(Ft,"__esModule",{value:!0}),Ft.default=void 0;var t=e(ut()),r=st();return Ft.default=(0,t.default)((0,r.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown"),Ft}var ju=Lu();const qu=Ye(ju);var Ut={},Jo;function Du(){if(Jo)return Ut;Jo=1;var e=lt();Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.default=void 0;var t=e(ut()),r=st();return Ut.default=(0,t.default)((0,r.jsx)("path",{d:"m7 14 5-5 5 5z"}),"ArrowDropUp"),Ut}var _u=Du();const Wu=Ye(_u),Nu=Ie(pa)(({theme:e})=>({gap:e.spacing(1)})),Hu=Ie(_a)(({theme:e})=>({height:"calc(100% + 8px)",marginTop:e.spacing(-.5),borderColor:e.palette.common.white})),Vu=Ie(vi)(({placement:e})=>({transformOrigin:e==="bottom"?"center top":"center bottom"})),mc=({wearablePreviewId:e,className:t,wearablePreviewController:r,selectedAnimation:n,onSelectAnimation:o,renderAnimationSelector:s})=>{const{controllerRef:i,isReady:a}=kr(e,r),[l,f]=S.useState(!1),p=S.useRef(null),[c,g]=S.useState(void 0),[v,h]=S.useState(0);S.useEffect(()=>{if(!c||!n)return;const x=c.findIndex(b=>b.title===n.title);h(x>=0?x:0)},[c,n]),S.useEffect(()=>{!a||!i.current||c!==void 0||Promise.all([i.current.emote.getSocialEmoteAnimations(),i.current.emote.getPlayingSocialEmoteAnimation()]).then(([x,b])=>{if(g(x),b){o==null||o(b);const R=(x==null?void 0:x.findIndex(E=>E.title===b.title))??-1;h(R>=0?R:0)}}).catch(x=>{console.error("Error checking social emote:",x),g(null)})},[c,a,i,o]);const y=S.useCallback((x,b)=>{f(!1),h(b),c!=null&&c[b]&&(o==null||o(c[b]))},[c,o]),k=S.useCallback(()=>{f(x=>!x)},[]),P=S.useCallback(x=>{var b;(b=p.current)!=null&&b.contains(x.target)||f(!1)},[]);return!c||c.length===0?null:s&&o?s({socialEmoteAnimations:c,selectedAnimation:n??c[0],onSelectAnimation:o}):j.jsxs(S.Fragment,{children:[j.jsx(lu,{className:t,variant:"contained",ref:p,"aria-label":"Button group with a nested menu",children:j.jsxs(Nu,{size:"small","aria-controls":l?"split-button-menu":void 0,"aria-expanded":l?"true":void 0,"aria-label":"select merge strategy","aria-haspopup":"menu",onClick:k,children:[c[v].title,j.jsx(Hu,{orientation:"vertical",flexItem:!0}),l?j.jsx(Wu,{}):j.jsx(qu,{})]})}),j.jsx(ru,{open:l,anchorEl:p.current,role:void 0,transition:!0,disablePortal:!0,className:`${t}__popper`,children:({TransitionProps:x,placement:b})=>j.jsx(Vu,{...x,placement:b,children:j.jsx(mi,{children:j.jsx(ks,{onClickAway:P,children:j.jsx(hi,{id:"split-button-menu",autoFocusItem:!0,children:c.map((R,E)=>j.jsx(gi,{selected:E===v,onClick:A=>y(A,E),children:R.title},R.title))})})})})})]})};var Gt={},Qo;function zu(){if(Qo)return Gt;Qo=1;var e=lt();Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.default=void 0;var t=e(ut()),r=st();return Gt.default=(0,t.default)((0,r.jsx)("path",{d:"M16 17.01V10h-2v7.01h-3L15 21l4-3.99zM9 3 5 6.99h3V14h2V6.99h3z"}),"SwapVert"),Gt}var Fu=zu();const Uu=Ye(Fu);var Jt;(function(e){e.TOP="top",e.BOTTOM="bottom",e.CENTER="center"})(Jt||(Jt={}));var rr;(function(e){e.LEFT="left",e.RIGHT="right"})(rr||(rr={}));const Gu=Ie(Rr)(({horizontalPosition:e=Jt.CENTER,verticalPosition:t=rr.RIGHT})=>({position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",...e===Jt.TOP?{justifyContent:"flex-start"}:e===Jt.BOTTOM?{justifyContent:"flex-end"}:{justifyContent:"center"},...t===rr.RIGHT?{justifyContent:"flex-end"}:{justifyContent:"flex-start"},pointerEvents:"none","& > *":{pointerEvents:"auto"}})),Yu=Ie(Rr)({display:"flex",alignItems:"center",flexDirection:"column"}),Xu=Ie(Rr)({display:"flex",alignItems:"center",color:"#736e7d"}),Zu=Ie(ku)(({theme:e})=>({height:256,color:"#736e7d","& .MuiSlider-rail":{width:2,opacity:1,backgroundColor:"#000000",paddingBottom:e.spacing(4)},"& .MuiSlider-track":{width:2,border:"none",backgroundColor:"#000000"},"& .MuiSlider-thumb":{height:32,width:8,borderRadius:4,backgroundColor:"#736e7d",translate:"0px 16px",boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.16), inset 0px 1px 0px rgba(255, 255, 255, 0.16)","&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.16), inset 0px 1px 0px rgba(255, 255, 255, 0.16)"},"&::before":{display:"none"}}})),hc=({wearablePreviewId:e,vertical:t,className:r,verticalPosition:n=rr.RIGHT,wearablePreviewController:o})=>{const{controllerRef:s}=kr(e,o),i=S.useCallback((a,l)=>{var p;const f=Array.isArray(l)?l[0]:l;(p=s.current)==null||p.scene.panCamera({y:f*-1})},[s]);return j.jsx(Gu,{className:r,verticalPosition:n,children:t?j.jsxs(Yu,{children:[j.jsx(Xu,{children:j.jsx(Uu,{})}),j.jsx(Zu,{orientation:"vertical",defaultValue:0,step:.1,min:-2,max:2,onChange:i})]}):null})};var Yt={},ea;function Ku(){if(ea)return Yt;ea=1;var e=lt();Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.default=void 0;var t=e(ut()),r=st();return Yt.default=(0,t.default)((0,r.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),Yt}var Ju=Ku();const Qu=Ye(Ju);var Xt={},ta;function ec(){if(ta)return Xt;ta=1;var e=lt();Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.default=void 0;var t=e(ut()),r=st();return Xt.default=(0,t.default)((0,r.jsx)("path",{d:"M19 13H5v-2h14z"}),"Remove"),Xt}var tc=ec();const rc=Ye(tc);var Sr;(function(e){e.LEFT="left",e.RIGHT="right"})(Sr||(Sr={}));const nc=Ie("div")(({position:e})=>({display:"flex",flexDirection:"column",position:"absolute",top:"12px",...e===Sr.LEFT?{left:"12px"}:{right:"12px"}})),ra=Ie(Bn)({width:"32px",height:"32px",minWidth:"unset",padding:0,backgroundColor:"rgba(0, 0, 0, 0.64) !important",borderRadius:0,display:"flex",justifyContent:"center",alignItems:"center","&:hover":{transform:"none"},"& i.icon":{margin:"0 !important"}}),oc=.1,gc=({wearablePreviewId:e,className:t,position:r=Sr.LEFT,wearablePreviewController:n,zoomDelta:o=oc})=>{const{controllerRef:s}=kr(e,n),i=S.useCallback(async()=>{var l;await((l=s.current)==null?void 0:l.scene.changeZoom(o))},[o,s]),a=S.useCallback(async()=>{var l;await((l=s.current)==null?void 0:l.scene.changeZoom(-o))},[o,s]);return j.jsxs(nc,{className:t,position:r,children:[j.jsx(ra,{className:"ZoomIn",onClick:i,children:j.jsx(Qu,{})}),j.jsx(ra,{className:"ZoomOut",onClick:a,children:j.jsx(rc,{})})]})};export{mc as AnimationControls,vc as EmoteControls,hc as TranslationControls,os as WearablePreview,gc as ZoomControls,kr as useWearablePreviewController};