@multiversx/sdk-dapp-liquidity 1.0.12 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ConstantsUtil-BinYIDR2.mjs +8 -0
- package/ConstantsUtil-CbnVdQ5P.js +8 -0
- package/add-D-ECcdUh.mjs +19 -0
- package/add-Diz8heiY.js +20 -0
- package/all-wallets-_iOQf3bl.js +11 -0
- package/all-wallets-puIIQy3Y.mjs +10 -0
- package/app-store-BGTKFL27.js +22 -0
- package/app-store-Bsf7w3pv.mjs +21 -0
- package/apple-Cw8e8IGH.mjs +22 -0
- package/apple-DF7n_Yzl.js +23 -0
- package/arrow-bottom-Cp2C4fQv.mjs +12 -0
- package/arrow-bottom-DTvIR3s3.js +13 -0
- package/arrow-bottom-circle-CN6i5mHz.mjs +15 -0
- package/arrow-bottom-circle-CzPwiwWH.js +16 -0
- package/arrow-left-9VFYHQSW.js +13 -0
- package/arrow-left-BDQHoEvX.mjs +12 -0
- package/arrow-right-BxkuSpWU.mjs +12 -0
- package/arrow-right-DBLQ6w92.js +13 -0
- package/arrow-top-BiQd5Aey.js +13 -0
- package/arrow-top-BrLVX4Rj.mjs +12 -0
- package/bank-B7EC6Kdz.mjs +18 -0
- package/bank-CvPn9sfV.js +19 -0
- package/{bignumber-CKZkoo0g.mjs → bignumber-2Z7uapuD.mjs} +6 -6
- package/{bignumber-B8vjg9qn.js → bignumber-D1Wl54dL.js} +6 -6
- package/bin-BXO1kNZh.js +9 -0
- package/bin-CwiYVJ1L.mjs +8 -0
- package/bitcoin-C3kBVar_.mjs +17 -0
- package/bitcoin-DAvQGpeP.js +3251 -0
- package/bitcoin-dNBGbS2B.mjs +3251 -0
- package/bitcoin-k6bvmzMA.js +18 -0
- package/browser-ShRLuKKz.mjs +18 -0
- package/browser-t7nfT7HL.js +19 -0
- package/card-BJg5bdoM.mjs +18 -0
- package/card-hxUDXttT.js +19 -0
- package/checkmark-BpR0Yy93.mjs +15 -0
- package/checkmark-D9AVWgl5.js +16 -0
- package/checkmark-bold-D3Xcby1U.mjs +12 -0
- package/checkmark-bold-De02hde8.js +13 -0
- package/chevron-bottom-DcBf7T5F.js +13 -0
- package/chevron-bottom-DfGpWIz7.mjs +12 -0
- package/chevron-left-BKvYVnUo.js +13 -0
- package/chevron-left-DGSG9WJQ.mjs +12 -0
- package/chevron-right-BLgYIEeO.js +13 -0
- package/chevron-right-C2nsTx_Y.mjs +12 -0
- package/chevron-top-CwFOEFy8.js +13 -0
- package/chevron-top-vk-9DvUU.mjs +12 -0
- package/chrome-store-4H_ie3vA.mjs +65 -0
- package/chrome-store-BWarxVMl.js +66 -0
- package/circle-BtqWJU0_.mjs +8 -0
- package/circle-DYjG6o7-.js +9 -0
- package/clock-Ba5SM-pl.mjs +12 -0
- package/clock-DPzNREdU.js +13 -0
- package/close-CJHKFOyp.mjs +12 -0
- package/close-DDWnJdJe.js +13 -0
- package/coinPlaceholder-Cbba3D1H.mjs +12 -0
- package/coinPlaceholder-DdxQIc2D.js +13 -0
- package/compass-CugCxeSC.js +13 -0
- package/compass-DbN5DkTl.mjs +12 -0
- package/copy-CHSZprYJ.mjs +19 -0
- package/copy-En5h5Uhu.js +20 -0
- package/cursor-DCRkvEhr.mjs +7 -0
- package/cursor-DnEQtrUK.js +8 -0
- package/cursor-transparent-CU8lk-xg.js +17 -0
- package/cursor-transparent-CliETg4d.mjs +16 -0
- package/desktop-BgD7aypB.js +14 -0
- package/desktop-Cg5I32-p.mjs +13 -0
- package/disconnect-CCyMbAdw.js +13 -0
- package/disconnect-Cp2vRWB2.mjs +12 -0
- package/discord-B1d-qeSk.mjs +21 -0
- package/discord-BEB5klec.js +22 -0
- package/email-CorlePKz.js +873 -0
- package/email-Znno7H8_.mjs +878 -0
- package/embedded-wallet-B9ro9Tel.js +549 -0
- package/embedded-wallet-CnTWeseG.mjs +552 -0
- package/ethereum-BRcsRjUU.mjs +14 -0
- package/ethereum-CZ_xe09e.js +15 -0
- package/etherscan-BZKGpKp8.mjs +10 -0
- package/etherscan-DtLi-C3z.js +11 -0
- package/exclamation-triangle-BLNnBLEc.js +9 -0
- package/exclamation-triangle-CFThXxRT.mjs +8 -0
- package/extension-CwUepr-W.mjs +12 -0
- package/extension-DOD67G1k.js +13 -0
- package/external-link-CZkQS5XK.js +13 -0
- package/external-link-ClYNKSPt.mjs +12 -0
- package/facebook-CFjrd4my.mjs +30 -0
- package/facebook-CbE6K6AK.js +31 -0
- package/farcaster-Ba7_C-Vm.js +17 -0
- package/farcaster-DyVJtVS9.mjs +16 -0
- package/filters-CpHaFNjT.mjs +12 -0
- package/filters-w5LC-r6e.js +13 -0
- package/github-CeO70C3E.mjs +22 -0
- package/github-uLFBWAa5.js +23 -0
- package/google-CyOdUlbw.mjs +22 -0
- package/google-ILGK-opP.js +23 -0
- package/help-circle-Dh3dRNoB.mjs +16 -0
- package/help-circle-HUMbz_KN.js +17 -0
- package/id-Cy3Qkrvb.js +17 -0
- package/id-D-Q0uPFM.mjs +16 -0
- package/if-defined-CJ5EZLw2.js +815 -0
- package/if-defined-DjC5UMfF.mjs +815 -0
- package/image-BTGOf8bb.mjs +8 -0
- package/image-WFQO5bWa.js +9 -0
- package/index--O5ypTeK.mjs +70 -0
- package/index--Vg7VI9t.js +173 -0
- package/index-2iRSO1sa.mjs +9964 -0
- package/index-42Rpweo5.mjs +95 -0
- package/index-70kjE43k.mjs +90 -0
- package/index-8VyNYS01.js +273 -0
- package/index-B-dx8l0g.mjs +82 -0
- package/index-BB0nW9RB.mjs +198 -0
- package/index-BBwuv2SS.js +97 -0
- package/index-BIe-kofv.mjs +273 -0
- package/index-BQf6VHil.js +278 -0
- package/index-BWIZXhFv.mjs +630 -0
- package/index-BXkamf-I.js +337 -0
- package/index-BYTxCmKH.js +64 -0
- package/index-BYoOxo0S.js +218 -0
- package/index-Ba0tVdql.js +200 -0
- package/index-BdOAPWyt.mjs +210 -0
- package/index-BirWzf8c.mjs +71 -0
- package/index-BnCJUHtW.mjs +346 -0
- package/index-BuL2FC61.mjs +216 -0
- package/index-BxSUTfaY.js +88 -0
- package/index-C49C5Rxf.js +743 -0
- package/index-CNMDBpW7.js +346 -0
- package/index-CP0CGjqQ.mjs +263 -0
- package/index-CQaHcTZM.mjs +86 -0
- package/index-CRGXQei1.js +178 -0
- package/index-CSykUIfV.mjs +176 -0
- package/index-CWIHaLkQ.mjs +101 -0
- package/index-CZSDJd0P.mjs +1070 -0
- package/index-CZaV8JgR.mjs +49 -0
- package/index-CZjdy6QP.js +101 -0
- package/index-C_lIGGlC.js +632 -0
- package/index-CcgeRPs2.mjs +57 -0
- package/index-CeY_DRuc.js +566 -0
- package/index-ChFNkSxT.js +92 -0
- package/index-CkjZc20w.js +677 -0
- package/index-CtFcWwAd.js +72 -0
- package/index-D0mOfznC.mjs +362 -0
- package/index-DAtWLY21.js +84 -0
- package/index-DEs8H3w2.js +262 -0
- package/index-DLnxotbC.mjs +566 -0
- package/index-DN4fGDgg.mjs +743 -0
- package/index-DT_mc1hV.mjs +335 -0
- package/index-DZEwxUMS.js +59 -0
- package/index-DaRH_4bD.js +9939 -0
- package/index-Daok2ZKn.js +73 -0
- package/index-DomzHmwk.js +210 -0
- package/index-Dx7NyDyv.mjs +101 -0
- package/index-DyGir6_2.mjs +675 -0
- package/index-GglJmM2C.js +2237 -0
- package/index-H5b7UTeJ.mjs +173 -0
- package/index-NNZ1lNuc.mjs +168 -0
- package/index-RJd-gQcv.mjs +2235 -0
- package/index-dnFzVpGy.js +103 -0
- package/index-kwVLu8EV.js +168 -0
- package/index-miQwZPmn.js +51 -0
- package/index-oCj_SpOa.mjs +62 -0
- package/index-pNK-h_x9.js +1069 -0
- package/index-r6Kre1rx.js +362 -0
- package/index-xBD0nXoB.mjs +276 -0
- package/index.js +3 -3
- package/index.mjs +3 -3
- package/info-BKNAiN0k.js +8 -0
- package/info-DQE0s-A4.mjs +7 -0
- package/info-circle-C3uTocjH.js +17 -0
- package/info-circle-CIn6yeQo.mjs +16 -0
- package/lightbulb-CB-BmIop.js +8 -0
- package/lightbulb-Gv7IbnzO.mjs +7 -0
- package/mail-CFYm95wn.mjs +12 -0
- package/mail-GEwk-Fzr.js +13 -0
- package/mobile-CZ7ZBfa5.js +14 -0
- package/mobile-OIbnpFsU.mjs +13 -0
- package/more-C8N_RV55.mjs +15 -0
- package/more-CiQpPZwq.js +16 -0
- package/network-placeholder-CxEcczEx.mjs +18 -0
- package/network-placeholder-DwR8E8hP.js +19 -0
- package/nftPlaceholder-BFexVcGX.js +13 -0
- package/nftPlaceholder-MiYL110I.mjs +12 -0
- package/off-BNiMlpUU.mjs +8 -0
- package/off-iJHSK3Z7.js +9 -0
- package/onramp-Bs8HHFFY.js +1474 -0
- package/onramp-C6fuQfX7.mjs +1480 -0
- package/package.json +11 -11
- package/play-store-B4ssIYUA.js +37 -0
- package/play-store-D6nmQXhX.mjs +36 -0
- package/plus-Bh7z7Oc0.js +18 -0
- package/plus-C8ioZuCD.mjs +17 -0
- package/qr-code-CSVwaBLf.mjs +10 -0
- package/qr-code-YgtXPokK.js +11 -0
- package/react-BWxe90Ar.mjs +6342 -0
- package/react-BzZcQig5.js +6342 -0
- package/react-C_wTMVq_.js +23003 -0
- package/react-M-DnxvZl.mjs +23003 -0
- package/reactjs/components/BridgeForm/BridgeForm.js +2 -1
- package/reactjs/components/BridgeForm/BridgeForm.mjs +2 -1
- package/reactjs/components/Connect/BridgeAccountDisplay.js +3 -2
- package/reactjs/components/Connect/BridgeAccountDisplay.mjs +3 -2
- package/reactjs/components/Connect/CustomConnectButton.js +3 -2
- package/reactjs/components/Connect/CustomConnectButton.mjs +3 -2
- package/reactjs/components/Connect/SwitchChainButton.js +4 -3
- package/reactjs/components/Connect/SwitchChainButton.mjs +4 -3
- package/reactjs/components/DisplayAmount/DisplayAmount.js +1 -1
- package/reactjs/components/DisplayAmount/DisplayAmount.mjs +1 -1
- package/reactjs/components/TokenSelector/components/TokenItem.js +1 -1
- package/reactjs/components/TokenSelector/components/TokenItem.mjs +1 -1
- package/reactjs/hooks/useAccount.d.ts +4 -4
- package/reactjs/hooks/useAccount.js +3 -2
- package/reactjs/hooks/useAccount.mjs +3 -2
- package/reactjs/hooks/useGetChainId.js +1 -1
- package/reactjs/hooks/useGetChainId.mjs +1 -1
- package/reactjs/index.js +3 -3
- package/reactjs/index.mjs +3 -3
- package/reactjs/init/init.js +4 -3
- package/reactjs/init/init.mjs +4 -3
- package/reactjs/init/tests/init.spec.js +2 -2
- package/reactjs/init/tests/init.spec.mjs +2 -2
- package/reactjs/queries/useGetEvmTokensBalances.query.js +3 -2
- package/reactjs/queries/useGetEvmTokensBalances.query.mjs +3 -2
- package/reactjs/reexports.js +3 -3
- package/reactjs/reexports.mjs +3 -3
- package/reactjs/utils/getCleanStringAmount.js +1 -1
- package/reactjs/utils/getCleanStringAmount.mjs +1 -1
- package/reactjs/utils/hasEnoughFunds.js +1 -1
- package/reactjs/utils/hasEnoughFunds.mjs +1 -1
- package/reactjs/utils/isStringFloat.js +1 -1
- package/reactjs/utils/isStringFloat.mjs +1 -1
- package/reactjs/utils/roundAmount.js +1 -1
- package/reactjs/utils/roundAmount.mjs +1 -1
- package/receive-CK0hRQPr.js +212 -0
- package/receive-CQcD6bZf.mjs +212 -0
- package/recycle-horizontal--x5cMoTE.js +14 -0
- package/recycle-horizontal-QI0xtDHK.mjs +13 -0
- package/ref-CqxfRkBm.mjs +41 -0
- package/ref-FGI2cUQB.js +41 -0
- package/refresh-CFNHjhDi.js +13 -0
- package/refresh-CSOC1NUY.mjs +12 -0
- package/reown-logo-BfU5xFX5.js +17 -0
- package/reown-logo-CZAEp1jU.mjs +16 -0
- package/search-Do_rb-9-.mjs +12 -0
- package/search-V9CGMHkm.js +13 -0
- package/send-D-5G7tDL.mjs +1204 -0
- package/send-D4yYsIHV.mjs +19 -0
- package/send-DoiSHLsX.js +1202 -0
- package/send-_jfNFrys.js +20 -0
- package/socials-BL7-97fT.mjs +758 -0
- package/socials-DF0CK9cN.js +756 -0
- package/solana-BQ0Jh8lh.js +18 -0
- package/solana-YAkDp6j_.mjs +17 -0
- package/swapHorizontal-DOIo-Ccx.mjs +12 -0
- package/swapHorizontal-OHKtz4Gu.js +13 -0
- package/swapHorizontalBold-D7QmFj-c.js +13 -0
- package/swapHorizontalBold-DDroA0Af.mjs +12 -0
- package/swapHorizontalMedium-CU_v0kFz.mjs +20 -0
- package/swapHorizontalMedium-D-yMmtml.js +21 -0
- package/swapHorizontalRoundedBold-CHvbmnjw.js +13 -0
- package/swapHorizontalRoundedBold-DXMH0sgK.mjs +12 -0
- package/swapVertical-CH7fTK6w.js +13 -0
- package/swapVertical-HJZ6rFcr.mjs +12 -0
- package/swaps-CETflhdU.js +1952 -0
- package/swaps-DRUV6d3p.mjs +1954 -0
- package/telegram-CsCauOwj.mjs +20 -0
- package/telegram-DKEcF_Tq.js +21 -0
- package/three-dots-B-7hr8Nl.js +10 -0
- package/three-dots-LNZ_fjP7.mjs +9 -0
- package/transactions-BTTsGV2W.mjs +37 -0
- package/transactions-mpNNlClw.js +37 -0
- package/twitch-CCWVT2ij.js +23 -0
- package/twitch-Dg1CCQvd.mjs +22 -0
- package/twitterIcon-BjR09Cj9.mjs +10 -0
- package/twitterIcon-CeEs0iDJ.js +11 -0
- package/verify-B8WZq7kt.mjs +12 -0
- package/verify-filled-BeqC1imk.mjs +12 -0
- package/verify-filled-C-mv3ApD.js +13 -0
- package/verify-yATdPqt-.js +13 -0
- package/w3m-modal-3GziKj7h.js +1254 -0
- package/w3m-modal-81Z5PngE.mjs +1255 -0
- package/wallet-BMXEH23x.js +13 -0
- package/wallet-CNAVQCfm.mjs +12 -0
- package/wallet-placeholder-CQ-7CmVN.mjs +18 -0
- package/wallet-placeholder-CdoQy2e6.js +19 -0
- package/walletconnect-ACr-R1QZ.mjs +38 -0
- package/walletconnect-BWSkiS2F.js +39 -0
- package/warning-circle-CYnuYwpt.js +17 -0
- package/warning-circle-HV2lOiCj.mjs +16 -0
- package/x-CW5dozRj.js +17 -0
- package/x-Cgm2OFpL.mjs +16 -0
- package/x-mark-CR8SpZvu.js +8 -0
- package/x-mark-u0KJjUJ1.mjs +7 -0
- package/index-B4Eq5P3w.mjs +0 -91
- package/index-C4WV9nam.js +0 -329
- package/index-CWMcKi_X.js +0 -107
- package/index-D8E0O3qL.mjs +0 -68744
- package/index-DJ8CdHSw.mjs +0 -107
- package/index-nigVQYBu.js +0 -68665
- package/react-C43nEIqn.js +0 -3133
- package/react-DKUsVej7.js +0 -50
- package/react-Dp0H8q2z.mjs +0 -50
- package/react-wMhOUFOm.mjs +0 -3133
- package/w3m-modal-DLyg7Voy.js +0 -356
- package/w3m-modal-hC-B8qZP.mjs +0 -356
|
@@ -0,0 +1,3251 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
var _a;
|
|
4
|
+
const require$$0$1 = require("react");
|
|
5
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
6
|
+
function getDefaultExportFromCjs(x2) {
|
|
7
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
8
|
+
}
|
|
9
|
+
function getAugmentedNamespace(n3) {
|
|
10
|
+
if (n3.__esModule) return n3;
|
|
11
|
+
var f2 = n3.default;
|
|
12
|
+
if (typeof f2 == "function") {
|
|
13
|
+
var a2 = function a3() {
|
|
14
|
+
if (this instanceof a3) {
|
|
15
|
+
return Reflect.construct(f2, arguments, this.constructor);
|
|
16
|
+
}
|
|
17
|
+
return f2.apply(this, arguments);
|
|
18
|
+
};
|
|
19
|
+
a2.prototype = f2.prototype;
|
|
20
|
+
} else a2 = {};
|
|
21
|
+
Object.defineProperty(a2, "__esModule", { value: true });
|
|
22
|
+
Object.keys(n3).forEach(function(k2) {
|
|
23
|
+
var d2 = Object.getOwnPropertyDescriptor(n3, k2);
|
|
24
|
+
Object.defineProperty(a2, k2, d2.get ? d2 : {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function() {
|
|
27
|
+
return n3[k2];
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
return a2;
|
|
32
|
+
}
|
|
33
|
+
const e$3 = Symbol(), t$2 = Symbol(), r$3 = "a", n$3 = "w";
|
|
34
|
+
let o$4 = (e2, t2) => new Proxy(e2, t2);
|
|
35
|
+
const s$3 = Object.getPrototypeOf, c$3 = /* @__PURE__ */ new WeakMap(), l$2 = (e2) => e2 && (c$3.has(e2) ? c$3.get(e2) : s$3(e2) === Object.prototype || s$3(e2) === Array.prototype), f$2 = (e2) => "object" == typeof e2 && null !== e2, i$4 = (e2) => {
|
|
36
|
+
if (Array.isArray(e2)) return Array.from(e2);
|
|
37
|
+
const t2 = Object.getOwnPropertyDescriptors(e2);
|
|
38
|
+
return Object.values(t2).forEach((e3) => {
|
|
39
|
+
e3.configurable = true;
|
|
40
|
+
}), Object.create(s$3(e2), t2);
|
|
41
|
+
}, u$2 = (e2) => e2[t$2] || e2, a$2 = (s2, c2, f2, p2) => {
|
|
42
|
+
if (!l$2(s2)) return s2;
|
|
43
|
+
let g2 = p2 && p2.get(s2);
|
|
44
|
+
if (!g2) {
|
|
45
|
+
const e2 = u$2(s2);
|
|
46
|
+
g2 = ((e3) => Object.values(Object.getOwnPropertyDescriptors(e3)).some((e4) => !e4.configurable && !e4.writable))(e2) ? [e2, i$4(e2)] : [e2], null == p2 || p2.set(s2, g2);
|
|
47
|
+
}
|
|
48
|
+
const [y3, h2] = g2;
|
|
49
|
+
let w2 = f2 && f2.get(y3);
|
|
50
|
+
return w2 && w2[1].f === !!h2 || (w2 = ((o2, s3) => {
|
|
51
|
+
const c3 = { f: s3 };
|
|
52
|
+
let l2 = false;
|
|
53
|
+
const f3 = (e2, t2) => {
|
|
54
|
+
if (!l2) {
|
|
55
|
+
let s4 = c3[r$3].get(o2);
|
|
56
|
+
if (s4 || (s4 = {}, c3[r$3].set(o2, s4)), e2 === n$3) s4[n$3] = true;
|
|
57
|
+
else {
|
|
58
|
+
let r2 = s4[e2];
|
|
59
|
+
r2 || (r2 = /* @__PURE__ */ new Set(), s4[e2] = r2), r2.add(t2);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}, i2 = { get: (e2, n3) => n3 === t$2 ? o2 : (f3("k", n3), a$2(Reflect.get(e2, n3), c3[r$3], c3.c, c3.t)), has: (t2, n3) => n3 === e$3 ? (l2 = true, c3[r$3].delete(o2), true) : (f3("h", n3), Reflect.has(t2, n3)), getOwnPropertyDescriptor: (e2, t2) => (f3("o", t2), Reflect.getOwnPropertyDescriptor(e2, t2)), ownKeys: (e2) => (f3(n$3), Reflect.ownKeys(e2)) };
|
|
63
|
+
return s3 && (i2.set = i2.deleteProperty = () => false), [i2, c3];
|
|
64
|
+
})(y3, !!h2), w2[1].p = o$4(h2 || y3, w2[0]), f2 && f2.set(y3, w2)), w2[1][r$3] = c2, w2[1].c = f2, w2[1].t = p2, w2[1].p;
|
|
65
|
+
}, p$2 = (e2, t2, r2, o2, s2 = Object.is) => {
|
|
66
|
+
if (s2(e2, t2)) return false;
|
|
67
|
+
if (!f$2(e2) || !f$2(t2)) return true;
|
|
68
|
+
const c2 = r2.get(u$2(e2));
|
|
69
|
+
if (!c2) return true;
|
|
70
|
+
if (o2) {
|
|
71
|
+
const r3 = o2.get(e2);
|
|
72
|
+
if (r3 && r3.n === t2) return r3.g;
|
|
73
|
+
o2.set(e2, { n: t2, g: false });
|
|
74
|
+
}
|
|
75
|
+
let l2 = null;
|
|
76
|
+
try {
|
|
77
|
+
for (const r3 of c2.h || []) if (l2 = Reflect.has(e2, r3) !== Reflect.has(t2, r3), l2) return l2;
|
|
78
|
+
if (true === c2[n$3]) {
|
|
79
|
+
if (l2 = ((e3, t3) => {
|
|
80
|
+
const r3 = Reflect.ownKeys(e3), n3 = Reflect.ownKeys(t3);
|
|
81
|
+
return r3.length !== n3.length || r3.some((e4, t4) => e4 !== n3[t4]);
|
|
82
|
+
})(e2, t2), l2) return l2;
|
|
83
|
+
} else for (const r3 of c2.o || []) if (l2 = !!Reflect.getOwnPropertyDescriptor(e2, r3) != !!Reflect.getOwnPropertyDescriptor(t2, r3), l2) return l2;
|
|
84
|
+
for (const n3 of c2.k || []) if (l2 = p$2(e2[n3], t2[n3], r2, o2, s2), l2) return l2;
|
|
85
|
+
return null === l2 && (l2 = true), l2;
|
|
86
|
+
} finally {
|
|
87
|
+
o2 && o2.set(e2, { n: t2, g: l2 });
|
|
88
|
+
}
|
|
89
|
+
}, y$2 = (e2) => l$2(e2) && e2[t$2] || null, h$2 = (e2, t2 = true) => {
|
|
90
|
+
c$3.set(e2, t2);
|
|
91
|
+
}, w = (e2, t2, r2) => {
|
|
92
|
+
const o2 = [], s2 = /* @__PURE__ */ new WeakSet(), c2 = (e3, l2) => {
|
|
93
|
+
if (s2.has(e3)) return;
|
|
94
|
+
f$2(e3) && s2.add(e3);
|
|
95
|
+
const i2 = f$2(e3) && t2.get(u$2(e3));
|
|
96
|
+
if (i2) {
|
|
97
|
+
var a2, p2;
|
|
98
|
+
if (null == (a2 = i2.h) || a2.forEach((e4) => {
|
|
99
|
+
const t3 = `:has(${String(e4)})`;
|
|
100
|
+
o2.push(l2 ? [...l2, t3] : [t3]);
|
|
101
|
+
}), true === i2[n$3]) {
|
|
102
|
+
const e4 = ":ownKeys";
|
|
103
|
+
o2.push(l2 ? [...l2, e4] : [e4]);
|
|
104
|
+
} else {
|
|
105
|
+
var g2;
|
|
106
|
+
null == (g2 = i2.o) || g2.forEach((e4) => {
|
|
107
|
+
const t3 = `:hasOwn(${String(e4)})`;
|
|
108
|
+
o2.push(l2 ? [...l2, t3] : [t3]);
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
null == (p2 = i2.k) || p2.forEach((t3) => {
|
|
112
|
+
!("value" in (Object.getOwnPropertyDescriptor(e3, t3) || {})) || c2(e3[t3], l2 ? [...l2, t3] : [t3]);
|
|
113
|
+
});
|
|
114
|
+
} else l2 && o2.push(l2);
|
|
115
|
+
};
|
|
116
|
+
return c2(e2), o2;
|
|
117
|
+
};
|
|
118
|
+
const __vite_import_meta_env__$1 = {};
|
|
119
|
+
const isObject = (x2) => typeof x2 === "object" && x2 !== null;
|
|
120
|
+
const proxyStateMap = /* @__PURE__ */ new WeakMap();
|
|
121
|
+
const refSet = /* @__PURE__ */ new WeakSet();
|
|
122
|
+
const buildProxyFunction = (objectIs = Object.is, newProxy = (target, handler) => new Proxy(target, handler), canProxy = (x2) => isObject(x2) && !refSet.has(x2) && (Array.isArray(x2) || !(Symbol.iterator in x2)) && !(x2 instanceof WeakMap) && !(x2 instanceof WeakSet) && !(x2 instanceof Error) && !(x2 instanceof Number) && !(x2 instanceof Date) && !(x2 instanceof String) && !(x2 instanceof RegExp) && !(x2 instanceof ArrayBuffer), defaultHandlePromise = (promise) => {
|
|
123
|
+
switch (promise.status) {
|
|
124
|
+
case "fulfilled":
|
|
125
|
+
return promise.value;
|
|
126
|
+
case "rejected":
|
|
127
|
+
throw promise.reason;
|
|
128
|
+
default:
|
|
129
|
+
throw promise;
|
|
130
|
+
}
|
|
131
|
+
}, snapCache = /* @__PURE__ */ new WeakMap(), createSnapshot = (target, version, handlePromise = defaultHandlePromise) => {
|
|
132
|
+
const cache = snapCache.get(target);
|
|
133
|
+
if ((cache == null ? void 0 : cache[0]) === version) {
|
|
134
|
+
return cache[1];
|
|
135
|
+
}
|
|
136
|
+
const snap = Array.isArray(target) ? [] : Object.create(Object.getPrototypeOf(target));
|
|
137
|
+
h$2(snap, true);
|
|
138
|
+
snapCache.set(target, [version, snap]);
|
|
139
|
+
Reflect.ownKeys(target).forEach((key) => {
|
|
140
|
+
if (Object.getOwnPropertyDescriptor(snap, key)) {
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
const value = Reflect.get(target, key);
|
|
144
|
+
const { enumerable } = Reflect.getOwnPropertyDescriptor(
|
|
145
|
+
target,
|
|
146
|
+
key
|
|
147
|
+
);
|
|
148
|
+
const desc = {
|
|
149
|
+
value,
|
|
150
|
+
enumerable,
|
|
151
|
+
// This is intentional to avoid copying with proxy-compare.
|
|
152
|
+
// It's still non-writable, so it avoids assigning a value.
|
|
153
|
+
configurable: true
|
|
154
|
+
};
|
|
155
|
+
if (refSet.has(value)) {
|
|
156
|
+
h$2(value, false);
|
|
157
|
+
} else if (value instanceof Promise) {
|
|
158
|
+
delete desc.value;
|
|
159
|
+
desc.get = () => handlePromise(value);
|
|
160
|
+
} else if (proxyStateMap.has(value)) {
|
|
161
|
+
const [target2, ensureVersion] = proxyStateMap.get(
|
|
162
|
+
value
|
|
163
|
+
);
|
|
164
|
+
desc.value = createSnapshot(
|
|
165
|
+
target2,
|
|
166
|
+
ensureVersion(),
|
|
167
|
+
handlePromise
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
Object.defineProperty(snap, key, desc);
|
|
171
|
+
});
|
|
172
|
+
return Object.preventExtensions(snap);
|
|
173
|
+
}, proxyCache = /* @__PURE__ */ new WeakMap(), versionHolder = [1, 1], proxyFunction = (initialObject) => {
|
|
174
|
+
if (!isObject(initialObject)) {
|
|
175
|
+
throw new Error("object required");
|
|
176
|
+
}
|
|
177
|
+
const found = proxyCache.get(initialObject);
|
|
178
|
+
if (found) {
|
|
179
|
+
return found;
|
|
180
|
+
}
|
|
181
|
+
let version = versionHolder[0];
|
|
182
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
183
|
+
const notifyUpdate = (op, nextVersion = ++versionHolder[0]) => {
|
|
184
|
+
if (version !== nextVersion) {
|
|
185
|
+
version = nextVersion;
|
|
186
|
+
listeners.forEach((listener) => listener(op, nextVersion));
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
let checkVersion = versionHolder[1];
|
|
190
|
+
const ensureVersion = (nextCheckVersion = ++versionHolder[1]) => {
|
|
191
|
+
if (checkVersion !== nextCheckVersion && !listeners.size) {
|
|
192
|
+
checkVersion = nextCheckVersion;
|
|
193
|
+
propProxyStates.forEach(([propProxyState]) => {
|
|
194
|
+
const propVersion = propProxyState[1](nextCheckVersion);
|
|
195
|
+
if (propVersion > version) {
|
|
196
|
+
version = propVersion;
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
return version;
|
|
201
|
+
};
|
|
202
|
+
const createPropListener = (prop) => (op, nextVersion) => {
|
|
203
|
+
const newOp = [...op];
|
|
204
|
+
newOp[1] = [prop, ...newOp[1]];
|
|
205
|
+
notifyUpdate(newOp, nextVersion);
|
|
206
|
+
};
|
|
207
|
+
const propProxyStates = /* @__PURE__ */ new Map();
|
|
208
|
+
const addPropListener = (prop, propProxyState) => {
|
|
209
|
+
if ((__vite_import_meta_env__$1 ? "production" : void 0) !== "production" && propProxyStates.has(prop)) {
|
|
210
|
+
throw new Error("prop listener already exists");
|
|
211
|
+
}
|
|
212
|
+
if (listeners.size) {
|
|
213
|
+
const remove = propProxyState[3](createPropListener(prop));
|
|
214
|
+
propProxyStates.set(prop, [propProxyState, remove]);
|
|
215
|
+
} else {
|
|
216
|
+
propProxyStates.set(prop, [propProxyState]);
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
const removePropListener = (prop) => {
|
|
220
|
+
var _a2;
|
|
221
|
+
const entry = propProxyStates.get(prop);
|
|
222
|
+
if (entry) {
|
|
223
|
+
propProxyStates.delete(prop);
|
|
224
|
+
(_a2 = entry[1]) == null ? void 0 : _a2.call(entry);
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
const addListener = (listener) => {
|
|
228
|
+
listeners.add(listener);
|
|
229
|
+
if (listeners.size === 1) {
|
|
230
|
+
propProxyStates.forEach(([propProxyState, prevRemove], prop) => {
|
|
231
|
+
if ((__vite_import_meta_env__$1 ? "production" : void 0) !== "production" && prevRemove) {
|
|
232
|
+
throw new Error("remove already exists");
|
|
233
|
+
}
|
|
234
|
+
const remove = propProxyState[3](createPropListener(prop));
|
|
235
|
+
propProxyStates.set(prop, [propProxyState, remove]);
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
const removeListener = () => {
|
|
239
|
+
listeners.delete(listener);
|
|
240
|
+
if (listeners.size === 0) {
|
|
241
|
+
propProxyStates.forEach(([propProxyState, remove], prop) => {
|
|
242
|
+
if (remove) {
|
|
243
|
+
remove();
|
|
244
|
+
propProxyStates.set(prop, [propProxyState]);
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
};
|
|
249
|
+
return removeListener;
|
|
250
|
+
};
|
|
251
|
+
const baseObject = Array.isArray(initialObject) ? [] : Object.create(Object.getPrototypeOf(initialObject));
|
|
252
|
+
const handler = {
|
|
253
|
+
deleteProperty(target, prop) {
|
|
254
|
+
const prevValue = Reflect.get(target, prop);
|
|
255
|
+
removePropListener(prop);
|
|
256
|
+
const deleted = Reflect.deleteProperty(target, prop);
|
|
257
|
+
if (deleted) {
|
|
258
|
+
notifyUpdate(["delete", [prop], prevValue]);
|
|
259
|
+
}
|
|
260
|
+
return deleted;
|
|
261
|
+
},
|
|
262
|
+
set(target, prop, value, receiver) {
|
|
263
|
+
const hasPrevValue = Reflect.has(target, prop);
|
|
264
|
+
const prevValue = Reflect.get(target, prop, receiver);
|
|
265
|
+
if (hasPrevValue && (objectIs(prevValue, value) || proxyCache.has(value) && objectIs(prevValue, proxyCache.get(value)))) {
|
|
266
|
+
return true;
|
|
267
|
+
}
|
|
268
|
+
removePropListener(prop);
|
|
269
|
+
if (isObject(value)) {
|
|
270
|
+
value = y$2(value) || value;
|
|
271
|
+
}
|
|
272
|
+
let nextValue = value;
|
|
273
|
+
if (value instanceof Promise) {
|
|
274
|
+
value.then((v2) => {
|
|
275
|
+
value.status = "fulfilled";
|
|
276
|
+
value.value = v2;
|
|
277
|
+
notifyUpdate(["resolve", [prop], v2]);
|
|
278
|
+
}).catch((e2) => {
|
|
279
|
+
value.status = "rejected";
|
|
280
|
+
value.reason = e2;
|
|
281
|
+
notifyUpdate(["reject", [prop], e2]);
|
|
282
|
+
});
|
|
283
|
+
} else {
|
|
284
|
+
if (!proxyStateMap.has(value) && canProxy(value)) {
|
|
285
|
+
nextValue = proxyFunction(value);
|
|
286
|
+
}
|
|
287
|
+
const childProxyState = !refSet.has(nextValue) && proxyStateMap.get(nextValue);
|
|
288
|
+
if (childProxyState) {
|
|
289
|
+
addPropListener(prop, childProxyState);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
Reflect.set(target, prop, nextValue, receiver);
|
|
293
|
+
notifyUpdate(["set", [prop], value, prevValue]);
|
|
294
|
+
return true;
|
|
295
|
+
}
|
|
296
|
+
};
|
|
297
|
+
const proxyObject = newProxy(baseObject, handler);
|
|
298
|
+
proxyCache.set(initialObject, proxyObject);
|
|
299
|
+
const proxyState = [
|
|
300
|
+
baseObject,
|
|
301
|
+
ensureVersion,
|
|
302
|
+
createSnapshot,
|
|
303
|
+
addListener
|
|
304
|
+
];
|
|
305
|
+
proxyStateMap.set(proxyObject, proxyState);
|
|
306
|
+
Reflect.ownKeys(initialObject).forEach((key) => {
|
|
307
|
+
const desc = Object.getOwnPropertyDescriptor(
|
|
308
|
+
initialObject,
|
|
309
|
+
key
|
|
310
|
+
);
|
|
311
|
+
if ("value" in desc) {
|
|
312
|
+
proxyObject[key] = initialObject[key];
|
|
313
|
+
delete desc.value;
|
|
314
|
+
delete desc.writable;
|
|
315
|
+
}
|
|
316
|
+
Object.defineProperty(baseObject, key, desc);
|
|
317
|
+
});
|
|
318
|
+
return proxyObject;
|
|
319
|
+
}) => [
|
|
320
|
+
// public functions
|
|
321
|
+
proxyFunction,
|
|
322
|
+
// shared state
|
|
323
|
+
proxyStateMap,
|
|
324
|
+
refSet,
|
|
325
|
+
// internal things
|
|
326
|
+
objectIs,
|
|
327
|
+
newProxy,
|
|
328
|
+
canProxy,
|
|
329
|
+
defaultHandlePromise,
|
|
330
|
+
snapCache,
|
|
331
|
+
createSnapshot,
|
|
332
|
+
proxyCache,
|
|
333
|
+
versionHolder
|
|
334
|
+
];
|
|
335
|
+
const [defaultProxyFunction] = buildProxyFunction();
|
|
336
|
+
function proxy(initialObject = {}) {
|
|
337
|
+
return defaultProxyFunction(initialObject);
|
|
338
|
+
}
|
|
339
|
+
function subscribe(proxyObject, callback, notifyInSync) {
|
|
340
|
+
const proxyState = proxyStateMap.get(proxyObject);
|
|
341
|
+
if ((__vite_import_meta_env__$1 ? "production" : void 0) !== "production" && !proxyState) {
|
|
342
|
+
console.warn("Please use proxy object");
|
|
343
|
+
}
|
|
344
|
+
let promise;
|
|
345
|
+
const ops = [];
|
|
346
|
+
const addListener = proxyState[3];
|
|
347
|
+
let isListenerActive = false;
|
|
348
|
+
const listener = (op) => {
|
|
349
|
+
ops.push(op);
|
|
350
|
+
if (!promise) {
|
|
351
|
+
promise = Promise.resolve().then(() => {
|
|
352
|
+
promise = void 0;
|
|
353
|
+
if (isListenerActive) {
|
|
354
|
+
callback(ops.splice(0));
|
|
355
|
+
}
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
};
|
|
359
|
+
const removeListener = addListener(listener);
|
|
360
|
+
isListenerActive = true;
|
|
361
|
+
return () => {
|
|
362
|
+
isListenerActive = false;
|
|
363
|
+
removeListener();
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
function snapshot(proxyObject, handlePromise) {
|
|
367
|
+
const proxyState = proxyStateMap.get(proxyObject);
|
|
368
|
+
if ((__vite_import_meta_env__$1 ? "production" : void 0) !== "production" && !proxyState) {
|
|
369
|
+
console.warn("Please use proxy object");
|
|
370
|
+
}
|
|
371
|
+
const [target, ensureVersion, createSnapshot] = proxyState;
|
|
372
|
+
return createSnapshot(target, ensureVersion(), handlePromise);
|
|
373
|
+
}
|
|
374
|
+
function ref(obj) {
|
|
375
|
+
refSet.add(obj);
|
|
376
|
+
return obj;
|
|
377
|
+
}
|
|
378
|
+
function subscribeKey(proxyObject, key, callback, notifyInSync) {
|
|
379
|
+
let prevValue = proxyObject[key];
|
|
380
|
+
return subscribe(
|
|
381
|
+
proxyObject,
|
|
382
|
+
() => {
|
|
383
|
+
const nextValue = proxyObject[key];
|
|
384
|
+
if (!Object.is(prevValue, nextValue)) {
|
|
385
|
+
callback(prevValue = nextValue);
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
);
|
|
389
|
+
}
|
|
390
|
+
function proxyMap(entries) {
|
|
391
|
+
const map = proxy({
|
|
392
|
+
data: Array.from([]),
|
|
393
|
+
has(key) {
|
|
394
|
+
return this.data.some((p2) => p2[0] === key);
|
|
395
|
+
},
|
|
396
|
+
set(key, value) {
|
|
397
|
+
const record = this.data.find((p2) => p2[0] === key);
|
|
398
|
+
if (record) {
|
|
399
|
+
record[1] = value;
|
|
400
|
+
} else {
|
|
401
|
+
this.data.push([key, value]);
|
|
402
|
+
}
|
|
403
|
+
return this;
|
|
404
|
+
},
|
|
405
|
+
get(key) {
|
|
406
|
+
var _a2;
|
|
407
|
+
return (_a2 = this.data.find((p2) => p2[0] === key)) == null ? void 0 : _a2[1];
|
|
408
|
+
},
|
|
409
|
+
delete(key) {
|
|
410
|
+
const index = this.data.findIndex((p2) => p2[0] === key);
|
|
411
|
+
if (index === -1) {
|
|
412
|
+
return false;
|
|
413
|
+
}
|
|
414
|
+
this.data.splice(index, 1);
|
|
415
|
+
return true;
|
|
416
|
+
},
|
|
417
|
+
clear() {
|
|
418
|
+
this.data.splice(0);
|
|
419
|
+
},
|
|
420
|
+
get size() {
|
|
421
|
+
return this.data.length;
|
|
422
|
+
},
|
|
423
|
+
toJSON() {
|
|
424
|
+
return new Map(this.data);
|
|
425
|
+
},
|
|
426
|
+
forEach(cb) {
|
|
427
|
+
this.data.forEach((p2) => {
|
|
428
|
+
cb(p2[1], p2[0], this);
|
|
429
|
+
});
|
|
430
|
+
},
|
|
431
|
+
keys() {
|
|
432
|
+
return this.data.map((p2) => p2[0]).values();
|
|
433
|
+
},
|
|
434
|
+
values() {
|
|
435
|
+
return this.data.map((p2) => p2[1]).values();
|
|
436
|
+
},
|
|
437
|
+
entries() {
|
|
438
|
+
return new Map(this.data).entries();
|
|
439
|
+
},
|
|
440
|
+
get [Symbol.toStringTag]() {
|
|
441
|
+
return "Map";
|
|
442
|
+
},
|
|
443
|
+
[Symbol.iterator]() {
|
|
444
|
+
return this.entries();
|
|
445
|
+
}
|
|
446
|
+
});
|
|
447
|
+
Object.defineProperties(map, {
|
|
448
|
+
data: {
|
|
449
|
+
enumerable: false
|
|
450
|
+
},
|
|
451
|
+
size: {
|
|
452
|
+
enumerable: false
|
|
453
|
+
},
|
|
454
|
+
toJSON: {
|
|
455
|
+
enumerable: false
|
|
456
|
+
}
|
|
457
|
+
});
|
|
458
|
+
Object.seal(map);
|
|
459
|
+
return map;
|
|
460
|
+
}
|
|
461
|
+
function getW3mThemeVariables(themeVariables, themeType) {
|
|
462
|
+
if (themeType === "light") {
|
|
463
|
+
return {
|
|
464
|
+
"--w3m-accent": (themeVariables == null ? void 0 : themeVariables["--w3m-accent"]) || "hsla(231, 100%, 70%, 1)",
|
|
465
|
+
"--w3m-background": "#fff"
|
|
466
|
+
};
|
|
467
|
+
}
|
|
468
|
+
return {
|
|
469
|
+
"--w3m-accent": (themeVariables == null ? void 0 : themeVariables["--w3m-accent"]) || "hsla(230, 100%, 67%, 1)",
|
|
470
|
+
"--w3m-background": "#121313"
|
|
471
|
+
};
|
|
472
|
+
}
|
|
473
|
+
function tryStringify(o2) {
|
|
474
|
+
try {
|
|
475
|
+
return JSON.stringify(o2);
|
|
476
|
+
} catch (e2) {
|
|
477
|
+
return '"[Circular]"';
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
var quickFormatUnescaped = format$1;
|
|
481
|
+
function format$1(f2, args, opts) {
|
|
482
|
+
var ss = opts && opts.stringify || tryStringify;
|
|
483
|
+
var offset = 1;
|
|
484
|
+
if (typeof f2 === "object" && f2 !== null) {
|
|
485
|
+
var len = args.length + offset;
|
|
486
|
+
if (len === 1) return f2;
|
|
487
|
+
var objects = new Array(len);
|
|
488
|
+
objects[0] = ss(f2);
|
|
489
|
+
for (var index = 1; index < len; index++) {
|
|
490
|
+
objects[index] = ss(args[index]);
|
|
491
|
+
}
|
|
492
|
+
return objects.join(" ");
|
|
493
|
+
}
|
|
494
|
+
if (typeof f2 !== "string") {
|
|
495
|
+
return f2;
|
|
496
|
+
}
|
|
497
|
+
var argLen = args.length;
|
|
498
|
+
if (argLen === 0) return f2;
|
|
499
|
+
var str = "";
|
|
500
|
+
var a2 = 1 - offset;
|
|
501
|
+
var lastPos = -1;
|
|
502
|
+
var flen = f2 && f2.length || 0;
|
|
503
|
+
for (var i2 = 0; i2 < flen; ) {
|
|
504
|
+
if (f2.charCodeAt(i2) === 37 && i2 + 1 < flen) {
|
|
505
|
+
lastPos = lastPos > -1 ? lastPos : 0;
|
|
506
|
+
switch (f2.charCodeAt(i2 + 1)) {
|
|
507
|
+
case 100:
|
|
508
|
+
case 102:
|
|
509
|
+
if (a2 >= argLen)
|
|
510
|
+
break;
|
|
511
|
+
if (args[a2] == null) break;
|
|
512
|
+
if (lastPos < i2)
|
|
513
|
+
str += f2.slice(lastPos, i2);
|
|
514
|
+
str += Number(args[a2]);
|
|
515
|
+
lastPos = i2 + 2;
|
|
516
|
+
i2++;
|
|
517
|
+
break;
|
|
518
|
+
case 105:
|
|
519
|
+
if (a2 >= argLen)
|
|
520
|
+
break;
|
|
521
|
+
if (args[a2] == null) break;
|
|
522
|
+
if (lastPos < i2)
|
|
523
|
+
str += f2.slice(lastPos, i2);
|
|
524
|
+
str += Math.floor(Number(args[a2]));
|
|
525
|
+
lastPos = i2 + 2;
|
|
526
|
+
i2++;
|
|
527
|
+
break;
|
|
528
|
+
case 79:
|
|
529
|
+
case 111:
|
|
530
|
+
case 106:
|
|
531
|
+
if (a2 >= argLen)
|
|
532
|
+
break;
|
|
533
|
+
if (args[a2] === void 0) break;
|
|
534
|
+
if (lastPos < i2)
|
|
535
|
+
str += f2.slice(lastPos, i2);
|
|
536
|
+
var type = typeof args[a2];
|
|
537
|
+
if (type === "string") {
|
|
538
|
+
str += "'" + args[a2] + "'";
|
|
539
|
+
lastPos = i2 + 2;
|
|
540
|
+
i2++;
|
|
541
|
+
break;
|
|
542
|
+
}
|
|
543
|
+
if (type === "function") {
|
|
544
|
+
str += args[a2].name || "<anonymous>";
|
|
545
|
+
lastPos = i2 + 2;
|
|
546
|
+
i2++;
|
|
547
|
+
break;
|
|
548
|
+
}
|
|
549
|
+
str += ss(args[a2]);
|
|
550
|
+
lastPos = i2 + 2;
|
|
551
|
+
i2++;
|
|
552
|
+
break;
|
|
553
|
+
case 115:
|
|
554
|
+
if (a2 >= argLen)
|
|
555
|
+
break;
|
|
556
|
+
if (lastPos < i2)
|
|
557
|
+
str += f2.slice(lastPos, i2);
|
|
558
|
+
str += String(args[a2]);
|
|
559
|
+
lastPos = i2 + 2;
|
|
560
|
+
i2++;
|
|
561
|
+
break;
|
|
562
|
+
case 37:
|
|
563
|
+
if (lastPos < i2)
|
|
564
|
+
str += f2.slice(lastPos, i2);
|
|
565
|
+
str += "%";
|
|
566
|
+
lastPos = i2 + 2;
|
|
567
|
+
i2++;
|
|
568
|
+
a2--;
|
|
569
|
+
break;
|
|
570
|
+
}
|
|
571
|
+
++a2;
|
|
572
|
+
}
|
|
573
|
+
++i2;
|
|
574
|
+
}
|
|
575
|
+
if (lastPos === -1)
|
|
576
|
+
return f2;
|
|
577
|
+
else if (lastPos < flen) {
|
|
578
|
+
str += f2.slice(lastPos);
|
|
579
|
+
}
|
|
580
|
+
return str;
|
|
581
|
+
}
|
|
582
|
+
const format = quickFormatUnescaped;
|
|
583
|
+
var browser = pino;
|
|
584
|
+
const _console = pfGlobalThisOrFallback().console || {};
|
|
585
|
+
const stdSerializers = {
|
|
586
|
+
mapHttpRequest: mock,
|
|
587
|
+
mapHttpResponse: mock,
|
|
588
|
+
wrapRequestSerializer: passthrough,
|
|
589
|
+
wrapResponseSerializer: passthrough,
|
|
590
|
+
wrapErrorSerializer: passthrough,
|
|
591
|
+
req: mock,
|
|
592
|
+
res: mock,
|
|
593
|
+
err: asErrValue
|
|
594
|
+
};
|
|
595
|
+
function shouldSerialize(serialize, serializers) {
|
|
596
|
+
if (Array.isArray(serialize)) {
|
|
597
|
+
const hasToFilter = serialize.filter(function(k2) {
|
|
598
|
+
return k2 !== "!stdSerializers.err";
|
|
599
|
+
});
|
|
600
|
+
return hasToFilter;
|
|
601
|
+
} else if (serialize === true) {
|
|
602
|
+
return Object.keys(serializers);
|
|
603
|
+
}
|
|
604
|
+
return false;
|
|
605
|
+
}
|
|
606
|
+
function pino(opts) {
|
|
607
|
+
opts = opts || {};
|
|
608
|
+
opts.browser = opts.browser || {};
|
|
609
|
+
const transmit2 = opts.browser.transmit;
|
|
610
|
+
if (transmit2 && typeof transmit2.send !== "function") {
|
|
611
|
+
throw Error("pino: transmit option must have a send function");
|
|
612
|
+
}
|
|
613
|
+
const proto = opts.browser.write || _console;
|
|
614
|
+
if (opts.browser.write) opts.browser.asObject = true;
|
|
615
|
+
const serializers = opts.serializers || {};
|
|
616
|
+
const serialize = shouldSerialize(opts.browser.serialize, serializers);
|
|
617
|
+
let stdErrSerialize = opts.browser.serialize;
|
|
618
|
+
if (Array.isArray(opts.browser.serialize) && opts.browser.serialize.indexOf("!stdSerializers.err") > -1) stdErrSerialize = false;
|
|
619
|
+
const levels = ["error", "fatal", "warn", "info", "debug", "trace"];
|
|
620
|
+
if (typeof proto === "function") {
|
|
621
|
+
proto.error = proto.fatal = proto.warn = proto.info = proto.debug = proto.trace = proto;
|
|
622
|
+
}
|
|
623
|
+
if (opts.enabled === false) opts.level = "silent";
|
|
624
|
+
const level = opts.level || "info";
|
|
625
|
+
const logger = Object.create(proto);
|
|
626
|
+
if (!logger.log) logger.log = noop;
|
|
627
|
+
Object.defineProperty(logger, "levelVal", {
|
|
628
|
+
get: getLevelVal
|
|
629
|
+
});
|
|
630
|
+
Object.defineProperty(logger, "level", {
|
|
631
|
+
get: getLevel,
|
|
632
|
+
set: setLevel
|
|
633
|
+
});
|
|
634
|
+
const setOpts = {
|
|
635
|
+
transmit: transmit2,
|
|
636
|
+
serialize,
|
|
637
|
+
asObject: opts.browser.asObject,
|
|
638
|
+
levels,
|
|
639
|
+
timestamp: getTimeFunction(opts)
|
|
640
|
+
};
|
|
641
|
+
logger.levels = pino.levels;
|
|
642
|
+
logger.level = level;
|
|
643
|
+
logger.setMaxListeners = logger.getMaxListeners = logger.emit = logger.addListener = logger.on = logger.prependListener = logger.once = logger.prependOnceListener = logger.removeListener = logger.removeAllListeners = logger.listeners = logger.listenerCount = logger.eventNames = logger.write = logger.flush = noop;
|
|
644
|
+
logger.serializers = serializers;
|
|
645
|
+
logger._serialize = serialize;
|
|
646
|
+
logger._stdErrSerialize = stdErrSerialize;
|
|
647
|
+
logger.child = child;
|
|
648
|
+
if (transmit2) logger._logEvent = createLogEventShape();
|
|
649
|
+
function getLevelVal() {
|
|
650
|
+
return this.level === "silent" ? Infinity : this.levels.values[this.level];
|
|
651
|
+
}
|
|
652
|
+
function getLevel() {
|
|
653
|
+
return this._level;
|
|
654
|
+
}
|
|
655
|
+
function setLevel(level2) {
|
|
656
|
+
if (level2 !== "silent" && !this.levels.values[level2]) {
|
|
657
|
+
throw Error("unknown level " + level2);
|
|
658
|
+
}
|
|
659
|
+
this._level = level2;
|
|
660
|
+
set(setOpts, logger, "error", "log");
|
|
661
|
+
set(setOpts, logger, "fatal", "error");
|
|
662
|
+
set(setOpts, logger, "warn", "error");
|
|
663
|
+
set(setOpts, logger, "info", "log");
|
|
664
|
+
set(setOpts, logger, "debug", "log");
|
|
665
|
+
set(setOpts, logger, "trace", "log");
|
|
666
|
+
}
|
|
667
|
+
function child(bindings, childOptions) {
|
|
668
|
+
if (!bindings) {
|
|
669
|
+
throw new Error("missing bindings for child Pino");
|
|
670
|
+
}
|
|
671
|
+
childOptions = childOptions || {};
|
|
672
|
+
if (serialize && bindings.serializers) {
|
|
673
|
+
childOptions.serializers = bindings.serializers;
|
|
674
|
+
}
|
|
675
|
+
const childOptionsSerializers = childOptions.serializers;
|
|
676
|
+
if (serialize && childOptionsSerializers) {
|
|
677
|
+
var childSerializers = Object.assign({}, serializers, childOptionsSerializers);
|
|
678
|
+
var childSerialize = opts.browser.serialize === true ? Object.keys(childSerializers) : serialize;
|
|
679
|
+
delete bindings.serializers;
|
|
680
|
+
applySerializers([bindings], childSerialize, childSerializers, this._stdErrSerialize);
|
|
681
|
+
}
|
|
682
|
+
function Child(parent) {
|
|
683
|
+
this._childLevel = (parent._childLevel | 0) + 1;
|
|
684
|
+
this.error = bind(parent, bindings, "error");
|
|
685
|
+
this.fatal = bind(parent, bindings, "fatal");
|
|
686
|
+
this.warn = bind(parent, bindings, "warn");
|
|
687
|
+
this.info = bind(parent, bindings, "info");
|
|
688
|
+
this.debug = bind(parent, bindings, "debug");
|
|
689
|
+
this.trace = bind(parent, bindings, "trace");
|
|
690
|
+
if (childSerializers) {
|
|
691
|
+
this.serializers = childSerializers;
|
|
692
|
+
this._serialize = childSerialize;
|
|
693
|
+
}
|
|
694
|
+
if (transmit2) {
|
|
695
|
+
this._logEvent = createLogEventShape(
|
|
696
|
+
[].concat(parent._logEvent.bindings, bindings)
|
|
697
|
+
);
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
Child.prototype = this;
|
|
701
|
+
return new Child(this);
|
|
702
|
+
}
|
|
703
|
+
return logger;
|
|
704
|
+
}
|
|
705
|
+
pino.levels = {
|
|
706
|
+
values: {
|
|
707
|
+
fatal: 60,
|
|
708
|
+
error: 50,
|
|
709
|
+
warn: 40,
|
|
710
|
+
info: 30,
|
|
711
|
+
debug: 20,
|
|
712
|
+
trace: 10
|
|
713
|
+
},
|
|
714
|
+
labels: {
|
|
715
|
+
10: "trace",
|
|
716
|
+
20: "debug",
|
|
717
|
+
30: "info",
|
|
718
|
+
40: "warn",
|
|
719
|
+
50: "error",
|
|
720
|
+
60: "fatal"
|
|
721
|
+
}
|
|
722
|
+
};
|
|
723
|
+
pino.stdSerializers = stdSerializers;
|
|
724
|
+
pino.stdTimeFunctions = Object.assign({}, { nullTime, epochTime, unixTime, isoTime });
|
|
725
|
+
function set(opts, logger, level, fallback) {
|
|
726
|
+
const proto = Object.getPrototypeOf(logger);
|
|
727
|
+
logger[level] = logger.levelVal > logger.levels.values[level] ? noop : proto[level] ? proto[level] : _console[level] || _console[fallback] || noop;
|
|
728
|
+
wrap(opts, logger, level);
|
|
729
|
+
}
|
|
730
|
+
function wrap(opts, logger, level) {
|
|
731
|
+
if (!opts.transmit && logger[level] === noop) return;
|
|
732
|
+
logger[level] = /* @__PURE__ */ function(write) {
|
|
733
|
+
return function LOG() {
|
|
734
|
+
const ts = opts.timestamp();
|
|
735
|
+
const args = new Array(arguments.length);
|
|
736
|
+
const proto = Object.getPrototypeOf && Object.getPrototypeOf(this) === _console ? _console : this;
|
|
737
|
+
for (var i2 = 0; i2 < args.length; i2++) args[i2] = arguments[i2];
|
|
738
|
+
if (opts.serialize && !opts.asObject) {
|
|
739
|
+
applySerializers(args, this._serialize, this.serializers, this._stdErrSerialize);
|
|
740
|
+
}
|
|
741
|
+
if (opts.asObject) write.call(proto, asObject(this, level, args, ts));
|
|
742
|
+
else write.apply(proto, args);
|
|
743
|
+
if (opts.transmit) {
|
|
744
|
+
const transmitLevel = opts.transmit.level || logger.level;
|
|
745
|
+
const transmitValue = pino.levels.values[transmitLevel];
|
|
746
|
+
const methodValue = pino.levels.values[level];
|
|
747
|
+
if (methodValue < transmitValue) return;
|
|
748
|
+
transmit(this, {
|
|
749
|
+
ts,
|
|
750
|
+
methodLevel: level,
|
|
751
|
+
methodValue,
|
|
752
|
+
transmitValue: pino.levels.values[opts.transmit.level || logger.level],
|
|
753
|
+
send: opts.transmit.send,
|
|
754
|
+
val: logger.levelVal
|
|
755
|
+
}, args);
|
|
756
|
+
}
|
|
757
|
+
};
|
|
758
|
+
}(logger[level]);
|
|
759
|
+
}
|
|
760
|
+
function asObject(logger, level, args, ts) {
|
|
761
|
+
if (logger._serialize) applySerializers(args, logger._serialize, logger.serializers, logger._stdErrSerialize);
|
|
762
|
+
const argsCloned = args.slice();
|
|
763
|
+
let msg = argsCloned[0];
|
|
764
|
+
const o2 = {};
|
|
765
|
+
if (ts) {
|
|
766
|
+
o2.time = ts;
|
|
767
|
+
}
|
|
768
|
+
o2.level = pino.levels.values[level];
|
|
769
|
+
let lvl = (logger._childLevel | 0) + 1;
|
|
770
|
+
if (lvl < 1) lvl = 1;
|
|
771
|
+
if (msg !== null && typeof msg === "object") {
|
|
772
|
+
while (lvl-- && typeof argsCloned[0] === "object") {
|
|
773
|
+
Object.assign(o2, argsCloned.shift());
|
|
774
|
+
}
|
|
775
|
+
msg = argsCloned.length ? format(argsCloned.shift(), argsCloned) : void 0;
|
|
776
|
+
} else if (typeof msg === "string") msg = format(argsCloned.shift(), argsCloned);
|
|
777
|
+
if (msg !== void 0) o2.msg = msg;
|
|
778
|
+
return o2;
|
|
779
|
+
}
|
|
780
|
+
function applySerializers(args, serialize, serializers, stdErrSerialize) {
|
|
781
|
+
for (const i2 in args) {
|
|
782
|
+
if (stdErrSerialize && args[i2] instanceof Error) {
|
|
783
|
+
args[i2] = pino.stdSerializers.err(args[i2]);
|
|
784
|
+
} else if (typeof args[i2] === "object" && !Array.isArray(args[i2])) {
|
|
785
|
+
for (const k2 in args[i2]) {
|
|
786
|
+
if (serialize && serialize.indexOf(k2) > -1 && k2 in serializers) {
|
|
787
|
+
args[i2][k2] = serializers[k2](args[i2][k2]);
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
function bind(parent, bindings, level) {
|
|
794
|
+
return function() {
|
|
795
|
+
const args = new Array(1 + arguments.length);
|
|
796
|
+
args[0] = bindings;
|
|
797
|
+
for (var i2 = 1; i2 < args.length; i2++) {
|
|
798
|
+
args[i2] = arguments[i2 - 1];
|
|
799
|
+
}
|
|
800
|
+
return parent[level].apply(this, args);
|
|
801
|
+
};
|
|
802
|
+
}
|
|
803
|
+
function transmit(logger, opts, args) {
|
|
804
|
+
const send = opts.send;
|
|
805
|
+
const ts = opts.ts;
|
|
806
|
+
const methodLevel = opts.methodLevel;
|
|
807
|
+
const methodValue = opts.methodValue;
|
|
808
|
+
const val = opts.val;
|
|
809
|
+
const bindings = logger._logEvent.bindings;
|
|
810
|
+
applySerializers(
|
|
811
|
+
args,
|
|
812
|
+
logger._serialize || Object.keys(logger.serializers),
|
|
813
|
+
logger.serializers,
|
|
814
|
+
logger._stdErrSerialize === void 0 ? true : logger._stdErrSerialize
|
|
815
|
+
);
|
|
816
|
+
logger._logEvent.ts = ts;
|
|
817
|
+
logger._logEvent.messages = args.filter(function(arg) {
|
|
818
|
+
return bindings.indexOf(arg) === -1;
|
|
819
|
+
});
|
|
820
|
+
logger._logEvent.level.label = methodLevel;
|
|
821
|
+
logger._logEvent.level.value = methodValue;
|
|
822
|
+
send(methodLevel, logger._logEvent, val);
|
|
823
|
+
logger._logEvent = createLogEventShape(bindings);
|
|
824
|
+
}
|
|
825
|
+
function createLogEventShape(bindings) {
|
|
826
|
+
return {
|
|
827
|
+
ts: 0,
|
|
828
|
+
messages: [],
|
|
829
|
+
bindings: bindings || [],
|
|
830
|
+
level: { label: "", value: 0 }
|
|
831
|
+
};
|
|
832
|
+
}
|
|
833
|
+
function asErrValue(err) {
|
|
834
|
+
const obj = {
|
|
835
|
+
type: err.constructor.name,
|
|
836
|
+
msg: err.message,
|
|
837
|
+
stack: err.stack
|
|
838
|
+
};
|
|
839
|
+
for (const key in err) {
|
|
840
|
+
if (obj[key] === void 0) {
|
|
841
|
+
obj[key] = err[key];
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
return obj;
|
|
845
|
+
}
|
|
846
|
+
function getTimeFunction(opts) {
|
|
847
|
+
if (typeof opts.timestamp === "function") {
|
|
848
|
+
return opts.timestamp;
|
|
849
|
+
}
|
|
850
|
+
if (opts.timestamp === false) {
|
|
851
|
+
return nullTime;
|
|
852
|
+
}
|
|
853
|
+
return epochTime;
|
|
854
|
+
}
|
|
855
|
+
function mock() {
|
|
856
|
+
return {};
|
|
857
|
+
}
|
|
858
|
+
function passthrough(a2) {
|
|
859
|
+
return a2;
|
|
860
|
+
}
|
|
861
|
+
function noop() {
|
|
862
|
+
}
|
|
863
|
+
function nullTime() {
|
|
864
|
+
return false;
|
|
865
|
+
}
|
|
866
|
+
function epochTime() {
|
|
867
|
+
return Date.now();
|
|
868
|
+
}
|
|
869
|
+
function unixTime() {
|
|
870
|
+
return Math.round(Date.now() / 1e3);
|
|
871
|
+
}
|
|
872
|
+
function isoTime() {
|
|
873
|
+
return new Date(Date.now()).toISOString();
|
|
874
|
+
}
|
|
875
|
+
function pfGlobalThisOrFallback() {
|
|
876
|
+
function defd(o2) {
|
|
877
|
+
return typeof o2 !== "undefined" && o2;
|
|
878
|
+
}
|
|
879
|
+
try {
|
|
880
|
+
if (typeof globalThis !== "undefined") return globalThis;
|
|
881
|
+
Object.defineProperty(Object.prototype, "globalThis", {
|
|
882
|
+
get: function() {
|
|
883
|
+
delete Object.prototype.globalThis;
|
|
884
|
+
return this.globalThis = this;
|
|
885
|
+
},
|
|
886
|
+
configurable: true
|
|
887
|
+
});
|
|
888
|
+
return globalThis;
|
|
889
|
+
} catch (e2) {
|
|
890
|
+
return defd(self) || defd(window) || defd(this) || {};
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
const Ot = /* @__PURE__ */ getDefaultExportFromCjs(browser);
|
|
894
|
+
function base(ALPHABET2) {
|
|
895
|
+
if (ALPHABET2.length >= 255) {
|
|
896
|
+
throw new TypeError("Alphabet too long");
|
|
897
|
+
}
|
|
898
|
+
const BASE_MAP = new Uint8Array(256);
|
|
899
|
+
for (let j2 = 0; j2 < BASE_MAP.length; j2++) {
|
|
900
|
+
BASE_MAP[j2] = 255;
|
|
901
|
+
}
|
|
902
|
+
for (let i2 = 0; i2 < ALPHABET2.length; i2++) {
|
|
903
|
+
const x2 = ALPHABET2.charAt(i2);
|
|
904
|
+
const xc = x2.charCodeAt(0);
|
|
905
|
+
if (BASE_MAP[xc] !== 255) {
|
|
906
|
+
throw new TypeError(x2 + " is ambiguous");
|
|
907
|
+
}
|
|
908
|
+
BASE_MAP[xc] = i2;
|
|
909
|
+
}
|
|
910
|
+
const BASE = ALPHABET2.length;
|
|
911
|
+
const LEADER = ALPHABET2.charAt(0);
|
|
912
|
+
const FACTOR = Math.log(BASE) / Math.log(256);
|
|
913
|
+
const iFACTOR = Math.log(256) / Math.log(BASE);
|
|
914
|
+
function encode(source) {
|
|
915
|
+
if (source instanceof Uint8Array) ;
|
|
916
|
+
else if (ArrayBuffer.isView(source)) {
|
|
917
|
+
source = new Uint8Array(source.buffer, source.byteOffset, source.byteLength);
|
|
918
|
+
} else if (Array.isArray(source)) {
|
|
919
|
+
source = Uint8Array.from(source);
|
|
920
|
+
}
|
|
921
|
+
if (!(source instanceof Uint8Array)) {
|
|
922
|
+
throw new TypeError("Expected Uint8Array");
|
|
923
|
+
}
|
|
924
|
+
if (source.length === 0) {
|
|
925
|
+
return "";
|
|
926
|
+
}
|
|
927
|
+
let zeroes = 0;
|
|
928
|
+
let length = 0;
|
|
929
|
+
let pbegin = 0;
|
|
930
|
+
const pend = source.length;
|
|
931
|
+
while (pbegin !== pend && source[pbegin] === 0) {
|
|
932
|
+
pbegin++;
|
|
933
|
+
zeroes++;
|
|
934
|
+
}
|
|
935
|
+
const size = (pend - pbegin) * iFACTOR + 1 >>> 0;
|
|
936
|
+
const b58 = new Uint8Array(size);
|
|
937
|
+
while (pbegin !== pend) {
|
|
938
|
+
let carry = source[pbegin];
|
|
939
|
+
let i2 = 0;
|
|
940
|
+
for (let it1 = size - 1; (carry !== 0 || i2 < length) && it1 !== -1; it1--, i2++) {
|
|
941
|
+
carry += 256 * b58[it1] >>> 0;
|
|
942
|
+
b58[it1] = carry % BASE >>> 0;
|
|
943
|
+
carry = carry / BASE >>> 0;
|
|
944
|
+
}
|
|
945
|
+
if (carry !== 0) {
|
|
946
|
+
throw new Error("Non-zero carry");
|
|
947
|
+
}
|
|
948
|
+
length = i2;
|
|
949
|
+
pbegin++;
|
|
950
|
+
}
|
|
951
|
+
let it2 = size - length;
|
|
952
|
+
while (it2 !== size && b58[it2] === 0) {
|
|
953
|
+
it2++;
|
|
954
|
+
}
|
|
955
|
+
let str = LEADER.repeat(zeroes);
|
|
956
|
+
for (; it2 < size; ++it2) {
|
|
957
|
+
str += ALPHABET2.charAt(b58[it2]);
|
|
958
|
+
}
|
|
959
|
+
return str;
|
|
960
|
+
}
|
|
961
|
+
function decodeUnsafe(source) {
|
|
962
|
+
if (typeof source !== "string") {
|
|
963
|
+
throw new TypeError("Expected String");
|
|
964
|
+
}
|
|
965
|
+
if (source.length === 0) {
|
|
966
|
+
return new Uint8Array();
|
|
967
|
+
}
|
|
968
|
+
let psz = 0;
|
|
969
|
+
let zeroes = 0;
|
|
970
|
+
let length = 0;
|
|
971
|
+
while (source[psz] === LEADER) {
|
|
972
|
+
zeroes++;
|
|
973
|
+
psz++;
|
|
974
|
+
}
|
|
975
|
+
const size = (source.length - psz) * FACTOR + 1 >>> 0;
|
|
976
|
+
const b256 = new Uint8Array(size);
|
|
977
|
+
while (psz < source.length) {
|
|
978
|
+
const charCode = source.charCodeAt(psz);
|
|
979
|
+
if (charCode > 255) {
|
|
980
|
+
return;
|
|
981
|
+
}
|
|
982
|
+
let carry = BASE_MAP[charCode];
|
|
983
|
+
if (carry === 255) {
|
|
984
|
+
return;
|
|
985
|
+
}
|
|
986
|
+
let i2 = 0;
|
|
987
|
+
for (let it3 = size - 1; (carry !== 0 || i2 < length) && it3 !== -1; it3--, i2++) {
|
|
988
|
+
carry += BASE * b256[it3] >>> 0;
|
|
989
|
+
b256[it3] = carry % 256 >>> 0;
|
|
990
|
+
carry = carry / 256 >>> 0;
|
|
991
|
+
}
|
|
992
|
+
if (carry !== 0) {
|
|
993
|
+
throw new Error("Non-zero carry");
|
|
994
|
+
}
|
|
995
|
+
length = i2;
|
|
996
|
+
psz++;
|
|
997
|
+
}
|
|
998
|
+
let it4 = size - length;
|
|
999
|
+
while (it4 !== size && b256[it4] === 0) {
|
|
1000
|
+
it4++;
|
|
1001
|
+
}
|
|
1002
|
+
const vch = new Uint8Array(zeroes + (size - it4));
|
|
1003
|
+
let j2 = zeroes;
|
|
1004
|
+
while (it4 !== size) {
|
|
1005
|
+
vch[j2++] = b256[it4++];
|
|
1006
|
+
}
|
|
1007
|
+
return vch;
|
|
1008
|
+
}
|
|
1009
|
+
function decode(string) {
|
|
1010
|
+
const buffer = decodeUnsafe(string);
|
|
1011
|
+
if (buffer) {
|
|
1012
|
+
return buffer;
|
|
1013
|
+
}
|
|
1014
|
+
throw new Error("Non-base" + BASE + " character");
|
|
1015
|
+
}
|
|
1016
|
+
return {
|
|
1017
|
+
encode,
|
|
1018
|
+
decodeUnsafe,
|
|
1019
|
+
decode
|
|
1020
|
+
};
|
|
1021
|
+
}
|
|
1022
|
+
var ALPHABET = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
|
|
1023
|
+
const bs58 = base(ALPHABET);
|
|
1024
|
+
var cjs = {};
|
|
1025
|
+
/*! *****************************************************************************
|
|
1026
|
+
Copyright (c) Microsoft Corporation.
|
|
1027
|
+
|
|
1028
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
1029
|
+
purpose with or without fee is hereby granted.
|
|
1030
|
+
|
|
1031
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
1032
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
1033
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
1034
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
1035
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
1036
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1037
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
1038
|
+
***************************************************************************** */
|
|
1039
|
+
var extendStatics = function(d2, b2) {
|
|
1040
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b3) {
|
|
1041
|
+
d3.__proto__ = b3;
|
|
1042
|
+
} || function(d3, b3) {
|
|
1043
|
+
for (var p2 in b3) if (b3.hasOwnProperty(p2)) d3[p2] = b3[p2];
|
|
1044
|
+
};
|
|
1045
|
+
return extendStatics(d2, b2);
|
|
1046
|
+
};
|
|
1047
|
+
function __extends(d2, b2) {
|
|
1048
|
+
extendStatics(d2, b2);
|
|
1049
|
+
function __() {
|
|
1050
|
+
this.constructor = d2;
|
|
1051
|
+
}
|
|
1052
|
+
d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
|
|
1053
|
+
}
|
|
1054
|
+
var __assign = function() {
|
|
1055
|
+
__assign = Object.assign || function __assign2(t2) {
|
|
1056
|
+
for (var s2, i2 = 1, n3 = arguments.length; i2 < n3; i2++) {
|
|
1057
|
+
s2 = arguments[i2];
|
|
1058
|
+
for (var p2 in s2) if (Object.prototype.hasOwnProperty.call(s2, p2)) t2[p2] = s2[p2];
|
|
1059
|
+
}
|
|
1060
|
+
return t2;
|
|
1061
|
+
};
|
|
1062
|
+
return __assign.apply(this, arguments);
|
|
1063
|
+
};
|
|
1064
|
+
function __rest(s2, e2) {
|
|
1065
|
+
var t2 = {};
|
|
1066
|
+
for (var p2 in s2) if (Object.prototype.hasOwnProperty.call(s2, p2) && e2.indexOf(p2) < 0)
|
|
1067
|
+
t2[p2] = s2[p2];
|
|
1068
|
+
if (s2 != null && typeof Object.getOwnPropertySymbols === "function")
|
|
1069
|
+
for (var i2 = 0, p2 = Object.getOwnPropertySymbols(s2); i2 < p2.length; i2++) {
|
|
1070
|
+
if (e2.indexOf(p2[i2]) < 0 && Object.prototype.propertyIsEnumerable.call(s2, p2[i2]))
|
|
1071
|
+
t2[p2[i2]] = s2[p2[i2]];
|
|
1072
|
+
}
|
|
1073
|
+
return t2;
|
|
1074
|
+
}
|
|
1075
|
+
function __decorate(decorators, target, key, desc) {
|
|
1076
|
+
var c2 = arguments.length, r2 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d2;
|
|
1077
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
|
|
1078
|
+
else for (var i2 = decorators.length - 1; i2 >= 0; i2--) if (d2 = decorators[i2]) r2 = (c2 < 3 ? d2(r2) : c2 > 3 ? d2(target, key, r2) : d2(target, key)) || r2;
|
|
1079
|
+
return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
|
|
1080
|
+
}
|
|
1081
|
+
function __param(paramIndex, decorator) {
|
|
1082
|
+
return function(target, key) {
|
|
1083
|
+
decorator(target, key, paramIndex);
|
|
1084
|
+
};
|
|
1085
|
+
}
|
|
1086
|
+
function __metadata(metadataKey, metadataValue) {
|
|
1087
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
1088
|
+
}
|
|
1089
|
+
function __awaiter(thisArg, _arguments, P2, generator) {
|
|
1090
|
+
function adopt(value) {
|
|
1091
|
+
return value instanceof P2 ? value : new P2(function(resolve) {
|
|
1092
|
+
resolve(value);
|
|
1093
|
+
});
|
|
1094
|
+
}
|
|
1095
|
+
return new (P2 || (P2 = Promise))(function(resolve, reject) {
|
|
1096
|
+
function fulfilled(value) {
|
|
1097
|
+
try {
|
|
1098
|
+
step(generator.next(value));
|
|
1099
|
+
} catch (e2) {
|
|
1100
|
+
reject(e2);
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
function rejected(value) {
|
|
1104
|
+
try {
|
|
1105
|
+
step(generator["throw"](value));
|
|
1106
|
+
} catch (e2) {
|
|
1107
|
+
reject(e2);
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
function step(result) {
|
|
1111
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
1112
|
+
}
|
|
1113
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
1114
|
+
});
|
|
1115
|
+
}
|
|
1116
|
+
function __generator(thisArg, body) {
|
|
1117
|
+
var _2 = { label: 0, sent: function() {
|
|
1118
|
+
if (t2[0] & 1) throw t2[1];
|
|
1119
|
+
return t2[1];
|
|
1120
|
+
}, trys: [], ops: [] }, f2, y3, t2, g2;
|
|
1121
|
+
return g2 = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g2[Symbol.iterator] = function() {
|
|
1122
|
+
return this;
|
|
1123
|
+
}), g2;
|
|
1124
|
+
function verb(n3) {
|
|
1125
|
+
return function(v2) {
|
|
1126
|
+
return step([n3, v2]);
|
|
1127
|
+
};
|
|
1128
|
+
}
|
|
1129
|
+
function step(op) {
|
|
1130
|
+
if (f2) throw new TypeError("Generator is already executing.");
|
|
1131
|
+
while (_2) try {
|
|
1132
|
+
if (f2 = 1, y3 && (t2 = op[0] & 2 ? y3["return"] : op[0] ? y3["throw"] || ((t2 = y3["return"]) && t2.call(y3), 0) : y3.next) && !(t2 = t2.call(y3, op[1])).done) return t2;
|
|
1133
|
+
if (y3 = 0, t2) op = [op[0] & 2, t2.value];
|
|
1134
|
+
switch (op[0]) {
|
|
1135
|
+
case 0:
|
|
1136
|
+
case 1:
|
|
1137
|
+
t2 = op;
|
|
1138
|
+
break;
|
|
1139
|
+
case 4:
|
|
1140
|
+
_2.label++;
|
|
1141
|
+
return { value: op[1], done: false };
|
|
1142
|
+
case 5:
|
|
1143
|
+
_2.label++;
|
|
1144
|
+
y3 = op[1];
|
|
1145
|
+
op = [0];
|
|
1146
|
+
continue;
|
|
1147
|
+
case 7:
|
|
1148
|
+
op = _2.ops.pop();
|
|
1149
|
+
_2.trys.pop();
|
|
1150
|
+
continue;
|
|
1151
|
+
default:
|
|
1152
|
+
if (!(t2 = _2.trys, t2 = t2.length > 0 && t2[t2.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
1153
|
+
_2 = 0;
|
|
1154
|
+
continue;
|
|
1155
|
+
}
|
|
1156
|
+
if (op[0] === 3 && (!t2 || op[1] > t2[0] && op[1] < t2[3])) {
|
|
1157
|
+
_2.label = op[1];
|
|
1158
|
+
break;
|
|
1159
|
+
}
|
|
1160
|
+
if (op[0] === 6 && _2.label < t2[1]) {
|
|
1161
|
+
_2.label = t2[1];
|
|
1162
|
+
t2 = op;
|
|
1163
|
+
break;
|
|
1164
|
+
}
|
|
1165
|
+
if (t2 && _2.label < t2[2]) {
|
|
1166
|
+
_2.label = t2[2];
|
|
1167
|
+
_2.ops.push(op);
|
|
1168
|
+
break;
|
|
1169
|
+
}
|
|
1170
|
+
if (t2[2]) _2.ops.pop();
|
|
1171
|
+
_2.trys.pop();
|
|
1172
|
+
continue;
|
|
1173
|
+
}
|
|
1174
|
+
op = body.call(thisArg, _2);
|
|
1175
|
+
} catch (e2) {
|
|
1176
|
+
op = [6, e2];
|
|
1177
|
+
y3 = 0;
|
|
1178
|
+
} finally {
|
|
1179
|
+
f2 = t2 = 0;
|
|
1180
|
+
}
|
|
1181
|
+
if (op[0] & 5) throw op[1];
|
|
1182
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
1183
|
+
}
|
|
1184
|
+
}
|
|
1185
|
+
function __createBinding(o2, m2, k2, k22) {
|
|
1186
|
+
if (k22 === void 0) k22 = k2;
|
|
1187
|
+
o2[k22] = m2[k2];
|
|
1188
|
+
}
|
|
1189
|
+
function __exportStar(m2, exports2) {
|
|
1190
|
+
for (var p2 in m2) if (p2 !== "default" && !exports2.hasOwnProperty(p2)) exports2[p2] = m2[p2];
|
|
1191
|
+
}
|
|
1192
|
+
function __values(o2) {
|
|
1193
|
+
var s2 = typeof Symbol === "function" && Symbol.iterator, m2 = s2 && o2[s2], i2 = 0;
|
|
1194
|
+
if (m2) return m2.call(o2);
|
|
1195
|
+
if (o2 && typeof o2.length === "number") return {
|
|
1196
|
+
next: function() {
|
|
1197
|
+
if (o2 && i2 >= o2.length) o2 = void 0;
|
|
1198
|
+
return { value: o2 && o2[i2++], done: !o2 };
|
|
1199
|
+
}
|
|
1200
|
+
};
|
|
1201
|
+
throw new TypeError(s2 ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
1202
|
+
}
|
|
1203
|
+
function __read(o2, n3) {
|
|
1204
|
+
var m2 = typeof Symbol === "function" && o2[Symbol.iterator];
|
|
1205
|
+
if (!m2) return o2;
|
|
1206
|
+
var i2 = m2.call(o2), r2, ar = [], e2;
|
|
1207
|
+
try {
|
|
1208
|
+
while ((n3 === void 0 || n3-- > 0) && !(r2 = i2.next()).done) ar.push(r2.value);
|
|
1209
|
+
} catch (error) {
|
|
1210
|
+
e2 = { error };
|
|
1211
|
+
} finally {
|
|
1212
|
+
try {
|
|
1213
|
+
if (r2 && !r2.done && (m2 = i2["return"])) m2.call(i2);
|
|
1214
|
+
} finally {
|
|
1215
|
+
if (e2) throw e2.error;
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
return ar;
|
|
1219
|
+
}
|
|
1220
|
+
function __spread() {
|
|
1221
|
+
for (var ar = [], i2 = 0; i2 < arguments.length; i2++)
|
|
1222
|
+
ar = ar.concat(__read(arguments[i2]));
|
|
1223
|
+
return ar;
|
|
1224
|
+
}
|
|
1225
|
+
function __spreadArrays() {
|
|
1226
|
+
for (var s2 = 0, i2 = 0, il = arguments.length; i2 < il; i2++) s2 += arguments[i2].length;
|
|
1227
|
+
for (var r2 = Array(s2), k2 = 0, i2 = 0; i2 < il; i2++)
|
|
1228
|
+
for (var a2 = arguments[i2], j2 = 0, jl = a2.length; j2 < jl; j2++, k2++)
|
|
1229
|
+
r2[k2] = a2[j2];
|
|
1230
|
+
return r2;
|
|
1231
|
+
}
|
|
1232
|
+
function __await(v2) {
|
|
1233
|
+
return this instanceof __await ? (this.v = v2, this) : new __await(v2);
|
|
1234
|
+
}
|
|
1235
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
1236
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
1237
|
+
var g2 = generator.apply(thisArg, _arguments || []), i2, q = [];
|
|
1238
|
+
return i2 = {}, verb("next"), verb("throw"), verb("return"), i2[Symbol.asyncIterator] = function() {
|
|
1239
|
+
return this;
|
|
1240
|
+
}, i2;
|
|
1241
|
+
function verb(n3) {
|
|
1242
|
+
if (g2[n3]) i2[n3] = function(v2) {
|
|
1243
|
+
return new Promise(function(a2, b2) {
|
|
1244
|
+
q.push([n3, v2, a2, b2]) > 1 || resume(n3, v2);
|
|
1245
|
+
});
|
|
1246
|
+
};
|
|
1247
|
+
}
|
|
1248
|
+
function resume(n3, v2) {
|
|
1249
|
+
try {
|
|
1250
|
+
step(g2[n3](v2));
|
|
1251
|
+
} catch (e2) {
|
|
1252
|
+
settle(q[0][3], e2);
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
function step(r2) {
|
|
1256
|
+
r2.value instanceof __await ? Promise.resolve(r2.value.v).then(fulfill, reject) : settle(q[0][2], r2);
|
|
1257
|
+
}
|
|
1258
|
+
function fulfill(value) {
|
|
1259
|
+
resume("next", value);
|
|
1260
|
+
}
|
|
1261
|
+
function reject(value) {
|
|
1262
|
+
resume("throw", value);
|
|
1263
|
+
}
|
|
1264
|
+
function settle(f2, v2) {
|
|
1265
|
+
if (f2(v2), q.shift(), q.length) resume(q[0][0], q[0][1]);
|
|
1266
|
+
}
|
|
1267
|
+
}
|
|
1268
|
+
function __asyncDelegator(o2) {
|
|
1269
|
+
var i2, p2;
|
|
1270
|
+
return i2 = {}, verb("next"), verb("throw", function(e2) {
|
|
1271
|
+
throw e2;
|
|
1272
|
+
}), verb("return"), i2[Symbol.iterator] = function() {
|
|
1273
|
+
return this;
|
|
1274
|
+
}, i2;
|
|
1275
|
+
function verb(n3, f2) {
|
|
1276
|
+
i2[n3] = o2[n3] ? function(v2) {
|
|
1277
|
+
return (p2 = !p2) ? { value: __await(o2[n3](v2)), done: n3 === "return" } : f2 ? f2(v2) : v2;
|
|
1278
|
+
} : f2;
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
function __asyncValues(o2) {
|
|
1282
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
1283
|
+
var m2 = o2[Symbol.asyncIterator], i2;
|
|
1284
|
+
return m2 ? m2.call(o2) : (o2 = typeof __values === "function" ? __values(o2) : o2[Symbol.iterator](), i2 = {}, verb("next"), verb("throw"), verb("return"), i2[Symbol.asyncIterator] = function() {
|
|
1285
|
+
return this;
|
|
1286
|
+
}, i2);
|
|
1287
|
+
function verb(n3) {
|
|
1288
|
+
i2[n3] = o2[n3] && function(v2) {
|
|
1289
|
+
return new Promise(function(resolve, reject) {
|
|
1290
|
+
v2 = o2[n3](v2), settle(resolve, reject, v2.done, v2.value);
|
|
1291
|
+
});
|
|
1292
|
+
};
|
|
1293
|
+
}
|
|
1294
|
+
function settle(resolve, reject, d2, v2) {
|
|
1295
|
+
Promise.resolve(v2).then(function(v3) {
|
|
1296
|
+
resolve({ value: v3, done: d2 });
|
|
1297
|
+
}, reject);
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
function __makeTemplateObject(cooked, raw) {
|
|
1301
|
+
if (Object.defineProperty) {
|
|
1302
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
1303
|
+
} else {
|
|
1304
|
+
cooked.raw = raw;
|
|
1305
|
+
}
|
|
1306
|
+
return cooked;
|
|
1307
|
+
}
|
|
1308
|
+
function __importStar(mod) {
|
|
1309
|
+
if (mod && mod.__esModule) return mod;
|
|
1310
|
+
var result = {};
|
|
1311
|
+
if (mod != null) {
|
|
1312
|
+
for (var k2 in mod) if (Object.hasOwnProperty.call(mod, k2)) result[k2] = mod[k2];
|
|
1313
|
+
}
|
|
1314
|
+
result.default = mod;
|
|
1315
|
+
return result;
|
|
1316
|
+
}
|
|
1317
|
+
function __importDefault(mod) {
|
|
1318
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
1319
|
+
}
|
|
1320
|
+
function __classPrivateFieldGet(receiver, privateMap) {
|
|
1321
|
+
if (!privateMap.has(receiver)) {
|
|
1322
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
1323
|
+
}
|
|
1324
|
+
return privateMap.get(receiver);
|
|
1325
|
+
}
|
|
1326
|
+
function __classPrivateFieldSet(receiver, privateMap, value) {
|
|
1327
|
+
if (!privateMap.has(receiver)) {
|
|
1328
|
+
throw new TypeError("attempted to set private field on non-instance");
|
|
1329
|
+
}
|
|
1330
|
+
privateMap.set(receiver, value);
|
|
1331
|
+
return value;
|
|
1332
|
+
}
|
|
1333
|
+
const tslib_es6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1334
|
+
__proto__: null,
|
|
1335
|
+
get __assign() {
|
|
1336
|
+
return __assign;
|
|
1337
|
+
},
|
|
1338
|
+
__asyncDelegator,
|
|
1339
|
+
__asyncGenerator,
|
|
1340
|
+
__asyncValues,
|
|
1341
|
+
__await,
|
|
1342
|
+
__awaiter,
|
|
1343
|
+
__classPrivateFieldGet,
|
|
1344
|
+
__classPrivateFieldSet,
|
|
1345
|
+
__createBinding,
|
|
1346
|
+
__decorate,
|
|
1347
|
+
__exportStar,
|
|
1348
|
+
__extends,
|
|
1349
|
+
__generator,
|
|
1350
|
+
__importDefault,
|
|
1351
|
+
__importStar,
|
|
1352
|
+
__makeTemplateObject,
|
|
1353
|
+
__metadata,
|
|
1354
|
+
__param,
|
|
1355
|
+
__read,
|
|
1356
|
+
__rest,
|
|
1357
|
+
__spread,
|
|
1358
|
+
__spreadArrays,
|
|
1359
|
+
__values
|
|
1360
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
1361
|
+
const require$$0 = /* @__PURE__ */ getAugmentedNamespace(tslib_es6);
|
|
1362
|
+
var crypto = {};
|
|
1363
|
+
var hasRequiredCrypto;
|
|
1364
|
+
function requireCrypto() {
|
|
1365
|
+
if (hasRequiredCrypto) return crypto;
|
|
1366
|
+
hasRequiredCrypto = 1;
|
|
1367
|
+
Object.defineProperty(crypto, "__esModule", { value: true });
|
|
1368
|
+
crypto.isBrowserCryptoAvailable = crypto.getSubtleCrypto = crypto.getBrowerCrypto = void 0;
|
|
1369
|
+
function getBrowerCrypto() {
|
|
1370
|
+
return (commonjsGlobal === null || commonjsGlobal === void 0 ? void 0 : commonjsGlobal.crypto) || (commonjsGlobal === null || commonjsGlobal === void 0 ? void 0 : commonjsGlobal.msCrypto) || {};
|
|
1371
|
+
}
|
|
1372
|
+
crypto.getBrowerCrypto = getBrowerCrypto;
|
|
1373
|
+
function getSubtleCrypto() {
|
|
1374
|
+
const browserCrypto = getBrowerCrypto();
|
|
1375
|
+
return browserCrypto.subtle || browserCrypto.webkitSubtle;
|
|
1376
|
+
}
|
|
1377
|
+
crypto.getSubtleCrypto = getSubtleCrypto;
|
|
1378
|
+
function isBrowserCryptoAvailable() {
|
|
1379
|
+
return !!getBrowerCrypto() && !!getSubtleCrypto();
|
|
1380
|
+
}
|
|
1381
|
+
crypto.isBrowserCryptoAvailable = isBrowserCryptoAvailable;
|
|
1382
|
+
return crypto;
|
|
1383
|
+
}
|
|
1384
|
+
var env = {};
|
|
1385
|
+
var hasRequiredEnv;
|
|
1386
|
+
function requireEnv() {
|
|
1387
|
+
if (hasRequiredEnv) return env;
|
|
1388
|
+
hasRequiredEnv = 1;
|
|
1389
|
+
Object.defineProperty(env, "__esModule", { value: true });
|
|
1390
|
+
env.isBrowser = env.isNode = env.isReactNative = void 0;
|
|
1391
|
+
function isReactNative() {
|
|
1392
|
+
return typeof document === "undefined" && typeof navigator !== "undefined" && navigator.product === "ReactNative";
|
|
1393
|
+
}
|
|
1394
|
+
env.isReactNative = isReactNative;
|
|
1395
|
+
function isNode() {
|
|
1396
|
+
return typeof process !== "undefined" && typeof process.versions !== "undefined" && typeof process.versions.node !== "undefined";
|
|
1397
|
+
}
|
|
1398
|
+
env.isNode = isNode;
|
|
1399
|
+
function isBrowser() {
|
|
1400
|
+
return !isReactNative() && !isNode();
|
|
1401
|
+
}
|
|
1402
|
+
env.isBrowser = isBrowser;
|
|
1403
|
+
return env;
|
|
1404
|
+
}
|
|
1405
|
+
(function(exports2) {
|
|
1406
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1407
|
+
const tslib_1 = require$$0;
|
|
1408
|
+
tslib_1.__exportStar(requireCrypto(), exports2);
|
|
1409
|
+
tslib_1.__exportStar(requireEnv(), exports2);
|
|
1410
|
+
})(cjs);
|
|
1411
|
+
var shim = { exports: {} };
|
|
1412
|
+
var useSyncExternalStoreShim_production_min = {};
|
|
1413
|
+
/**
|
|
1414
|
+
* @license React
|
|
1415
|
+
* use-sync-external-store-shim.production.min.js
|
|
1416
|
+
*
|
|
1417
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1418
|
+
*
|
|
1419
|
+
* This source code is licensed under the MIT license found in the
|
|
1420
|
+
* LICENSE file in the root directory of this source tree.
|
|
1421
|
+
*/
|
|
1422
|
+
var hasRequiredUseSyncExternalStoreShim_production_min;
|
|
1423
|
+
function requireUseSyncExternalStoreShim_production_min() {
|
|
1424
|
+
if (hasRequiredUseSyncExternalStoreShim_production_min) return useSyncExternalStoreShim_production_min;
|
|
1425
|
+
hasRequiredUseSyncExternalStoreShim_production_min = 1;
|
|
1426
|
+
var e2 = require$$0$1;
|
|
1427
|
+
function h2(a2, b2) {
|
|
1428
|
+
return a2 === b2 && (0 !== a2 || 1 / a2 === 1 / b2) || a2 !== a2 && b2 !== b2;
|
|
1429
|
+
}
|
|
1430
|
+
var k2 = "function" === typeof Object.is ? Object.is : h2, l2 = e2.useState, m2 = e2.useEffect, n3 = e2.useLayoutEffect, p2 = e2.useDebugValue;
|
|
1431
|
+
function q(a2, b2) {
|
|
1432
|
+
var d2 = b2(), f2 = l2({ inst: { value: d2, getSnapshot: b2 } }), c2 = f2[0].inst, g2 = f2[1];
|
|
1433
|
+
n3(function() {
|
|
1434
|
+
c2.value = d2;
|
|
1435
|
+
c2.getSnapshot = b2;
|
|
1436
|
+
r2(c2) && g2({ inst: c2 });
|
|
1437
|
+
}, [a2, d2, b2]);
|
|
1438
|
+
m2(function() {
|
|
1439
|
+
r2(c2) && g2({ inst: c2 });
|
|
1440
|
+
return a2(function() {
|
|
1441
|
+
r2(c2) && g2({ inst: c2 });
|
|
1442
|
+
});
|
|
1443
|
+
}, [a2]);
|
|
1444
|
+
p2(d2);
|
|
1445
|
+
return d2;
|
|
1446
|
+
}
|
|
1447
|
+
function r2(a2) {
|
|
1448
|
+
var b2 = a2.getSnapshot;
|
|
1449
|
+
a2 = a2.value;
|
|
1450
|
+
try {
|
|
1451
|
+
var d2 = b2();
|
|
1452
|
+
return !k2(a2, d2);
|
|
1453
|
+
} catch (f2) {
|
|
1454
|
+
return true;
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
function t2(a2, b2) {
|
|
1458
|
+
return b2();
|
|
1459
|
+
}
|
|
1460
|
+
var u2 = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? t2 : q;
|
|
1461
|
+
useSyncExternalStoreShim_production_min.useSyncExternalStore = void 0 !== e2.useSyncExternalStore ? e2.useSyncExternalStore : u2;
|
|
1462
|
+
return useSyncExternalStoreShim_production_min;
|
|
1463
|
+
}
|
|
1464
|
+
var useSyncExternalStoreShim_development = {};
|
|
1465
|
+
/**
|
|
1466
|
+
* @license React
|
|
1467
|
+
* use-sync-external-store-shim.development.js
|
|
1468
|
+
*
|
|
1469
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1470
|
+
*
|
|
1471
|
+
* This source code is licensed under the MIT license found in the
|
|
1472
|
+
* LICENSE file in the root directory of this source tree.
|
|
1473
|
+
*/
|
|
1474
|
+
var hasRequiredUseSyncExternalStoreShim_development;
|
|
1475
|
+
function requireUseSyncExternalStoreShim_development() {
|
|
1476
|
+
if (hasRequiredUseSyncExternalStoreShim_development) return useSyncExternalStoreShim_development;
|
|
1477
|
+
hasRequiredUseSyncExternalStoreShim_development = 1;
|
|
1478
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1479
|
+
(function() {
|
|
1480
|
+
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
|
|
1481
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
1482
|
+
}
|
|
1483
|
+
var React = require$$0$1;
|
|
1484
|
+
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
1485
|
+
function error(format2) {
|
|
1486
|
+
{
|
|
1487
|
+
{
|
|
1488
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
1489
|
+
args[_key2 - 1] = arguments[_key2];
|
|
1490
|
+
}
|
|
1491
|
+
printWarning("error", format2, args);
|
|
1492
|
+
}
|
|
1493
|
+
}
|
|
1494
|
+
}
|
|
1495
|
+
function printWarning(level, format2, args) {
|
|
1496
|
+
{
|
|
1497
|
+
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
1498
|
+
var stack = ReactDebugCurrentFrame.getStackAddendum();
|
|
1499
|
+
if (stack !== "") {
|
|
1500
|
+
format2 += "%s";
|
|
1501
|
+
args = args.concat([stack]);
|
|
1502
|
+
}
|
|
1503
|
+
var argsWithFormat = args.map(function(item) {
|
|
1504
|
+
return String(item);
|
|
1505
|
+
});
|
|
1506
|
+
argsWithFormat.unshift("Warning: " + format2);
|
|
1507
|
+
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
1508
|
+
}
|
|
1509
|
+
}
|
|
1510
|
+
function is(x2, y3) {
|
|
1511
|
+
return x2 === y3 && (x2 !== 0 || 1 / x2 === 1 / y3) || x2 !== x2 && y3 !== y3;
|
|
1512
|
+
}
|
|
1513
|
+
var objectIs = typeof Object.is === "function" ? Object.is : is;
|
|
1514
|
+
var useState = React.useState, useEffect = React.useEffect, useLayoutEffect = React.useLayoutEffect, useDebugValue = React.useDebugValue;
|
|
1515
|
+
var didWarnOld18Alpha = false;
|
|
1516
|
+
var didWarnUncachedGetSnapshot = false;
|
|
1517
|
+
function useSyncExternalStore2(subscribe2, getSnapshot, getServerSnapshot) {
|
|
1518
|
+
{
|
|
1519
|
+
if (!didWarnOld18Alpha) {
|
|
1520
|
+
if (React.startTransition !== void 0) {
|
|
1521
|
+
didWarnOld18Alpha = true;
|
|
1522
|
+
error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.");
|
|
1523
|
+
}
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1526
|
+
var value = getSnapshot();
|
|
1527
|
+
{
|
|
1528
|
+
if (!didWarnUncachedGetSnapshot) {
|
|
1529
|
+
var cachedValue = getSnapshot();
|
|
1530
|
+
if (!objectIs(value, cachedValue)) {
|
|
1531
|
+
error("The result of getSnapshot should be cached to avoid an infinite loop");
|
|
1532
|
+
didWarnUncachedGetSnapshot = true;
|
|
1533
|
+
}
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
var _useState = useState({
|
|
1537
|
+
inst: {
|
|
1538
|
+
value,
|
|
1539
|
+
getSnapshot
|
|
1540
|
+
}
|
|
1541
|
+
}), inst = _useState[0].inst, forceUpdate = _useState[1];
|
|
1542
|
+
useLayoutEffect(function() {
|
|
1543
|
+
inst.value = value;
|
|
1544
|
+
inst.getSnapshot = getSnapshot;
|
|
1545
|
+
if (checkIfSnapshotChanged(inst)) {
|
|
1546
|
+
forceUpdate({
|
|
1547
|
+
inst
|
|
1548
|
+
});
|
|
1549
|
+
}
|
|
1550
|
+
}, [subscribe2, value, getSnapshot]);
|
|
1551
|
+
useEffect(function() {
|
|
1552
|
+
if (checkIfSnapshotChanged(inst)) {
|
|
1553
|
+
forceUpdate({
|
|
1554
|
+
inst
|
|
1555
|
+
});
|
|
1556
|
+
}
|
|
1557
|
+
var handleStoreChange = function() {
|
|
1558
|
+
if (checkIfSnapshotChanged(inst)) {
|
|
1559
|
+
forceUpdate({
|
|
1560
|
+
inst
|
|
1561
|
+
});
|
|
1562
|
+
}
|
|
1563
|
+
};
|
|
1564
|
+
return subscribe2(handleStoreChange);
|
|
1565
|
+
}, [subscribe2]);
|
|
1566
|
+
useDebugValue(value);
|
|
1567
|
+
return value;
|
|
1568
|
+
}
|
|
1569
|
+
function checkIfSnapshotChanged(inst) {
|
|
1570
|
+
var latestGetSnapshot = inst.getSnapshot;
|
|
1571
|
+
var prevValue = inst.value;
|
|
1572
|
+
try {
|
|
1573
|
+
var nextValue = latestGetSnapshot();
|
|
1574
|
+
return !objectIs(prevValue, nextValue);
|
|
1575
|
+
} catch (error2) {
|
|
1576
|
+
return true;
|
|
1577
|
+
}
|
|
1578
|
+
}
|
|
1579
|
+
function useSyncExternalStore$1(subscribe2, getSnapshot, getServerSnapshot) {
|
|
1580
|
+
return getSnapshot();
|
|
1581
|
+
}
|
|
1582
|
+
var canUseDOM = !!(typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined");
|
|
1583
|
+
var isServerEnvironment = !canUseDOM;
|
|
1584
|
+
var shim2 = isServerEnvironment ? useSyncExternalStore$1 : useSyncExternalStore2;
|
|
1585
|
+
var useSyncExternalStore$2 = React.useSyncExternalStore !== void 0 ? React.useSyncExternalStore : shim2;
|
|
1586
|
+
useSyncExternalStoreShim_development.useSyncExternalStore = useSyncExternalStore$2;
|
|
1587
|
+
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
|
|
1588
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
1589
|
+
}
|
|
1590
|
+
})();
|
|
1591
|
+
}
|
|
1592
|
+
return useSyncExternalStoreShim_development;
|
|
1593
|
+
}
|
|
1594
|
+
if (process.env.NODE_ENV === "production") {
|
|
1595
|
+
shim.exports = requireUseSyncExternalStoreShim_production_min();
|
|
1596
|
+
} else {
|
|
1597
|
+
shim.exports = requireUseSyncExternalStoreShim_development();
|
|
1598
|
+
}
|
|
1599
|
+
var shimExports = shim.exports;
|
|
1600
|
+
const useSyncExternalStoreExports = /* @__PURE__ */ getDefaultExportFromCjs(shimExports);
|
|
1601
|
+
const __vite_import_meta_env__ = {};
|
|
1602
|
+
const { use } = require$$0$1;
|
|
1603
|
+
const { useSyncExternalStore } = useSyncExternalStoreExports;
|
|
1604
|
+
const useAffectedDebugValue = (state, affected) => {
|
|
1605
|
+
const pathList = require$$0$1.useRef();
|
|
1606
|
+
require$$0$1.useEffect(() => {
|
|
1607
|
+
pathList.current = w(state, affected);
|
|
1608
|
+
});
|
|
1609
|
+
require$$0$1.useDebugValue(pathList.current);
|
|
1610
|
+
};
|
|
1611
|
+
const targetCache = /* @__PURE__ */ new WeakMap();
|
|
1612
|
+
function useSnapshot(proxyObject, options) {
|
|
1613
|
+
const notifyInSync = void 0;
|
|
1614
|
+
const lastSnapshot = require$$0$1.useRef();
|
|
1615
|
+
const lastAffected = require$$0$1.useRef();
|
|
1616
|
+
let inRender = true;
|
|
1617
|
+
const currSnapshot = useSyncExternalStore(
|
|
1618
|
+
require$$0$1.useCallback(
|
|
1619
|
+
(callback) => {
|
|
1620
|
+
const unsub = subscribe(proxyObject, callback);
|
|
1621
|
+
callback();
|
|
1622
|
+
return unsub;
|
|
1623
|
+
},
|
|
1624
|
+
[proxyObject, notifyInSync]
|
|
1625
|
+
),
|
|
1626
|
+
() => {
|
|
1627
|
+
const nextSnapshot = snapshot(proxyObject, use);
|
|
1628
|
+
try {
|
|
1629
|
+
if (!inRender && lastSnapshot.current && lastAffected.current && !p$2(
|
|
1630
|
+
lastSnapshot.current,
|
|
1631
|
+
nextSnapshot,
|
|
1632
|
+
lastAffected.current,
|
|
1633
|
+
/* @__PURE__ */ new WeakMap()
|
|
1634
|
+
)) {
|
|
1635
|
+
return lastSnapshot.current;
|
|
1636
|
+
}
|
|
1637
|
+
} catch (e2) {
|
|
1638
|
+
}
|
|
1639
|
+
return nextSnapshot;
|
|
1640
|
+
},
|
|
1641
|
+
() => snapshot(proxyObject, use)
|
|
1642
|
+
);
|
|
1643
|
+
inRender = false;
|
|
1644
|
+
const currAffected = /* @__PURE__ */ new WeakMap();
|
|
1645
|
+
require$$0$1.useEffect(() => {
|
|
1646
|
+
lastSnapshot.current = currSnapshot;
|
|
1647
|
+
lastAffected.current = currAffected;
|
|
1648
|
+
});
|
|
1649
|
+
if ((__vite_import_meta_env__ ? "production" : void 0) !== "production") {
|
|
1650
|
+
useAffectedDebugValue(currSnapshot, currAffected);
|
|
1651
|
+
}
|
|
1652
|
+
const proxyCache = require$$0$1.useMemo(() => /* @__PURE__ */ new WeakMap(), []);
|
|
1653
|
+
return a$2(
|
|
1654
|
+
currSnapshot,
|
|
1655
|
+
currAffected,
|
|
1656
|
+
proxyCache,
|
|
1657
|
+
targetCache
|
|
1658
|
+
);
|
|
1659
|
+
}
|
|
1660
|
+
const ConstantsUtil = {
|
|
1661
|
+
ACCOUNT_TABS: [{ label: "Tokens" }, { label: "NFTs" }, { label: "Activity" }],
|
|
1662
|
+
SECURE_SITE_ORIGIN: (typeof process !== "undefined" && typeof process.env !== "undefined" ? process.env["NEXT_PUBLIC_SECURE_SITE_ORIGIN"] : void 0) || "https://secure.walletconnect.org",
|
|
1663
|
+
VIEW_DIRECTION: {
|
|
1664
|
+
Next: "next",
|
|
1665
|
+
Prev: "prev"
|
|
1666
|
+
},
|
|
1667
|
+
DEFAULT_CONNECT_METHOD_ORDER: ["email", "social", "wallet"],
|
|
1668
|
+
ANIMATION_DURATIONS: {
|
|
1669
|
+
HeaderText: 120,
|
|
1670
|
+
ModalHeight: 150,
|
|
1671
|
+
ViewTransition: 150
|
|
1672
|
+
}
|
|
1673
|
+
};
|
|
1674
|
+
/**
|
|
1675
|
+
* @license
|
|
1676
|
+
* Copyright 2019 Google LLC
|
|
1677
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1678
|
+
*/
|
|
1679
|
+
const t$1 = globalThis, e$2 = t$1.ShadowRoot && (void 0 === t$1.ShadyCSS || t$1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$2 = Symbol(), o$3 = /* @__PURE__ */ new WeakMap();
|
|
1680
|
+
let n$2 = class n {
|
|
1681
|
+
constructor(t2, e2, o2) {
|
|
1682
|
+
if (this._$cssResult$ = true, o2 !== s$2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
1683
|
+
this.cssText = t2, this.t = e2;
|
|
1684
|
+
}
|
|
1685
|
+
get styleSheet() {
|
|
1686
|
+
let t2 = this.o;
|
|
1687
|
+
const s2 = this.t;
|
|
1688
|
+
if (e$2 && void 0 === t2) {
|
|
1689
|
+
const e2 = void 0 !== s2 && 1 === s2.length;
|
|
1690
|
+
e2 && (t2 = o$3.get(s2)), void 0 === t2 && ((this.o = t2 = new CSSStyleSheet()).replaceSync(this.cssText), e2 && o$3.set(s2, t2));
|
|
1691
|
+
}
|
|
1692
|
+
return t2;
|
|
1693
|
+
}
|
|
1694
|
+
toString() {
|
|
1695
|
+
return this.cssText;
|
|
1696
|
+
}
|
|
1697
|
+
};
|
|
1698
|
+
const r$2 = (t2) => new n$2("string" == typeof t2 ? t2 : t2 + "", void 0, s$2), i$3 = (t2, ...e2) => {
|
|
1699
|
+
const o2 = 1 === t2.length ? t2[0] : e2.reduce((e3, s2, o3) => e3 + ((t3) => {
|
|
1700
|
+
if (true === t3._$cssResult$) return t3.cssText;
|
|
1701
|
+
if ("number" == typeof t3) return t3;
|
|
1702
|
+
throw Error("Value passed to 'css' function must be a 'css' function result: " + t3 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
1703
|
+
})(s2) + t2[o3 + 1], t2[0]);
|
|
1704
|
+
return new n$2(o2, t2, s$2);
|
|
1705
|
+
}, S$1 = (s2, o2) => {
|
|
1706
|
+
if (e$2) s2.adoptedStyleSheets = o2.map((t2) => t2 instanceof CSSStyleSheet ? t2 : t2.styleSheet);
|
|
1707
|
+
else for (const e2 of o2) {
|
|
1708
|
+
const o3 = document.createElement("style"), n3 = t$1.litNonce;
|
|
1709
|
+
void 0 !== n3 && o3.setAttribute("nonce", n3), o3.textContent = e2.cssText, s2.appendChild(o3);
|
|
1710
|
+
}
|
|
1711
|
+
}, c$2 = e$2 ? (t2) => t2 : (t2) => t2 instanceof CSSStyleSheet ? ((t3) => {
|
|
1712
|
+
let e2 = "";
|
|
1713
|
+
for (const s2 of t3.cssRules) e2 += s2.cssText;
|
|
1714
|
+
return r$2(e2);
|
|
1715
|
+
})(t2) : t2;
|
|
1716
|
+
/**
|
|
1717
|
+
* @license
|
|
1718
|
+
* Copyright 2017 Google LLC
|
|
1719
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1720
|
+
*/
|
|
1721
|
+
const { is: i$2, defineProperty: e$1, getOwnPropertyDescriptor: h$1, getOwnPropertyNames: r$1, getOwnPropertySymbols: o$2, getPrototypeOf: n$1 } = Object, a$1 = globalThis, c$1 = a$1.trustedTypes, l$1 = c$1 ? c$1.emptyScript : "", p$1 = a$1.reactiveElementPolyfillSupport, d$1 = (t2, s2) => t2, u$1 = { toAttribute(t2, s2) {
|
|
1722
|
+
switch (s2) {
|
|
1723
|
+
case Boolean:
|
|
1724
|
+
t2 = t2 ? l$1 : null;
|
|
1725
|
+
break;
|
|
1726
|
+
case Object:
|
|
1727
|
+
case Array:
|
|
1728
|
+
t2 = null == t2 ? t2 : JSON.stringify(t2);
|
|
1729
|
+
}
|
|
1730
|
+
return t2;
|
|
1731
|
+
}, fromAttribute(t2, s2) {
|
|
1732
|
+
let i2 = t2;
|
|
1733
|
+
switch (s2) {
|
|
1734
|
+
case Boolean:
|
|
1735
|
+
i2 = null !== t2;
|
|
1736
|
+
break;
|
|
1737
|
+
case Number:
|
|
1738
|
+
i2 = null === t2 ? null : Number(t2);
|
|
1739
|
+
break;
|
|
1740
|
+
case Object:
|
|
1741
|
+
case Array:
|
|
1742
|
+
try {
|
|
1743
|
+
i2 = JSON.parse(t2);
|
|
1744
|
+
} catch (t3) {
|
|
1745
|
+
i2 = null;
|
|
1746
|
+
}
|
|
1747
|
+
}
|
|
1748
|
+
return i2;
|
|
1749
|
+
} }, f$1 = (t2, s2) => !i$2(t2, s2), b$1 = { attribute: true, type: String, converter: u$1, reflect: false, useDefault: false, hasChanged: f$1 };
|
|
1750
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), a$1.litPropertyMetadata ?? (a$1.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
1751
|
+
let y$1 = class y extends HTMLElement {
|
|
1752
|
+
static addInitializer(t2) {
|
|
1753
|
+
this._$Ei(), (this.l ?? (this.l = [])).push(t2);
|
|
1754
|
+
}
|
|
1755
|
+
static get observedAttributes() {
|
|
1756
|
+
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
1757
|
+
}
|
|
1758
|
+
static createProperty(t2, s2 = b$1) {
|
|
1759
|
+
if (s2.state && (s2.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t2) && ((s2 = Object.create(s2)).wrapped = true), this.elementProperties.set(t2, s2), !s2.noAccessor) {
|
|
1760
|
+
const i2 = Symbol(), h2 = this.getPropertyDescriptor(t2, i2, s2);
|
|
1761
|
+
void 0 !== h2 && e$1(this.prototype, t2, h2);
|
|
1762
|
+
}
|
|
1763
|
+
}
|
|
1764
|
+
static getPropertyDescriptor(t2, s2, i2) {
|
|
1765
|
+
const { get: e2, set: r2 } = h$1(this.prototype, t2) ?? { get() {
|
|
1766
|
+
return this[s2];
|
|
1767
|
+
}, set(t3) {
|
|
1768
|
+
this[s2] = t3;
|
|
1769
|
+
} };
|
|
1770
|
+
return { get: e2, set(s3) {
|
|
1771
|
+
const h2 = e2 == null ? void 0 : e2.call(this);
|
|
1772
|
+
r2 == null ? void 0 : r2.call(this, s3), this.requestUpdate(t2, h2, i2);
|
|
1773
|
+
}, configurable: true, enumerable: true };
|
|
1774
|
+
}
|
|
1775
|
+
static getPropertyOptions(t2) {
|
|
1776
|
+
return this.elementProperties.get(t2) ?? b$1;
|
|
1777
|
+
}
|
|
1778
|
+
static _$Ei() {
|
|
1779
|
+
if (this.hasOwnProperty(d$1("elementProperties"))) return;
|
|
1780
|
+
const t2 = n$1(this);
|
|
1781
|
+
t2.finalize(), void 0 !== t2.l && (this.l = [...t2.l]), this.elementProperties = new Map(t2.elementProperties);
|
|
1782
|
+
}
|
|
1783
|
+
static finalize() {
|
|
1784
|
+
if (this.hasOwnProperty(d$1("finalized"))) return;
|
|
1785
|
+
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d$1("properties"))) {
|
|
1786
|
+
const t3 = this.properties, s2 = [...r$1(t3), ...o$2(t3)];
|
|
1787
|
+
for (const i2 of s2) this.createProperty(i2, t3[i2]);
|
|
1788
|
+
}
|
|
1789
|
+
const t2 = this[Symbol.metadata];
|
|
1790
|
+
if (null !== t2) {
|
|
1791
|
+
const s2 = litPropertyMetadata.get(t2);
|
|
1792
|
+
if (void 0 !== s2) for (const [t3, i2] of s2) this.elementProperties.set(t3, i2);
|
|
1793
|
+
}
|
|
1794
|
+
this._$Eh = /* @__PURE__ */ new Map();
|
|
1795
|
+
for (const [t3, s2] of this.elementProperties) {
|
|
1796
|
+
const i2 = this._$Eu(t3, s2);
|
|
1797
|
+
void 0 !== i2 && this._$Eh.set(i2, t3);
|
|
1798
|
+
}
|
|
1799
|
+
this.elementStyles = this.finalizeStyles(this.styles);
|
|
1800
|
+
}
|
|
1801
|
+
static finalizeStyles(s2) {
|
|
1802
|
+
const i2 = [];
|
|
1803
|
+
if (Array.isArray(s2)) {
|
|
1804
|
+
const e2 = new Set(s2.flat(1 / 0).reverse());
|
|
1805
|
+
for (const s3 of e2) i2.unshift(c$2(s3));
|
|
1806
|
+
} else void 0 !== s2 && i2.push(c$2(s2));
|
|
1807
|
+
return i2;
|
|
1808
|
+
}
|
|
1809
|
+
static _$Eu(t2, s2) {
|
|
1810
|
+
const i2 = s2.attribute;
|
|
1811
|
+
return false === i2 ? void 0 : "string" == typeof i2 ? i2 : "string" == typeof t2 ? t2.toLowerCase() : void 0;
|
|
1812
|
+
}
|
|
1813
|
+
constructor() {
|
|
1814
|
+
super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
|
|
1815
|
+
}
|
|
1816
|
+
_$Ev() {
|
|
1817
|
+
var _a2;
|
|
1818
|
+
this._$ES = new Promise((t2) => this.enableUpdating = t2), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (_a2 = this.constructor.l) == null ? void 0 : _a2.forEach((t2) => t2(this));
|
|
1819
|
+
}
|
|
1820
|
+
addController(t2) {
|
|
1821
|
+
var _a2;
|
|
1822
|
+
(this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t2), void 0 !== this.renderRoot && this.isConnected && ((_a2 = t2.hostConnected) == null ? void 0 : _a2.call(t2));
|
|
1823
|
+
}
|
|
1824
|
+
removeController(t2) {
|
|
1825
|
+
var _a2;
|
|
1826
|
+
(_a2 = this._$EO) == null ? void 0 : _a2.delete(t2);
|
|
1827
|
+
}
|
|
1828
|
+
_$E_() {
|
|
1829
|
+
const t2 = /* @__PURE__ */ new Map(), s2 = this.constructor.elementProperties;
|
|
1830
|
+
for (const i2 of s2.keys()) this.hasOwnProperty(i2) && (t2.set(i2, this[i2]), delete this[i2]);
|
|
1831
|
+
t2.size > 0 && (this._$Ep = t2);
|
|
1832
|
+
}
|
|
1833
|
+
createRenderRoot() {
|
|
1834
|
+
const t2 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
1835
|
+
return S$1(t2, this.constructor.elementStyles), t2;
|
|
1836
|
+
}
|
|
1837
|
+
connectedCallback() {
|
|
1838
|
+
var _a2;
|
|
1839
|
+
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), (_a2 = this._$EO) == null ? void 0 : _a2.forEach((t2) => {
|
|
1840
|
+
var _a3;
|
|
1841
|
+
return (_a3 = t2.hostConnected) == null ? void 0 : _a3.call(t2);
|
|
1842
|
+
});
|
|
1843
|
+
}
|
|
1844
|
+
enableUpdating(t2) {
|
|
1845
|
+
}
|
|
1846
|
+
disconnectedCallback() {
|
|
1847
|
+
var _a2;
|
|
1848
|
+
(_a2 = this._$EO) == null ? void 0 : _a2.forEach((t2) => {
|
|
1849
|
+
var _a3;
|
|
1850
|
+
return (_a3 = t2.hostDisconnected) == null ? void 0 : _a3.call(t2);
|
|
1851
|
+
});
|
|
1852
|
+
}
|
|
1853
|
+
attributeChangedCallback(t2, s2, i2) {
|
|
1854
|
+
this._$AK(t2, i2);
|
|
1855
|
+
}
|
|
1856
|
+
_$ET(t2, s2) {
|
|
1857
|
+
var _a2;
|
|
1858
|
+
const i2 = this.constructor.elementProperties.get(t2), e2 = this.constructor._$Eu(t2, i2);
|
|
1859
|
+
if (void 0 !== e2 && true === i2.reflect) {
|
|
1860
|
+
const h2 = (void 0 !== ((_a2 = i2.converter) == null ? void 0 : _a2.toAttribute) ? i2.converter : u$1).toAttribute(s2, i2.type);
|
|
1861
|
+
this._$Em = t2, null == h2 ? this.removeAttribute(e2) : this.setAttribute(e2, h2), this._$Em = null;
|
|
1862
|
+
}
|
|
1863
|
+
}
|
|
1864
|
+
_$AK(t2, s2) {
|
|
1865
|
+
var _a2, _b;
|
|
1866
|
+
const i2 = this.constructor, e2 = i2._$Eh.get(t2);
|
|
1867
|
+
if (void 0 !== e2 && this._$Em !== e2) {
|
|
1868
|
+
const t3 = i2.getPropertyOptions(e2), h2 = "function" == typeof t3.converter ? { fromAttribute: t3.converter } : void 0 !== ((_a2 = t3.converter) == null ? void 0 : _a2.fromAttribute) ? t3.converter : u$1;
|
|
1869
|
+
this._$Em = e2, this[e2] = h2.fromAttribute(s2, t3.type) ?? ((_b = this._$Ej) == null ? void 0 : _b.get(e2)) ?? null, this._$Em = null;
|
|
1870
|
+
}
|
|
1871
|
+
}
|
|
1872
|
+
requestUpdate(t2, s2, i2) {
|
|
1873
|
+
var _a2;
|
|
1874
|
+
if (void 0 !== t2) {
|
|
1875
|
+
const e2 = this.constructor, h2 = this[t2];
|
|
1876
|
+
if (i2 ?? (i2 = e2.getPropertyOptions(t2)), !((i2.hasChanged ?? f$1)(h2, s2) || i2.useDefault && i2.reflect && h2 === ((_a2 = this._$Ej) == null ? void 0 : _a2.get(t2)) && !this.hasAttribute(e2._$Eu(t2, i2)))) return;
|
|
1877
|
+
this.C(t2, s2, i2);
|
|
1878
|
+
}
|
|
1879
|
+
false === this.isUpdatePending && (this._$ES = this._$EP());
|
|
1880
|
+
}
|
|
1881
|
+
C(t2, s2, { useDefault: i2, reflect: e2, wrapped: h2 }, r2) {
|
|
1882
|
+
i2 && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t2) && (this._$Ej.set(t2, r2 ?? s2 ?? this[t2]), true !== h2 || void 0 !== r2) || (this._$AL.has(t2) || (this.hasUpdated || i2 || (s2 = void 0), this._$AL.set(t2, s2)), true === e2 && this._$Em !== t2 && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t2));
|
|
1883
|
+
}
|
|
1884
|
+
async _$EP() {
|
|
1885
|
+
this.isUpdatePending = true;
|
|
1886
|
+
try {
|
|
1887
|
+
await this._$ES;
|
|
1888
|
+
} catch (t3) {
|
|
1889
|
+
Promise.reject(t3);
|
|
1890
|
+
}
|
|
1891
|
+
const t2 = this.scheduleUpdate();
|
|
1892
|
+
return null != t2 && await t2, !this.isUpdatePending;
|
|
1893
|
+
}
|
|
1894
|
+
scheduleUpdate() {
|
|
1895
|
+
return this.performUpdate();
|
|
1896
|
+
}
|
|
1897
|
+
performUpdate() {
|
|
1898
|
+
var _a2;
|
|
1899
|
+
if (!this.isUpdatePending) return;
|
|
1900
|
+
if (!this.hasUpdated) {
|
|
1901
|
+
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
1902
|
+
for (const [t4, s3] of this._$Ep) this[t4] = s3;
|
|
1903
|
+
this._$Ep = void 0;
|
|
1904
|
+
}
|
|
1905
|
+
const t3 = this.constructor.elementProperties;
|
|
1906
|
+
if (t3.size > 0) for (const [s3, i2] of t3) {
|
|
1907
|
+
const { wrapped: t4 } = i2, e2 = this[s3];
|
|
1908
|
+
true !== t4 || this._$AL.has(s3) || void 0 === e2 || this.C(s3, void 0, i2, e2);
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
let t2 = false;
|
|
1912
|
+
const s2 = this._$AL;
|
|
1913
|
+
try {
|
|
1914
|
+
t2 = this.shouldUpdate(s2), t2 ? (this.willUpdate(s2), (_a2 = this._$EO) == null ? void 0 : _a2.forEach((t3) => {
|
|
1915
|
+
var _a3;
|
|
1916
|
+
return (_a3 = t3.hostUpdate) == null ? void 0 : _a3.call(t3);
|
|
1917
|
+
}), this.update(s2)) : this._$EM();
|
|
1918
|
+
} catch (s3) {
|
|
1919
|
+
throw t2 = false, this._$EM(), s3;
|
|
1920
|
+
}
|
|
1921
|
+
t2 && this._$AE(s2);
|
|
1922
|
+
}
|
|
1923
|
+
willUpdate(t2) {
|
|
1924
|
+
}
|
|
1925
|
+
_$AE(t2) {
|
|
1926
|
+
var _a2;
|
|
1927
|
+
(_a2 = this._$EO) == null ? void 0 : _a2.forEach((t3) => {
|
|
1928
|
+
var _a3;
|
|
1929
|
+
return (_a3 = t3.hostUpdated) == null ? void 0 : _a3.call(t3);
|
|
1930
|
+
}), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t2)), this.updated(t2);
|
|
1931
|
+
}
|
|
1932
|
+
_$EM() {
|
|
1933
|
+
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
|
|
1934
|
+
}
|
|
1935
|
+
get updateComplete() {
|
|
1936
|
+
return this.getUpdateComplete();
|
|
1937
|
+
}
|
|
1938
|
+
getUpdateComplete() {
|
|
1939
|
+
return this._$ES;
|
|
1940
|
+
}
|
|
1941
|
+
shouldUpdate(t2) {
|
|
1942
|
+
return true;
|
|
1943
|
+
}
|
|
1944
|
+
update(t2) {
|
|
1945
|
+
this._$Eq && (this._$Eq = this._$Eq.forEach((t3) => this._$ET(t3, this[t3]))), this._$EM();
|
|
1946
|
+
}
|
|
1947
|
+
updated(t2) {
|
|
1948
|
+
}
|
|
1949
|
+
firstUpdated(t2) {
|
|
1950
|
+
}
|
|
1951
|
+
};
|
|
1952
|
+
y$1.elementStyles = [], y$1.shadowRootOptions = { mode: "open" }, y$1[d$1("elementProperties")] = /* @__PURE__ */ new Map(), y$1[d$1("finalized")] = /* @__PURE__ */ new Map(), p$1 == null ? void 0 : p$1({ ReactiveElement: y$1 }), (a$1.reactiveElementVersions ?? (a$1.reactiveElementVersions = [])).push("2.1.0");
|
|
1953
|
+
/**
|
|
1954
|
+
* @license
|
|
1955
|
+
* Copyright 2017 Google LLC
|
|
1956
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1957
|
+
*/
|
|
1958
|
+
const t = globalThis, i$1 = t.trustedTypes, s$1 = i$1 ? i$1.createPolicy("lit-html", { createHTML: (t2) => t2 }) : void 0, e = "$lit$", h = `lit$${Math.random().toFixed(9).slice(2)}$`, o$1 = "?" + h, n2 = `<${o$1}>`, r = document, l = () => r.createComment(""), c = (t2) => null === t2 || "object" != typeof t2 && "function" != typeof t2, a = Array.isArray, u = (t2) => a(t2) || "function" == typeof (t2 == null ? void 0 : t2[Symbol.iterator]), d = "[ \n\f\r]", f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, v = /-->/g, _ = />/g, m = RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^
|
|
1959
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), p = /'/g, g = /"/g, $ = /^(?:script|style|textarea|title)$/i, y2 = (t2) => (i2, ...s2) => ({ _$litType$: t2, strings: i2, values: s2 }), x = y2(1), b = y2(2), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = /* @__PURE__ */ new WeakMap(), C = r.createTreeWalker(r, 129);
|
|
1960
|
+
function P(t2, i2) {
|
|
1961
|
+
if (!a(t2) || !t2.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
1962
|
+
return void 0 !== s$1 ? s$1.createHTML(i2) : i2;
|
|
1963
|
+
}
|
|
1964
|
+
const V = (t2, i2) => {
|
|
1965
|
+
const s2 = t2.length - 1, o2 = [];
|
|
1966
|
+
let r2, l2 = 2 === i2 ? "<svg>" : 3 === i2 ? "<math>" : "", c2 = f;
|
|
1967
|
+
for (let i3 = 0; i3 < s2; i3++) {
|
|
1968
|
+
const s3 = t2[i3];
|
|
1969
|
+
let a2, u2, d2 = -1, y3 = 0;
|
|
1970
|
+
for (; y3 < s3.length && (c2.lastIndex = y3, u2 = c2.exec(s3), null !== u2); ) y3 = c2.lastIndex, c2 === f ? "!--" === u2[1] ? c2 = v : void 0 !== u2[1] ? c2 = _ : void 0 !== u2[2] ? ($.test(u2[2]) && (r2 = RegExp("</" + u2[2], "g")), c2 = m) : void 0 !== u2[3] && (c2 = m) : c2 === m ? ">" === u2[0] ? (c2 = r2 ?? f, d2 = -1) : void 0 === u2[1] ? d2 = -2 : (d2 = c2.lastIndex - u2[2].length, a2 = u2[1], c2 = void 0 === u2[3] ? m : '"' === u2[3] ? g : p) : c2 === g || c2 === p ? c2 = m : c2 === v || c2 === _ ? c2 = f : (c2 = m, r2 = void 0);
|
|
1971
|
+
const x2 = c2 === m && t2[i3 + 1].startsWith("/>") ? " " : "";
|
|
1972
|
+
l2 += c2 === f ? s3 + n2 : d2 >= 0 ? (o2.push(a2), s3.slice(0, d2) + e + s3.slice(d2) + h + x2) : s3 + h + (-2 === d2 ? i3 : x2);
|
|
1973
|
+
}
|
|
1974
|
+
return [P(t2, l2 + (t2[s2] || "<?>") + (2 === i2 ? "</svg>" : 3 === i2 ? "</math>" : "")), o2];
|
|
1975
|
+
};
|
|
1976
|
+
class N {
|
|
1977
|
+
constructor({ strings: t2, _$litType$: s2 }, n3) {
|
|
1978
|
+
let r2;
|
|
1979
|
+
this.parts = [];
|
|
1980
|
+
let c2 = 0, a2 = 0;
|
|
1981
|
+
const u2 = t2.length - 1, d2 = this.parts, [f2, v2] = V(t2, s2);
|
|
1982
|
+
if (this.el = N.createElement(f2, n3), C.currentNode = this.el.content, 2 === s2 || 3 === s2) {
|
|
1983
|
+
const t3 = this.el.content.firstChild;
|
|
1984
|
+
t3.replaceWith(...t3.childNodes);
|
|
1985
|
+
}
|
|
1986
|
+
for (; null !== (r2 = C.nextNode()) && d2.length < u2; ) {
|
|
1987
|
+
if (1 === r2.nodeType) {
|
|
1988
|
+
if (r2.hasAttributes()) for (const t3 of r2.getAttributeNames()) if (t3.endsWith(e)) {
|
|
1989
|
+
const i2 = v2[a2++], s3 = r2.getAttribute(t3).split(h), e2 = /([.?@])?(.*)/.exec(i2);
|
|
1990
|
+
d2.push({ type: 1, index: c2, name: e2[2], strings: s3, ctor: "." === e2[1] ? H : "?" === e2[1] ? I : "@" === e2[1] ? L : k }), r2.removeAttribute(t3);
|
|
1991
|
+
} else t3.startsWith(h) && (d2.push({ type: 6, index: c2 }), r2.removeAttribute(t3));
|
|
1992
|
+
if ($.test(r2.tagName)) {
|
|
1993
|
+
const t3 = r2.textContent.split(h), s3 = t3.length - 1;
|
|
1994
|
+
if (s3 > 0) {
|
|
1995
|
+
r2.textContent = i$1 ? i$1.emptyScript : "";
|
|
1996
|
+
for (let i2 = 0; i2 < s3; i2++) r2.append(t3[i2], l()), C.nextNode(), d2.push({ type: 2, index: ++c2 });
|
|
1997
|
+
r2.append(t3[s3], l());
|
|
1998
|
+
}
|
|
1999
|
+
}
|
|
2000
|
+
} else if (8 === r2.nodeType) if (r2.data === o$1) d2.push({ type: 2, index: c2 });
|
|
2001
|
+
else {
|
|
2002
|
+
let t3 = -1;
|
|
2003
|
+
for (; -1 !== (t3 = r2.data.indexOf(h, t3 + 1)); ) d2.push({ type: 7, index: c2 }), t3 += h.length - 1;
|
|
2004
|
+
}
|
|
2005
|
+
c2++;
|
|
2006
|
+
}
|
|
2007
|
+
}
|
|
2008
|
+
static createElement(t2, i2) {
|
|
2009
|
+
const s2 = r.createElement("template");
|
|
2010
|
+
return s2.innerHTML = t2, s2;
|
|
2011
|
+
}
|
|
2012
|
+
}
|
|
2013
|
+
function S(t2, i2, s2 = t2, e2) {
|
|
2014
|
+
var _a2, _b;
|
|
2015
|
+
if (i2 === T) return i2;
|
|
2016
|
+
let h2 = void 0 !== e2 ? (_a2 = s2._$Co) == null ? void 0 : _a2[e2] : s2._$Cl;
|
|
2017
|
+
const o2 = c(i2) ? void 0 : i2._$litDirective$;
|
|
2018
|
+
return (h2 == null ? void 0 : h2.constructor) !== o2 && ((_b = h2 == null ? void 0 : h2._$AO) == null ? void 0 : _b.call(h2, false), void 0 === o2 ? h2 = void 0 : (h2 = new o2(t2), h2._$AT(t2, s2, e2)), void 0 !== e2 ? (s2._$Co ?? (s2._$Co = []))[e2] = h2 : s2._$Cl = h2), void 0 !== h2 && (i2 = S(t2, h2._$AS(t2, i2.values), h2, e2)), i2;
|
|
2019
|
+
}
|
|
2020
|
+
class M {
|
|
2021
|
+
constructor(t2, i2) {
|
|
2022
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t2, this._$AM = i2;
|
|
2023
|
+
}
|
|
2024
|
+
get parentNode() {
|
|
2025
|
+
return this._$AM.parentNode;
|
|
2026
|
+
}
|
|
2027
|
+
get _$AU() {
|
|
2028
|
+
return this._$AM._$AU;
|
|
2029
|
+
}
|
|
2030
|
+
u(t2) {
|
|
2031
|
+
const { el: { content: i2 }, parts: s2 } = this._$AD, e2 = ((t2 == null ? void 0 : t2.creationScope) ?? r).importNode(i2, true);
|
|
2032
|
+
C.currentNode = e2;
|
|
2033
|
+
let h2 = C.nextNode(), o2 = 0, n3 = 0, l2 = s2[0];
|
|
2034
|
+
for (; void 0 !== l2; ) {
|
|
2035
|
+
if (o2 === l2.index) {
|
|
2036
|
+
let i3;
|
|
2037
|
+
2 === l2.type ? i3 = new R(h2, h2.nextSibling, this, t2) : 1 === l2.type ? i3 = new l2.ctor(h2, l2.name, l2.strings, this, t2) : 6 === l2.type && (i3 = new z(h2, this, t2)), this._$AV.push(i3), l2 = s2[++n3];
|
|
2038
|
+
}
|
|
2039
|
+
o2 !== (l2 == null ? void 0 : l2.index) && (h2 = C.nextNode(), o2++);
|
|
2040
|
+
}
|
|
2041
|
+
return C.currentNode = r, e2;
|
|
2042
|
+
}
|
|
2043
|
+
p(t2) {
|
|
2044
|
+
let i2 = 0;
|
|
2045
|
+
for (const s2 of this._$AV) void 0 !== s2 && (void 0 !== s2.strings ? (s2._$AI(t2, s2, i2), i2 += s2.strings.length - 2) : s2._$AI(t2[i2])), i2++;
|
|
2046
|
+
}
|
|
2047
|
+
}
|
|
2048
|
+
class R {
|
|
2049
|
+
get _$AU() {
|
|
2050
|
+
var _a2;
|
|
2051
|
+
return ((_a2 = this._$AM) == null ? void 0 : _a2._$AU) ?? this._$Cv;
|
|
2052
|
+
}
|
|
2053
|
+
constructor(t2, i2, s2, e2) {
|
|
2054
|
+
this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t2, this._$AB = i2, this._$AM = s2, this.options = e2, this._$Cv = (e2 == null ? void 0 : e2.isConnected) ?? true;
|
|
2055
|
+
}
|
|
2056
|
+
get parentNode() {
|
|
2057
|
+
let t2 = this._$AA.parentNode;
|
|
2058
|
+
const i2 = this._$AM;
|
|
2059
|
+
return void 0 !== i2 && 11 === (t2 == null ? void 0 : t2.nodeType) && (t2 = i2.parentNode), t2;
|
|
2060
|
+
}
|
|
2061
|
+
get startNode() {
|
|
2062
|
+
return this._$AA;
|
|
2063
|
+
}
|
|
2064
|
+
get endNode() {
|
|
2065
|
+
return this._$AB;
|
|
2066
|
+
}
|
|
2067
|
+
_$AI(t2, i2 = this) {
|
|
2068
|
+
t2 = S(this, t2, i2), c(t2) ? t2 === E || null == t2 || "" === t2 ? (this._$AH !== E && this._$AR(), this._$AH = E) : t2 !== this._$AH && t2 !== T && this._(t2) : void 0 !== t2._$litType$ ? this.$(t2) : void 0 !== t2.nodeType ? this.T(t2) : u(t2) ? this.k(t2) : this._(t2);
|
|
2069
|
+
}
|
|
2070
|
+
O(t2) {
|
|
2071
|
+
return this._$AA.parentNode.insertBefore(t2, this._$AB);
|
|
2072
|
+
}
|
|
2073
|
+
T(t2) {
|
|
2074
|
+
this._$AH !== t2 && (this._$AR(), this._$AH = this.O(t2));
|
|
2075
|
+
}
|
|
2076
|
+
_(t2) {
|
|
2077
|
+
this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t2 : this.T(r.createTextNode(t2)), this._$AH = t2;
|
|
2078
|
+
}
|
|
2079
|
+
$(t2) {
|
|
2080
|
+
var _a2;
|
|
2081
|
+
const { values: i2, _$litType$: s2 } = t2, e2 = "number" == typeof s2 ? this._$AC(t2) : (void 0 === s2.el && (s2.el = N.createElement(P(s2.h, s2.h[0]), this.options)), s2);
|
|
2082
|
+
if (((_a2 = this._$AH) == null ? void 0 : _a2._$AD) === e2) this._$AH.p(i2);
|
|
2083
|
+
else {
|
|
2084
|
+
const t3 = new M(e2, this), s3 = t3.u(this.options);
|
|
2085
|
+
t3.p(i2), this.T(s3), this._$AH = t3;
|
|
2086
|
+
}
|
|
2087
|
+
}
|
|
2088
|
+
_$AC(t2) {
|
|
2089
|
+
let i2 = A.get(t2.strings);
|
|
2090
|
+
return void 0 === i2 && A.set(t2.strings, i2 = new N(t2)), i2;
|
|
2091
|
+
}
|
|
2092
|
+
k(t2) {
|
|
2093
|
+
a(this._$AH) || (this._$AH = [], this._$AR());
|
|
2094
|
+
const i2 = this._$AH;
|
|
2095
|
+
let s2, e2 = 0;
|
|
2096
|
+
for (const h2 of t2) e2 === i2.length ? i2.push(s2 = new R(this.O(l()), this.O(l()), this, this.options)) : s2 = i2[e2], s2._$AI(h2), e2++;
|
|
2097
|
+
e2 < i2.length && (this._$AR(s2 && s2._$AB.nextSibling, e2), i2.length = e2);
|
|
2098
|
+
}
|
|
2099
|
+
_$AR(t2 = this._$AA.nextSibling, i2) {
|
|
2100
|
+
var _a2;
|
|
2101
|
+
for ((_a2 = this._$AP) == null ? void 0 : _a2.call(this, false, true, i2); t2 && t2 !== this._$AB; ) {
|
|
2102
|
+
const i3 = t2.nextSibling;
|
|
2103
|
+
t2.remove(), t2 = i3;
|
|
2104
|
+
}
|
|
2105
|
+
}
|
|
2106
|
+
setConnected(t2) {
|
|
2107
|
+
var _a2;
|
|
2108
|
+
void 0 === this._$AM && (this._$Cv = t2, (_a2 = this._$AP) == null ? void 0 : _a2.call(this, t2));
|
|
2109
|
+
}
|
|
2110
|
+
}
|
|
2111
|
+
class k {
|
|
2112
|
+
get tagName() {
|
|
2113
|
+
return this.element.tagName;
|
|
2114
|
+
}
|
|
2115
|
+
get _$AU() {
|
|
2116
|
+
return this._$AM._$AU;
|
|
2117
|
+
}
|
|
2118
|
+
constructor(t2, i2, s2, e2, h2) {
|
|
2119
|
+
this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t2, this.name = i2, this._$AM = e2, this.options = h2, s2.length > 2 || "" !== s2[0] || "" !== s2[1] ? (this._$AH = Array(s2.length - 1).fill(new String()), this.strings = s2) : this._$AH = E;
|
|
2120
|
+
}
|
|
2121
|
+
_$AI(t2, i2 = this, s2, e2) {
|
|
2122
|
+
const h2 = this.strings;
|
|
2123
|
+
let o2 = false;
|
|
2124
|
+
if (void 0 === h2) t2 = S(this, t2, i2, 0), o2 = !c(t2) || t2 !== this._$AH && t2 !== T, o2 && (this._$AH = t2);
|
|
2125
|
+
else {
|
|
2126
|
+
const e3 = t2;
|
|
2127
|
+
let n3, r2;
|
|
2128
|
+
for (t2 = h2[0], n3 = 0; n3 < h2.length - 1; n3++) r2 = S(this, e3[s2 + n3], i2, n3), r2 === T && (r2 = this._$AH[n3]), o2 || (o2 = !c(r2) || r2 !== this._$AH[n3]), r2 === E ? t2 = E : t2 !== E && (t2 += (r2 ?? "") + h2[n3 + 1]), this._$AH[n3] = r2;
|
|
2129
|
+
}
|
|
2130
|
+
o2 && !e2 && this.j(t2);
|
|
2131
|
+
}
|
|
2132
|
+
j(t2) {
|
|
2133
|
+
t2 === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t2 ?? "");
|
|
2134
|
+
}
|
|
2135
|
+
}
|
|
2136
|
+
class H extends k {
|
|
2137
|
+
constructor() {
|
|
2138
|
+
super(...arguments), this.type = 3;
|
|
2139
|
+
}
|
|
2140
|
+
j(t2) {
|
|
2141
|
+
this.element[this.name] = t2 === E ? void 0 : t2;
|
|
2142
|
+
}
|
|
2143
|
+
}
|
|
2144
|
+
class I extends k {
|
|
2145
|
+
constructor() {
|
|
2146
|
+
super(...arguments), this.type = 4;
|
|
2147
|
+
}
|
|
2148
|
+
j(t2) {
|
|
2149
|
+
this.element.toggleAttribute(this.name, !!t2 && t2 !== E);
|
|
2150
|
+
}
|
|
2151
|
+
}
|
|
2152
|
+
class L extends k {
|
|
2153
|
+
constructor(t2, i2, s2, e2, h2) {
|
|
2154
|
+
super(t2, i2, s2, e2, h2), this.type = 5;
|
|
2155
|
+
}
|
|
2156
|
+
_$AI(t2, i2 = this) {
|
|
2157
|
+
if ((t2 = S(this, t2, i2, 0) ?? E) === T) return;
|
|
2158
|
+
const s2 = this._$AH, e2 = t2 === E && s2 !== E || t2.capture !== s2.capture || t2.once !== s2.once || t2.passive !== s2.passive, h2 = t2 !== E && (s2 === E || e2);
|
|
2159
|
+
e2 && this.element.removeEventListener(this.name, this, s2), h2 && this.element.addEventListener(this.name, this, t2), this._$AH = t2;
|
|
2160
|
+
}
|
|
2161
|
+
handleEvent(t2) {
|
|
2162
|
+
var _a2;
|
|
2163
|
+
"function" == typeof this._$AH ? this._$AH.call(((_a2 = this.options) == null ? void 0 : _a2.host) ?? this.element, t2) : this._$AH.handleEvent(t2);
|
|
2164
|
+
}
|
|
2165
|
+
}
|
|
2166
|
+
class z {
|
|
2167
|
+
constructor(t2, i2, s2) {
|
|
2168
|
+
this.element = t2, this.type = 6, this._$AN = void 0, this._$AM = i2, this.options = s2;
|
|
2169
|
+
}
|
|
2170
|
+
get _$AU() {
|
|
2171
|
+
return this._$AM._$AU;
|
|
2172
|
+
}
|
|
2173
|
+
_$AI(t2) {
|
|
2174
|
+
S(this, t2);
|
|
2175
|
+
}
|
|
2176
|
+
}
|
|
2177
|
+
const j = t.litHtmlPolyfillSupport;
|
|
2178
|
+
j == null ? void 0 : j(N, R), (t.litHtmlVersions ?? (t.litHtmlVersions = [])).push("3.3.0");
|
|
2179
|
+
const B = (t2, i2, s2) => {
|
|
2180
|
+
const e2 = (s2 == null ? void 0 : s2.renderBefore) ?? i2;
|
|
2181
|
+
let h2 = e2._$litPart$;
|
|
2182
|
+
if (void 0 === h2) {
|
|
2183
|
+
const t3 = (s2 == null ? void 0 : s2.renderBefore) ?? null;
|
|
2184
|
+
e2._$litPart$ = h2 = new R(i2.insertBefore(l(), t3), t3, void 0, s2 ?? {});
|
|
2185
|
+
}
|
|
2186
|
+
return h2._$AI(t2), h2;
|
|
2187
|
+
};
|
|
2188
|
+
/**
|
|
2189
|
+
* @license
|
|
2190
|
+
* Copyright 2017 Google LLC
|
|
2191
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2192
|
+
*/
|
|
2193
|
+
const s = globalThis;
|
|
2194
|
+
class i extends y$1 {
|
|
2195
|
+
constructor() {
|
|
2196
|
+
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
2197
|
+
}
|
|
2198
|
+
createRenderRoot() {
|
|
2199
|
+
var _a2;
|
|
2200
|
+
const t2 = super.createRenderRoot();
|
|
2201
|
+
return (_a2 = this.renderOptions).renderBefore ?? (_a2.renderBefore = t2.firstChild), t2;
|
|
2202
|
+
}
|
|
2203
|
+
update(t2) {
|
|
2204
|
+
const r2 = this.render();
|
|
2205
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t2), this._$Do = B(r2, this.renderRoot, this.renderOptions);
|
|
2206
|
+
}
|
|
2207
|
+
connectedCallback() {
|
|
2208
|
+
var _a2;
|
|
2209
|
+
super.connectedCallback(), (_a2 = this._$Do) == null ? void 0 : _a2.setConnected(true);
|
|
2210
|
+
}
|
|
2211
|
+
disconnectedCallback() {
|
|
2212
|
+
var _a2;
|
|
2213
|
+
super.disconnectedCallback(), (_a2 = this._$Do) == null ? void 0 : _a2.setConnected(false);
|
|
2214
|
+
}
|
|
2215
|
+
render() {
|
|
2216
|
+
return T;
|
|
2217
|
+
}
|
|
2218
|
+
}
|
|
2219
|
+
i._$litElement$ = true, i["finalized"] = true, (_a = s.litElementHydrateSupport) == null ? void 0 : _a.call(s, { LitElement: i });
|
|
2220
|
+
const o = s.litElementPolyfillSupport;
|
|
2221
|
+
o == null ? void 0 : o({ LitElement: i });
|
|
2222
|
+
(s.litElementVersions ?? (s.litElementVersions = [])).push("4.2.0");
|
|
2223
|
+
let themeTag = void 0;
|
|
2224
|
+
let darkModeTag = void 0;
|
|
2225
|
+
let lightModeTag = void 0;
|
|
2226
|
+
function initializeTheming(themeVariables, themeMode) {
|
|
2227
|
+
themeTag = document.createElement("style");
|
|
2228
|
+
darkModeTag = document.createElement("style");
|
|
2229
|
+
lightModeTag = document.createElement("style");
|
|
2230
|
+
themeTag.textContent = createRootStyles(themeVariables).core.cssText;
|
|
2231
|
+
darkModeTag.textContent = createRootStyles(themeVariables).dark.cssText;
|
|
2232
|
+
lightModeTag.textContent = createRootStyles(themeVariables).light.cssText;
|
|
2233
|
+
document.head.appendChild(themeTag);
|
|
2234
|
+
document.head.appendChild(darkModeTag);
|
|
2235
|
+
document.head.appendChild(lightModeTag);
|
|
2236
|
+
setColorTheme(themeMode);
|
|
2237
|
+
}
|
|
2238
|
+
function setColorTheme(themeMode) {
|
|
2239
|
+
if (darkModeTag && lightModeTag) {
|
|
2240
|
+
if (themeMode === "light") {
|
|
2241
|
+
darkModeTag.removeAttribute("media");
|
|
2242
|
+
lightModeTag.media = "enabled";
|
|
2243
|
+
} else {
|
|
2244
|
+
lightModeTag.removeAttribute("media");
|
|
2245
|
+
darkModeTag.media = "enabled";
|
|
2246
|
+
}
|
|
2247
|
+
}
|
|
2248
|
+
}
|
|
2249
|
+
function setThemeVariables(themeVariables) {
|
|
2250
|
+
if (themeTag && darkModeTag && lightModeTag) {
|
|
2251
|
+
themeTag.textContent = createRootStyles(themeVariables).core.cssText;
|
|
2252
|
+
darkModeTag.textContent = createRootStyles(themeVariables).dark.cssText;
|
|
2253
|
+
lightModeTag.textContent = createRootStyles(themeVariables).light.cssText;
|
|
2254
|
+
}
|
|
2255
|
+
}
|
|
2256
|
+
function createRootStyles(themeVariables) {
|
|
2257
|
+
return {
|
|
2258
|
+
core: i$3`
|
|
2259
|
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
|
|
2260
|
+
@keyframes w3m-shake {
|
|
2261
|
+
0% {
|
|
2262
|
+
transform: scale(1) rotate(0deg);
|
|
2263
|
+
}
|
|
2264
|
+
20% {
|
|
2265
|
+
transform: scale(1) rotate(-1deg);
|
|
2266
|
+
}
|
|
2267
|
+
40% {
|
|
2268
|
+
transform: scale(1) rotate(1.5deg);
|
|
2269
|
+
}
|
|
2270
|
+
60% {
|
|
2271
|
+
transform: scale(1) rotate(-1.5deg);
|
|
2272
|
+
}
|
|
2273
|
+
80% {
|
|
2274
|
+
transform: scale(1) rotate(1deg);
|
|
2275
|
+
}
|
|
2276
|
+
100% {
|
|
2277
|
+
transform: scale(1) rotate(0deg);
|
|
2278
|
+
}
|
|
2279
|
+
}
|
|
2280
|
+
@keyframes w3m-iframe-fade-out {
|
|
2281
|
+
0% {
|
|
2282
|
+
opacity: 1;
|
|
2283
|
+
}
|
|
2284
|
+
100% {
|
|
2285
|
+
opacity: 0;
|
|
2286
|
+
}
|
|
2287
|
+
}
|
|
2288
|
+
@keyframes w3m-iframe-zoom-in {
|
|
2289
|
+
0% {
|
|
2290
|
+
transform: translateY(50px);
|
|
2291
|
+
opacity: 0;
|
|
2292
|
+
}
|
|
2293
|
+
100% {
|
|
2294
|
+
transform: translateY(0px);
|
|
2295
|
+
opacity: 1;
|
|
2296
|
+
}
|
|
2297
|
+
}
|
|
2298
|
+
@keyframes w3m-iframe-zoom-in-mobile {
|
|
2299
|
+
0% {
|
|
2300
|
+
transform: scale(0.95);
|
|
2301
|
+
opacity: 0;
|
|
2302
|
+
}
|
|
2303
|
+
100% {
|
|
2304
|
+
transform: scale(1);
|
|
2305
|
+
opacity: 1;
|
|
2306
|
+
}
|
|
2307
|
+
}
|
|
2308
|
+
:root {
|
|
2309
|
+
--w3m-modal-width: 360px;
|
|
2310
|
+
--w3m-color-mix-strength: ${r$2((themeVariables == null ? void 0 : themeVariables["--w3m-color-mix-strength"]) ? `${themeVariables["--w3m-color-mix-strength"]}%` : "0%")};
|
|
2311
|
+
--w3m-font-family: ${r$2((themeVariables == null ? void 0 : themeVariables["--w3m-font-family"]) || "Inter, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;")};
|
|
2312
|
+
--w3m-font-size-master: ${r$2((themeVariables == null ? void 0 : themeVariables["--w3m-font-size-master"]) || "10px")};
|
|
2313
|
+
--w3m-border-radius-master: ${r$2((themeVariables == null ? void 0 : themeVariables["--w3m-border-radius-master"]) || "4px")};
|
|
2314
|
+
--w3m-z-index: ${r$2((themeVariables == null ? void 0 : themeVariables["--w3m-z-index"]) || 999)};
|
|
2315
|
+
|
|
2316
|
+
--wui-font-family: var(--w3m-font-family);
|
|
2317
|
+
|
|
2318
|
+
--wui-font-size-mini: calc(var(--w3m-font-size-master) * 0.8);
|
|
2319
|
+
--wui-font-size-micro: var(--w3m-font-size-master);
|
|
2320
|
+
--wui-font-size-tiny: calc(var(--w3m-font-size-master) * 1.2);
|
|
2321
|
+
--wui-font-size-small: calc(var(--w3m-font-size-master) * 1.4);
|
|
2322
|
+
--wui-font-size-paragraph: calc(var(--w3m-font-size-master) * 1.6);
|
|
2323
|
+
--wui-font-size-medium: calc(var(--w3m-font-size-master) * 1.8);
|
|
2324
|
+
--wui-font-size-large: calc(var(--w3m-font-size-master) * 2);
|
|
2325
|
+
--wui-font-size-title-6: calc(var(--w3m-font-size-master) * 2.2);
|
|
2326
|
+
--wui-font-size-medium-title: calc(var(--w3m-font-size-master) * 2.4);
|
|
2327
|
+
--wui-font-size-2xl: calc(var(--w3m-font-size-master) * 4);
|
|
2328
|
+
|
|
2329
|
+
--wui-border-radius-5xs: var(--w3m-border-radius-master);
|
|
2330
|
+
--wui-border-radius-4xs: calc(var(--w3m-border-radius-master) * 1.5);
|
|
2331
|
+
--wui-border-radius-3xs: calc(var(--w3m-border-radius-master) * 2);
|
|
2332
|
+
--wui-border-radius-xxs: calc(var(--w3m-border-radius-master) * 3);
|
|
2333
|
+
--wui-border-radius-xs: calc(var(--w3m-border-radius-master) * 4);
|
|
2334
|
+
--wui-border-radius-s: calc(var(--w3m-border-radius-master) * 5);
|
|
2335
|
+
--wui-border-radius-m: calc(var(--w3m-border-radius-master) * 7);
|
|
2336
|
+
--wui-border-radius-l: calc(var(--w3m-border-radius-master) * 9);
|
|
2337
|
+
--wui-border-radius-3xl: calc(var(--w3m-border-radius-master) * 20);
|
|
2338
|
+
|
|
2339
|
+
--wui-font-weight-light: 400;
|
|
2340
|
+
--wui-font-weight-regular: 500;
|
|
2341
|
+
--wui-font-weight-medium: 600;
|
|
2342
|
+
--wui-font-weight-bold: 700;
|
|
2343
|
+
|
|
2344
|
+
--wui-letter-spacing-2xl: -1.6px;
|
|
2345
|
+
--wui-letter-spacing-medium-title: -0.96px;
|
|
2346
|
+
--wui-letter-spacing-title-6: -0.88px;
|
|
2347
|
+
--wui-letter-spacing-large: -0.8px;
|
|
2348
|
+
--wui-letter-spacing-medium: -0.72px;
|
|
2349
|
+
--wui-letter-spacing-paragraph: -0.64px;
|
|
2350
|
+
--wui-letter-spacing-small: -0.56px;
|
|
2351
|
+
--wui-letter-spacing-tiny: -0.48px;
|
|
2352
|
+
--wui-letter-spacing-micro: -0.2px;
|
|
2353
|
+
--wui-letter-spacing-mini: -0.16px;
|
|
2354
|
+
|
|
2355
|
+
--wui-spacing-0: 0px;
|
|
2356
|
+
--wui-spacing-4xs: 2px;
|
|
2357
|
+
--wui-spacing-3xs: 4px;
|
|
2358
|
+
--wui-spacing-xxs: 6px;
|
|
2359
|
+
--wui-spacing-2xs: 7px;
|
|
2360
|
+
--wui-spacing-xs: 8px;
|
|
2361
|
+
--wui-spacing-1xs: 10px;
|
|
2362
|
+
--wui-spacing-s: 12px;
|
|
2363
|
+
--wui-spacing-m: 14px;
|
|
2364
|
+
--wui-spacing-l: 16px;
|
|
2365
|
+
--wui-spacing-2l: 18px;
|
|
2366
|
+
--wui-spacing-xl: 20px;
|
|
2367
|
+
--wui-spacing-xxl: 24px;
|
|
2368
|
+
--wui-spacing-2xl: 32px;
|
|
2369
|
+
--wui-spacing-3xl: 40px;
|
|
2370
|
+
--wui-spacing-4xl: 90px;
|
|
2371
|
+
--wui-spacing-5xl: 95px;
|
|
2372
|
+
|
|
2373
|
+
--wui-icon-box-size-xxs: 14px;
|
|
2374
|
+
--wui-icon-box-size-xs: 20px;
|
|
2375
|
+
--wui-icon-box-size-sm: 24px;
|
|
2376
|
+
--wui-icon-box-size-md: 32px;
|
|
2377
|
+
--wui-icon-box-size-mdl: 36px;
|
|
2378
|
+
--wui-icon-box-size-lg: 40px;
|
|
2379
|
+
--wui-icon-box-size-2lg: 48px;
|
|
2380
|
+
--wui-icon-box-size-xl: 64px;
|
|
2381
|
+
|
|
2382
|
+
--wui-icon-size-inherit: inherit;
|
|
2383
|
+
--wui-icon-size-xxs: 10px;
|
|
2384
|
+
--wui-icon-size-xs: 12px;
|
|
2385
|
+
--wui-icon-size-sm: 14px;
|
|
2386
|
+
--wui-icon-size-md: 16px;
|
|
2387
|
+
--wui-icon-size-mdl: 18px;
|
|
2388
|
+
--wui-icon-size-lg: 20px;
|
|
2389
|
+
--wui-icon-size-xl: 24px;
|
|
2390
|
+
--wui-icon-size-xxl: 28px;
|
|
2391
|
+
|
|
2392
|
+
--wui-wallet-image-size-inherit: inherit;
|
|
2393
|
+
--wui-wallet-image-size-sm: 40px;
|
|
2394
|
+
--wui-wallet-image-size-md: 56px;
|
|
2395
|
+
--wui-wallet-image-size-lg: 80px;
|
|
2396
|
+
|
|
2397
|
+
--wui-visual-size-size-inherit: inherit;
|
|
2398
|
+
--wui-visual-size-sm: 40px;
|
|
2399
|
+
--wui-visual-size-md: 55px;
|
|
2400
|
+
--wui-visual-size-lg: 80px;
|
|
2401
|
+
|
|
2402
|
+
--wui-box-size-md: 100px;
|
|
2403
|
+
--wui-box-size-lg: 120px;
|
|
2404
|
+
|
|
2405
|
+
--wui-ease-out-power-2: cubic-bezier(0, 0, 0.22, 1);
|
|
2406
|
+
--wui-ease-out-power-1: cubic-bezier(0, 0, 0.55, 1);
|
|
2407
|
+
|
|
2408
|
+
--wui-ease-in-power-3: cubic-bezier(0.66, 0, 1, 1);
|
|
2409
|
+
--wui-ease-in-power-2: cubic-bezier(0.45, 0, 1, 1);
|
|
2410
|
+
--wui-ease-in-power-1: cubic-bezier(0.3, 0, 1, 1);
|
|
2411
|
+
|
|
2412
|
+
--wui-ease-inout-power-1: cubic-bezier(0.45, 0, 0.55, 1);
|
|
2413
|
+
|
|
2414
|
+
--wui-duration-lg: 200ms;
|
|
2415
|
+
--wui-duration-md: 125ms;
|
|
2416
|
+
--wui-duration-sm: 75ms;
|
|
2417
|
+
|
|
2418
|
+
--wui-path-network-sm: path(
|
|
2419
|
+
'M15.4 2.1a5.21 5.21 0 0 1 5.2 0l11.61 6.7a5.21 5.21 0 0 1 2.61 4.52v13.4c0 1.87-1 3.59-2.6 4.52l-11.61 6.7c-1.62.93-3.6.93-5.22 0l-11.6-6.7a5.21 5.21 0 0 1-2.61-4.51v-13.4c0-1.87 1-3.6 2.6-4.52L15.4 2.1Z'
|
|
2420
|
+
);
|
|
2421
|
+
|
|
2422
|
+
--wui-path-network-md: path(
|
|
2423
|
+
'M43.4605 10.7248L28.0485 1.61089C25.5438 0.129705 22.4562 0.129705 19.9515 1.61088L4.53951 10.7248C2.03626 12.2051 0.5 14.9365 0.5 17.886V36.1139C0.5 39.0635 2.03626 41.7949 4.53951 43.2752L19.9515 52.3891C22.4562 53.8703 25.5438 53.8703 28.0485 52.3891L43.4605 43.2752C45.9637 41.7949 47.5 39.0635 47.5 36.114V17.8861C47.5 14.9365 45.9637 12.2051 43.4605 10.7248Z'
|
|
2424
|
+
);
|
|
2425
|
+
|
|
2426
|
+
--wui-path-network-lg: path(
|
|
2427
|
+
'M78.3244 18.926L50.1808 2.45078C45.7376 -0.150261 40.2624 -0.150262 35.8192 2.45078L7.6756 18.926C3.23322 21.5266 0.5 26.3301 0.5 31.5248V64.4752C0.5 69.6699 3.23322 74.4734 7.6756 77.074L35.8192 93.5492C40.2624 96.1503 45.7376 96.1503 50.1808 93.5492L78.3244 77.074C82.7668 74.4734 85.5 69.6699 85.5 64.4752V31.5248C85.5 26.3301 82.7668 21.5266 78.3244 18.926Z'
|
|
2428
|
+
);
|
|
2429
|
+
|
|
2430
|
+
--wui-width-network-sm: 36px;
|
|
2431
|
+
--wui-width-network-md: 48px;
|
|
2432
|
+
--wui-width-network-lg: 86px;
|
|
2433
|
+
|
|
2434
|
+
--wui-height-network-sm: 40px;
|
|
2435
|
+
--wui-height-network-md: 54px;
|
|
2436
|
+
--wui-height-network-lg: 96px;
|
|
2437
|
+
|
|
2438
|
+
--wui-icon-size-network-xs: 12px;
|
|
2439
|
+
--wui-icon-size-network-sm: 16px;
|
|
2440
|
+
--wui-icon-size-network-md: 24px;
|
|
2441
|
+
--wui-icon-size-network-lg: 42px;
|
|
2442
|
+
|
|
2443
|
+
--wui-color-inherit: inherit;
|
|
2444
|
+
|
|
2445
|
+
--wui-color-inverse-100: #fff;
|
|
2446
|
+
--wui-color-inverse-000: #000;
|
|
2447
|
+
|
|
2448
|
+
--wui-cover: rgba(20, 20, 20, 0.8);
|
|
2449
|
+
|
|
2450
|
+
--wui-color-modal-bg: var(--wui-color-modal-bg-base);
|
|
2451
|
+
|
|
2452
|
+
--wui-color-accent-100: var(--wui-color-accent-base-100);
|
|
2453
|
+
--wui-color-accent-090: var(--wui-color-accent-base-090);
|
|
2454
|
+
--wui-color-accent-080: var(--wui-color-accent-base-080);
|
|
2455
|
+
|
|
2456
|
+
--wui-color-success-100: var(--wui-color-success-base-100);
|
|
2457
|
+
--wui-color-success-125: var(--wui-color-success-base-125);
|
|
2458
|
+
|
|
2459
|
+
--wui-color-warning-100: var(--wui-color-warning-base-100);
|
|
2460
|
+
|
|
2461
|
+
--wui-color-error-100: var(--wui-color-error-base-100);
|
|
2462
|
+
--wui-color-error-125: var(--wui-color-error-base-125);
|
|
2463
|
+
|
|
2464
|
+
--wui-color-blue-100: var(--wui-color-blue-base-100);
|
|
2465
|
+
--wui-color-blue-90: var(--wui-color-blue-base-90);
|
|
2466
|
+
|
|
2467
|
+
--wui-icon-box-bg-error-100: var(--wui-icon-box-bg-error-base-100);
|
|
2468
|
+
--wui-icon-box-bg-blue-100: var(--wui-icon-box-bg-blue-base-100);
|
|
2469
|
+
--wui-icon-box-bg-success-100: var(--wui-icon-box-bg-success-base-100);
|
|
2470
|
+
--wui-icon-box-bg-inverse-100: var(--wui-icon-box-bg-inverse-base-100);
|
|
2471
|
+
|
|
2472
|
+
--wui-all-wallets-bg-100: var(--wui-all-wallets-bg-100);
|
|
2473
|
+
|
|
2474
|
+
--wui-avatar-border: var(--wui-avatar-border-base);
|
|
2475
|
+
|
|
2476
|
+
--wui-thumbnail-border: var(--wui-thumbnail-border-base);
|
|
2477
|
+
|
|
2478
|
+
--wui-wallet-button-bg: var(--wui-wallet-button-bg-base);
|
|
2479
|
+
|
|
2480
|
+
--wui-box-shadow-blue: var(--wui-color-accent-glass-020);
|
|
2481
|
+
}
|
|
2482
|
+
|
|
2483
|
+
@supports (background: color-mix(in srgb, white 50%, black)) {
|
|
2484
|
+
:root {
|
|
2485
|
+
--wui-color-modal-bg: color-mix(
|
|
2486
|
+
in srgb,
|
|
2487
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2488
|
+
var(--wui-color-modal-bg-base)
|
|
2489
|
+
);
|
|
2490
|
+
|
|
2491
|
+
--wui-box-shadow-blue: color-mix(in srgb, var(--wui-color-accent-100) 20%, transparent);
|
|
2492
|
+
|
|
2493
|
+
--wui-color-accent-100: color-mix(
|
|
2494
|
+
in srgb,
|
|
2495
|
+
var(--wui-color-accent-base-100) 100%,
|
|
2496
|
+
transparent
|
|
2497
|
+
);
|
|
2498
|
+
--wui-color-accent-090: color-mix(
|
|
2499
|
+
in srgb,
|
|
2500
|
+
var(--wui-color-accent-base-100) 90%,
|
|
2501
|
+
transparent
|
|
2502
|
+
);
|
|
2503
|
+
--wui-color-accent-080: color-mix(
|
|
2504
|
+
in srgb,
|
|
2505
|
+
var(--wui-color-accent-base-100) 80%,
|
|
2506
|
+
transparent
|
|
2507
|
+
);
|
|
2508
|
+
--wui-color-accent-glass-090: color-mix(
|
|
2509
|
+
in srgb,
|
|
2510
|
+
var(--wui-color-accent-base-100) 90%,
|
|
2511
|
+
transparent
|
|
2512
|
+
);
|
|
2513
|
+
--wui-color-accent-glass-080: color-mix(
|
|
2514
|
+
in srgb,
|
|
2515
|
+
var(--wui-color-accent-base-100) 80%,
|
|
2516
|
+
transparent
|
|
2517
|
+
);
|
|
2518
|
+
--wui-color-accent-glass-020: color-mix(
|
|
2519
|
+
in srgb,
|
|
2520
|
+
var(--wui-color-accent-base-100) 20%,
|
|
2521
|
+
transparent
|
|
2522
|
+
);
|
|
2523
|
+
--wui-color-accent-glass-015: color-mix(
|
|
2524
|
+
in srgb,
|
|
2525
|
+
var(--wui-color-accent-base-100) 15%,
|
|
2526
|
+
transparent
|
|
2527
|
+
);
|
|
2528
|
+
--wui-color-accent-glass-010: color-mix(
|
|
2529
|
+
in srgb,
|
|
2530
|
+
var(--wui-color-accent-base-100) 10%,
|
|
2531
|
+
transparent
|
|
2532
|
+
);
|
|
2533
|
+
--wui-color-accent-glass-005: color-mix(
|
|
2534
|
+
in srgb,
|
|
2535
|
+
var(--wui-color-accent-base-100) 5%,
|
|
2536
|
+
transparent
|
|
2537
|
+
);
|
|
2538
|
+
--wui-color-accent-002: color-mix(
|
|
2539
|
+
in srgb,
|
|
2540
|
+
var(--wui-color-accent-base-100) 2%,
|
|
2541
|
+
transparent
|
|
2542
|
+
);
|
|
2543
|
+
|
|
2544
|
+
--wui-color-fg-100: color-mix(
|
|
2545
|
+
in srgb,
|
|
2546
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2547
|
+
var(--wui-color-fg-100)
|
|
2548
|
+
);
|
|
2549
|
+
--wui-color-fg-125: color-mix(
|
|
2550
|
+
in srgb,
|
|
2551
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2552
|
+
var(--wui-color-fg-125)
|
|
2553
|
+
);
|
|
2554
|
+
--wui-color-fg-150: color-mix(
|
|
2555
|
+
in srgb,
|
|
2556
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2557
|
+
var(--wui-color-fg-150)
|
|
2558
|
+
);
|
|
2559
|
+
--wui-color-fg-175: color-mix(
|
|
2560
|
+
in srgb,
|
|
2561
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2562
|
+
var(--wui-color-fg-175)
|
|
2563
|
+
);
|
|
2564
|
+
--wui-color-fg-200: color-mix(
|
|
2565
|
+
in srgb,
|
|
2566
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2567
|
+
var(--wui-color-fg-200)
|
|
2568
|
+
);
|
|
2569
|
+
--wui-color-fg-225: color-mix(
|
|
2570
|
+
in srgb,
|
|
2571
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2572
|
+
var(--wui-color-fg-225)
|
|
2573
|
+
);
|
|
2574
|
+
--wui-color-fg-250: color-mix(
|
|
2575
|
+
in srgb,
|
|
2576
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2577
|
+
var(--wui-color-fg-250)
|
|
2578
|
+
);
|
|
2579
|
+
--wui-color-fg-275: color-mix(
|
|
2580
|
+
in srgb,
|
|
2581
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2582
|
+
var(--wui-color-fg-275)
|
|
2583
|
+
);
|
|
2584
|
+
--wui-color-fg-300: color-mix(
|
|
2585
|
+
in srgb,
|
|
2586
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2587
|
+
var(--wui-color-fg-300)
|
|
2588
|
+
);
|
|
2589
|
+
--wui-color-fg-325: color-mix(
|
|
2590
|
+
in srgb,
|
|
2591
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2592
|
+
var(--wui-color-fg-325)
|
|
2593
|
+
);
|
|
2594
|
+
--wui-color-fg-350: color-mix(
|
|
2595
|
+
in srgb,
|
|
2596
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2597
|
+
var(--wui-color-fg-350)
|
|
2598
|
+
);
|
|
2599
|
+
|
|
2600
|
+
--wui-color-bg-100: color-mix(
|
|
2601
|
+
in srgb,
|
|
2602
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2603
|
+
var(--wui-color-bg-100)
|
|
2604
|
+
);
|
|
2605
|
+
--wui-color-bg-125: color-mix(
|
|
2606
|
+
in srgb,
|
|
2607
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2608
|
+
var(--wui-color-bg-125)
|
|
2609
|
+
);
|
|
2610
|
+
--wui-color-bg-150: color-mix(
|
|
2611
|
+
in srgb,
|
|
2612
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2613
|
+
var(--wui-color-bg-150)
|
|
2614
|
+
);
|
|
2615
|
+
--wui-color-bg-175: color-mix(
|
|
2616
|
+
in srgb,
|
|
2617
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2618
|
+
var(--wui-color-bg-175)
|
|
2619
|
+
);
|
|
2620
|
+
--wui-color-bg-200: color-mix(
|
|
2621
|
+
in srgb,
|
|
2622
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2623
|
+
var(--wui-color-bg-200)
|
|
2624
|
+
);
|
|
2625
|
+
--wui-color-bg-225: color-mix(
|
|
2626
|
+
in srgb,
|
|
2627
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2628
|
+
var(--wui-color-bg-225)
|
|
2629
|
+
);
|
|
2630
|
+
--wui-color-bg-250: color-mix(
|
|
2631
|
+
in srgb,
|
|
2632
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2633
|
+
var(--wui-color-bg-250)
|
|
2634
|
+
);
|
|
2635
|
+
--wui-color-bg-275: color-mix(
|
|
2636
|
+
in srgb,
|
|
2637
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2638
|
+
var(--wui-color-bg-275)
|
|
2639
|
+
);
|
|
2640
|
+
--wui-color-bg-300: color-mix(
|
|
2641
|
+
in srgb,
|
|
2642
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2643
|
+
var(--wui-color-bg-300)
|
|
2644
|
+
);
|
|
2645
|
+
--wui-color-bg-325: color-mix(
|
|
2646
|
+
in srgb,
|
|
2647
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2648
|
+
var(--wui-color-bg-325)
|
|
2649
|
+
);
|
|
2650
|
+
--wui-color-bg-350: color-mix(
|
|
2651
|
+
in srgb,
|
|
2652
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2653
|
+
var(--wui-color-bg-350)
|
|
2654
|
+
);
|
|
2655
|
+
|
|
2656
|
+
--wui-color-success-100: color-mix(
|
|
2657
|
+
in srgb,
|
|
2658
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2659
|
+
var(--wui-color-success-base-100)
|
|
2660
|
+
);
|
|
2661
|
+
--wui-color-success-125: color-mix(
|
|
2662
|
+
in srgb,
|
|
2663
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2664
|
+
var(--wui-color-success-base-125)
|
|
2665
|
+
);
|
|
2666
|
+
|
|
2667
|
+
--wui-color-warning-100: color-mix(
|
|
2668
|
+
in srgb,
|
|
2669
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2670
|
+
var(--wui-color-warning-base-100)
|
|
2671
|
+
);
|
|
2672
|
+
|
|
2673
|
+
--wui-color-error-100: color-mix(
|
|
2674
|
+
in srgb,
|
|
2675
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2676
|
+
var(--wui-color-error-base-100)
|
|
2677
|
+
);
|
|
2678
|
+
--wui-color-blue-100: color-mix(
|
|
2679
|
+
in srgb,
|
|
2680
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2681
|
+
var(--wui-color-blue-base-100)
|
|
2682
|
+
);
|
|
2683
|
+
--wui-color-blue-90: color-mix(
|
|
2684
|
+
in srgb,
|
|
2685
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2686
|
+
var(--wui-color-blue-base-90)
|
|
2687
|
+
);
|
|
2688
|
+
--wui-color-error-125: color-mix(
|
|
2689
|
+
in srgb,
|
|
2690
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2691
|
+
var(--wui-color-error-base-125)
|
|
2692
|
+
);
|
|
2693
|
+
|
|
2694
|
+
--wui-icon-box-bg-error-100: color-mix(
|
|
2695
|
+
in srgb,
|
|
2696
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2697
|
+
var(--wui-icon-box-bg-error-base-100)
|
|
2698
|
+
);
|
|
2699
|
+
--wui-icon-box-bg-accent-100: color-mix(
|
|
2700
|
+
in srgb,
|
|
2701
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2702
|
+
var(--wui-icon-box-bg-blue-base-100)
|
|
2703
|
+
);
|
|
2704
|
+
--wui-icon-box-bg-success-100: color-mix(
|
|
2705
|
+
in srgb,
|
|
2706
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2707
|
+
var(--wui-icon-box-bg-success-base-100)
|
|
2708
|
+
);
|
|
2709
|
+
--wui-icon-box-bg-inverse-100: color-mix(
|
|
2710
|
+
in srgb,
|
|
2711
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2712
|
+
var(--wui-icon-box-bg-inverse-base-100)
|
|
2713
|
+
);
|
|
2714
|
+
|
|
2715
|
+
--wui-all-wallets-bg-100: color-mix(
|
|
2716
|
+
in srgb,
|
|
2717
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2718
|
+
var(--wui-all-wallets-bg-100)
|
|
2719
|
+
);
|
|
2720
|
+
|
|
2721
|
+
--wui-avatar-border: color-mix(
|
|
2722
|
+
in srgb,
|
|
2723
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2724
|
+
var(--wui-avatar-border-base)
|
|
2725
|
+
);
|
|
2726
|
+
|
|
2727
|
+
--wui-thumbnail-border: color-mix(
|
|
2728
|
+
in srgb,
|
|
2729
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2730
|
+
var(--wui-thumbnail-border-base)
|
|
2731
|
+
);
|
|
2732
|
+
|
|
2733
|
+
--wui-wallet-button-bg: color-mix(
|
|
2734
|
+
in srgb,
|
|
2735
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2736
|
+
var(--wui-wallet-button-bg-base)
|
|
2737
|
+
);
|
|
2738
|
+
}
|
|
2739
|
+
}
|
|
2740
|
+
`,
|
|
2741
|
+
light: i$3`
|
|
2742
|
+
:root {
|
|
2743
|
+
--w3m-color-mix: ${r$2((themeVariables == null ? void 0 : themeVariables["--w3m-color-mix"]) || "#fff")};
|
|
2744
|
+
--w3m-accent: ${r$2(getW3mThemeVariables(themeVariables, "dark")["--w3m-accent"])};
|
|
2745
|
+
--w3m-default: #fff;
|
|
2746
|
+
|
|
2747
|
+
--wui-color-modal-bg-base: ${r$2(getW3mThemeVariables(themeVariables, "dark")["--w3m-background"])};
|
|
2748
|
+
--wui-color-accent-base-100: var(--w3m-accent);
|
|
2749
|
+
|
|
2750
|
+
--wui-color-blueberry-100: hsla(230, 100%, 67%, 1);
|
|
2751
|
+
--wui-color-blueberry-090: hsla(231, 76%, 61%, 1);
|
|
2752
|
+
--wui-color-blueberry-080: hsla(230, 59%, 55%, 1);
|
|
2753
|
+
--wui-color-blueberry-050: hsla(231, 100%, 70%, 0.1);
|
|
2754
|
+
|
|
2755
|
+
--wui-color-fg-100: #e4e7e7;
|
|
2756
|
+
--wui-color-fg-125: #d0d5d5;
|
|
2757
|
+
--wui-color-fg-150: #a8b1b1;
|
|
2758
|
+
--wui-color-fg-175: #a8b0b0;
|
|
2759
|
+
--wui-color-fg-200: #949e9e;
|
|
2760
|
+
--wui-color-fg-225: #868f8f;
|
|
2761
|
+
--wui-color-fg-250: #788080;
|
|
2762
|
+
--wui-color-fg-275: #788181;
|
|
2763
|
+
--wui-color-fg-300: #6e7777;
|
|
2764
|
+
--wui-color-fg-325: #9a9a9a;
|
|
2765
|
+
--wui-color-fg-350: #363636;
|
|
2766
|
+
|
|
2767
|
+
--wui-color-bg-100: #141414;
|
|
2768
|
+
--wui-color-bg-125: #191a1a;
|
|
2769
|
+
--wui-color-bg-150: #1e1f1f;
|
|
2770
|
+
--wui-color-bg-175: #222525;
|
|
2771
|
+
--wui-color-bg-200: #272a2a;
|
|
2772
|
+
--wui-color-bg-225: #2c3030;
|
|
2773
|
+
--wui-color-bg-250: #313535;
|
|
2774
|
+
--wui-color-bg-275: #363b3b;
|
|
2775
|
+
--wui-color-bg-300: #3b4040;
|
|
2776
|
+
--wui-color-bg-325: #252525;
|
|
2777
|
+
--wui-color-bg-350: #ffffff;
|
|
2778
|
+
|
|
2779
|
+
--wui-color-success-base-100: #26d962;
|
|
2780
|
+
--wui-color-success-base-125: #30a46b;
|
|
2781
|
+
|
|
2782
|
+
--wui-color-warning-base-100: #f3a13f;
|
|
2783
|
+
|
|
2784
|
+
--wui-color-error-base-100: #f25a67;
|
|
2785
|
+
--wui-color-error-base-125: #df4a34;
|
|
2786
|
+
|
|
2787
|
+
--wui-color-blue-base-100: rgba(102, 125, 255, 1);
|
|
2788
|
+
--wui-color-blue-base-90: rgba(102, 125, 255, 0.9);
|
|
2789
|
+
|
|
2790
|
+
--wui-color-success-glass-001: rgba(38, 217, 98, 0.01);
|
|
2791
|
+
--wui-color-success-glass-002: rgba(38, 217, 98, 0.02);
|
|
2792
|
+
--wui-color-success-glass-005: rgba(38, 217, 98, 0.05);
|
|
2793
|
+
--wui-color-success-glass-010: rgba(38, 217, 98, 0.1);
|
|
2794
|
+
--wui-color-success-glass-015: rgba(38, 217, 98, 0.15);
|
|
2795
|
+
--wui-color-success-glass-020: rgba(38, 217, 98, 0.2);
|
|
2796
|
+
--wui-color-success-glass-025: rgba(38, 217, 98, 0.25);
|
|
2797
|
+
--wui-color-success-glass-030: rgba(38, 217, 98, 0.3);
|
|
2798
|
+
--wui-color-success-glass-060: rgba(38, 217, 98, 0.6);
|
|
2799
|
+
--wui-color-success-glass-080: rgba(38, 217, 98, 0.8);
|
|
2800
|
+
|
|
2801
|
+
--wui-color-success-glass-reown-020: rgba(48, 164, 107, 0.2);
|
|
2802
|
+
|
|
2803
|
+
--wui-color-warning-glass-reown-020: rgba(243, 161, 63, 0.2);
|
|
2804
|
+
|
|
2805
|
+
--wui-color-error-glass-001: rgba(242, 90, 103, 0.01);
|
|
2806
|
+
--wui-color-error-glass-002: rgba(242, 90, 103, 0.02);
|
|
2807
|
+
--wui-color-error-glass-005: rgba(242, 90, 103, 0.05);
|
|
2808
|
+
--wui-color-error-glass-010: rgba(242, 90, 103, 0.1);
|
|
2809
|
+
--wui-color-error-glass-015: rgba(242, 90, 103, 0.15);
|
|
2810
|
+
--wui-color-error-glass-020: rgba(242, 90, 103, 0.2);
|
|
2811
|
+
--wui-color-error-glass-025: rgba(242, 90, 103, 0.25);
|
|
2812
|
+
--wui-color-error-glass-030: rgba(242, 90, 103, 0.3);
|
|
2813
|
+
--wui-color-error-glass-060: rgba(242, 90, 103, 0.6);
|
|
2814
|
+
--wui-color-error-glass-080: rgba(242, 90, 103, 0.8);
|
|
2815
|
+
|
|
2816
|
+
--wui-color-error-glass-reown-020: rgba(223, 74, 52, 0.2);
|
|
2817
|
+
|
|
2818
|
+
--wui-color-gray-glass-001: rgba(255, 255, 255, 0.01);
|
|
2819
|
+
--wui-color-gray-glass-002: rgba(255, 255, 255, 0.02);
|
|
2820
|
+
--wui-color-gray-glass-005: rgba(255, 255, 255, 0.05);
|
|
2821
|
+
--wui-color-gray-glass-010: rgba(255, 255, 255, 0.1);
|
|
2822
|
+
--wui-color-gray-glass-015: rgba(255, 255, 255, 0.15);
|
|
2823
|
+
--wui-color-gray-glass-020: rgba(255, 255, 255, 0.2);
|
|
2824
|
+
--wui-color-gray-glass-025: rgba(255, 255, 255, 0.25);
|
|
2825
|
+
--wui-color-gray-glass-030: rgba(255, 255, 255, 0.3);
|
|
2826
|
+
--wui-color-gray-glass-060: rgba(255, 255, 255, 0.6);
|
|
2827
|
+
--wui-color-gray-glass-080: rgba(255, 255, 255, 0.8);
|
|
2828
|
+
--wui-color-gray-glass-090: rgba(255, 255, 255, 0.9);
|
|
2829
|
+
|
|
2830
|
+
--wui-color-dark-glass-100: rgba(42, 42, 42, 1);
|
|
2831
|
+
|
|
2832
|
+
--wui-icon-box-bg-error-base-100: #3c2426;
|
|
2833
|
+
--wui-icon-box-bg-blue-base-100: #20303f;
|
|
2834
|
+
--wui-icon-box-bg-success-base-100: #1f3a28;
|
|
2835
|
+
--wui-icon-box-bg-inverse-base-100: #243240;
|
|
2836
|
+
|
|
2837
|
+
--wui-all-wallets-bg-100: #222b35;
|
|
2838
|
+
|
|
2839
|
+
--wui-avatar-border-base: #252525;
|
|
2840
|
+
|
|
2841
|
+
--wui-thumbnail-border-base: #252525;
|
|
2842
|
+
|
|
2843
|
+
--wui-wallet-button-bg-base: var(--wui-color-bg-125);
|
|
2844
|
+
|
|
2845
|
+
--w3m-card-embedded-shadow-color: rgb(17 17 18 / 25%);
|
|
2846
|
+
}
|
|
2847
|
+
`,
|
|
2848
|
+
dark: i$3`
|
|
2849
|
+
:root {
|
|
2850
|
+
--w3m-color-mix: ${r$2((themeVariables == null ? void 0 : themeVariables["--w3m-color-mix"]) || "#000")};
|
|
2851
|
+
--w3m-accent: ${r$2(getW3mThemeVariables(themeVariables, "light")["--w3m-accent"])};
|
|
2852
|
+
--w3m-default: #000;
|
|
2853
|
+
|
|
2854
|
+
--wui-color-modal-bg-base: ${r$2(getW3mThemeVariables(themeVariables, "light")["--w3m-background"])};
|
|
2855
|
+
--wui-color-accent-base-100: var(--w3m-accent);
|
|
2856
|
+
|
|
2857
|
+
--wui-color-blueberry-100: hsla(231, 100%, 70%, 1);
|
|
2858
|
+
--wui-color-blueberry-090: hsla(231, 97%, 72%, 1);
|
|
2859
|
+
--wui-color-blueberry-080: hsla(231, 92%, 74%, 1);
|
|
2860
|
+
|
|
2861
|
+
--wui-color-fg-100: #141414;
|
|
2862
|
+
--wui-color-fg-125: #2d3131;
|
|
2863
|
+
--wui-color-fg-150: #474d4d;
|
|
2864
|
+
--wui-color-fg-175: #636d6d;
|
|
2865
|
+
--wui-color-fg-200: #798686;
|
|
2866
|
+
--wui-color-fg-225: #828f8f;
|
|
2867
|
+
--wui-color-fg-250: #8b9797;
|
|
2868
|
+
--wui-color-fg-275: #95a0a0;
|
|
2869
|
+
--wui-color-fg-300: #9ea9a9;
|
|
2870
|
+
--wui-color-fg-325: #9a9a9a;
|
|
2871
|
+
--wui-color-fg-350: #d0d0d0;
|
|
2872
|
+
|
|
2873
|
+
--wui-color-bg-100: #ffffff;
|
|
2874
|
+
--wui-color-bg-125: #f5fafa;
|
|
2875
|
+
--wui-color-bg-150: #f3f8f8;
|
|
2876
|
+
--wui-color-bg-175: #eef4f4;
|
|
2877
|
+
--wui-color-bg-200: #eaf1f1;
|
|
2878
|
+
--wui-color-bg-225: #e5eded;
|
|
2879
|
+
--wui-color-bg-250: #e1e9e9;
|
|
2880
|
+
--wui-color-bg-275: #dce7e7;
|
|
2881
|
+
--wui-color-bg-300: #d8e3e3;
|
|
2882
|
+
--wui-color-bg-325: #f3f3f3;
|
|
2883
|
+
--wui-color-bg-350: #202020;
|
|
2884
|
+
|
|
2885
|
+
--wui-color-success-base-100: #26b562;
|
|
2886
|
+
--wui-color-success-base-125: #30a46b;
|
|
2887
|
+
|
|
2888
|
+
--wui-color-warning-base-100: #f3a13f;
|
|
2889
|
+
|
|
2890
|
+
--wui-color-error-base-100: #f05142;
|
|
2891
|
+
--wui-color-error-base-125: #df4a34;
|
|
2892
|
+
|
|
2893
|
+
--wui-color-blue-base-100: rgba(102, 125, 255, 1);
|
|
2894
|
+
--wui-color-blue-base-90: rgba(102, 125, 255, 0.9);
|
|
2895
|
+
|
|
2896
|
+
--wui-color-success-glass-001: rgba(38, 181, 98, 0.01);
|
|
2897
|
+
--wui-color-success-glass-002: rgba(38, 181, 98, 0.02);
|
|
2898
|
+
--wui-color-success-glass-005: rgba(38, 181, 98, 0.05);
|
|
2899
|
+
--wui-color-success-glass-010: rgba(38, 181, 98, 0.1);
|
|
2900
|
+
--wui-color-success-glass-015: rgba(38, 181, 98, 0.15);
|
|
2901
|
+
--wui-color-success-glass-020: rgba(38, 181, 98, 0.2);
|
|
2902
|
+
--wui-color-success-glass-025: rgba(38, 181, 98, 0.25);
|
|
2903
|
+
--wui-color-success-glass-030: rgba(38, 181, 98, 0.3);
|
|
2904
|
+
--wui-color-success-glass-060: rgba(38, 181, 98, 0.6);
|
|
2905
|
+
--wui-color-success-glass-080: rgba(38, 181, 98, 0.8);
|
|
2906
|
+
|
|
2907
|
+
--wui-color-success-glass-reown-020: rgba(48, 164, 107, 0.2);
|
|
2908
|
+
|
|
2909
|
+
--wui-color-warning-glass-reown-020: rgba(243, 161, 63, 0.2);
|
|
2910
|
+
|
|
2911
|
+
--wui-color-error-glass-001: rgba(240, 81, 66, 0.01);
|
|
2912
|
+
--wui-color-error-glass-002: rgba(240, 81, 66, 0.02);
|
|
2913
|
+
--wui-color-error-glass-005: rgba(240, 81, 66, 0.05);
|
|
2914
|
+
--wui-color-error-glass-010: rgba(240, 81, 66, 0.1);
|
|
2915
|
+
--wui-color-error-glass-015: rgba(240, 81, 66, 0.15);
|
|
2916
|
+
--wui-color-error-glass-020: rgba(240, 81, 66, 0.2);
|
|
2917
|
+
--wui-color-error-glass-025: rgba(240, 81, 66, 0.25);
|
|
2918
|
+
--wui-color-error-glass-030: rgba(240, 81, 66, 0.3);
|
|
2919
|
+
--wui-color-error-glass-060: rgba(240, 81, 66, 0.6);
|
|
2920
|
+
--wui-color-error-glass-080: rgba(240, 81, 66, 0.8);
|
|
2921
|
+
|
|
2922
|
+
--wui-color-error-glass-reown-020: rgba(223, 74, 52, 0.2);
|
|
2923
|
+
|
|
2924
|
+
--wui-icon-box-bg-error-base-100: #f4dfdd;
|
|
2925
|
+
--wui-icon-box-bg-blue-base-100: #d9ecfb;
|
|
2926
|
+
--wui-icon-box-bg-success-base-100: #daf0e4;
|
|
2927
|
+
--wui-icon-box-bg-inverse-base-100: #dcecfc;
|
|
2928
|
+
|
|
2929
|
+
--wui-all-wallets-bg-100: #e8f1fa;
|
|
2930
|
+
|
|
2931
|
+
--wui-avatar-border-base: #f3f4f4;
|
|
2932
|
+
|
|
2933
|
+
--wui-thumbnail-border-base: #eaefef;
|
|
2934
|
+
|
|
2935
|
+
--wui-wallet-button-bg-base: var(--wui-color-bg-125);
|
|
2936
|
+
|
|
2937
|
+
--wui-color-gray-glass-001: rgba(0, 0, 0, 0.01);
|
|
2938
|
+
--wui-color-gray-glass-002: rgba(0, 0, 0, 0.02);
|
|
2939
|
+
--wui-color-gray-glass-005: rgba(0, 0, 0, 0.05);
|
|
2940
|
+
--wui-color-gray-glass-010: rgba(0, 0, 0, 0.1);
|
|
2941
|
+
--wui-color-gray-glass-015: rgba(0, 0, 0, 0.15);
|
|
2942
|
+
--wui-color-gray-glass-020: rgba(0, 0, 0, 0.2);
|
|
2943
|
+
--wui-color-gray-glass-025: rgba(0, 0, 0, 0.25);
|
|
2944
|
+
--wui-color-gray-glass-030: rgba(0, 0, 0, 0.3);
|
|
2945
|
+
--wui-color-gray-glass-060: rgba(0, 0, 0, 0.6);
|
|
2946
|
+
--wui-color-gray-glass-080: rgba(0, 0, 0, 0.8);
|
|
2947
|
+
--wui-color-gray-glass-090: rgba(0, 0, 0, 0.9);
|
|
2948
|
+
|
|
2949
|
+
--wui-color-dark-glass-100: rgba(233, 233, 233, 1);
|
|
2950
|
+
|
|
2951
|
+
--w3m-card-embedded-shadow-color: rgb(224 225 233 / 25%);
|
|
2952
|
+
}
|
|
2953
|
+
`
|
|
2954
|
+
};
|
|
2955
|
+
}
|
|
2956
|
+
const resetStyles = i$3`
|
|
2957
|
+
*,
|
|
2958
|
+
*::after,
|
|
2959
|
+
*::before,
|
|
2960
|
+
:host {
|
|
2961
|
+
margin: 0;
|
|
2962
|
+
padding: 0;
|
|
2963
|
+
box-sizing: border-box;
|
|
2964
|
+
font-style: normal;
|
|
2965
|
+
text-rendering: optimizeSpeed;
|
|
2966
|
+
-webkit-font-smoothing: antialiased;
|
|
2967
|
+
-moz-osx-font-smoothing: grayscale;
|
|
2968
|
+
-webkit-tap-highlight-color: transparent;
|
|
2969
|
+
font-family: var(--wui-font-family);
|
|
2970
|
+
backface-visibility: hidden;
|
|
2971
|
+
}
|
|
2972
|
+
`;
|
|
2973
|
+
const elementStyles = i$3`
|
|
2974
|
+
button,
|
|
2975
|
+
a {
|
|
2976
|
+
cursor: pointer;
|
|
2977
|
+
display: flex;
|
|
2978
|
+
justify-content: center;
|
|
2979
|
+
align-items: center;
|
|
2980
|
+
position: relative;
|
|
2981
|
+
transition:
|
|
2982
|
+
color var(--wui-duration-lg) var(--wui-ease-out-power-1),
|
|
2983
|
+
background-color var(--wui-duration-lg) var(--wui-ease-out-power-1),
|
|
2984
|
+
border var(--wui-duration-lg) var(--wui-ease-out-power-1),
|
|
2985
|
+
border-radius var(--wui-duration-lg) var(--wui-ease-out-power-1),
|
|
2986
|
+
box-shadow var(--wui-duration-lg) var(--wui-ease-out-power-1);
|
|
2987
|
+
will-change: background-color, color, border, box-shadow, border-radius;
|
|
2988
|
+
outline: none;
|
|
2989
|
+
border: none;
|
|
2990
|
+
column-gap: var(--wui-spacing-3xs);
|
|
2991
|
+
background-color: transparent;
|
|
2992
|
+
text-decoration: none;
|
|
2993
|
+
}
|
|
2994
|
+
|
|
2995
|
+
wui-flex {
|
|
2996
|
+
transition: border-radius var(--wui-duration-lg) var(--wui-ease-out-power-1);
|
|
2997
|
+
will-change: border-radius;
|
|
2998
|
+
}
|
|
2999
|
+
|
|
3000
|
+
button:disabled > wui-wallet-image,
|
|
3001
|
+
button:disabled > wui-all-wallets-image,
|
|
3002
|
+
button:disabled > wui-network-image,
|
|
3003
|
+
button:disabled > wui-image,
|
|
3004
|
+
button:disabled > wui-transaction-visual,
|
|
3005
|
+
button:disabled > wui-logo {
|
|
3006
|
+
filter: grayscale(1);
|
|
3007
|
+
}
|
|
3008
|
+
|
|
3009
|
+
@media (hover: hover) and (pointer: fine) {
|
|
3010
|
+
button:hover:enabled {
|
|
3011
|
+
background-color: var(--wui-color-gray-glass-005);
|
|
3012
|
+
}
|
|
3013
|
+
|
|
3014
|
+
button:active:enabled {
|
|
3015
|
+
background-color: var(--wui-color-gray-glass-010);
|
|
3016
|
+
}
|
|
3017
|
+
}
|
|
3018
|
+
|
|
3019
|
+
button:disabled > wui-icon-box {
|
|
3020
|
+
opacity: 0.5;
|
|
3021
|
+
}
|
|
3022
|
+
|
|
3023
|
+
input {
|
|
3024
|
+
border: none;
|
|
3025
|
+
outline: none;
|
|
3026
|
+
appearance: none;
|
|
3027
|
+
}
|
|
3028
|
+
`;
|
|
3029
|
+
const colorStyles = i$3`
|
|
3030
|
+
.wui-color-inherit {
|
|
3031
|
+
color: var(--wui-color-inherit);
|
|
3032
|
+
}
|
|
3033
|
+
|
|
3034
|
+
.wui-color-accent-100 {
|
|
3035
|
+
color: var(--wui-color-accent-100);
|
|
3036
|
+
}
|
|
3037
|
+
|
|
3038
|
+
.wui-color-error-100 {
|
|
3039
|
+
color: var(--wui-color-error-100);
|
|
3040
|
+
}
|
|
3041
|
+
|
|
3042
|
+
.wui-color-blue-100 {
|
|
3043
|
+
color: var(--wui-color-blue-100);
|
|
3044
|
+
}
|
|
3045
|
+
|
|
3046
|
+
.wui-color-blue-90 {
|
|
3047
|
+
color: var(--wui-color-blue-90);
|
|
3048
|
+
}
|
|
3049
|
+
|
|
3050
|
+
.wui-color-error-125 {
|
|
3051
|
+
color: var(--wui-color-error-125);
|
|
3052
|
+
}
|
|
3053
|
+
|
|
3054
|
+
.wui-color-success-100 {
|
|
3055
|
+
color: var(--wui-color-success-100);
|
|
3056
|
+
}
|
|
3057
|
+
|
|
3058
|
+
.wui-color-success-125 {
|
|
3059
|
+
color: var(--wui-color-success-125);
|
|
3060
|
+
}
|
|
3061
|
+
|
|
3062
|
+
.wui-color-inverse-100 {
|
|
3063
|
+
color: var(--wui-color-inverse-100);
|
|
3064
|
+
}
|
|
3065
|
+
|
|
3066
|
+
.wui-color-inverse-000 {
|
|
3067
|
+
color: var(--wui-color-inverse-000);
|
|
3068
|
+
}
|
|
3069
|
+
|
|
3070
|
+
.wui-color-fg-100 {
|
|
3071
|
+
color: var(--wui-color-fg-100);
|
|
3072
|
+
}
|
|
3073
|
+
|
|
3074
|
+
.wui-color-fg-200 {
|
|
3075
|
+
color: var(--wui-color-fg-200);
|
|
3076
|
+
}
|
|
3077
|
+
|
|
3078
|
+
.wui-color-fg-300 {
|
|
3079
|
+
color: var(--wui-color-fg-300);
|
|
3080
|
+
}
|
|
3081
|
+
|
|
3082
|
+
.wui-color-fg-325 {
|
|
3083
|
+
color: var(--wui-color-fg-325);
|
|
3084
|
+
}
|
|
3085
|
+
|
|
3086
|
+
.wui-color-fg-350 {
|
|
3087
|
+
color: var(--wui-color-fg-350);
|
|
3088
|
+
}
|
|
3089
|
+
|
|
3090
|
+
.wui-bg-color-inherit {
|
|
3091
|
+
background-color: var(--wui-color-inherit);
|
|
3092
|
+
}
|
|
3093
|
+
|
|
3094
|
+
.wui-bg-color-blue-100 {
|
|
3095
|
+
background-color: var(--wui-color-accent-100);
|
|
3096
|
+
}
|
|
3097
|
+
|
|
3098
|
+
.wui-bg-color-error-100 {
|
|
3099
|
+
background-color: var(--wui-color-error-100);
|
|
3100
|
+
}
|
|
3101
|
+
|
|
3102
|
+
.wui-bg-color-error-125 {
|
|
3103
|
+
background-color: var(--wui-color-error-125);
|
|
3104
|
+
}
|
|
3105
|
+
|
|
3106
|
+
.wui-bg-color-success-100 {
|
|
3107
|
+
background-color: var(--wui-color-success-100);
|
|
3108
|
+
}
|
|
3109
|
+
|
|
3110
|
+
.wui-bg-color-success-125 {
|
|
3111
|
+
background-color: var(--wui-color-success-100);
|
|
3112
|
+
}
|
|
3113
|
+
|
|
3114
|
+
.wui-bg-color-inverse-100 {
|
|
3115
|
+
background-color: var(--wui-color-inverse-100);
|
|
3116
|
+
}
|
|
3117
|
+
|
|
3118
|
+
.wui-bg-color-inverse-000 {
|
|
3119
|
+
background-color: var(--wui-color-inverse-000);
|
|
3120
|
+
}
|
|
3121
|
+
|
|
3122
|
+
.wui-bg-color-fg-100 {
|
|
3123
|
+
background-color: var(--wui-color-fg-100);
|
|
3124
|
+
}
|
|
3125
|
+
|
|
3126
|
+
.wui-bg-color-fg-200 {
|
|
3127
|
+
background-color: var(--wui-color-fg-200);
|
|
3128
|
+
}
|
|
3129
|
+
|
|
3130
|
+
.wui-bg-color-fg-300 {
|
|
3131
|
+
background-color: var(--wui-color-fg-300);
|
|
3132
|
+
}
|
|
3133
|
+
|
|
3134
|
+
.wui-color-fg-325 {
|
|
3135
|
+
background-color: var(--wui-color-fg-325);
|
|
3136
|
+
}
|
|
3137
|
+
|
|
3138
|
+
.wui-color-fg-350 {
|
|
3139
|
+
background-color: var(--wui-color-fg-350);
|
|
3140
|
+
}
|
|
3141
|
+
`;
|
|
3142
|
+
function defineChain(chain) {
|
|
3143
|
+
return {
|
|
3144
|
+
formatters: void 0,
|
|
3145
|
+
fees: void 0,
|
|
3146
|
+
serializers: void 0,
|
|
3147
|
+
...chain
|
|
3148
|
+
};
|
|
3149
|
+
}
|
|
3150
|
+
const solana = defineChain({
|
|
3151
|
+
id: "5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
|
|
3152
|
+
name: "Solana",
|
|
3153
|
+
network: "solana-mainnet",
|
|
3154
|
+
nativeCurrency: { name: "Solana", symbol: "SOL", decimals: 9 },
|
|
3155
|
+
rpcUrls: {
|
|
3156
|
+
default: { http: ["https://rpc.walletconnect.org/v1"] }
|
|
3157
|
+
},
|
|
3158
|
+
blockExplorers: { default: { name: "Solscan", url: "https://solscan.io" } },
|
|
3159
|
+
testnet: false,
|
|
3160
|
+
chainNamespace: "solana",
|
|
3161
|
+
caipNetworkId: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
|
|
3162
|
+
deprecatedCaipNetworkId: "solana:4sGjMW1sUnHzSxGspuhpqLDx6wiyjNtZ"
|
|
3163
|
+
});
|
|
3164
|
+
const solanaDevnet = defineChain({
|
|
3165
|
+
id: "EtWTRABZaYq6iMfeYKouRu166VU2xqa1",
|
|
3166
|
+
name: "Solana Devnet",
|
|
3167
|
+
network: "solana-devnet",
|
|
3168
|
+
nativeCurrency: { name: "Solana", symbol: "SOL", decimals: 9 },
|
|
3169
|
+
rpcUrls: {
|
|
3170
|
+
default: { http: ["https://rpc.walletconnect.org/v1"] }
|
|
3171
|
+
},
|
|
3172
|
+
blockExplorers: { default: { name: "Solscan", url: "https://solscan.io" } },
|
|
3173
|
+
testnet: true,
|
|
3174
|
+
chainNamespace: "solana",
|
|
3175
|
+
caipNetworkId: "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",
|
|
3176
|
+
deprecatedCaipNetworkId: "solana:8E9rvCKLFQia2Y35HXjjpWzj8weVo44K"
|
|
3177
|
+
});
|
|
3178
|
+
defineChain({
|
|
3179
|
+
id: "4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z",
|
|
3180
|
+
name: "Solana Testnet",
|
|
3181
|
+
network: "solana-testnet",
|
|
3182
|
+
nativeCurrency: { name: "Solana", symbol: "SOL", decimals: 9 },
|
|
3183
|
+
rpcUrls: {
|
|
3184
|
+
default: { http: ["https://rpc.walletconnect.org/v1"] }
|
|
3185
|
+
},
|
|
3186
|
+
blockExplorers: { default: { name: "Solscan", url: "https://solscan.io" } },
|
|
3187
|
+
testnet: true,
|
|
3188
|
+
chainNamespace: "solana",
|
|
3189
|
+
caipNetworkId: "solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z"
|
|
3190
|
+
});
|
|
3191
|
+
defineChain({
|
|
3192
|
+
id: "000000000019d6689c085ae165831e93",
|
|
3193
|
+
caipNetworkId: "bip122:000000000019d6689c085ae165831e93",
|
|
3194
|
+
chainNamespace: "bip122",
|
|
3195
|
+
name: "Bitcoin",
|
|
3196
|
+
nativeCurrency: {
|
|
3197
|
+
name: "Bitcoin",
|
|
3198
|
+
symbol: "BTC",
|
|
3199
|
+
decimals: 8
|
|
3200
|
+
},
|
|
3201
|
+
rpcUrls: {
|
|
3202
|
+
default: { http: ["https://rpc.walletconnect.org/v1"] }
|
|
3203
|
+
}
|
|
3204
|
+
});
|
|
3205
|
+
defineChain({
|
|
3206
|
+
id: "000000000933ea01ad0ee984209779ba",
|
|
3207
|
+
caipNetworkId: "bip122:000000000933ea01ad0ee984209779ba",
|
|
3208
|
+
chainNamespace: "bip122",
|
|
3209
|
+
name: "Bitcoin Testnet",
|
|
3210
|
+
nativeCurrency: {
|
|
3211
|
+
name: "Bitcoin",
|
|
3212
|
+
symbol: "BTC",
|
|
3213
|
+
decimals: 8
|
|
3214
|
+
},
|
|
3215
|
+
rpcUrls: {
|
|
3216
|
+
default: { http: ["https://rpc.walletconnect.org/v1"] }
|
|
3217
|
+
},
|
|
3218
|
+
testnet: true
|
|
3219
|
+
});
|
|
3220
|
+
exports.ConstantsUtil = ConstantsUtil;
|
|
3221
|
+
exports.E = E;
|
|
3222
|
+
exports.Ot = Ot;
|
|
3223
|
+
exports.T = T;
|
|
3224
|
+
exports.b = b;
|
|
3225
|
+
exports.browser = browser;
|
|
3226
|
+
exports.bs58 = bs58;
|
|
3227
|
+
exports.cjs = cjs;
|
|
3228
|
+
exports.colorStyles = colorStyles;
|
|
3229
|
+
exports.commonjsGlobal = commonjsGlobal;
|
|
3230
|
+
exports.elementStyles = elementStyles;
|
|
3231
|
+
exports.f = f$1;
|
|
3232
|
+
exports.getAugmentedNamespace = getAugmentedNamespace;
|
|
3233
|
+
exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
|
|
3234
|
+
exports.getW3mThemeVariables = getW3mThemeVariables;
|
|
3235
|
+
exports.i = i$3;
|
|
3236
|
+
exports.i$1 = i;
|
|
3237
|
+
exports.initializeTheming = initializeTheming;
|
|
3238
|
+
exports.proxy = proxy;
|
|
3239
|
+
exports.proxyMap = proxyMap;
|
|
3240
|
+
exports.ref = ref;
|
|
3241
|
+
exports.resetStyles = resetStyles;
|
|
3242
|
+
exports.setColorTheme = setColorTheme;
|
|
3243
|
+
exports.setThemeVariables = setThemeVariables;
|
|
3244
|
+
exports.snapshot = snapshot;
|
|
3245
|
+
exports.solana = solana;
|
|
3246
|
+
exports.solanaDevnet = solanaDevnet;
|
|
3247
|
+
exports.subscribe = subscribe;
|
|
3248
|
+
exports.subscribeKey = subscribeKey;
|
|
3249
|
+
exports.u = u$1;
|
|
3250
|
+
exports.useSnapshot = useSnapshot;
|
|
3251
|
+
exports.x = x;
|