@sudobility/email-components 2.0.8 → 2.0.10

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/dist/index.esm.js CHANGED
@@ -1,17 +1,17 @@
1
- import { jsx as R, jsxs as k } from "react/jsx-runtime";
2
- import { cn as w, Label as Rr } from "@sudobility/components";
1
+ import { jsx as v, jsxs as F } from "react/jsx-runtime";
2
+ import { cn as M, Label as Ht } from "@sudobility/components";
3
3
  import * as h from "react";
4
- import { useRef as Nr, useState as _r, useEffect as Cr } from "react";
5
- import { ChevronRightIcon as Pr, ChevronUpIcon as Ir, ChevronDownIcon as wr } from "@heroicons/react/24/outline";
6
- import { textVariants as $t } from "@sudobility/design";
7
- const Qa = ({
4
+ import { useRef as Yt, useState as qt, useEffect as zt } from "react";
5
+ import { ChevronRightIcon as Kt, ChevronUpIcon as Zt, ChevronDownIcon as Jt } from "@heroicons/react/24/outline";
6
+ import { textVariants as ht } from "@sudobility/design";
7
+ const ea = ({
8
8
  className: e,
9
9
  children: t,
10
10
  disabled: r
11
- }) => /* @__PURE__ */ R(
11
+ }) => /* @__PURE__ */ v(
12
12
  "div",
13
13
  {
14
- className: w(
14
+ className: M(
15
15
  "p-4 rounded-lg border transition-colors",
16
16
  "bg-white dark:bg-gray-900",
17
17
  "border-gray-200 dark:border-gray-700",
@@ -23,14 +23,14 @@ const Qa = ({
23
23
  "aria-label": "SubscriberList",
24
24
  children: t || "SubscriberList Component"
25
25
  }
26
- ), xa = ({
26
+ ), ta = ({
27
27
  className: e,
28
28
  children: t,
29
29
  disabled: r
30
- }) => /* @__PURE__ */ R(
30
+ }) => /* @__PURE__ */ v(
31
31
  "div",
32
32
  {
33
- className: w(
33
+ className: M(
34
34
  "p-4 rounded-lg border transition-colors",
35
35
  "bg-white dark:bg-gray-900",
36
36
  "border-gray-200 dark:border-gray-700",
@@ -42,14 +42,14 @@ const Qa = ({
42
42
  "aria-label": "AbTestEmail",
43
43
  children: t || "AbTestEmail Component"
44
44
  }
45
- ), $a = ({
45
+ ), ra = ({
46
46
  className: e,
47
47
  children: t,
48
48
  disabled: r
49
- }) => /* @__PURE__ */ R(
49
+ }) => /* @__PURE__ */ v(
50
50
  "div",
51
51
  {
52
- className: w(
52
+ className: M(
53
53
  "p-4 rounded-lg border transition-colors",
54
54
  "bg-white dark:bg-gray-900",
55
55
  "border-gray-200 dark:border-gray-700",
@@ -62,193 +62,127 @@ const Qa = ({
62
62
  children: t || "ContactCard Component"
63
63
  }
64
64
  );
65
- var z = {}, K = {}, Ae = {}, et;
66
- function Mr() {
67
- return et || (et = 1, Object.defineProperty(Ae, "__esModule", { value: !0 })), Ae;
68
- }
69
- var ve = {}, v = {}, tt;
70
- function ne() {
71
- if (tt) return v;
72
- tt = 1, Object.defineProperty(v, "__esModule", { value: !0 }), v.Currency = v.ErrorType = v.FeatureFlag = v.EmailValidationState = v.PlatformType = v.ConnectionState = v.ConnectionType = v.EmailSortCriteria = v.SortOrder = v.EmailAddressType = v.InfoType = v.NotificationType = v.RequestStatus = v.SubscriptionAction = v.EmailAction = v.MediumView = v.MobileView = v.EmailComposeType = v.FontSize = v.Theme = v.Chain = v.ChainType = v.AuthStatus = void 0;
65
+ var be = {}, N = {}, Ue;
66
+ function ee() {
67
+ if (Ue) return N;
68
+ Ue = 1, Object.defineProperty(N, "__esModule", { value: !0 }), N.Currency = N.ErrorType = N.FeatureFlag = N.EmailValidationState = N.PlatformType = N.ConnectionState = N.ConnectionType = N.EmailSortCriteria = N.SortOrder = N.EmailAddressType = N.InfoType = N.NotificationType = N.RequestStatus = N.SubscriptionAction = N.EmailAction = N.MediumView = N.MobileView = N.EmailComposeType = N.FontSize = N.Theme = N.Chain = N.ChainType = N.AuthStatus = void 0;
73
69
  var e;
74
- (function(d) {
75
- d.CONNECTED = "connected", d.DISCONNECTED = "disconnected", d.VERIFIED = "verified";
76
- })(e || (v.AuthStatus = e = {}));
70
+ (function(s) {
71
+ s.CONNECTED = "connected", s.DISCONNECTED = "disconnected", s.VERIFIED = "verified";
72
+ })(e || (N.AuthStatus = e = {}));
77
73
  var t;
78
- (function(d) {
79
- d.EVM = "evm", d.SOLANA = "solana";
80
- })(t || (v.ChainType = t = {}));
74
+ (function(s) {
75
+ s.EVM = "evm", s.SOLANA = "solana";
76
+ })(t || (N.ChainType = t = {}));
81
77
  var r;
82
- (function(d) {
83
- d.ETH_MAINNET = "eth-mainnet", d.ETH_SEPOLIA = "eth-sepolia", d.ETH_GOERLI = "eth-goerli", d.POLYGON_MAINNET = "polygon-mainnet", d.POLYGON_MUMBAI = "polygon-mumbai", d.POLYGON_AMOY = "polygon-amoy", d.OPTIMISM_MAINNET = "optimism-mainnet", d.OPTIMISM_SEPOLIA = "optimism-sepolia", d.OPTIMISM_GOERLI = "optimism-goerli", d.ARBITRUM_MAINNET = "arbitrum-mainnet", d.ARBITRUM_SEPOLIA = "arbitrum-sepolia", d.ARBITRUM_GOERLI = "arbitrum-goerli", d.BASE_MAINNET = "base-mainnet", d.BASE_SEPOLIA = "base-sepolia", d.BASE_GOERLI = "base-goerli", d.AVALANCHE_MAINNET = "avalanche-mainnet", d.AVALANCHE_FUJI = "avalanche-fuji", d.BNB_MAINNET = "bnb-mainnet", d.BNB_TESTNET = "bnb-testnet", d.GNOSIS_MAINNET = "gnosis-mainnet", d.GNOSIS_CHIADO = "gnosis-chiado", d.CELO_MAINNET = "celo-mainnet", d.CELO_ALFAJORES = "celo-alfajores", d.ZKSYNC_MAINNET = "zksync-mainnet", d.ZKSYNC_SEPOLIA = "zksync-sepolia", d.LINEA_MAINNET = "linea-mainnet", d.LINEA_SEPOLIA = "linea-sepolia", d.SCROLL_MAINNET = "scroll-mainnet", d.SCROLL_SEPOLIA = "scroll-sepolia", d.MONAD_MAINNET = "monad-mainnet", d.MONAD_TESTNET = "monad-testnet", d.STORY_MAINNET = "story-mainnet", d.STORY_TESTNET = "story-testnet", d.PLUME_MAINNET = "plume-mainnet", d.PLUME_TESTNET = "plume-testnet", d.NEXUS_MAINNET = "nexus-mainnet", d.NEXUS_TESTNET = "nexus-testnet", d.HYPEREVM_MAINNET = "hyperevm-mainnet", d.HYPEREVM_TESTNET = "hyperevm-testnet", d.SONIC_MAINNET = "sonic-mainnet", d.SONIC_TESTNET = "sonic-testnet", d.SONIC_BLAZE = "sonic-blaze", d.UNICHAIN_MAINNET = "unichain-mainnet", d.UNICHAIN_SEPOLIA = "unichain-sepolia", d.WORLD_MAINNET = "world-mainnet", d.XDC_MAINNET = "xdc-mainnet", d.INK_TESTNET = "ink-testnet", d.FETCH_MAINNET = "fetch-mainnet", d.FETCH_TESTNET = "fetch-testnet", d.GENSYN_MAINNET = "gensyn-mainnet", d.GENSYN_TESTNET = "gensyn-testnet", d.RITUAL_MAINNET = "ritual-mainnet", d.RITUAL_TESTNET = "ritual-testnet", d.SOLANA_MAINNET = "solana-mainnet", d.SOLANA_DEVNET = "solana-devnet", d.SOLANA_TESTNET = "solana-testnet", d.EVM_LOCAL = "evm-local", d.SOLANA_LOCAL = "solana-local";
84
- })(r || (v.Chain = r = {}));
78
+ (function(s) {
79
+ s.ETH_MAINNET = "eth-mainnet", s.ETH_SEPOLIA = "eth-sepolia", s.ETH_GOERLI = "eth-goerli", s.POLYGON_MAINNET = "polygon-mainnet", s.POLYGON_MUMBAI = "polygon-mumbai", s.POLYGON_AMOY = "polygon-amoy", s.OPTIMISM_MAINNET = "optimism-mainnet", s.OPTIMISM_SEPOLIA = "optimism-sepolia", s.OPTIMISM_GOERLI = "optimism-goerli", s.ARBITRUM_MAINNET = "arbitrum-mainnet", s.ARBITRUM_SEPOLIA = "arbitrum-sepolia", s.ARBITRUM_GOERLI = "arbitrum-goerli", s.BASE_MAINNET = "base-mainnet", s.BASE_SEPOLIA = "base-sepolia", s.BASE_GOERLI = "base-goerli", s.AVALANCHE_MAINNET = "avalanche-mainnet", s.AVALANCHE_FUJI = "avalanche-fuji", s.BNB_MAINNET = "bnb-mainnet", s.BNB_TESTNET = "bnb-testnet", s.GNOSIS_MAINNET = "gnosis-mainnet", s.GNOSIS_CHIADO = "gnosis-chiado", s.CELO_MAINNET = "celo-mainnet", s.CELO_ALFAJORES = "celo-alfajores", s.ZKSYNC_MAINNET = "zksync-mainnet", s.ZKSYNC_SEPOLIA = "zksync-sepolia", s.LINEA_MAINNET = "linea-mainnet", s.LINEA_SEPOLIA = "linea-sepolia", s.SCROLL_MAINNET = "scroll-mainnet", s.SCROLL_SEPOLIA = "scroll-sepolia", s.MONAD_MAINNET = "monad-mainnet", s.MONAD_TESTNET = "monad-testnet", s.STORY_MAINNET = "story-mainnet", s.STORY_TESTNET = "story-testnet", s.PLUME_MAINNET = "plume-mainnet", s.PLUME_TESTNET = "plume-testnet", s.NEXUS_MAINNET = "nexus-mainnet", s.NEXUS_TESTNET = "nexus-testnet", s.HYPEREVM_MAINNET = "hyperevm-mainnet", s.HYPEREVM_TESTNET = "hyperevm-testnet", s.SONIC_MAINNET = "sonic-mainnet", s.SONIC_TESTNET = "sonic-testnet", s.SONIC_BLAZE = "sonic-blaze", s.UNICHAIN_MAINNET = "unichain-mainnet", s.UNICHAIN_SEPOLIA = "unichain-sepolia", s.WORLD_MAINNET = "world-mainnet", s.XDC_MAINNET = "xdc-mainnet", s.INK_TESTNET = "ink-testnet", s.FETCH_MAINNET = "fetch-mainnet", s.FETCH_TESTNET = "fetch-testnet", s.GENSYN_MAINNET = "gensyn-mainnet", s.GENSYN_TESTNET = "gensyn-testnet", s.RITUAL_MAINNET = "ritual-mainnet", s.RITUAL_TESTNET = "ritual-testnet", s.SOLANA_MAINNET = "solana-mainnet", s.SOLANA_DEVNET = "solana-devnet", s.SOLANA_TESTNET = "solana-testnet", s.EVM_LOCAL = "evm-local", s.SOLANA_LOCAL = "solana-local";
80
+ })(r || (N.Chain = r = {}));
85
81
  var n;
86
- (function(d) {
87
- d.LIGHT = "light", d.DARK = "dark", d.SYSTEM = "system";
88
- })(n || (v.Theme = n = {}));
82
+ (function(s) {
83
+ s.LIGHT = "light", s.DARK = "dark", s.SYSTEM = "system";
84
+ })(n || (N.Theme = n = {}));
89
85
  var i;
90
- (function(d) {
91
- d.SMALL = "small", d.MEDIUM = "medium", d.LARGE = "large";
92
- })(i || (v.FontSize = i = {}));
86
+ (function(s) {
87
+ s.SMALL = "small", s.MEDIUM = "medium", s.LARGE = "large";
88
+ })(i || (N.FontSize = i = {}));
93
89
  var a;
94
- (function(d) {
95
- d.NEW = "new", d.REPLY = "reply", d.REPLY_ALL = "replyAll", d.FORWARD = "forward";
96
- })(a || (v.EmailComposeType = a = {}));
90
+ (function(s) {
91
+ s.NEW = "new", s.REPLY = "reply", s.REPLY_ALL = "replyAll", s.FORWARD = "forward";
92
+ })(a || (N.EmailComposeType = a = {}));
97
93
  var o;
98
- (function(d) {
99
- d.EMAIL_ADDRESSES = "emailAddresses", d.FOLDERS = "folders", d.EMAILS = "emails", d.EMAIL_BODY = "emailBody";
100
- })(o || (v.MobileView = o = {}));
101
- var u;
102
- (function(d) {
103
- d.LEFT = "left", d.RIGHT = "right";
104
- })(u || (v.MediumView = u = {}));
94
+ (function(s) {
95
+ s.EMAIL_ADDRESSES = "emailAddresses", s.FOLDERS = "folders", s.EMAILS = "emails", s.EMAIL_BODY = "emailBody";
96
+ })(o || (N.MobileView = o = {}));
97
+ var d;
98
+ (function(s) {
99
+ s.LEFT = "left", s.RIGHT = "right";
100
+ })(d || (N.MediumView = d = {}));
105
101
  var c;
106
- (function(d) {
107
- d.OPEN = "open", d.REPLY = "reply", d.FORWARD = "forward", d.DELETE = "delete", d.STAR = "star", d.UNSTAR = "unstar", d.MARK_READ = "mark_read", d.MARK_UNREAD = "mark_unread";
108
- })(c || (v.EmailAction = c = {}));
109
- var s;
110
- (function(d) {
111
- d.VIEW = "view", d.PURCHASE = "purchase", d.CANCEL = "cancel", d.RESTORE = "restore";
112
- })(s || (v.SubscriptionAction = s = {}));
113
- var f;
114
- (function(d) {
115
- d.IDLE = "idle", d.LOADING = "loading", d.SUCCESS = "success", d.ERROR = "error";
116
- })(f || (v.RequestStatus = f = {}));
102
+ (function(s) {
103
+ s.OPEN = "open", s.REPLY = "reply", s.FORWARD = "forward", s.DELETE = "delete", s.STAR = "star", s.UNSTAR = "unstar", s.MARK_READ = "mark_read", s.MARK_UNREAD = "mark_unread";
104
+ })(c || (N.EmailAction = c = {}));
117
105
  var l;
118
- (function(d) {
119
- d.INFO = "info", d.SUCCESS = "success", d.WARNING = "warning", d.ERROR = "error";
120
- })(l || (v.NotificationType = l = {}));
106
+ (function(s) {
107
+ s.VIEW = "view", s.PURCHASE = "purchase", s.CANCEL = "cancel", s.RESTORE = "restore";
108
+ })(l || (N.SubscriptionAction = l = {}));
109
+ var f;
110
+ (function(s) {
111
+ s.IDLE = "idle", s.LOADING = "loading", s.SUCCESS = "success", s.ERROR = "error";
112
+ })(f || (N.RequestStatus = f = {}));
113
+ var u;
114
+ (function(s) {
115
+ s.INFO = "info", s.SUCCESS = "success", s.WARNING = "warning", s.ERROR = "error";
116
+ })(u || (N.NotificationType = u = {}));
121
117
  var m;
122
- (function(d) {
123
- d.INFO = "info", d.SUCCESS = "success", d.WARNING = "warning", d.ERROR = "error";
124
- })(m || (v.InfoType = m = {}));
118
+ (function(s) {
119
+ s.INFO = "info", s.SUCCESS = "success", s.WARNING = "warning", s.ERROR = "error";
120
+ })(m || (N.InfoType = m = {}));
125
121
  var b;
126
- (function(d) {
127
- d.DIRECT = "direct", d.ENS = "ens", d.SNS = "sns", d.CUSTOM = "custom";
128
- })(b || (v.EmailAddressType = b = {}));
122
+ (function(s) {
123
+ s.DIRECT = "direct", s.ENS = "ens", s.SNS = "sns", s.CUSTOM = "custom";
124
+ })(b || (N.EmailAddressType = b = {}));
129
125
  var S;
130
- (function(d) {
131
- d.ASC = "asc", d.DESC = "desc";
132
- })(S || (v.SortOrder = S = {}));
126
+ (function(s) {
127
+ s.ASC = "asc", s.DESC = "desc";
128
+ })(S || (N.SortOrder = S = {}));
133
129
  var p;
134
- (function(d) {
135
- d.DATE = "date", d.SUBJECT = "subject", d.FROM = "from", d.SIZE = "size";
136
- })(p || (v.EmailSortCriteria = p = {}));
130
+ (function(s) {
131
+ s.DATE = "date", s.SUBJECT = "subject", s.FROM = "from", s.SIZE = "size";
132
+ })(p || (N.EmailSortCriteria = p = {}));
137
133
  var g;
138
- (function(d) {
139
- d.UNKNOWN = "unknown", d.NONE = "none", d.WIFI = "wifi", d.CELLULAR_2G = "2g", d.CELLULAR_3G = "3g", d.CELLULAR_4G = "4g", d.CELLULAR_5G = "5g", d.ETHERNET = "ethernet";
140
- })(g || (v.ConnectionType = g = {}));
134
+ (function(s) {
135
+ s.UNKNOWN = "unknown", s.NONE = "none", s.WIFI = "wifi", s.CELLULAR_2G = "2g", s.CELLULAR_3G = "3g", s.CELLULAR_4G = "4g", s.CELLULAR_5G = "5g", s.ETHERNET = "ethernet";
136
+ })(g || (N.ConnectionType = g = {}));
141
137
  var A;
142
- (function(d) {
143
- d.UNKNOWN = "unknown", d.DISCONNECTED = "disconnected", d.CONNECTING = "connecting", d.CONNECTED = "connected", d.RECONNECTING = "reconnecting", d.VERIFIED = "verified", d.LIMITED = "limited", d.ERROR = "error";
144
- })(A || (v.ConnectionState = A = {}));
138
+ (function(s) {
139
+ s.UNKNOWN = "unknown", s.DISCONNECTED = "disconnected", s.CONNECTING = "connecting", s.CONNECTED = "connected", s.RECONNECTING = "reconnecting", s.VERIFIED = "verified", s.LIMITED = "limited", s.ERROR = "error";
140
+ })(A || (N.ConnectionState = A = {}));
145
141
  var y;
146
- (function(d) {
147
- d.WEB = "web", d.REACT_NATIVE = "react_native", d.DESKTOP = "desktop";
148
- })(y || (v.PlatformType = y = {}));
142
+ (function(s) {
143
+ s.WEB = "web", s.REACT_NATIVE = "react_native", s.DESKTOP = "desktop";
144
+ })(y || (N.PlatformType = y = {}));
149
145
  var E;
150
- (function(d) {
151
- d.VALID = "valid", d.INVALID = "invalid", d.PENDING = "pending", d.UNKNOWN = "unknown";
152
- })(E || (v.EmailValidationState = E = {}));
146
+ (function(s) {
147
+ s.VALID = "valid", s.INVALID = "invalid", s.PENDING = "pending", s.UNKNOWN = "unknown";
148
+ })(E || (N.EmailValidationState = E = {}));
149
+ var R;
150
+ (function(s) {
151
+ s.AI_SEARCH = "ai_search", s.SMART_COMPOSE = "smart_compose", s.ADVANCED_FILTERS = "advanced_filters", s.DARK_MODE = "dark_mode", s.NOTIFICATIONS = "notifications", s.ANALYTICS = "analytics";
152
+ })(R || (N.FeatureFlag = R = {}));
153
153
  var T;
154
- (function(d) {
155
- d.AI_SEARCH = "ai_search", d.SMART_COMPOSE = "smart_compose", d.ADVANCED_FILTERS = "advanced_filters", d.DARK_MODE = "dark_mode", d.NOTIFICATIONS = "notifications", d.ANALYTICS = "analytics";
156
- })(T || (v.FeatureFlag = T = {}));
157
- var N;
158
- (function(d) {
159
- d.NETWORK = "network", d.AUTH = "auth", d.VALIDATION = "validation", d.PERMISSION = "permission", d.UNKNOWN = "unknown";
160
- })(N || (v.ErrorType = N = {}));
161
- var M;
162
- return (function(d) {
163
- d.USD = "USD", d.EUR = "EUR", d.GBP = "GBP", d.CAD = "CAD", d.AUD = "AUD";
164
- })(M || (v.Currency = M = {})), v;
165
- }
166
- var Te = {}, rt;
167
- function Lr() {
168
- return rt || (rt = 1, (function(e) {
154
+ (function(s) {
155
+ s.NETWORK = "network", s.AUTH = "auth", s.VALIDATION = "validation", s.PERMISSION = "permission", s.UNKNOWN = "unknown";
156
+ })(T || (N.ErrorType = T = {}));
157
+ var C;
158
+ return (function(s) {
159
+ s.USD = "USD", s.EUR = "EUR", s.GBP = "GBP", s.CAD = "CAD", s.AUD = "AUD";
160
+ })(C || (N.Currency = C = {})), N;
161
+ }
162
+ var Se = {}, ke;
163
+ function Xt() {
164
+ return ke || (ke = 1, (function(e) {
169
165
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getWalletConnectionState = e.isWalletVerified = e.isWalletConnected = void 0;
170
- const t = ne(), r = (a) => a != null && !!a.walletAddress;
166
+ const t = ee(), r = (a) => a != null && !!a.walletAddress;
171
167
  e.isWalletConnected = r;
172
168
  const n = (a) => (0, e.isWalletConnected)(a) && !!a.message && !!a.signature;
173
169
  e.isWalletVerified = n;
174
170
  const i = (a) => (0, e.isWalletConnected)(a) ? (0, e.isWalletVerified)(a) ? t.ConnectionState.VERIFIED : t.ConnectionState.CONNECTED : t.ConnectionState.DISCONNECTED;
175
171
  e.getWalletConnectionState = i;
176
- })(Te)), Te;
172
+ })(Se)), Se;
177
173
  }
178
- var nt;
179
- function Dr() {
180
- return nt || (nt = 1, (function(e) {
181
- Object.defineProperty(e, "__esModule", { value: !0 }), e.isWalletVerified = e.isWalletConnected = e.getWalletConnectionState = e.Theme = e.SubscriptionAction = e.SortOrder = e.RequestStatus = e.PlatformType = e.NotificationType = e.MobileView = e.MediumView = e.InfoType = e.FontSize = e.FeatureFlag = e.ErrorType = e.EmailValidationState = e.EmailSortCriteria = e.EmailComposeType = e.EmailAddressType = e.EmailAction = e.Currency = e.ConnectionType = e.ConnectionState = e.ChainType = e.Chain = e.AuthStatus = void 0;
182
- var t = ne();
183
- Object.defineProperty(e, "AuthStatus", { enumerable: !0, get: function() {
184
- return t.AuthStatus;
185
- } }), Object.defineProperty(e, "Chain", { enumerable: !0, get: function() {
186
- return t.Chain;
187
- } }), Object.defineProperty(e, "ChainType", { enumerable: !0, get: function() {
188
- return t.ChainType;
189
- } }), Object.defineProperty(e, "ConnectionState", { enumerable: !0, get: function() {
190
- return t.ConnectionState;
191
- } }), Object.defineProperty(e, "ConnectionType", { enumerable: !0, get: function() {
192
- return t.ConnectionType;
193
- } }), Object.defineProperty(e, "Currency", { enumerable: !0, get: function() {
194
- return t.Currency;
195
- } }), Object.defineProperty(e, "EmailAction", { enumerable: !0, get: function() {
196
- return t.EmailAction;
197
- } }), Object.defineProperty(e, "EmailAddressType", { enumerable: !0, get: function() {
198
- return t.EmailAddressType;
199
- } }), Object.defineProperty(e, "EmailComposeType", { enumerable: !0, get: function() {
200
- return t.EmailComposeType;
201
- } }), Object.defineProperty(e, "EmailSortCriteria", { enumerable: !0, get: function() {
202
- return t.EmailSortCriteria;
203
- } }), Object.defineProperty(e, "EmailValidationState", { enumerable: !0, get: function() {
204
- return t.EmailValidationState;
205
- } }), Object.defineProperty(e, "ErrorType", { enumerable: !0, get: function() {
206
- return t.ErrorType;
207
- } }), Object.defineProperty(e, "FeatureFlag", { enumerable: !0, get: function() {
208
- return t.FeatureFlag;
209
- } }), Object.defineProperty(e, "FontSize", { enumerable: !0, get: function() {
210
- return t.FontSize;
211
- } }), Object.defineProperty(e, "InfoType", { enumerable: !0, get: function() {
212
- return t.InfoType;
213
- } }), Object.defineProperty(e, "MediumView", { enumerable: !0, get: function() {
214
- return t.MediumView;
215
- } }), Object.defineProperty(e, "MobileView", { enumerable: !0, get: function() {
216
- return t.MobileView;
217
- } }), Object.defineProperty(e, "NotificationType", { enumerable: !0, get: function() {
218
- return t.NotificationType;
219
- } }), Object.defineProperty(e, "PlatformType", { enumerable: !0, get: function() {
220
- return t.PlatformType;
221
- } }), Object.defineProperty(e, "RequestStatus", { enumerable: !0, get: function() {
222
- return t.RequestStatus;
223
- } }), Object.defineProperty(e, "SortOrder", { enumerable: !0, get: function() {
224
- return t.SortOrder;
225
- } }), Object.defineProperty(e, "SubscriptionAction", { enumerable: !0, get: function() {
226
- return t.SubscriptionAction;
227
- } }), Object.defineProperty(e, "Theme", { enumerable: !0, get: function() {
228
- return t.Theme;
229
- } });
230
- var r = Lr();
231
- Object.defineProperty(e, "getWalletConnectionState", { enumerable: !0, get: function() {
232
- return r.getWalletConnectionState;
233
- } }), Object.defineProperty(e, "isWalletConnected", { enumerable: !0, get: function() {
234
- return r.isWalletConnected;
235
- } }), Object.defineProperty(e, "isWalletVerified", { enumerable: !0, get: function() {
236
- return r.isWalletVerified;
237
- } });
238
- })(ve)), ve;
239
- }
240
- var Oe = {}, L = {}, at;
241
- function Ge() {
242
- if (at) return L;
243
- at = 1, Object.defineProperty(L, "__esModule", { value: !0 }), L.PROTOCOL_CONSTANTS = L.TransactionStatus = L.MessageType = void 0, L.isSolanaAddress = r, L.isEvmAddress = n, L.isSolanaRecipient = i, L.isEvmRecipient = a;
174
+ var j = {}, Ve;
175
+ function bt() {
176
+ if (Ve) return j;
177
+ Ve = 1, Object.defineProperty(j, "__esModule", { value: !0 }), j.PROTOCOL_CONSTANTS = j.TransactionStatus = j.MessageType = void 0, j.isSolanaAddress = r, j.isEvmAddress = n, j.isSolanaRecipient = i, j.isEvmRecipient = a;
244
178
  var e;
245
179
  (function(o) {
246
180
  o.STANDARD = "standard", o.PRIORITY = "priority", o.PREPARED_STANDARD = "prepared_standard", o.PREPARED_PRIORITY = "prepared_priority";
247
- })(e || (L.MessageType = e = {}));
181
+ })(e || (j.MessageType = e = {}));
248
182
  var t;
249
183
  (function(o) {
250
184
  o.SUCCESS = "success", o.FAILED = "failed", o.PENDING = "pending";
251
- })(t || (L.TransactionStatus = t = {}));
185
+ })(t || (j.TransactionStatus = t = {}));
252
186
  function r(o) {
253
187
  try {
254
188
  if (o.length < 32 || o.length > 44 || !/^[1-9A-HJ-NP-Za-km-z]+$/.test(o))
@@ -271,7 +205,7 @@ function Ge() {
271
205
  function a(o) {
272
206
  return n(o);
273
207
  }
274
- return L.PROTOCOL_CONSTANTS = {
208
+ return j.PROTOCOL_CONSTANTS = {
275
209
  /** Base send fee: 0.1 USDC (100,000 with 6 decimals) */
276
210
  SEND_FEE: 100000n,
277
211
  /** Claim period: 60 days in seconds */
@@ -289,19 +223,19 @@ function Ge() {
289
223
  BODY: 2e3,
290
224
  MAIL_ID: 100
291
225
  }
292
- }, L;
226
+ }, j;
293
227
  }
294
- var Z = {}, D = {}, it;
295
- function er() {
296
- if (it) return D;
297
- it = 1, Object.defineProperty(D, "__esModule", { value: !0 }), D.AddressType = void 0, D.isENSName = n, D.isSNSName = i, D.getAddressType = a, D.isValidWalletAddress = o, D.isValidSignature = u, D.parseEmailAddress = c, D.formatWalletAddress = s, D.getChainDisplayName = f;
298
- const e = ne(), t = Ge();
228
+ var J = {}, U = {}, We;
229
+ function St() {
230
+ if (We) return U;
231
+ We = 1, Object.defineProperty(U, "__esModule", { value: !0 }), U.AddressType = void 0, U.isENSName = n, U.isSNSName = i, U.getAddressType = a, U.isValidWalletAddress = o, U.isValidSignature = d, U.parseEmailAddress = c, U.formatWalletAddress = l, U.getChainDisplayName = f;
232
+ const e = ee(), t = bt();
299
233
  var r;
300
- (function(l) {
301
- l.EVMAddress = "EVMAddress", l.SolanaAddress = "SolanaAddress", l.ENSName = "ENSName", l.SNSName = "SNSName";
302
- })(r || (D.AddressType = r = {}));
303
- function n(l) {
304
- const m = l.toLowerCase();
234
+ (function(u) {
235
+ u.EVMAddress = "EVMAddress", u.SolanaAddress = "SolanaAddress", u.ENSName = "ENSName", u.SNSName = "SNSName";
236
+ })(r || (U.AddressType = r = {}));
237
+ function n(u) {
238
+ const m = u.toLowerCase();
305
239
  if (!m.endsWith(".eth") && !m.endsWith(".box"))
306
240
  return !1;
307
241
  const b = (m.endsWith(".eth"), m.slice(0, -4));
@@ -313,8 +247,8 @@ function er() {
313
247
  return !1;
314
248
  return !0;
315
249
  }
316
- function i(l) {
317
- const m = l.toLowerCase(), S = [
250
+ function i(u) {
251
+ const m = u.toLowerCase(), S = [
318
252
  ".sol",
319
253
  ".abc",
320
254
  ".bonk",
@@ -335,22 +269,22 @@ function er() {
335
269
  return !1;
336
270
  return !0;
337
271
  }
338
- function a(l, m = void 0) {
339
- if ((0, t.isEvmAddress)(l))
272
+ function a(u, m = void 0) {
273
+ if ((0, t.isEvmAddress)(u))
340
274
  return r.EVMAddress;
341
- if ((0, t.isSolanaAddress)(l))
275
+ if ((0, t.isSolanaAddress)(u))
342
276
  return r.SolanaAddress;
343
- if (m && l.includes(".")) {
277
+ if (m && u.includes(".")) {
344
278
  if (m === r.EVMAddress)
345
279
  return r.ENSName;
346
280
  if (m === r.SolanaAddress)
347
281
  return r.SNSName;
348
282
  }
349
283
  }
350
- function o(l, m) {
351
- if (!l || typeof l != "string")
284
+ function o(u, m) {
285
+ if (!u || typeof u != "string")
352
286
  return !1;
353
- const b = a(l);
287
+ const b = a(u);
354
288
  switch (m) {
355
289
  case e.ChainType.EVM:
356
290
  return b === r.EVMAddress || b === r.ENSName;
@@ -360,22 +294,22 @@ function er() {
360
294
  return !!b;
361
295
  }
362
296
  }
363
- function u(l, m) {
364
- if (!l || typeof l != "string")
297
+ function d(u, m) {
298
+ if (!u || typeof u != "string")
365
299
  return !1;
366
300
  switch (m) {
367
301
  case e.ChainType.EVM:
368
- return /^0x[a-fA-F0-9]{130}$/.test(l);
302
+ return /^0x[a-fA-F0-9]{130}$/.test(u);
369
303
  case e.ChainType.SOLANA:
370
- return /^[1-9A-HJ-NP-Za-km-z]{87,88}$/.test(l);
304
+ return /^[1-9A-HJ-NP-Za-km-z]{87,88}$/.test(u);
371
305
  default:
372
- return l.length > 50;
306
+ return u.length > 50;
373
307
  }
374
308
  }
375
- function c(l) {
376
- if (!l || typeof l != "string")
309
+ function c(u) {
310
+ if (!u || typeof u != "string")
377
311
  return;
378
- const m = l.split("@");
312
+ const m = u.split("@");
379
313
  if (m.length !== 2)
380
314
  return;
381
315
  const [b, S] = m;
@@ -388,16 +322,16 @@ function er() {
388
322
  type: p
389
323
  };
390
324
  }
391
- function s(l) {
392
- if (!l || l.length < 10)
393
- return l;
394
- const m = a(l);
395
- return (m === r.ENSName || m === r.SNSName) && l.length <= 20 ? l : `${l.slice(0, 6)}...${l.slice(-4)}`;
325
+ function l(u) {
326
+ if (!u || u.length < 10)
327
+ return u;
328
+ const m = a(u);
329
+ return (m === r.ENSName || m === r.SNSName) && u.length <= 20 ? u : `${u.slice(0, 6)}...${u.slice(-4)}`;
396
330
  }
397
- function f(l) {
398
- if (!l)
331
+ function f(u) {
332
+ if (!u)
399
333
  return "Unknown Chain";
400
- switch (l) {
334
+ switch (u) {
401
335
  case e.ChainType.EVM:
402
336
  return "EVM Chain";
403
337
  case e.ChainType.SOLANA:
@@ -406,13 +340,13 @@ function er() {
406
340
  return "Blockchain";
407
341
  }
408
342
  }
409
- return D;
343
+ return U;
410
344
  }
411
- var ot;
412
- function jr() {
413
- if (ot) return Z;
414
- ot = 1, Object.defineProperty(Z, "__esModule", { value: !0 }), Z.validateDomain = t, Z.validateMessage = r, Z.validateAddress = n, Z.validateAmount = i;
415
- const e = er();
345
+ var Fe;
346
+ function Qt() {
347
+ if (Fe) return J;
348
+ Fe = 1, Object.defineProperty(J, "__esModule", { value: !0 }), J.validateDomain = t, J.validateMessage = r, J.validateAddress = n, J.validateAmount = i;
349
+ const e = St();
416
350
  function t(a) {
417
351
  if (!a || a.length === 0)
418
352
  throw new Error("Domain cannot be empty");
@@ -464,67 +398,25 @@ function jr() {
464
398
  throw new Error("Amount cannot be negative");
465
399
  return o;
466
400
  }
467
- return Z;
401
+ return J;
468
402
  }
469
- var ut;
470
- function Ur() {
471
- return ut || (ut = 1, (function(e) {
472
- Object.defineProperty(e, "__esModule", { value: !0 }), e.validateMessage = e.validateDomain = e.validateAmount = e.validateAddress = e.isSolanaRecipient = e.isSolanaAddress = e.isEvmRecipient = e.isEvmAddress = e.TransactionStatus = e.PROTOCOL_CONSTANTS = e.MessageType = void 0;
473
- var t = Ge();
474
- Object.defineProperty(e, "MessageType", { enumerable: !0, get: function() {
475
- return t.MessageType;
476
- } }), Object.defineProperty(e, "PROTOCOL_CONSTANTS", { enumerable: !0, get: function() {
477
- return t.PROTOCOL_CONSTANTS;
478
- } }), Object.defineProperty(e, "TransactionStatus", { enumerable: !0, get: function() {
479
- return t.TransactionStatus;
480
- } }), Object.defineProperty(e, "isEvmAddress", { enumerable: !0, get: function() {
481
- return t.isEvmAddress;
482
- } }), Object.defineProperty(e, "isEvmRecipient", { enumerable: !0, get: function() {
483
- return t.isEvmRecipient;
484
- } }), Object.defineProperty(e, "isSolanaAddress", { enumerable: !0, get: function() {
485
- return t.isSolanaAddress;
486
- } }), Object.defineProperty(e, "isSolanaRecipient", { enumerable: !0, get: function() {
487
- return t.isSolanaRecipient;
488
- } });
489
- var r = jr();
490
- Object.defineProperty(e, "validateAddress", { enumerable: !0, get: function() {
491
- return r.validateAddress;
492
- } }), Object.defineProperty(e, "validateAmount", { enumerable: !0, get: function() {
493
- return r.validateAmount;
494
- } }), Object.defineProperty(e, "validateDomain", { enumerable: !0, get: function() {
495
- return r.validateDomain;
496
- } }), Object.defineProperty(e, "validateMessage", { enumerable: !0, get: function() {
497
- return r.validateMessage;
498
- } });
499
- })(Oe)), Oe;
500
- }
501
- var Re = {}, oe = {}, lt;
502
- function kr() {
503
- if (lt) return oe;
504
- lt = 1, Object.defineProperty(oe, "__esModule", { value: !0 }), oe.StorageType = void 0;
403
+ var re = {}, Be;
404
+ function xt() {
405
+ if (Be) return re;
406
+ Be = 1, Object.defineProperty(re, "__esModule", { value: !0 }), re.StorageType = void 0;
505
407
  var e;
506
408
  return (function(t) {
507
409
  t.LOCAL_STORAGE = "localStorage", t.SESSION_STORAGE = "sessionStorage", t.ASYNC_STORAGE = "asyncStorage", t.MEMORY = "memory";
508
- })(e || (oe.StorageType = e = {})), oe;
509
- }
510
- var st;
511
- function Vr() {
512
- return st || (st = 1, (function(e) {
513
- Object.defineProperty(e, "__esModule", { value: !0 }), e.StorageType = void 0;
514
- var t = kr();
515
- Object.defineProperty(e, "StorageType", { enumerable: !0, get: function() {
516
- return t.StorageType;
517
- } });
518
- })(Re)), Re;
410
+ })(e || (re.StorageType = e = {})), re;
519
411
  }
520
- var Ne = {}, J = {}, ct;
521
- function Wr() {
522
- if (ct) return J;
523
- ct = 1, Object.defineProperty(J, "__esModule", { value: !0 }), J.AnalyticsEventBuilder = J.AnalyticsEvent = void 0;
412
+ var X = {}, Ge;
413
+ function $t() {
414
+ if (Ge) return X;
415
+ Ge = 1, Object.defineProperty(X, "__esModule", { value: !0 }), X.AnalyticsEventBuilder = X.AnalyticsEvent = void 0;
524
416
  var e;
525
417
  (function(r) {
526
418
  r.USER_LOGIN = "user_login", r.USER_LOGOUT = "user_logout", r.USER_SIGNUP = "user_signup", r.EMAIL_SENT = "email_sent", r.EMAIL_RECEIVED = "email_received", r.EMAIL_OPENED = "email_opened", r.EMAIL_REPLY = "email_reply", r.EMAIL_FORWARD = "email_forward", r.EMAIL_DELETE = "email_delete", r.EMAIL_STAR = "email_star", r.EMAIL_COMPOSE = "email_compose", r.EMAIL_CLICKED = "email_clicked", r.PAGE_VIEW = "page_view", r.SCREEN_VIEW = "screen_view", r.FOLDER_SWITCH = "folder_switch", r.SUBSCRIPTION_VIEW = "subscription_view", r.SUBSCRIPTION_PURCHASE = "subscription_purchase", r.SUBSCRIPTION_CANCEL = "subscription_cancel", r.SEARCH_PERFORMED = "search_performed", r.SETTINGS_CHANGED = "settings_changed", r.ERROR_OCCURRED = "error_occurred", r.AB_TEST_VIEWED = "ab_test_viewed", r.AB_TEST_CONVERTED = "ab_test_converted", r.CUSTOM_EVENT = "custom_event";
527
- })(e || (J.AnalyticsEvent = e = {}));
419
+ })(e || (X.AnalyticsEvent = e = {}));
528
420
  class t {
529
421
  /**
530
422
  * Build properties for email action events.
@@ -641,13 +533,13 @@ function Wr() {
641
533
  };
642
534
  }
643
535
  }
644
- return J.AnalyticsEventBuilder = t, J;
536
+ return X.AnalyticsEventBuilder = t, X;
645
537
  }
646
- var _e = {}, dt;
647
- function Br() {
648
- return dt || (dt = 1, (function(e) {
538
+ var ye = {}, He;
539
+ function er() {
540
+ return He || (He = 1, (function(e) {
649
541
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ProcessedEventName = e.ContractType = e.ChainType = void 0;
650
- var t = ne();
542
+ var t = ee();
651
543
  Object.defineProperty(e, "ChainType", { enumerable: !0, get: function() {
652
544
  return t.ChainType;
653
545
  } });
@@ -659,112 +551,60 @@ function Br() {
659
551
  (function(i) {
660
552
  i.MailSent = "MailSent", i.PreparedMailSent = "PreparedMailSent", i.DelegationSet = "DelegationSet", i.DelegationCleared = "DelegationCleared", i.DomainRegistered = "DomainRegistered", i.DomainExtended = "DomainExtended", i.DomainReleased = "DomainReleased", i.FeeUpdated = "FeeUpdated", i.SharesRecorded = "SharesRecorded", i.RecipientClaimed = "RecipientClaimed", i.OwnerClaimed = "OwnerClaimed", i.ExpiredSharesClaimed = "ExpiredSharesClaimed";
661
553
  })(n || (e.ProcessedEventName = n = {}));
662
- })(_e)), _e;
554
+ })(ye)), ye;
663
555
  }
664
- var ue = {}, ft;
665
- function Fr() {
666
- if (ft) return ue;
667
- ft = 1, Object.defineProperty(ue, "__esModule", { value: !0 }), ue.NetworkError = void 0;
556
+ var ne = {}, Ye;
557
+ function tr() {
558
+ if (Ye) return ne;
559
+ Ye = 1, Object.defineProperty(ne, "__esModule", { value: !0 }), ne.NetworkError = void 0;
668
560
  class e extends Error {
669
561
  constructor(r, n, i, a) {
670
562
  super(r), this.name = "NetworkError", this.status = n, this.statusText = i, this.response = a;
671
563
  }
672
564
  }
673
- return ue.NetworkError = e, ue;
565
+ return ne.NetworkError = e, ne;
674
566
  }
675
- var le = {}, mt;
676
- function qr() {
677
- if (mt) return le;
678
- mt = 1, Object.defineProperty(le, "__esModule", { value: !0 }), le.WalletType = void 0;
567
+ var ae = {}, qe;
568
+ function rr() {
569
+ if (qe) return ae;
570
+ qe = 1, Object.defineProperty(ae, "__esModule", { value: !0 }), ae.WalletType = void 0;
679
571
  var e;
680
572
  return (function(t) {
681
573
  t.METAMASK = "metamask", t.PHANTOM = "phantom", t.COINBASE = "coinbase", t.WALLETCONNECT = "walletconnect", t.INJECTED = "injected";
682
- })(e || (le.WalletType = e = {})), le;
683
- }
684
- var gt;
685
- function Hr() {
686
- return gt || (gt = 1, (function(e) {
687
- Object.defineProperty(e, "__esModule", { value: !0 }), e.WalletType = e.NetworkError = e.ProcessedEventName = e.ContractType = e.ChainType = e.AnalyticsEventBuilder = e.AnalyticsEvent = void 0;
688
- var t = Wr();
689
- Object.defineProperty(e, "AnalyticsEvent", { enumerable: !0, get: function() {
690
- return t.AnalyticsEvent;
691
- } }), Object.defineProperty(e, "AnalyticsEventBuilder", { enumerable: !0, get: function() {
692
- return t.AnalyticsEventBuilder;
693
- } });
694
- var r = Br();
695
- Object.defineProperty(e, "ChainType", { enumerable: !0, get: function() {
696
- return r.ChainType;
697
- } }), Object.defineProperty(e, "ContractType", { enumerable: !0, get: function() {
698
- return r.ContractType;
699
- } }), Object.defineProperty(e, "ProcessedEventName", { enumerable: !0, get: function() {
700
- return r.ProcessedEventName;
701
- } });
702
- var n = Fr();
703
- Object.defineProperty(e, "NetworkError", { enumerable: !0, get: function() {
704
- return n.NetworkError;
705
- } });
706
- var i = qr();
707
- Object.defineProperty(e, "WalletType", { enumerable: !0, get: function() {
708
- return i.WalletType;
709
- } });
710
- })(Ne)), Ne;
574
+ })(e || (ae.WalletType = e = {})), ae;
711
575
  }
712
- var X = {}, se = {}, ht;
713
- function Gr() {
714
- if (ht) return se;
715
- ht = 1, Object.defineProperty(se, "__esModule", { value: !0 }), se.RateLimitPeriodType = void 0;
576
+ var ie = {}, ze;
577
+ function nr() {
578
+ if (ze) return ie;
579
+ ze = 1, Object.defineProperty(ie, "__esModule", { value: !0 }), ie.RateLimitPeriodType = void 0;
716
580
  var e;
717
581
  return (function(t) {
718
582
  t.HOUR = "hour", t.DAY = "day", t.MONTH = "month";
719
- })(e || (se.RateLimitPeriodType = e = {})), se;
720
- }
721
- var Et;
722
- function Yr() {
723
- return Et || (Et = 1, (function(e) {
724
- var t = X && X.__createBinding || (Object.create ? (function(n, i, a, o) {
725
- o === void 0 && (o = a);
726
- var u = Object.getOwnPropertyDescriptor(i, a);
727
- (!u || ("get" in u ? !i.__esModule : u.writable || u.configurable)) && (u = { enumerable: !0, get: function() {
728
- return i[a];
729
- } }), Object.defineProperty(n, o, u);
730
- }) : (function(n, i, a, o) {
731
- o === void 0 && (o = a), n[o] = i[a];
732
- })), r = X && X.__exportStar || function(n, i) {
733
- for (var a in n) a !== "default" && !Object.prototype.hasOwnProperty.call(i, a) && t(i, n, a);
734
- };
735
- Object.defineProperty(e, "__esModule", { value: !0 }), r(Gr(), e);
736
- })(X)), X;
583
+ })(e || (ie.RateLimitPeriodType = e = {})), ie;
737
584
  }
738
- var Q = {}, F = {}, bt;
739
- function tr() {
740
- if (bt) return F;
741
- bt = 1, Object.defineProperty(F, "__esModule", { value: !0 }), F.InvitationStatus = F.EntityRole = F.EntityType = void 0;
585
+ var Y = {}, Ke;
586
+ function yt() {
587
+ if (Ke) return Y;
588
+ Ke = 1, Object.defineProperty(Y, "__esModule", { value: !0 }), Y.InvitationStatus = Y.EntityRole = Y.EntityType = void 0;
742
589
  var e;
743
590
  (function(n) {
744
591
  n.PERSONAL = "personal", n.ORGANIZATION = "organization";
745
- })(e || (F.EntityType = e = {}));
592
+ })(e || (Y.EntityType = e = {}));
746
593
  var t;
747
594
  (function(n) {
748
- n.OWNER = "owner", n.ADMIN = "admin", n.MEMBER = "member";
749
- })(t || (F.EntityRole = t = {}));
595
+ n.OWNER = "owner", n.MANAGER = "manager", n.MEMBER = "member";
596
+ })(t || (Y.EntityRole = t = {}));
750
597
  var r;
751
598
  return (function(n) {
752
599
  n.PENDING = "pending", n.ACCEPTED = "accepted", n.DECLINED = "declined", n.EXPIRED = "expired";
753
- })(r || (F.InvitationStatus = r = {})), F;
754
- }
755
- var Ce = {}, yt;
756
- function zr() {
757
- return yt || (yt = 1, Object.defineProperty(Ce, "__esModule", { value: !0 })), Ce;
758
- }
759
- var Pe = {}, St;
760
- function Kr() {
761
- return St || (St = 1, Object.defineProperty(Pe, "__esModule", { value: !0 })), Pe;
762
- }
763
- var Ie = {}, pt;
764
- function Zr() {
765
- return pt || (pt = 1, (function(e) {
766
- Object.defineProperty(e, "__esModule", { value: !0 }), e.ROLE_PERMISSIONS = void 0, e.getPermissionsForRole = a, e.hasPermission = o;
767
- const t = tr(), r = {
600
+ })(r || (Y.InvitationStatus = r = {})), Y;
601
+ }
602
+ var pe = {}, Ze;
603
+ function ar() {
604
+ return Ze || (Ze = 1, (function(e) {
605
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.ROLE_PERMISSIONS = e.MEMBER_PERMISSIONS = e.MANAGER_PERMISSIONS = e.OWNER_PERMISSIONS = void 0, e.getPermissionsForRole = r, e.hasPermission = n;
606
+ const t = yt();
607
+ e.OWNER_PERMISSIONS = {
768
608
  canViewEntity: !0,
769
609
  canEditEntity: !0,
770
610
  canDeleteEntity: !0,
@@ -775,7 +615,7 @@ function Zr() {
775
615
  canViewProjects: !0,
776
616
  canManageApiKeys: !0,
777
617
  canViewApiKeys: !0
778
- }, n = {
618
+ }, e.MANAGER_PERMISSIONS = {
779
619
  canViewEntity: !0,
780
620
  canEditEntity: !0,
781
621
  canDeleteEntity: !1,
@@ -786,7 +626,7 @@ function Zr() {
786
626
  canViewProjects: !0,
787
627
  canManageApiKeys: !0,
788
628
  canViewApiKeys: !0
789
- }, i = {
629
+ }, e.MEMBER_PERMISSIONS = {
790
630
  canViewEntity: !0,
791
631
  canEditEntity: !1,
792
632
  canDeleteEntity: !1,
@@ -797,59 +637,24 @@ function Zr() {
797
637
  canViewProjects: !0,
798
638
  canManageApiKeys: !1,
799
639
  canViewApiKeys: !0
640
+ }, e.ROLE_PERMISSIONS = {
641
+ [t.EntityRole.OWNER]: e.OWNER_PERMISSIONS,
642
+ [t.EntityRole.MANAGER]: e.MANAGER_PERMISSIONS,
643
+ [t.EntityRole.MEMBER]: e.MEMBER_PERMISSIONS
800
644
  };
801
- e.ROLE_PERMISSIONS = {
802
- [t.EntityRole.OWNER]: r,
803
- [t.EntityRole.ADMIN]: n,
804
- [t.EntityRole.MEMBER]: i
805
- };
806
- function a(u) {
807
- return e.ROLE_PERMISSIONS[u];
808
- }
809
- function o(u, c) {
810
- return e.ROLE_PERMISSIONS[u][c];
811
- }
812
- })(Ie)), Ie;
813
- }
814
- var At;
815
- function Jr() {
816
- return At || (At = 1, (function(e) {
817
- var t = Q && Q.__createBinding || (Object.create ? (function(n, i, a, o) {
818
- o === void 0 && (o = a);
819
- var u = Object.getOwnPropertyDescriptor(i, a);
820
- (!u || ("get" in u ? !i.__esModule : u.writable || u.configurable)) && (u = { enumerable: !0, get: function() {
821
- return i[a];
822
- } }), Object.defineProperty(n, o, u);
823
- }) : (function(n, i, a, o) {
824
- o === void 0 && (o = a), n[o] = i[a];
825
- })), r = Q && Q.__exportStar || function(n, i) {
826
- for (var a in n) a !== "default" && !Object.prototype.hasOwnProperty.call(i, a) && t(i, n, a);
827
- };
828
- Object.defineProperty(e, "__esModule", { value: !0 }), r(tr(), e), r(zr(), e), r(Kr(), e), r(Zr(), e);
829
- })(Q)), Q;
830
- }
831
- var vt;
832
- function Tt() {
833
- return vt || (vt = 1, (function(e) {
834
- var t = K && K.__createBinding || (Object.create ? (function(n, i, a, o) {
835
- o === void 0 && (o = a);
836
- var u = Object.getOwnPropertyDescriptor(i, a);
837
- (!u || ("get" in u ? !i.__esModule : u.writable || u.configurable)) && (u = { enumerable: !0, get: function() {
838
- return i[a];
839
- } }), Object.defineProperty(n, o, u);
840
- }) : (function(n, i, a, o) {
841
- o === void 0 && (o = a), n[o] = i[a];
842
- })), r = K && K.__exportStar || function(n, i) {
843
- for (var a in n) a !== "default" && !Object.prototype.hasOwnProperty.call(i, a) && t(i, n, a);
844
- };
845
- Object.defineProperty(e, "__esModule", { value: !0 }), r(Mr(), e), r(Dr(), e), r(Ur(), e), r(Vr(), e), r(Hr(), e), r(Yr(), e), r(Jr(), e);
846
- })(K)), K;
847
- }
848
- var x = {}, we = {}, ce = {}, Ot;
849
- function Xr() {
850
- if (Ot) return ce;
851
- Ot = 1, Object.defineProperty(ce, "__esModule", { value: !0 }), ce.Web3UsernameValidator = void 0;
852
- const e = ne();
645
+ function r(i) {
646
+ return e.ROLE_PERMISSIONS[i];
647
+ }
648
+ function n(i, a) {
649
+ return e.ROLE_PERMISSIONS[i][a];
650
+ }
651
+ })(pe)), pe;
652
+ }
653
+ var oe = {}, Je;
654
+ function ir() {
655
+ if (Je) return oe;
656
+ Je = 1, Object.defineProperty(oe, "__esModule", { value: !0 }), oe.Web3UsernameValidator = void 0;
657
+ const e = ee();
853
658
  class t {
854
659
  /**
855
660
  * Comprehensive address validation for API endpoint
@@ -924,7 +729,7 @@ function Xr() {
924
729
  return this.VALID_SNS_TLDS.includes(o) && this.SNS_NAME_REGEX.test(a) && a.length >= 1;
925
730
  }
926
731
  }
927
- return ce.Web3UsernameValidator = t, t.EVM_REGEX = /^0x[a-fA-F0-9]{40}$/, t.BASE58_REGEX = /^[1-9A-HJ-NP-Za-km-z]+$/, t.ENS_REGEX = /^[a-zA-Z0-9]([a-zA-Z0-9]|(-[a-zA-Z0-9]))*\.(eth|box)$/i, t.SNS_NAME_REGEX = /^[a-zA-Z0-9]([a-zA-Z0-9]|(-[a-zA-Z0-9]))*$/, t.VALID_SNS_TLDS = [
732
+ return oe.Web3UsernameValidator = t, t.EVM_REGEX = /^0x[a-fA-F0-9]{40}$/, t.BASE58_REGEX = /^[1-9A-HJ-NP-Za-km-z]+$/, t.ENS_REGEX = /^[a-zA-Z0-9]([a-zA-Z0-9]|(-[a-zA-Z0-9]))*\.(eth|box)$/i, t.SNS_NAME_REGEX = /^[a-zA-Z0-9]([a-zA-Z0-9]|(-[a-zA-Z0-9]))*$/, t.VALID_SNS_TLDS = [
928
733
  "sol",
929
734
  "abc",
930
735
  "backpack",
@@ -938,19 +743,19 @@ function Xr() {
938
743
  "shdw",
939
744
  "stepn",
940
745
  "web3"
941
- ], ce;
746
+ ], oe;
942
747
  }
943
- var Me = {}, Rt;
944
- function Qr() {
945
- return Rt || (Rt = 1, (function(e) {
748
+ var Ae = {}, Xe;
749
+ function or() {
750
+ return Xe || (Xe = 1, (function(e) {
946
751
  Object.defineProperty(e, "__esModule", { value: !0 }), e.parseJson = e.createAssertion = e.isUrl = e.isEmail = e.isValidDate = e.isErrorResponse = e.isSuccessResponse = e.isApiResponse = e.optional = e.validateArray = e.hasRequiredProperties = e.isNullish = e.isArray = e.isObject = e.isBoolean = e.isNumber = e.isString = e.createValidator = void 0;
947
- const t = (E, T) => (N) => {
752
+ const t = (E, R) => (T) => {
948
753
  try {
949
- return E(N) ? { isValid: !0, data: N } : { isValid: !1, error: `Invalid ${T}`, data: null };
950
- } catch (M) {
754
+ return E(T) ? { isValid: !0, data: T } : { isValid: !1, error: `Invalid ${R}`, data: null };
755
+ } catch (C) {
951
756
  return {
952
757
  isValid: !1,
953
- error: `Validation error for ${T}: ${M instanceof Error ? M.message : "Unknown error"}`,
758
+ error: `Validation error for ${R}: ${C instanceof Error ? C.message : "Unknown error"}`,
954
759
  data: null
955
760
  };
956
761
  }
@@ -966,25 +771,25 @@ function Qr() {
966
771
  e.isObject = a;
967
772
  const o = (E) => Array.isArray(E);
968
773
  e.isArray = o;
969
- const u = (E) => E == null;
970
- e.isNullish = u;
971
- const c = (E, T) => (0, e.isObject)(E) ? T.every((N) => N in E) : !1;
774
+ const d = (E) => E == null;
775
+ e.isNullish = d;
776
+ const c = (E, R) => (0, e.isObject)(E) ? R.every((T) => T in E) : !1;
972
777
  e.hasRequiredProperties = c;
973
- const s = (E, T) => (0, e.isArray)(E) ? E.every(T) : !1;
974
- e.validateArray = s;
975
- const f = (E) => (T) => T === void 0 || E(T);
778
+ const l = (E, R) => (0, e.isArray)(E) ? E.every(R) : !1;
779
+ e.validateArray = l;
780
+ const f = (E) => (R) => R === void 0 || E(R);
976
781
  e.optional = f;
977
- const l = (E) => (0, e.isObject)(E) && (0, e.isBoolean)(E.success);
978
- e.isApiResponse = l;
979
- const m = (E, T) => !(0, e.isApiResponse)(E) || !E.success ? !1 : T && "data" in E ? T(E.data) : !0;
782
+ const u = (E) => (0, e.isObject)(E) && (0, e.isBoolean)(E.success);
783
+ e.isApiResponse = u;
784
+ const m = (E, R) => !(0, e.isApiResponse)(E) || !E.success ? !1 : R && "data" in E ? R(E.data) : !0;
980
785
  e.isSuccessResponse = m;
981
786
  const b = (E) => (0, e.isApiResponse)(E) && !E.success && "error" in E && (0, e.isString)(E.error);
982
787
  e.isErrorResponse = b;
983
788
  const S = (E) => {
984
789
  if (!(0, e.isString)(E))
985
790
  return !1;
986
- const T = new Date(E);
987
- return !isNaN(T.getTime());
791
+ const R = new Date(E);
792
+ return !isNaN(R.getTime());
988
793
  };
989
794
  e.isValidDate = S;
990
795
  const p = (E) => (0, e.isString)(E) ? /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(E) : !1;
@@ -999,105 +804,57 @@ function Qr() {
999
804
  }
1000
805
  };
1001
806
  e.isUrl = g;
1002
- const A = (E, T) => (N, M = T) => {
1003
- if (!E(N))
1004
- throw new TypeError(`Invalid ${M}: expected ${T}`);
807
+ const A = (E, R) => (T, C = R) => {
808
+ if (!E(T))
809
+ throw new TypeError(`Invalid ${C}: expected ${R}`);
1005
810
  };
1006
811
  e.createAssertion = A;
1007
- const y = (E, T) => {
812
+ const y = (E, R) => {
1008
813
  try {
1009
- const N = JSON.parse(E);
1010
- return T ? T(N) ? { isValid: !0, data: N } : {
814
+ const T = JSON.parse(E);
815
+ return R ? R(T) ? { isValid: !0, data: T } : {
1011
816
  isValid: !1,
1012
817
  error: "Parsed JSON does not match expected type",
1013
818
  data: null
1014
- } : { isValid: !0, data: N };
1015
- } catch (N) {
819
+ } : { isValid: !0, data: T };
820
+ } catch (T) {
1016
821
  return {
1017
822
  isValid: !1,
1018
- error: `JSON parse error: ${N instanceof Error ? N.message : "Unknown error"}`,
823
+ error: `JSON parse error: ${T instanceof Error ? T.message : "Unknown error"}`,
1019
824
  data: null
1020
825
  };
1021
826
  }
1022
827
  };
1023
828
  e.parseJson = y;
1024
- })(Me)), Me;
829
+ })(Ae)), Ae;
1025
830
  }
1026
- var Nt;
1027
- function xr() {
1028
- return Nt || (Nt = 1, (function(e) {
1029
- Object.defineProperty(e, "__esModule", { value: !0 }), e.validateArray = e.parseJson = e.optional = e.isValidDate = e.isUrl = e.isSuccessResponse = e.isString = e.isObject = e.isNumber = e.isNullish = e.isErrorResponse = e.isEmail = e.isBoolean = e.isArray = e.isApiResponse = e.hasRequiredProperties = e.createValidator = e.createAssertion = e.Web3UsernameValidator = void 0;
1030
- var t = Xr();
1031
- Object.defineProperty(e, "Web3UsernameValidator", { enumerable: !0, get: function() {
1032
- return t.Web3UsernameValidator;
1033
- } });
1034
- var r = Qr();
1035
- Object.defineProperty(e, "createAssertion", { enumerable: !0, get: function() {
1036
- return r.createAssertion;
1037
- } }), Object.defineProperty(e, "createValidator", { enumerable: !0, get: function() {
1038
- return r.createValidator;
1039
- } }), Object.defineProperty(e, "hasRequiredProperties", { enumerable: !0, get: function() {
1040
- return r.hasRequiredProperties;
1041
- } }), Object.defineProperty(e, "isApiResponse", { enumerable: !0, get: function() {
1042
- return r.isApiResponse;
1043
- } }), Object.defineProperty(e, "isArray", { enumerable: !0, get: function() {
1044
- return r.isArray;
1045
- } }), Object.defineProperty(e, "isBoolean", { enumerable: !0, get: function() {
1046
- return r.isBoolean;
1047
- } }), Object.defineProperty(e, "isEmail", { enumerable: !0, get: function() {
1048
- return r.isEmail;
1049
- } }), Object.defineProperty(e, "isErrorResponse", { enumerable: !0, get: function() {
1050
- return r.isErrorResponse;
1051
- } }), Object.defineProperty(e, "isNullish", { enumerable: !0, get: function() {
1052
- return r.isNullish;
1053
- } }), Object.defineProperty(e, "isNumber", { enumerable: !0, get: function() {
1054
- return r.isNumber;
1055
- } }), Object.defineProperty(e, "isObject", { enumerable: !0, get: function() {
1056
- return r.isObject;
1057
- } }), Object.defineProperty(e, "isString", { enumerable: !0, get: function() {
1058
- return r.isString;
1059
- } }), Object.defineProperty(e, "isSuccessResponse", { enumerable: !0, get: function() {
1060
- return r.isSuccessResponse;
1061
- } }), Object.defineProperty(e, "isUrl", { enumerable: !0, get: function() {
1062
- return r.isUrl;
1063
- } }), Object.defineProperty(e, "isValidDate", { enumerable: !0, get: function() {
1064
- return r.isValidDate;
1065
- } }), Object.defineProperty(e, "optional", { enumerable: !0, get: function() {
1066
- return r.optional;
1067
- } }), Object.defineProperty(e, "parseJson", { enumerable: !0, get: function() {
1068
- return r.parseJson;
1069
- } }), Object.defineProperty(e, "validateArray", { enumerable: !0, get: function() {
1070
- return r.validateArray;
1071
- } });
1072
- })(we)), we;
1073
- }
1074
- var Le = {}, j = {}, _t;
1075
- function $r() {
1076
- if (_t) return j;
1077
- _t = 1, Object.defineProperty(j, "__esModule", { value: !0 }), j.createMultiChainId = e, j.createUserMultiChainId = t, j.createChainStatsId = r, j.createDelegationId = n, j.normalizeAddress = i, j.formatBigInt = a, j.isZeroAddress = o, j.isTestNet = u, j.validateEventArgs = c;
1078
- function e(s, f, l) {
1079
- return `${s}-${f}-${l}`;
831
+ var k = {}, Qe;
832
+ function ur() {
833
+ if (Qe) return k;
834
+ Qe = 1, Object.defineProperty(k, "__esModule", { value: !0 }), k.createMultiChainId = e, k.createUserMultiChainId = t, k.createChainStatsId = r, k.createDelegationId = n, k.normalizeAddress = i, k.formatBigInt = a, k.isZeroAddress = o, k.isTestNet = d, k.validateEventArgs = c;
835
+ function e(l, f, u) {
836
+ return `${l}-${f}-${u}`;
1080
837
  }
1081
- function t(s, f) {
1082
- return `${s}-${f.toLowerCase()}`;
838
+ function t(l, f) {
839
+ return `${l}-${f.toLowerCase()}`;
1083
840
  }
1084
- function r(s) {
1085
- return `${s}-global`;
841
+ function r(l) {
842
+ return `${l}-global`;
1086
843
  }
1087
- function n(s, f) {
1088
- return `${s.toLowerCase()}-${f}`;
844
+ function n(l, f) {
845
+ return `${l.toLowerCase()}-${f}`;
1089
846
  }
1090
- function i(s) {
1091
- return s.toLowerCase();
847
+ function i(l) {
848
+ return l.toLowerCase();
1092
849
  }
1093
- function a(s, f = 18) {
1094
- const l = BigInt(10 ** f), m = s / l, b = s % l;
850
+ function a(l, f = 18) {
851
+ const u = BigInt(10 ** f), m = l / u, b = l % u;
1095
852
  return b === 0n ? m.toString() : `${m}.${b.toString().padStart(f, "0").replace(/0+$/, "")}`;
1096
853
  }
1097
- function o(s) {
1098
- return s.toLowerCase() === "0x0000000000000000000000000000000000000000";
854
+ function o(l) {
855
+ return l.toLowerCase() === "0x0000000000000000000000000000000000000000";
1099
856
  }
1100
- function u(s) {
857
+ function d(l) {
1101
858
  const f = /* @__PURE__ */ new Set([
1102
859
  31337,
1103
860
  // Hardhat (local development)
@@ -1115,7 +872,7 @@ function $r() {
1115
872
  // Base Sepolia (if configured)
1116
873
  43113
1117
874
  // Avalanche Fuji (if configured)
1118
- ]), l = /* @__PURE__ */ new Set([
875
+ ]), u = /* @__PURE__ */ new Set([
1119
876
  -102,
1120
877
  // Solana Devnet
1121
878
  -103,
@@ -1123,84 +880,32 @@ function $r() {
1123
880
  -104
1124
881
  // Solana Localnet
1125
882
  ]);
1126
- return f.has(s) || l.has(s);
883
+ return f.has(l) || u.has(l);
1127
884
  }
1128
- function c(s, f) {
1129
- for (const l of f)
1130
- if (s[l] === void 0 || s[l] === null)
1131
- return console.error(`❌ Missing required field: ${String(l)}`), !1;
885
+ function c(l, f) {
886
+ for (const u of f)
887
+ if (l[u] === void 0 || l[u] === null)
888
+ return console.error(`❌ Missing required field: ${String(u)}`), !1;
1132
889
  return !0;
1133
890
  }
1134
- return j;
891
+ return k;
1135
892
  }
1136
- var Ct;
1137
- function en() {
1138
- return Ct || (Ct = 1, (function(e) {
1139
- Object.defineProperty(e, "__esModule", { value: !0 }), e.validateEventArgs = e.normalizeAddress = e.isZeroAddress = e.isTestNet = e.formatBigInt = e.createUserMultiChainId = e.createMultiChainId = e.createDelegationId = e.createChainStatsId = e.isSolanaAddress = e.isEvmAddress = e.parseEmailAddress = e.isValidWalletAddress = e.isValidSignature = e.isSNSName = e.isENSName = e.getChainDisplayName = e.getAddressType = e.formatWalletAddress = e.AddressType = void 0;
1140
- var t = er();
1141
- Object.defineProperty(e, "AddressType", { enumerable: !0, get: function() {
1142
- return t.AddressType;
1143
- } }), Object.defineProperty(e, "formatWalletAddress", { enumerable: !0, get: function() {
1144
- return t.formatWalletAddress;
1145
- } }), Object.defineProperty(e, "getAddressType", { enumerable: !0, get: function() {
1146
- return t.getAddressType;
1147
- } }), Object.defineProperty(e, "getChainDisplayName", { enumerable: !0, get: function() {
1148
- return t.getChainDisplayName;
1149
- } }), Object.defineProperty(e, "isENSName", { enumerable: !0, get: function() {
1150
- return t.isENSName;
1151
- } }), Object.defineProperty(e, "isSNSName", { enumerable: !0, get: function() {
1152
- return t.isSNSName;
1153
- } }), Object.defineProperty(e, "isValidSignature", { enumerable: !0, get: function() {
1154
- return t.isValidSignature;
1155
- } }), Object.defineProperty(e, "isValidWalletAddress", { enumerable: !0, get: function() {
1156
- return t.isValidWalletAddress;
1157
- } }), Object.defineProperty(e, "parseEmailAddress", { enumerable: !0, get: function() {
1158
- return t.parseEmailAddress;
1159
- } });
1160
- var r = Ge();
1161
- Object.defineProperty(e, "isEvmAddress", { enumerable: !0, get: function() {
1162
- return r.isEvmAddress;
1163
- } }), Object.defineProperty(e, "isSolanaAddress", { enumerable: !0, get: function() {
1164
- return r.isSolanaAddress;
1165
- } });
1166
- var n = $r();
1167
- Object.defineProperty(e, "createChainStatsId", { enumerable: !0, get: function() {
1168
- return n.createChainStatsId;
1169
- } }), Object.defineProperty(e, "createDelegationId", { enumerable: !0, get: function() {
1170
- return n.createDelegationId;
1171
- } }), Object.defineProperty(e, "createMultiChainId", { enumerable: !0, get: function() {
1172
- return n.createMultiChainId;
1173
- } }), Object.defineProperty(e, "createUserMultiChainId", { enumerable: !0, get: function() {
1174
- return n.createUserMultiChainId;
1175
- } }), Object.defineProperty(e, "formatBigInt", { enumerable: !0, get: function() {
1176
- return n.formatBigInt;
1177
- } }), Object.defineProperty(e, "isTestNet", { enumerable: !0, get: function() {
1178
- return n.isTestNet;
1179
- } }), Object.defineProperty(e, "isZeroAddress", { enumerable: !0, get: function() {
1180
- return n.isZeroAddress;
1181
- } }), Object.defineProperty(e, "normalizeAddress", { enumerable: !0, get: function() {
1182
- return n.normalizeAddress;
1183
- } }), Object.defineProperty(e, "validateEventArgs", { enumerable: !0, get: function() {
1184
- return n.validateEventArgs;
1185
- } });
1186
- })(Le)), Le;
1187
- }
1188
- var De = {}, U = {}, Pt;
1189
- function tn() {
1190
- if (Pt) return U;
1191
- Pt = 1, Object.defineProperty(U, "__esModule", { value: !0 }), U.generateAuthMessage = t, U.isAuthExpired = r, U.getAuthStatusText = n, U.canAccessProtectedFeatures = i, U.isAuthStatusConnected = a, U.generateNonce = o, U.extractNonceFromMessage = u, U.isValidNonce = c;
1192
- const e = ne();
1193
- function t(s, f) {
1194
- const l = f || `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
1195
- return `Authenticate with ${s}
1196
- Nonce: ${l}`;
1197
- }
1198
- function r(s, f = 24) {
1199
- const l = new Date(s.getTime() + f * 60 * 60 * 1e3);
1200
- return /* @__PURE__ */ new Date() > l;
1201
- }
1202
- function n(s) {
1203
- switch (s) {
893
+ var W = {}, xe;
894
+ function lr() {
895
+ if (xe) return W;
896
+ xe = 1, Object.defineProperty(W, "__esModule", { value: !0 }), W.generateAuthMessage = t, W.isAuthExpired = r, W.getAuthStatusText = n, W.canAccessProtectedFeatures = i, W.isAuthStatusConnected = a, W.generateNonce = o, W.extractNonceFromMessage = d, W.isValidNonce = c;
897
+ const e = ee();
898
+ function t(l, f) {
899
+ const u = f || `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
900
+ return `Authenticate with ${l}
901
+ Nonce: ${u}`;
902
+ }
903
+ function r(l, f = 24) {
904
+ const u = new Date(l.getTime() + f * 60 * 60 * 1e3);
905
+ return /* @__PURE__ */ new Date() > u;
906
+ }
907
+ function n(l) {
908
+ switch (l) {
1204
909
  case e.AuthStatus.DISCONNECTED:
1205
910
  return "Not connected";
1206
911
  case e.AuthStatus.CONNECTED:
@@ -1211,62 +916,54 @@ Nonce: ${l}`;
1211
916
  return "Unknown status";
1212
917
  }
1213
918
  }
1214
- function i(s) {
1215
- return s === e.AuthStatus.VERIFIED;
919
+ function i(l) {
920
+ return l === e.AuthStatus.VERIFIED;
1216
921
  }
1217
- function a(s) {
1218
- return s === e.AuthStatus.CONNECTED || s === e.AuthStatus.VERIFIED;
922
+ function a(l) {
923
+ return l === e.AuthStatus.CONNECTED || l === e.AuthStatus.VERIFIED;
1219
924
  }
1220
925
  function o() {
1221
926
  return `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
1222
927
  }
1223
- function u(s) {
1224
- const f = s.match(/Nonce:\s*(.+)$/m);
928
+ function d(l) {
929
+ const f = l.match(/Nonce:\s*(.+)$/m);
1225
930
  return f ? f[1].trim() : void 0;
1226
931
  }
1227
- function c(s) {
1228
- if (!s || typeof s != "string" || s.length < 10)
932
+ function c(l) {
933
+ if (!l || typeof l != "string" || l.length < 10)
1229
934
  return !1;
1230
- const f = s.split("-");
935
+ const f = l.split("-");
1231
936
  if (f.length >= 2) {
1232
- const l = parseInt(f[0], 10);
1233
- if (!isNaN(l)) {
937
+ const u = parseInt(f[0], 10);
938
+ if (!isNaN(u)) {
1234
939
  const m = Date.now() - 864e5;
1235
- if (l < m)
940
+ if (u < m)
1236
941
  return !1;
1237
942
  }
1238
943
  }
1239
944
  return !0;
1240
945
  }
1241
- return U;
946
+ return W;
1242
947
  }
1243
- var It;
1244
- function rn() {
1245
- return It || (It = 1, (function(e) {
1246
- Object.defineProperty(e, "__esModule", { value: !0 }), e.isValidNonce = e.isAuthStatusConnected = e.isAuthExpired = e.getAuthStatusText = e.generateNonce = e.generateAuthMessage = e.extractNonceFromMessage = e.canAccessProtectedFeatures = void 0;
1247
- var t = tn();
1248
- Object.defineProperty(e, "canAccessProtectedFeatures", { enumerable: !0, get: function() {
1249
- return t.canAccessProtectedFeatures;
1250
- } }), Object.defineProperty(e, "extractNonceFromMessage", { enumerable: !0, get: function() {
1251
- return t.extractNonceFromMessage;
1252
- } }), Object.defineProperty(e, "generateAuthMessage", { enumerable: !0, get: function() {
1253
- return t.generateAuthMessage;
1254
- } }), Object.defineProperty(e, "generateNonce", { enumerable: !0, get: function() {
1255
- return t.generateNonce;
1256
- } }), Object.defineProperty(e, "getAuthStatusText", { enumerable: !0, get: function() {
1257
- return t.getAuthStatusText;
1258
- } }), Object.defineProperty(e, "isAuthExpired", { enumerable: !0, get: function() {
1259
- return t.isAuthExpired;
1260
- } }), Object.defineProperty(e, "isAuthStatusConnected", { enumerable: !0, get: function() {
1261
- return t.isAuthStatusConnected;
1262
- } }), Object.defineProperty(e, "isValidNonce", { enumerable: !0, get: function() {
1263
- return t.isValidNonce;
1264
- } });
1265
- })(De)), De;
948
+ var $ = {}, $e;
949
+ function sr() {
950
+ if ($e) return $;
951
+ $e = 1, Object.defineProperty($, "__esModule", { value: !0 }), $.parseAdminEmails = e, $.isAdminEmail = t, $.createAdminChecker = r;
952
+ function e(n) {
953
+ return n ? n.split(",").map((i) => i.trim().toLowerCase()).filter((i) => i.length > 0 && i.includes("@")) : [];
954
+ }
955
+ function t(n, i) {
956
+ return n ? i.includes(n.toLowerCase()) : !1;
957
+ }
958
+ function r(n) {
959
+ const i = e(n);
960
+ return (a) => t(a, i);
961
+ }
962
+ return $;
1266
963
  }
1267
- var je = {}, Ue = {}, wt;
1268
- function nn() {
1269
- return wt || (wt = 1, (function(e) {
964
+ var Re = {}, et;
965
+ function cr() {
966
+ return et || (et = 1, (function(e) {
1270
967
  Object.defineProperty(e, "__esModule", { value: !0 }), e.CLAIM_PERIOD_DAYS = e.USDC_DECIMALS = void 0, e.formatUSDC = t, e.parseUSDC = r, e.USDC_DECIMALS = 6, e.CLAIM_PERIOD_DAYS = 60;
1271
968
  function t(n) {
1272
969
  return (n / Math.pow(10, e.USDC_DECIMALS)).toFixed(2);
@@ -1274,24 +971,24 @@ function nn() {
1274
971
  function r(n) {
1275
972
  return Math.floor(parseFloat(n) * Math.pow(10, e.USDC_DECIMALS));
1276
973
  }
1277
- })(Ue)), Ue;
974
+ })(Re)), Re;
1278
975
  }
1279
- var W = {}, Mt;
1280
- function an() {
1281
- if (Mt) return W;
1282
- Mt = 1, Object.defineProperty(W, "__esModule", { value: !0 }), W.formatEmailDate = e, W.formatTimestamp = t, W.formatRelativeTime = r, W.parseDate = n, W.isDateInRange = i, W.addDays = a, W.addHours = o;
1283
- function e(u) {
1284
- const c = typeof u == "string" ? new Date(u) : u;
976
+ var G = {}, tt;
977
+ function dr() {
978
+ if (tt) return G;
979
+ tt = 1, Object.defineProperty(G, "__esModule", { value: !0 }), G.formatEmailDate = e, G.formatTimestamp = t, G.formatRelativeTime = r, G.parseDate = n, G.isDateInRange = i, G.addDays = a, G.addHours = o;
980
+ function e(d) {
981
+ const c = typeof d == "string" ? new Date(d) : d;
1285
982
  if (isNaN(c.getTime()))
1286
983
  return "Invalid date";
1287
- const s = /* @__PURE__ */ new Date(), f = s.getTime() - c.getTime(), l = Math.floor(f / (1e3 * 60 * 60 * 24));
1288
- return l === 0 ? c.toLocaleTimeString("en-US", {
984
+ const l = /* @__PURE__ */ new Date(), f = l.getTime() - c.getTime(), u = Math.floor(f / (1e3 * 60 * 60 * 24));
985
+ return u === 0 ? c.toLocaleTimeString("en-US", {
1289
986
  hour: "numeric",
1290
987
  minute: "2-digit",
1291
988
  hour12: !0
1292
- }) : l === 1 ? "Yesterday" : l < 7 ? c.toLocaleDateString("en-US", {
989
+ }) : u === 1 ? "Yesterday" : u < 7 ? c.toLocaleDateString("en-US", {
1293
990
  weekday: "long"
1294
- }) : c.getFullYear() === s.getFullYear() ? c.toLocaleDateString("en-US", {
991
+ }) : c.getFullYear() === l.getFullYear() ? c.toLocaleDateString("en-US", {
1295
992
  month: "short",
1296
993
  day: "numeric"
1297
994
  }) : c.toLocaleDateString("en-US", {
@@ -1300,41 +997,41 @@ function an() {
1300
997
  day: "numeric"
1301
998
  });
1302
999
  }
1303
- function t(u) {
1304
- return new Date(u).toISOString();
1000
+ function t(d) {
1001
+ return new Date(d).toISOString();
1305
1002
  }
1306
- function r(u) {
1307
- const c = typeof u == "string" || typeof u == "number" ? new Date(u) : u;
1003
+ function r(d) {
1004
+ const c = typeof d == "string" || typeof d == "number" ? new Date(d) : d;
1308
1005
  if (isNaN(c.getTime()))
1309
1006
  return "Invalid date";
1310
- const f = (/* @__PURE__ */ new Date()).getTime() - c.getTime(), l = Math.floor(f / 1e3), m = Math.floor(l / 60), b = Math.floor(m / 60), S = Math.floor(b / 24), p = Math.floor(S / 7), g = Math.floor(S / 30), A = Math.floor(S / 365);
1311
- return l < 60 ? "just now" : m < 60 ? m === 1 ? "1 minute ago" : `${m} minutes ago` : b < 24 ? b === 1 ? "1 hour ago" : `${b} hours ago` : S < 7 ? S === 1 ? "1 day ago" : `${S} days ago` : p < 4 ? p === 1 ? "1 week ago" : `${p} weeks ago` : g < 12 ? g === 1 ? "1 month ago" : `${g} months ago` : A === 1 ? "1 year ago" : `${A} years ago`;
1007
+ const f = (/* @__PURE__ */ new Date()).getTime() - c.getTime(), u = Math.floor(f / 1e3), m = Math.floor(u / 60), b = Math.floor(m / 60), S = Math.floor(b / 24), p = Math.floor(S / 7), g = Math.floor(S / 30), A = Math.floor(S / 365);
1008
+ return u < 60 ? "just now" : m < 60 ? m === 1 ? "1 minute ago" : `${m} minutes ago` : b < 24 ? b === 1 ? "1 hour ago" : `${b} hours ago` : S < 7 ? S === 1 ? "1 day ago" : `${S} days ago` : p < 4 ? p === 1 ? "1 week ago" : `${p} weeks ago` : g < 12 ? g === 1 ? "1 month ago" : `${g} months ago` : A === 1 ? "1 year ago" : `${A} years ago`;
1312
1009
  }
1313
- function n(u) {
1010
+ function n(d) {
1314
1011
  try {
1315
- const c = new Date(u);
1012
+ const c = new Date(d);
1316
1013
  return isNaN(c.getTime()) ? null : c;
1317
1014
  } catch {
1318
1015
  return null;
1319
1016
  }
1320
1017
  }
1321
- function i(u, c, s) {
1322
- return u >= c && u <= s;
1018
+ function i(d, c, l) {
1019
+ return d >= c && d <= l;
1323
1020
  }
1324
- function a(u, c) {
1325
- const s = new Date(u);
1326
- return s.setDate(s.getDate() + c), s;
1021
+ function a(d, c) {
1022
+ const l = new Date(d);
1023
+ return l.setDate(l.getDate() + c), l;
1327
1024
  }
1328
- function o(u, c) {
1329
- const s = new Date(u);
1330
- return s.setHours(s.getHours() + c), s;
1025
+ function o(d, c) {
1026
+ const l = new Date(d);
1027
+ return l.setHours(l.getHours() + c), l;
1331
1028
  }
1332
- return W;
1029
+ return G;
1333
1030
  }
1334
- var _ = {}, Lt;
1335
- function on() {
1336
- if (Lt) return _;
1337
- Lt = 1, Object.defineProperty(_, "__esModule", { value: !0 }), _.truncate = e, _.capitalize = t, _.toTitleCase = r, _.toKebabCase = n, _.toCamelCase = i, _.toSnakeCase = a, _.normalizeWhitespace = o, _.isBlank = u, _.isNotBlank = c, _.escapeHtml = s, _.stripHtml = f, _.getInitials = l, _.formatBytes = m, _.randomString = b, _.pluralize = S, _.formatNumber = p;
1031
+ var P = {}, rt;
1032
+ function fr() {
1033
+ if (rt) return P;
1034
+ rt = 1, Object.defineProperty(P, "__esModule", { value: !0 }), P.truncate = e, P.capitalize = t, P.toTitleCase = r, P.toKebabCase = n, P.toCamelCase = i, P.toSnakeCase = a, P.normalizeWhitespace = o, P.isBlank = d, P.isNotBlank = c, P.escapeHtml = l, P.stripHtml = f, P.getInitials = u, P.formatBytes = m, P.randomString = b, P.pluralize = S, P.formatNumber = p;
1338
1035
  function e(g, A, y = "...") {
1339
1036
  return !g || g.length <= A ? g : g.slice(0, A - y.length) + y;
1340
1037
  }
@@ -1356,13 +1053,13 @@ function on() {
1356
1053
  function o(g) {
1357
1054
  return g && g.replace(/\s+/g, " ").trim();
1358
1055
  }
1359
- function u(g) {
1056
+ function d(g) {
1360
1057
  return !g || g.trim().length === 0;
1361
1058
  }
1362
1059
  function c(g) {
1363
- return !u(g);
1060
+ return !d(g);
1364
1061
  }
1365
- function s(g) {
1062
+ function l(g) {
1366
1063
  if (!g)
1367
1064
  return g;
1368
1065
  const A = {
@@ -1377,14 +1074,14 @@ function on() {
1377
1074
  function f(g) {
1378
1075
  return g && g.replace(/<[^>]*>/g, "");
1379
1076
  }
1380
- function l(g, A = 2) {
1381
- return g ? g.trim().split(/\s+/).slice(0, A).map((T) => T.charAt(0).toUpperCase()).join("") : "";
1077
+ function u(g, A = 2) {
1078
+ return g ? g.trim().split(/\s+/).slice(0, A).map((R) => R.charAt(0).toUpperCase()).join("") : "";
1382
1079
  }
1383
1080
  function m(g, A = 2) {
1384
1081
  if (g === 0)
1385
1082
  return "0 Bytes";
1386
- const y = 1024, E = A < 0 ? 0 : A, T = ["Bytes", "KB", "MB", "GB", "TB", "PB"], N = Math.floor(Math.log(g) / Math.log(y));
1387
- return parseFloat((g / Math.pow(y, N)).toFixed(E)) + " " + T[N];
1083
+ const y = 1024, E = A < 0 ? 0 : A, R = ["Bytes", "KB", "MB", "GB", "TB", "PB"], T = Math.floor(Math.log(g) / Math.log(y));
1084
+ return parseFloat((g / Math.pow(y, T)).toFixed(E)) + " " + R[T];
1388
1085
  }
1389
1086
  function b(g, A = "alphanumeric") {
1390
1087
  let y;
@@ -1405,7 +1102,7 @@ function on() {
1405
1102
  y = A;
1406
1103
  }
1407
1104
  let E = "";
1408
- for (let T = 0; T < g; T++)
1105
+ for (let R = 0; R < g; R++)
1409
1106
  E += y.charAt(Math.floor(Math.random() * y.length));
1410
1107
  return E;
1411
1108
  }
@@ -1415,78 +1112,12 @@ function on() {
1415
1112
  function p(g) {
1416
1113
  return g.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
1417
1114
  }
1418
- return _;
1419
- }
1420
- var Dt;
1421
- function un() {
1422
- return Dt || (Dt = 1, (function(e) {
1423
- Object.defineProperty(e, "__esModule", { value: !0 }), e.truncate = e.toTitleCase = e.toSnakeCase = e.toKebabCase = e.toCamelCase = e.stripHtml = e.randomString = e.pluralize = e.normalizeWhitespace = e.isNotBlank = e.isBlank = e.getInitials = e.formatNumber = e.formatBytes = e.escapeHtml = e.capitalize = e.parseDate = e.isDateInRange = e.formatTimestamp = e.formatRelativeTime = e.formatEmailDate = e.addHours = e.addDays = e.parseUSDC = e.formatUSDC = e.USDC_DECIMALS = e.CLAIM_PERIOD_DAYS = void 0;
1424
- var t = nn();
1425
- Object.defineProperty(e, "CLAIM_PERIOD_DAYS", { enumerable: !0, get: function() {
1426
- return t.CLAIM_PERIOD_DAYS;
1427
- } }), Object.defineProperty(e, "USDC_DECIMALS", { enumerable: !0, get: function() {
1428
- return t.USDC_DECIMALS;
1429
- } }), Object.defineProperty(e, "formatUSDC", { enumerable: !0, get: function() {
1430
- return t.formatUSDC;
1431
- } }), Object.defineProperty(e, "parseUSDC", { enumerable: !0, get: function() {
1432
- return t.parseUSDC;
1433
- } });
1434
- var r = an();
1435
- Object.defineProperty(e, "addDays", { enumerable: !0, get: function() {
1436
- return r.addDays;
1437
- } }), Object.defineProperty(e, "addHours", { enumerable: !0, get: function() {
1438
- return r.addHours;
1439
- } }), Object.defineProperty(e, "formatEmailDate", { enumerable: !0, get: function() {
1440
- return r.formatEmailDate;
1441
- } }), Object.defineProperty(e, "formatRelativeTime", { enumerable: !0, get: function() {
1442
- return r.formatRelativeTime;
1443
- } }), Object.defineProperty(e, "formatTimestamp", { enumerable: !0, get: function() {
1444
- return r.formatTimestamp;
1445
- } }), Object.defineProperty(e, "isDateInRange", { enumerable: !0, get: function() {
1446
- return r.isDateInRange;
1447
- } }), Object.defineProperty(e, "parseDate", { enumerable: !0, get: function() {
1448
- return r.parseDate;
1449
- } });
1450
- var n = on();
1451
- Object.defineProperty(e, "capitalize", { enumerable: !0, get: function() {
1452
- return n.capitalize;
1453
- } }), Object.defineProperty(e, "escapeHtml", { enumerable: !0, get: function() {
1454
- return n.escapeHtml;
1455
- } }), Object.defineProperty(e, "formatBytes", { enumerable: !0, get: function() {
1456
- return n.formatBytes;
1457
- } }), Object.defineProperty(e, "formatNumber", { enumerable: !0, get: function() {
1458
- return n.formatNumber;
1459
- } }), Object.defineProperty(e, "getInitials", { enumerable: !0, get: function() {
1460
- return n.getInitials;
1461
- } }), Object.defineProperty(e, "isBlank", { enumerable: !0, get: function() {
1462
- return n.isBlank;
1463
- } }), Object.defineProperty(e, "isNotBlank", { enumerable: !0, get: function() {
1464
- return n.isNotBlank;
1465
- } }), Object.defineProperty(e, "normalizeWhitespace", { enumerable: !0, get: function() {
1466
- return n.normalizeWhitespace;
1467
- } }), Object.defineProperty(e, "pluralize", { enumerable: !0, get: function() {
1468
- return n.pluralize;
1469
- } }), Object.defineProperty(e, "randomString", { enumerable: !0, get: function() {
1470
- return n.randomString;
1471
- } }), Object.defineProperty(e, "stripHtml", { enumerable: !0, get: function() {
1472
- return n.stripHtml;
1473
- } }), Object.defineProperty(e, "toCamelCase", { enumerable: !0, get: function() {
1474
- return n.toCamelCase;
1475
- } }), Object.defineProperty(e, "toKebabCase", { enumerable: !0, get: function() {
1476
- return n.toKebabCase;
1477
- } }), Object.defineProperty(e, "toSnakeCase", { enumerable: !0, get: function() {
1478
- return n.toSnakeCase;
1479
- } }), Object.defineProperty(e, "toTitleCase", { enumerable: !0, get: function() {
1480
- return n.toTitleCase;
1481
- } }), Object.defineProperty(e, "truncate", { enumerable: !0, get: function() {
1482
- return n.truncate;
1483
- } });
1484
- })(je)), je;
1115
+ return P;
1485
1116
  }
1486
- var ke = {}, O = {}, jt;
1487
- function ln() {
1488
- if (jt) return O;
1489
- jt = 1, Object.defineProperty(O, "__esModule", { value: !0 }), O.Z_INDEX = O.ANIMATION = O.NETWORK_IDS = O.WALLET_NAMES = O.CONTACT_INFO = O.ROUTES = O.SUCCESS_MESSAGES = O.ERROR_MESSAGES = O.TIME_FORMAT = O.SUBSCRIPTION_TIERS = O.EMAIL_CONFIG = O.STORAGE_KEYS = O.CHAIN_TYPE = O.AUTH_STATUS = O.API_RETRY_DELAY = O.API_RETRY_ATTEMPTS = O.API_TIMEOUT = void 0;
1117
+ var O = {}, nt;
1118
+ function mr() {
1119
+ if (nt) return O;
1120
+ nt = 1, Object.defineProperty(O, "__esModule", { value: !0 }), O.Z_INDEX = O.ANIMATION = O.NETWORK_IDS = O.WALLET_NAMES = O.CONTACT_INFO = O.ROUTES = O.SUCCESS_MESSAGES = O.ERROR_MESSAGES = O.TIME_FORMAT = O.SUBSCRIPTION_TIERS = O.EMAIL_CONFIG = O.STORAGE_KEYS = O.CHAIN_TYPE = O.AUTH_STATUS = O.API_RETRY_DELAY = O.API_RETRY_ATTEMPTS = O.API_TIMEOUT = void 0;
1490
1121
  const e = 3e4;
1491
1122
  O.API_TIMEOUT = e;
1492
1123
  const t = 3;
@@ -1525,13 +1156,13 @@ function ln() {
1525
1156
  // 5 minutes
1526
1157
  };
1527
1158
  O.EMAIL_CONFIG = o;
1528
- const u = {
1159
+ const d = {
1529
1160
  FREE: "free",
1530
1161
  BASIC: "basic",
1531
1162
  PRO: "pro",
1532
1163
  ENTERPRISE: "enterprise"
1533
1164
  };
1534
- O.SUBSCRIPTION_TIERS = u;
1165
+ O.SUBSCRIPTION_TIERS = d;
1535
1166
  const c = {
1536
1167
  SHORT_DATE: "MMM d",
1537
1168
  FULL_DATE: "MMM d, yyyy",
@@ -1539,7 +1170,7 @@ function ln() {
1539
1170
  RELATIVE: "relative"
1540
1171
  };
1541
1172
  O.TIME_FORMAT = c;
1542
- const s = {
1173
+ const l = {
1543
1174
  WALLET_NOT_CONNECTED: "Please connect your wallet first",
1544
1175
  INVALID_ADDRESS: "Please enter a valid address",
1545
1176
  NETWORK_ERROR: "Network error. Please try again.",
@@ -1550,7 +1181,7 @@ function ln() {
1550
1181
  SESSION_EXPIRED: "Your session has expired. Please sign in again.",
1551
1182
  PERMISSION_DENIED: "You do not have permission to perform this action"
1552
1183
  };
1553
- O.ERROR_MESSAGES = s;
1184
+ O.ERROR_MESSAGES = l;
1554
1185
  const f = {
1555
1186
  EMAIL_SENT: "Email sent successfully",
1556
1187
  EMAIL_DELETED: "Email deleted successfully",
@@ -1561,7 +1192,7 @@ function ln() {
1561
1192
  SUBSCRIPTION_ACTIVATED: "Subscription activated successfully"
1562
1193
  };
1563
1194
  O.SUCCESS_MESSAGES = f;
1564
- const l = {
1195
+ const u = {
1565
1196
  HOME: "/",
1566
1197
  ABOUT: "/about",
1567
1198
  CONNECT: "/connect",
@@ -1574,7 +1205,7 @@ function ln() {
1574
1205
  WEB3_USERS: "/web3-users",
1575
1206
  WEB3_PROJECTS: "/web3-projects"
1576
1207
  };
1577
- O.ROUTES = l;
1208
+ O.ROUTES = u;
1578
1209
  const m = {
1579
1210
  SUPPORT_EMAIL: "support@sudobility.com",
1580
1211
  CONTACT_EMAIL: "info@sudobility.com"
@@ -1620,69 +1251,23 @@ function ln() {
1620
1251
  };
1621
1252
  return O.Z_INDEX = g, O;
1622
1253
  }
1623
- var de = {}, Ut;
1624
- function sn() {
1625
- return Ut || (Ut = 1, Object.defineProperty(de, "__esModule", { value: !0 }), de.STATUS_VALUES = void 0, de.STATUS_VALUES = {
1254
+ var ue = {}, at;
1255
+ function gr() {
1256
+ return at || (at = 1, Object.defineProperty(ue, "__esModule", { value: !0 }), ue.STATUS_VALUES = void 0, ue.STATUS_VALUES = {
1626
1257
  SUCCESS: "success",
1627
1258
  PENDING: "pending",
1628
1259
  FAILED: "failed",
1629
1260
  ERROR: "error"
1630
- }), de;
1261
+ }), ue;
1631
1262
  }
1632
- var kt;
1633
- function cn() {
1634
- return kt || (kt = 1, (function(e) {
1635
- Object.defineProperty(e, "__esModule", { value: !0 }), e.STATUS_VALUES = e.Z_INDEX = e.ANIMATION = e.NETWORK_IDS = e.WALLET_NAMES = e.CONTACT_INFO = e.ROUTES = e.SUCCESS_MESSAGES = e.ERROR_MESSAGES = e.TIME_FORMAT = e.SUBSCRIPTION_TIERS = e.EMAIL_CONFIG = e.STORAGE_KEYS = e.CHAIN_TYPE = e.AUTH_STATUS = e.API_RETRY_DELAY = e.API_RETRY_ATTEMPTS = e.API_TIMEOUT = void 0;
1636
- var t = ln();
1637
- Object.defineProperty(e, "API_TIMEOUT", { enumerable: !0, get: function() {
1638
- return t.API_TIMEOUT;
1639
- } }), Object.defineProperty(e, "API_RETRY_ATTEMPTS", { enumerable: !0, get: function() {
1640
- return t.API_RETRY_ATTEMPTS;
1641
- } }), Object.defineProperty(e, "API_RETRY_DELAY", { enumerable: !0, get: function() {
1642
- return t.API_RETRY_DELAY;
1643
- } }), Object.defineProperty(e, "AUTH_STATUS", { enumerable: !0, get: function() {
1644
- return t.AUTH_STATUS;
1645
- } }), Object.defineProperty(e, "CHAIN_TYPE", { enumerable: !0, get: function() {
1646
- return t.CHAIN_TYPE;
1647
- } }), Object.defineProperty(e, "STORAGE_KEYS", { enumerable: !0, get: function() {
1648
- return t.STORAGE_KEYS;
1649
- } }), Object.defineProperty(e, "EMAIL_CONFIG", { enumerable: !0, get: function() {
1650
- return t.EMAIL_CONFIG;
1651
- } }), Object.defineProperty(e, "SUBSCRIPTION_TIERS", { enumerable: !0, get: function() {
1652
- return t.SUBSCRIPTION_TIERS;
1653
- } }), Object.defineProperty(e, "TIME_FORMAT", { enumerable: !0, get: function() {
1654
- return t.TIME_FORMAT;
1655
- } }), Object.defineProperty(e, "ERROR_MESSAGES", { enumerable: !0, get: function() {
1656
- return t.ERROR_MESSAGES;
1657
- } }), Object.defineProperty(e, "SUCCESS_MESSAGES", { enumerable: !0, get: function() {
1658
- return t.SUCCESS_MESSAGES;
1659
- } }), Object.defineProperty(e, "ROUTES", { enumerable: !0, get: function() {
1660
- return t.ROUTES;
1661
- } }), Object.defineProperty(e, "CONTACT_INFO", { enumerable: !0, get: function() {
1662
- return t.CONTACT_INFO;
1663
- } }), Object.defineProperty(e, "WALLET_NAMES", { enumerable: !0, get: function() {
1664
- return t.WALLET_NAMES;
1665
- } }), Object.defineProperty(e, "NETWORK_IDS", { enumerable: !0, get: function() {
1666
- return t.NETWORK_IDS;
1667
- } }), Object.defineProperty(e, "ANIMATION", { enumerable: !0, get: function() {
1668
- return t.ANIMATION;
1669
- } }), Object.defineProperty(e, "Z_INDEX", { enumerable: !0, get: function() {
1670
- return t.Z_INDEX;
1671
- } });
1672
- var r = sn();
1673
- Object.defineProperty(e, "STATUS_VALUES", { enumerable: !0, get: function() {
1674
- return r.STATUS_VALUES;
1675
- } });
1676
- })(ke)), ke;
1677
- }
1678
- var Ve = {}, C = {}, Vt;
1679
- function dn() {
1680
- if (Vt) return C;
1681
- Vt = 1, Object.defineProperty(C, "__esModule", { value: !0 }), C.storageLogger = C.ensLogger = C.contractLogger = C.apiLogger = C.authLogger = C.logger = C.LogLevel = void 0;
1263
+ var _ = {}, it;
1264
+ function pt() {
1265
+ if (it) return _;
1266
+ it = 1, Object.defineProperty(_, "__esModule", { value: !0 }), _.storageLogger = _.ensLogger = _.contractLogger = _.apiLogger = _.authLogger = _.logger = _.LogLevel = void 0;
1682
1267
  var e;
1683
1268
  (function(c) {
1684
1269
  c.ERROR = "error", c.WARN = "warn", c.INFO = "info", c.DEBUG = "debug";
1685
- })(e || (C.LogLevel = e = {}));
1270
+ })(e || (_.LogLevel = e = {}));
1686
1271
  class t {
1687
1272
  constructor() {
1688
1273
  this.isDevelopment = process.env.NODE_ENV === "development";
@@ -1690,107 +1275,85 @@ function dn() {
1690
1275
  formatTimestamp() {
1691
1276
  return (/* @__PURE__ */ new Date()).toISOString();
1692
1277
  }
1693
- formatMessage(s, f, l) {
1694
- const m = this.formatTimestamp(), b = l ? ` [${l}]` : "";
1278
+ formatMessage(l, f, u) {
1279
+ const m = this.formatTimestamp(), b = u ? ` [${u}]` : "";
1695
1280
  return `[${m}]${b} ${f}`;
1696
1281
  }
1697
- shouldLog(s) {
1698
- return this.isDevelopment ? !0 : s === e.ERROR || s === e.WARN;
1282
+ shouldLog(l) {
1283
+ return this.isDevelopment ? !0 : l === e.ERROR || l === e.WARN;
1699
1284
  }
1700
- error(s, f, l) {
1701
- this.shouldLog(e.ERROR) && (console.error(this.formatMessage(e.ERROR, s, f)), l && console.error(l));
1285
+ error(l, f, u) {
1286
+ this.shouldLog(e.ERROR) && (console.error(this.formatMessage(e.ERROR, l, f)), u && console.error(u));
1702
1287
  }
1703
- warn(s, f, l) {
1704
- this.shouldLog(e.WARN) && (console.warn(this.formatMessage(e.WARN, s, f)), l && console.warn(l));
1288
+ warn(l, f, u) {
1289
+ this.shouldLog(e.WARN) && (console.warn(this.formatMessage(e.WARN, l, f)), u && console.warn(u));
1705
1290
  }
1706
- info(s, f, l) {
1707
- this.shouldLog(e.INFO) && (console.log(this.formatMessage(e.INFO, s, f)), l && console.log(l));
1291
+ info(l, f, u) {
1292
+ this.shouldLog(e.INFO) && (console.log(this.formatMessage(e.INFO, l, f)), u && console.log(u));
1708
1293
  }
1709
- debug(s, f, l) {
1710
- this.shouldLog(e.DEBUG) && (console.log(this.formatMessage(e.DEBUG, s, f)), l && console.log(l));
1294
+ debug(l, f, u) {
1295
+ this.shouldLog(e.DEBUG) && (console.log(this.formatMessage(e.DEBUG, l, f)), u && console.log(u));
1711
1296
  }
1712
1297
  /**
1713
1298
  * Create a contextual logger that automatically includes context in all calls
1714
1299
  */
1715
- withContext(s) {
1300
+ withContext(l) {
1716
1301
  return {
1717
- error: (f, l) => this.error(f, s, l),
1718
- warn: (f, l) => this.warn(f, s, l),
1719
- info: (f, l) => this.info(f, s, l),
1720
- debug: (f, l) => this.debug(f, s, l)
1302
+ error: (f, u) => this.error(f, l, u),
1303
+ warn: (f, u) => this.warn(f, l, u),
1304
+ info: (f, u) => this.info(f, l, u),
1305
+ debug: (f, u) => this.debug(f, l, u)
1721
1306
  };
1722
1307
  }
1723
1308
  }
1724
1309
  const r = new t();
1725
- C.logger = r;
1310
+ _.logger = r;
1726
1311
  const n = r.withContext("AUTH");
1727
- C.authLogger = n;
1312
+ _.authLogger = n;
1728
1313
  const i = r.withContext("API");
1729
- C.apiLogger = i;
1314
+ _.apiLogger = i;
1730
1315
  const a = r.withContext("CONTRACT");
1731
- C.contractLogger = a;
1316
+ _.contractLogger = a;
1732
1317
  const o = r.withContext("ENS");
1733
- C.ensLogger = o;
1734
- const u = r.withContext("STORAGE");
1735
- return C.storageLogger = u, C;
1736
- }
1737
- var Wt;
1738
- function rr() {
1739
- return Wt || (Wt = 1, (function(e) {
1740
- Object.defineProperty(e, "__esModule", { value: !0 }), e.storageLogger = e.ensLogger = e.contractLogger = e.apiLogger = e.authLogger = e.logger = e.LogLevel = void 0;
1741
- var t = dn();
1742
- Object.defineProperty(e, "LogLevel", { enumerable: !0, get: function() {
1743
- return t.LogLevel;
1744
- } }), Object.defineProperty(e, "logger", { enumerable: !0, get: function() {
1745
- return t.logger;
1746
- } }), Object.defineProperty(e, "authLogger", { enumerable: !0, get: function() {
1747
- return t.authLogger;
1748
- } }), Object.defineProperty(e, "apiLogger", { enumerable: !0, get: function() {
1749
- return t.apiLogger;
1750
- } }), Object.defineProperty(e, "contractLogger", { enumerable: !0, get: function() {
1751
- return t.contractLogger;
1752
- } }), Object.defineProperty(e, "ensLogger", { enumerable: !0, get: function() {
1753
- return t.ensLogger;
1754
- } }), Object.defineProperty(e, "storageLogger", { enumerable: !0, get: function() {
1755
- return t.storageLogger;
1756
- } });
1757
- })(Ve)), Ve;
1758
- }
1759
- var We = {}, $ = {}, Bt;
1760
- function fn() {
1761
- if (Bt) return $;
1762
- Bt = 1, Object.defineProperty($, "__esModule", { value: !0 }), $.createURLSearchParams = t, $.createSearchParams = r, $.searchParamsToString = n, $.parseSearchParams = i;
1318
+ _.ensLogger = o;
1319
+ const d = r.withContext("STORAGE");
1320
+ return _.storageLogger = d, _;
1321
+ }
1322
+ var Q = {}, ot;
1323
+ function Er() {
1324
+ if (ot) return Q;
1325
+ ot = 1, Object.defineProperty(Q, "__esModule", { value: !0 }), Q.createURLSearchParams = t, Q.createSearchParams = r, Q.searchParamsToString = n, Q.parseSearchParams = i;
1763
1326
  class e {
1764
1327
  constructor(o) {
1765
1328
  if (this.params = /* @__PURE__ */ new Map(), o)
1766
1329
  if (typeof o == "string")
1767
1330
  this.parseString(o);
1768
1331
  else if (Array.isArray(o))
1769
- for (const [u, c] of o)
1770
- this.append(u, c);
1332
+ for (const [d, c] of o)
1333
+ this.append(d, c);
1771
1334
  else
1772
- for (const [u, c] of Object.entries(o))
1773
- c !== void 0 && this.append(u, c);
1335
+ for (const [d, c] of Object.entries(o))
1336
+ c !== void 0 && this.append(d, c);
1774
1337
  }
1775
1338
  parseString(o) {
1776
- const u = o.startsWith("?") ? o.slice(1) : o;
1777
- if (u)
1778
- for (const c of u.split("&")) {
1779
- const [s, f = ""] = c.split("=");
1780
- s && this.append(decodeURIComponent(s), decodeURIComponent(f));
1339
+ const d = o.startsWith("?") ? o.slice(1) : o;
1340
+ if (d)
1341
+ for (const c of d.split("&")) {
1342
+ const [l, f = ""] = c.split("=");
1343
+ l && this.append(decodeURIComponent(l), decodeURIComponent(f));
1781
1344
  }
1782
1345
  }
1783
- append(o, u) {
1346
+ append(o, d) {
1784
1347
  this.params.has(o) || this.params.set(o, []);
1785
1348
  const c = this.params.get(o);
1786
- c && c.push(u);
1349
+ c && c.push(d);
1787
1350
  }
1788
1351
  delete(o) {
1789
1352
  this.params.delete(o);
1790
1353
  }
1791
1354
  get(o) {
1792
- const u = this.params.get(o);
1793
- return u && u.length > 0 ? u[0] : null;
1355
+ const d = this.params.get(o);
1356
+ return d && d.length > 0 ? d[0] : null;
1794
1357
  }
1795
1358
  getAll(o) {
1796
1359
  return this.params.get(o) || [];
@@ -1798,20 +1361,20 @@ function fn() {
1798
1361
  has(o) {
1799
1362
  return this.params.has(o);
1800
1363
  }
1801
- set(o, u) {
1802
- this.params.set(o, [u]);
1364
+ set(o, d) {
1365
+ this.params.set(o, [d]);
1803
1366
  }
1804
1367
  toString() {
1805
1368
  const o = [];
1806
- return this.params.forEach((u, c) => {
1807
- for (const s of u)
1808
- o.push(`${encodeURIComponent(c)}=${encodeURIComponent(s)}`);
1369
+ return this.params.forEach((d, c) => {
1370
+ for (const l of d)
1371
+ o.push(`${encodeURIComponent(c)}=${encodeURIComponent(l)}`);
1809
1372
  }), o.join("&");
1810
1373
  }
1811
1374
  forEach(o) {
1812
- this.params.forEach((u, c) => {
1813
- for (const s of u)
1814
- o(s, c);
1375
+ this.params.forEach((d, c) => {
1376
+ for (const l of d)
1377
+ o(l, c);
1815
1378
  });
1816
1379
  }
1817
1380
  }
@@ -1820,52 +1383,36 @@ function fn() {
1820
1383
  }
1821
1384
  function r(a) {
1822
1385
  const o = t(void 0);
1823
- for (const [u, c] of Object.entries(a))
1824
- c != null && o.append(u, String(c));
1386
+ for (const [d, c] of Object.entries(a))
1387
+ c != null && o.append(d, String(c));
1825
1388
  return o;
1826
1389
  }
1827
1390
  function n(a) {
1828
1391
  return a.toString();
1829
1392
  }
1830
1393
  function i(a) {
1831
- const o = t(a), u = {};
1832
- return o.forEach((c, s) => {
1833
- u[s] = c;
1834
- }), u;
1835
- }
1836
- return $;
1837
- }
1838
- var Ft;
1839
- function mn() {
1840
- return Ft || (Ft = 1, (function(e) {
1841
- Object.defineProperty(e, "__esModule", { value: !0 }), e.parseSearchParams = e.searchParamsToString = e.createSearchParams = e.createURLSearchParams = void 0;
1842
- var t = fn();
1843
- Object.defineProperty(e, "createURLSearchParams", { enumerable: !0, get: function() {
1844
- return t.createURLSearchParams;
1845
- } }), Object.defineProperty(e, "createSearchParams", { enumerable: !0, get: function() {
1846
- return t.createSearchParams;
1847
- } }), Object.defineProperty(e, "searchParamsToString", { enumerable: !0, get: function() {
1848
- return t.searchParamsToString;
1849
- } }), Object.defineProperty(e, "parseSearchParams", { enumerable: !0, get: function() {
1850
- return t.parseSearchParams;
1851
- } });
1852
- })(We)), We;
1853
- }
1854
- var P = {}, qt;
1855
- function gn() {
1856
- if (qt) return P;
1857
- qt = 1, Object.defineProperty(P, "__esModule", { value: !0 }), P.debounceAsync = P.clearExpiredCache = P.withCache = P.withTimeout = P.safeParallel = P.withLoadingState = P.safeAsync = void 0;
1858
- const e = rr(), t = async (f, l) => {
1394
+ const o = t(a), d = {};
1395
+ return o.forEach((c, l) => {
1396
+ d[l] = c;
1397
+ }), d;
1398
+ }
1399
+ return Q;
1400
+ }
1401
+ var I = {}, ut;
1402
+ function hr() {
1403
+ if (ut) return I;
1404
+ ut = 1, Object.defineProperty(I, "__esModule", { value: !0 }), I.debounceAsync = I.clearExpiredCache = I.withCache = I.withTimeout = I.safeParallel = I.withLoadingState = I.safeAsync = void 0;
1405
+ const e = pt(), t = async (f, u) => {
1859
1406
  try {
1860
1407
  return { data: await f(), success: !0 };
1861
1408
  } catch (m) {
1862
1409
  const b = m instanceof Error ? m : new Error(String(m));
1863
- return e.logger.error(`Async operation failed: ${b.message}`, l, m), { error: b, success: !1 };
1410
+ return e.logger.error(`Async operation failed: ${b.message}`, u, m), { error: b, success: !1 };
1864
1411
  }
1865
1412
  };
1866
- P.safeAsync = t;
1867
- const r = async (f, l, m, b) => {
1868
- l(!0), m(null);
1413
+ I.safeAsync = t;
1414
+ const r = async (f, u, m, b) => {
1415
+ u(!0), m(null);
1869
1416
  try {
1870
1417
  return await f();
1871
1418
  } catch (S) {
@@ -1873,43 +1420,43 @@ function gn() {
1873
1420
  m(p), e.logger.error(`Operation failed: ${p}`, b, S);
1874
1421
  return;
1875
1422
  } finally {
1876
- l(!1);
1423
+ u(!1);
1877
1424
  }
1878
1425
  };
1879
- P.withLoadingState = r;
1880
- const n = async (f, l) => {
1426
+ I.withLoadingState = r;
1427
+ const n = async (f, u) => {
1881
1428
  try {
1882
1429
  return { data: await Promise.all(f.map((b) => b())), success: !0 };
1883
1430
  } catch (m) {
1884
1431
  const b = m instanceof Error ? m : new Error(String(m));
1885
- return e.logger.error(`Parallel operations failed: ${b.message}`, l, m), { error: b, success: !1 };
1432
+ return e.logger.error(`Parallel operations failed: ${b.message}`, u, m), { error: b, success: !1 };
1886
1433
  }
1887
1434
  };
1888
- P.safeParallel = n;
1889
- const i = async (f, l, m) => {
1890
- const b = new Promise((S, p) => setTimeout(() => p(new Error(`Operation timed out after ${l}ms`)), l));
1435
+ I.safeParallel = n;
1436
+ const i = async (f, u, m) => {
1437
+ const b = new Promise((S, p) => setTimeout(() => p(new Error(`Operation timed out after ${u}ms`)), u));
1891
1438
  try {
1892
1439
  return await Promise.race([f(), b]);
1893
1440
  } catch (S) {
1894
1441
  throw e.logger.error("Timeout operation failed", m, S), S;
1895
1442
  }
1896
1443
  };
1897
- P.withTimeout = i;
1898
- const a = /* @__PURE__ */ new Map(), o = async (f, l, m = 300 * 1e3) => {
1444
+ I.withTimeout = i;
1445
+ const a = /* @__PURE__ */ new Map(), o = async (f, u, m = 300 * 1e3) => {
1899
1446
  const b = a.get(f), S = Date.now();
1900
1447
  if (b && S - b.timestamp < b.ttl)
1901
1448
  return b.data;
1902
- const p = await l();
1449
+ const p = await u();
1903
1450
  return a.set(f, { data: p, timestamp: S, ttl: m }), p;
1904
1451
  };
1905
- P.withCache = o;
1906
- const u = () => {
1452
+ I.withCache = o;
1453
+ const d = () => {
1907
1454
  const f = Date.now();
1908
- for (const [l, m] of a.entries())
1909
- f - m.timestamp >= m.ttl && a.delete(l);
1455
+ for (const [u, m] of a.entries())
1456
+ f - m.timestamp >= m.ttl && a.delete(u);
1910
1457
  };
1911
- P.clearExpiredCache = u;
1912
- const c = /* @__PURE__ */ new Map(), s = (f, l, m) => (...b) => new Promise((S) => {
1458
+ I.clearExpiredCache = d;
1459
+ const c = /* @__PURE__ */ new Map(), l = (f, u, m) => (...b) => new Promise((S) => {
1913
1460
  const p = c.get(m);
1914
1461
  p && clearTimeout(p);
1915
1462
  const g = setTimeout(async () => {
@@ -1920,127 +1467,427 @@ function gn() {
1920
1467
  } catch (A) {
1921
1468
  e.logger.error("Debounced operation failed", m, A), S(void 0);
1922
1469
  }
1923
- }, l);
1470
+ }, u);
1924
1471
  c.set(m, g);
1925
1472
  });
1926
- return P.debounceAsync = s, P;
1927
- }
1928
- var Ht;
1929
- function Gt() {
1930
- return Ht || (Ht = 1, (function(e) {
1931
- var t = x && x.__createBinding || (Object.create ? (function(n, i, a, o) {
1932
- o === void 0 && (o = a);
1933
- var u = Object.getOwnPropertyDescriptor(i, a);
1934
- (!u || ("get" in u ? !i.__esModule : u.writable || u.configurable)) && (u = { enumerable: !0, get: function() {
1935
- return i[a];
1936
- } }), Object.defineProperty(n, o, u);
1937
- }) : (function(n, i, a, o) {
1938
- o === void 0 && (o = a), n[o] = i[a];
1939
- })), r = x && x.__exportStar || function(n, i) {
1940
- for (var a in n) a !== "default" && !Object.prototype.hasOwnProperty.call(i, a) && t(i, n, a);
1941
- };
1942
- Object.defineProperty(e, "__esModule", { value: !0 }), r(xr(), e), r(en(), e), r(rn(), e), r(un(), e), r(cn(), e), r(rr(), e), r(mn(), e), r(gn(), e);
1943
- })(x)), x;
1944
- }
1945
- var Yt;
1946
- function hn() {
1947
- return Yt || (Yt = 1, (function(e) {
1948
- var t = z && z.__createBinding || (Object.create ? (function(a, o, u, c) {
1949
- c === void 0 && (c = u);
1950
- var s = Object.getOwnPropertyDescriptor(o, u);
1951
- (!s || ("get" in s ? !o.__esModule : s.writable || s.configurable)) && (s = { enumerable: !0, get: function() {
1952
- return o[u];
1953
- } }), Object.defineProperty(a, c, s);
1954
- }) : (function(a, o, u, c) {
1955
- c === void 0 && (c = u), a[c] = o[u];
1956
- })), r = z && z.__exportStar || function(a, o) {
1957
- for (var u in a) u !== "default" && !Object.prototype.hasOwnProperty.call(o, u) && t(o, a, u);
1958
- };
1959
- Object.defineProperty(e, "__esModule", { value: !0 }), e.ProcessedEventName = e.ContractType = e.StorageType = e.WalletType = e.ChainType = e.AnalyticsEvent = e.TransactionStatus = e.MessageType = e.InfoType = e.NotificationType = e.RequestStatus = e.MobileView = e.EmailComposeType = e.FontSize = e.Theme = e.Chain = e.AuthStatus = e.debounceAsync = e.clearExpiredCache = e.withCache = e.withTimeout = e.safeParallel = e.withLoadingState = e.safeAsync = void 0, r(Tt(), e), r(Gt(), e);
1960
- var n = Gt();
1961
- Object.defineProperty(e, "safeAsync", { enumerable: !0, get: function() {
1962
- return n.safeAsync;
1963
- } }), Object.defineProperty(e, "withLoadingState", { enumerable: !0, get: function() {
1964
- return n.withLoadingState;
1965
- } }), Object.defineProperty(e, "safeParallel", { enumerable: !0, get: function() {
1966
- return n.safeParallel;
1967
- } }), Object.defineProperty(e, "withTimeout", { enumerable: !0, get: function() {
1968
- return n.withTimeout;
1969
- } }), Object.defineProperty(e, "withCache", { enumerable: !0, get: function() {
1970
- return n.withCache;
1971
- } }), Object.defineProperty(e, "clearExpiredCache", { enumerable: !0, get: function() {
1972
- return n.clearExpiredCache;
1973
- } }), Object.defineProperty(e, "debounceAsync", { enumerable: !0, get: function() {
1974
- return n.debounceAsync;
1975
- } });
1976
- var i = Tt();
1473
+ return I.debounceAsync = l, I;
1474
+ }
1475
+ var lt;
1476
+ function br() {
1477
+ return lt || (lt = 1, (function(e) {
1478
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.MANAGER_PERMISSIONS = e.OWNER_PERMISSIONS = e.InvitationStatus = e.EntityRole = e.EntityType = e.RateLimitPeriodType = e.WalletType = e.NetworkError = e.ProcessedEventName = e.ContractType = e.AnalyticsEventBuilder = e.AnalyticsEvent = e.StorageType = e.validateMessage = e.validateDomain = e.validateAmount = e.validateAddress = e.isSolanaRecipient = e.isSolanaAddress = e.isEvmRecipient = e.isEvmAddress = e.TransactionStatus = e.PROTOCOL_CONSTANTS = e.MessageType = e.isWalletVerified = e.isWalletConnected = e.getWalletConnectionState = e.Theme = e.SubscriptionAction = e.SortOrder = e.RequestStatus = e.PlatformType = e.NotificationType = e.MobileView = e.MediumView = e.InfoType = e.FontSize = e.FeatureFlag = e.ErrorType = e.EmailValidationState = e.EmailSortCriteria = e.EmailComposeType = e.EmailAddressType = e.EmailAction = e.Currency = e.ConnectionType = e.ConnectionState = e.ChainType = e.Chain = e.AuthStatus = void 0, e.isAdminEmail = e.parseAdminEmails = e.isValidNonce = e.isAuthStatusConnected = e.isAuthExpired = e.getAuthStatusText = e.generateNonce = e.generateAuthMessage = e.extractNonceFromMessage = e.canAccessProtectedFeatures = e.validateEventArgs = e.normalizeAddress = e.isZeroAddress = e.isTestNet = e.formatBigInt = e.createUserMultiChainId = e.createMultiChainId = e.createDelegationId = e.createChainStatsId = e.parseEmailAddress = e.isValidWalletAddress = e.isValidSignature = e.isSNSName = e.isENSName = e.getChainDisplayName = e.getAddressType = e.formatWalletAddress = e.AddressType = e.validateArray = e.parseJson = e.optional = e.isValidDate = e.isUrl = e.isSuccessResponse = e.isString = e.isObject = e.isNumber = e.isNullish = e.isErrorResponse = e.isEmail = e.isBoolean = e.isArray = e.isApiResponse = e.hasRequiredProperties = e.createValidator = e.createAssertion = e.Web3UsernameValidator = e.hasPermission = e.getPermissionsForRole = e.MEMBER_PERMISSIONS = void 0, e.apiLogger = e.authLogger = e.logger = e.LogLevel = e.STATUS_VALUES = e.Z_INDEX = e.ANIMATION = e.NETWORK_IDS = e.WALLET_NAMES = e.CONTACT_INFO = e.ROUTES = e.SUCCESS_MESSAGES = e.ERROR_MESSAGES = e.TIME_FORMAT = e.SUBSCRIPTION_TIERS = e.EMAIL_CONFIG = e.STORAGE_KEYS = e.CHAIN_TYPE = e.AUTH_STATUS = e.API_RETRY_DELAY = e.API_RETRY_ATTEMPTS = e.API_TIMEOUT = e.truncate = e.toTitleCase = e.toSnakeCase = e.toKebabCase = e.toCamelCase = e.stripHtml = e.randomString = e.pluralize = e.normalizeWhitespace = e.isNotBlank = e.isBlank = e.getInitials = e.formatNumber = e.formatBytes = e.escapeHtml = e.capitalize = e.parseDate = e.isDateInRange = e.formatTimestamp = e.formatRelativeTime = e.formatEmailDate = e.addHours = e.addDays = e.parseUSDC = e.formatUSDC = e.USDC_DECIMALS = e.CLAIM_PERIOD_DAYS = e.createAdminChecker = void 0, e.debounceAsync = e.clearExpiredCache = e.withCache = e.withTimeout = e.safeParallel = e.withLoadingState = e.safeAsync = e.parseSearchParams = e.searchParamsToString = e.createSearchParams = e.createURLSearchParams = e.storageLogger = e.ensLogger = e.contractLogger = void 0;
1479
+ var t = ee();
1977
1480
  Object.defineProperty(e, "AuthStatus", { enumerable: !0, get: function() {
1978
- return i.AuthStatus;
1481
+ return t.AuthStatus;
1979
1482
  } }), Object.defineProperty(e, "Chain", { enumerable: !0, get: function() {
1980
- return i.Chain;
1981
- } }), Object.defineProperty(e, "Theme", { enumerable: !0, get: function() {
1982
- return i.Theme;
1983
- } }), Object.defineProperty(e, "FontSize", { enumerable: !0, get: function() {
1984
- return i.FontSize;
1483
+ return t.Chain;
1484
+ } }), Object.defineProperty(e, "ChainType", { enumerable: !0, get: function() {
1485
+ return t.ChainType;
1486
+ } }), Object.defineProperty(e, "ConnectionState", { enumerable: !0, get: function() {
1487
+ return t.ConnectionState;
1488
+ } }), Object.defineProperty(e, "ConnectionType", { enumerable: !0, get: function() {
1489
+ return t.ConnectionType;
1490
+ } }), Object.defineProperty(e, "Currency", { enumerable: !0, get: function() {
1491
+ return t.Currency;
1492
+ } }), Object.defineProperty(e, "EmailAction", { enumerable: !0, get: function() {
1493
+ return t.EmailAction;
1494
+ } }), Object.defineProperty(e, "EmailAddressType", { enumerable: !0, get: function() {
1495
+ return t.EmailAddressType;
1985
1496
  } }), Object.defineProperty(e, "EmailComposeType", { enumerable: !0, get: function() {
1986
- return i.EmailComposeType;
1497
+ return t.EmailComposeType;
1498
+ } }), Object.defineProperty(e, "EmailSortCriteria", { enumerable: !0, get: function() {
1499
+ return t.EmailSortCriteria;
1500
+ } }), Object.defineProperty(e, "EmailValidationState", { enumerable: !0, get: function() {
1501
+ return t.EmailValidationState;
1502
+ } }), Object.defineProperty(e, "ErrorType", { enumerable: !0, get: function() {
1503
+ return t.ErrorType;
1504
+ } }), Object.defineProperty(e, "FeatureFlag", { enumerable: !0, get: function() {
1505
+ return t.FeatureFlag;
1506
+ } }), Object.defineProperty(e, "FontSize", { enumerable: !0, get: function() {
1507
+ return t.FontSize;
1508
+ } }), Object.defineProperty(e, "InfoType", { enumerable: !0, get: function() {
1509
+ return t.InfoType;
1510
+ } }), Object.defineProperty(e, "MediumView", { enumerable: !0, get: function() {
1511
+ return t.MediumView;
1987
1512
  } }), Object.defineProperty(e, "MobileView", { enumerable: !0, get: function() {
1988
- return i.MobileView;
1989
- } }), Object.defineProperty(e, "RequestStatus", { enumerable: !0, get: function() {
1990
- return i.RequestStatus;
1513
+ return t.MobileView;
1991
1514
  } }), Object.defineProperty(e, "NotificationType", { enumerable: !0, get: function() {
1992
- return i.NotificationType;
1993
- } }), Object.defineProperty(e, "InfoType", { enumerable: !0, get: function() {
1994
- return i.InfoType;
1995
- } }), Object.defineProperty(e, "MessageType", { enumerable: !0, get: function() {
1996
- return i.MessageType;
1515
+ return t.NotificationType;
1516
+ } }), Object.defineProperty(e, "PlatformType", { enumerable: !0, get: function() {
1517
+ return t.PlatformType;
1518
+ } }), Object.defineProperty(e, "RequestStatus", { enumerable: !0, get: function() {
1519
+ return t.RequestStatus;
1520
+ } }), Object.defineProperty(e, "SortOrder", { enumerable: !0, get: function() {
1521
+ return t.SortOrder;
1522
+ } }), Object.defineProperty(e, "SubscriptionAction", { enumerable: !0, get: function() {
1523
+ return t.SubscriptionAction;
1524
+ } }), Object.defineProperty(e, "Theme", { enumerable: !0, get: function() {
1525
+ return t.Theme;
1526
+ } });
1527
+ var r = Xt();
1528
+ Object.defineProperty(e, "getWalletConnectionState", { enumerable: !0, get: function() {
1529
+ return r.getWalletConnectionState;
1530
+ } }), Object.defineProperty(e, "isWalletConnected", { enumerable: !0, get: function() {
1531
+ return r.isWalletConnected;
1532
+ } }), Object.defineProperty(e, "isWalletVerified", { enumerable: !0, get: function() {
1533
+ return r.isWalletVerified;
1534
+ } });
1535
+ var n = bt();
1536
+ Object.defineProperty(e, "MessageType", { enumerable: !0, get: function() {
1537
+ return n.MessageType;
1538
+ } }), Object.defineProperty(e, "PROTOCOL_CONSTANTS", { enumerable: !0, get: function() {
1539
+ return n.PROTOCOL_CONSTANTS;
1997
1540
  } }), Object.defineProperty(e, "TransactionStatus", { enumerable: !0, get: function() {
1998
- return i.TransactionStatus;
1999
- } }), Object.defineProperty(e, "AnalyticsEvent", { enumerable: !0, get: function() {
2000
- return i.AnalyticsEvent;
2001
- } }), Object.defineProperty(e, "ChainType", { enumerable: !0, get: function() {
2002
- return i.ChainType;
2003
- } }), Object.defineProperty(e, "WalletType", { enumerable: !0, get: function() {
2004
- return i.WalletType;
2005
- } }), Object.defineProperty(e, "StorageType", { enumerable: !0, get: function() {
2006
- return i.StorageType;
2007
- } }), Object.defineProperty(e, "ContractType", { enumerable: !0, get: function() {
2008
- return i.ContractType;
1541
+ return n.TransactionStatus;
1542
+ } }), Object.defineProperty(e, "isEvmAddress", { enumerable: !0, get: function() {
1543
+ return n.isEvmAddress;
1544
+ } }), Object.defineProperty(e, "isEvmRecipient", { enumerable: !0, get: function() {
1545
+ return n.isEvmRecipient;
1546
+ } }), Object.defineProperty(e, "isSolanaAddress", { enumerable: !0, get: function() {
1547
+ return n.isSolanaAddress;
1548
+ } }), Object.defineProperty(e, "isSolanaRecipient", { enumerable: !0, get: function() {
1549
+ return n.isSolanaRecipient;
1550
+ } });
1551
+ var i = Qt();
1552
+ Object.defineProperty(e, "validateAddress", { enumerable: !0, get: function() {
1553
+ return i.validateAddress;
1554
+ } }), Object.defineProperty(e, "validateAmount", { enumerable: !0, get: function() {
1555
+ return i.validateAmount;
1556
+ } }), Object.defineProperty(e, "validateDomain", { enumerable: !0, get: function() {
1557
+ return i.validateDomain;
1558
+ } }), Object.defineProperty(e, "validateMessage", { enumerable: !0, get: function() {
1559
+ return i.validateMessage;
1560
+ } });
1561
+ var a = xt();
1562
+ Object.defineProperty(e, "StorageType", { enumerable: !0, get: function() {
1563
+ return a.StorageType;
1564
+ } });
1565
+ var o = $t();
1566
+ Object.defineProperty(e, "AnalyticsEvent", { enumerable: !0, get: function() {
1567
+ return o.AnalyticsEvent;
1568
+ } }), Object.defineProperty(e, "AnalyticsEventBuilder", { enumerable: !0, get: function() {
1569
+ return o.AnalyticsEventBuilder;
1570
+ } });
1571
+ var d = er();
1572
+ Object.defineProperty(e, "ContractType", { enumerable: !0, get: function() {
1573
+ return d.ContractType;
2009
1574
  } }), Object.defineProperty(e, "ProcessedEventName", { enumerable: !0, get: function() {
2010
- return i.ProcessedEventName;
1575
+ return d.ProcessedEventName;
1576
+ } });
1577
+ var c = tr();
1578
+ Object.defineProperty(e, "NetworkError", { enumerable: !0, get: function() {
1579
+ return c.NetworkError;
1580
+ } });
1581
+ var l = rr();
1582
+ Object.defineProperty(e, "WalletType", { enumerable: !0, get: function() {
1583
+ return l.WalletType;
1584
+ } });
1585
+ var f = nr();
1586
+ Object.defineProperty(e, "RateLimitPeriodType", { enumerable: !0, get: function() {
1587
+ return f.RateLimitPeriodType;
1588
+ } });
1589
+ var u = yt();
1590
+ Object.defineProperty(e, "EntityType", { enumerable: !0, get: function() {
1591
+ return u.EntityType;
1592
+ } }), Object.defineProperty(e, "EntityRole", { enumerable: !0, get: function() {
1593
+ return u.EntityRole;
1594
+ } }), Object.defineProperty(e, "InvitationStatus", { enumerable: !0, get: function() {
1595
+ return u.InvitationStatus;
1596
+ } });
1597
+ var m = ar();
1598
+ Object.defineProperty(e, "OWNER_PERMISSIONS", { enumerable: !0, get: function() {
1599
+ return m.OWNER_PERMISSIONS;
1600
+ } }), Object.defineProperty(e, "MANAGER_PERMISSIONS", { enumerable: !0, get: function() {
1601
+ return m.MANAGER_PERMISSIONS;
1602
+ } }), Object.defineProperty(e, "MEMBER_PERMISSIONS", { enumerable: !0, get: function() {
1603
+ return m.MEMBER_PERMISSIONS;
1604
+ } }), Object.defineProperty(e, "getPermissionsForRole", { enumerable: !0, get: function() {
1605
+ return m.getPermissionsForRole;
1606
+ } }), Object.defineProperty(e, "hasPermission", { enumerable: !0, get: function() {
1607
+ return m.hasPermission;
1608
+ } });
1609
+ var b = ir();
1610
+ Object.defineProperty(e, "Web3UsernameValidator", { enumerable: !0, get: function() {
1611
+ return b.Web3UsernameValidator;
1612
+ } });
1613
+ var S = or();
1614
+ Object.defineProperty(e, "createAssertion", { enumerable: !0, get: function() {
1615
+ return S.createAssertion;
1616
+ } }), Object.defineProperty(e, "createValidator", { enumerable: !0, get: function() {
1617
+ return S.createValidator;
1618
+ } }), Object.defineProperty(e, "hasRequiredProperties", { enumerable: !0, get: function() {
1619
+ return S.hasRequiredProperties;
1620
+ } }), Object.defineProperty(e, "isApiResponse", { enumerable: !0, get: function() {
1621
+ return S.isApiResponse;
1622
+ } }), Object.defineProperty(e, "isArray", { enumerable: !0, get: function() {
1623
+ return S.isArray;
1624
+ } }), Object.defineProperty(e, "isBoolean", { enumerable: !0, get: function() {
1625
+ return S.isBoolean;
1626
+ } }), Object.defineProperty(e, "isEmail", { enumerable: !0, get: function() {
1627
+ return S.isEmail;
1628
+ } }), Object.defineProperty(e, "isErrorResponse", { enumerable: !0, get: function() {
1629
+ return S.isErrorResponse;
1630
+ } }), Object.defineProperty(e, "isNullish", { enumerable: !0, get: function() {
1631
+ return S.isNullish;
1632
+ } }), Object.defineProperty(e, "isNumber", { enumerable: !0, get: function() {
1633
+ return S.isNumber;
1634
+ } }), Object.defineProperty(e, "isObject", { enumerable: !0, get: function() {
1635
+ return S.isObject;
1636
+ } }), Object.defineProperty(e, "isString", { enumerable: !0, get: function() {
1637
+ return S.isString;
1638
+ } }), Object.defineProperty(e, "isSuccessResponse", { enumerable: !0, get: function() {
1639
+ return S.isSuccessResponse;
1640
+ } }), Object.defineProperty(e, "isUrl", { enumerable: !0, get: function() {
1641
+ return S.isUrl;
1642
+ } }), Object.defineProperty(e, "isValidDate", { enumerable: !0, get: function() {
1643
+ return S.isValidDate;
1644
+ } }), Object.defineProperty(e, "optional", { enumerable: !0, get: function() {
1645
+ return S.optional;
1646
+ } }), Object.defineProperty(e, "parseJson", { enumerable: !0, get: function() {
1647
+ return S.parseJson;
1648
+ } }), Object.defineProperty(e, "validateArray", { enumerable: !0, get: function() {
1649
+ return S.validateArray;
1650
+ } });
1651
+ var p = St();
1652
+ Object.defineProperty(e, "AddressType", { enumerable: !0, get: function() {
1653
+ return p.AddressType;
1654
+ } }), Object.defineProperty(e, "formatWalletAddress", { enumerable: !0, get: function() {
1655
+ return p.formatWalletAddress;
1656
+ } }), Object.defineProperty(e, "getAddressType", { enumerable: !0, get: function() {
1657
+ return p.getAddressType;
1658
+ } }), Object.defineProperty(e, "getChainDisplayName", { enumerable: !0, get: function() {
1659
+ return p.getChainDisplayName;
1660
+ } }), Object.defineProperty(e, "isENSName", { enumerable: !0, get: function() {
1661
+ return p.isENSName;
1662
+ } }), Object.defineProperty(e, "isSNSName", { enumerable: !0, get: function() {
1663
+ return p.isSNSName;
1664
+ } }), Object.defineProperty(e, "isValidSignature", { enumerable: !0, get: function() {
1665
+ return p.isValidSignature;
1666
+ } }), Object.defineProperty(e, "isValidWalletAddress", { enumerable: !0, get: function() {
1667
+ return p.isValidWalletAddress;
1668
+ } }), Object.defineProperty(e, "parseEmailAddress", { enumerable: !0, get: function() {
1669
+ return p.parseEmailAddress;
1670
+ } });
1671
+ var g = ur();
1672
+ Object.defineProperty(e, "createChainStatsId", { enumerable: !0, get: function() {
1673
+ return g.createChainStatsId;
1674
+ } }), Object.defineProperty(e, "createDelegationId", { enumerable: !0, get: function() {
1675
+ return g.createDelegationId;
1676
+ } }), Object.defineProperty(e, "createMultiChainId", { enumerable: !0, get: function() {
1677
+ return g.createMultiChainId;
1678
+ } }), Object.defineProperty(e, "createUserMultiChainId", { enumerable: !0, get: function() {
1679
+ return g.createUserMultiChainId;
1680
+ } }), Object.defineProperty(e, "formatBigInt", { enumerable: !0, get: function() {
1681
+ return g.formatBigInt;
1682
+ } }), Object.defineProperty(e, "isTestNet", { enumerable: !0, get: function() {
1683
+ return g.isTestNet;
1684
+ } }), Object.defineProperty(e, "isZeroAddress", { enumerable: !0, get: function() {
1685
+ return g.isZeroAddress;
1686
+ } }), Object.defineProperty(e, "normalizeAddress", { enumerable: !0, get: function() {
1687
+ return g.normalizeAddress;
1688
+ } }), Object.defineProperty(e, "validateEventArgs", { enumerable: !0, get: function() {
1689
+ return g.validateEventArgs;
1690
+ } });
1691
+ var A = lr();
1692
+ Object.defineProperty(e, "canAccessProtectedFeatures", { enumerable: !0, get: function() {
1693
+ return A.canAccessProtectedFeatures;
1694
+ } }), Object.defineProperty(e, "extractNonceFromMessage", { enumerable: !0, get: function() {
1695
+ return A.extractNonceFromMessage;
1696
+ } }), Object.defineProperty(e, "generateAuthMessage", { enumerable: !0, get: function() {
1697
+ return A.generateAuthMessage;
1698
+ } }), Object.defineProperty(e, "generateNonce", { enumerable: !0, get: function() {
1699
+ return A.generateNonce;
1700
+ } }), Object.defineProperty(e, "getAuthStatusText", { enumerable: !0, get: function() {
1701
+ return A.getAuthStatusText;
1702
+ } }), Object.defineProperty(e, "isAuthExpired", { enumerable: !0, get: function() {
1703
+ return A.isAuthExpired;
1704
+ } }), Object.defineProperty(e, "isAuthStatusConnected", { enumerable: !0, get: function() {
1705
+ return A.isAuthStatusConnected;
1706
+ } }), Object.defineProperty(e, "isValidNonce", { enumerable: !0, get: function() {
1707
+ return A.isValidNonce;
1708
+ } });
1709
+ var y = sr();
1710
+ Object.defineProperty(e, "parseAdminEmails", { enumerable: !0, get: function() {
1711
+ return y.parseAdminEmails;
1712
+ } }), Object.defineProperty(e, "isAdminEmail", { enumerable: !0, get: function() {
1713
+ return y.isAdminEmail;
1714
+ } }), Object.defineProperty(e, "createAdminChecker", { enumerable: !0, get: function() {
1715
+ return y.createAdminChecker;
1716
+ } });
1717
+ var E = cr();
1718
+ Object.defineProperty(e, "CLAIM_PERIOD_DAYS", { enumerable: !0, get: function() {
1719
+ return E.CLAIM_PERIOD_DAYS;
1720
+ } }), Object.defineProperty(e, "USDC_DECIMALS", { enumerable: !0, get: function() {
1721
+ return E.USDC_DECIMALS;
1722
+ } }), Object.defineProperty(e, "formatUSDC", { enumerable: !0, get: function() {
1723
+ return E.formatUSDC;
1724
+ } }), Object.defineProperty(e, "parseUSDC", { enumerable: !0, get: function() {
1725
+ return E.parseUSDC;
1726
+ } });
1727
+ var R = dr();
1728
+ Object.defineProperty(e, "addDays", { enumerable: !0, get: function() {
1729
+ return R.addDays;
1730
+ } }), Object.defineProperty(e, "addHours", { enumerable: !0, get: function() {
1731
+ return R.addHours;
1732
+ } }), Object.defineProperty(e, "formatEmailDate", { enumerable: !0, get: function() {
1733
+ return R.formatEmailDate;
1734
+ } }), Object.defineProperty(e, "formatRelativeTime", { enumerable: !0, get: function() {
1735
+ return R.formatRelativeTime;
1736
+ } }), Object.defineProperty(e, "formatTimestamp", { enumerable: !0, get: function() {
1737
+ return R.formatTimestamp;
1738
+ } }), Object.defineProperty(e, "isDateInRange", { enumerable: !0, get: function() {
1739
+ return R.isDateInRange;
1740
+ } }), Object.defineProperty(e, "parseDate", { enumerable: !0, get: function() {
1741
+ return R.parseDate;
1742
+ } });
1743
+ var T = fr();
1744
+ Object.defineProperty(e, "capitalize", { enumerable: !0, get: function() {
1745
+ return T.capitalize;
1746
+ } }), Object.defineProperty(e, "escapeHtml", { enumerable: !0, get: function() {
1747
+ return T.escapeHtml;
1748
+ } }), Object.defineProperty(e, "formatBytes", { enumerable: !0, get: function() {
1749
+ return T.formatBytes;
1750
+ } }), Object.defineProperty(e, "formatNumber", { enumerable: !0, get: function() {
1751
+ return T.formatNumber;
1752
+ } }), Object.defineProperty(e, "getInitials", { enumerable: !0, get: function() {
1753
+ return T.getInitials;
1754
+ } }), Object.defineProperty(e, "isBlank", { enumerable: !0, get: function() {
1755
+ return T.isBlank;
1756
+ } }), Object.defineProperty(e, "isNotBlank", { enumerable: !0, get: function() {
1757
+ return T.isNotBlank;
1758
+ } }), Object.defineProperty(e, "normalizeWhitespace", { enumerable: !0, get: function() {
1759
+ return T.normalizeWhitespace;
1760
+ } }), Object.defineProperty(e, "pluralize", { enumerable: !0, get: function() {
1761
+ return T.pluralize;
1762
+ } }), Object.defineProperty(e, "randomString", { enumerable: !0, get: function() {
1763
+ return T.randomString;
1764
+ } }), Object.defineProperty(e, "stripHtml", { enumerable: !0, get: function() {
1765
+ return T.stripHtml;
1766
+ } }), Object.defineProperty(e, "toCamelCase", { enumerable: !0, get: function() {
1767
+ return T.toCamelCase;
1768
+ } }), Object.defineProperty(e, "toKebabCase", { enumerable: !0, get: function() {
1769
+ return T.toKebabCase;
1770
+ } }), Object.defineProperty(e, "toSnakeCase", { enumerable: !0, get: function() {
1771
+ return T.toSnakeCase;
1772
+ } }), Object.defineProperty(e, "toTitleCase", { enumerable: !0, get: function() {
1773
+ return T.toTitleCase;
1774
+ } }), Object.defineProperty(e, "truncate", { enumerable: !0, get: function() {
1775
+ return T.truncate;
1776
+ } });
1777
+ var C = mr();
1778
+ Object.defineProperty(e, "API_TIMEOUT", { enumerable: !0, get: function() {
1779
+ return C.API_TIMEOUT;
1780
+ } }), Object.defineProperty(e, "API_RETRY_ATTEMPTS", { enumerable: !0, get: function() {
1781
+ return C.API_RETRY_ATTEMPTS;
1782
+ } }), Object.defineProperty(e, "API_RETRY_DELAY", { enumerable: !0, get: function() {
1783
+ return C.API_RETRY_DELAY;
1784
+ } }), Object.defineProperty(e, "AUTH_STATUS", { enumerable: !0, get: function() {
1785
+ return C.AUTH_STATUS;
1786
+ } }), Object.defineProperty(e, "CHAIN_TYPE", { enumerable: !0, get: function() {
1787
+ return C.CHAIN_TYPE;
1788
+ } }), Object.defineProperty(e, "STORAGE_KEYS", { enumerable: !0, get: function() {
1789
+ return C.STORAGE_KEYS;
1790
+ } }), Object.defineProperty(e, "EMAIL_CONFIG", { enumerable: !0, get: function() {
1791
+ return C.EMAIL_CONFIG;
1792
+ } }), Object.defineProperty(e, "SUBSCRIPTION_TIERS", { enumerable: !0, get: function() {
1793
+ return C.SUBSCRIPTION_TIERS;
1794
+ } }), Object.defineProperty(e, "TIME_FORMAT", { enumerable: !0, get: function() {
1795
+ return C.TIME_FORMAT;
1796
+ } }), Object.defineProperty(e, "ERROR_MESSAGES", { enumerable: !0, get: function() {
1797
+ return C.ERROR_MESSAGES;
1798
+ } }), Object.defineProperty(e, "SUCCESS_MESSAGES", { enumerable: !0, get: function() {
1799
+ return C.SUCCESS_MESSAGES;
1800
+ } }), Object.defineProperty(e, "ROUTES", { enumerable: !0, get: function() {
1801
+ return C.ROUTES;
1802
+ } }), Object.defineProperty(e, "CONTACT_INFO", { enumerable: !0, get: function() {
1803
+ return C.CONTACT_INFO;
1804
+ } }), Object.defineProperty(e, "WALLET_NAMES", { enumerable: !0, get: function() {
1805
+ return C.WALLET_NAMES;
1806
+ } }), Object.defineProperty(e, "NETWORK_IDS", { enumerable: !0, get: function() {
1807
+ return C.NETWORK_IDS;
1808
+ } }), Object.defineProperty(e, "ANIMATION", { enumerable: !0, get: function() {
1809
+ return C.ANIMATION;
1810
+ } }), Object.defineProperty(e, "Z_INDEX", { enumerable: !0, get: function() {
1811
+ return C.Z_INDEX;
1812
+ } });
1813
+ var s = gr();
1814
+ Object.defineProperty(e, "STATUS_VALUES", { enumerable: !0, get: function() {
1815
+ return s.STATUS_VALUES;
1816
+ } });
1817
+ var L = pt();
1818
+ Object.defineProperty(e, "LogLevel", { enumerable: !0, get: function() {
1819
+ return L.LogLevel;
1820
+ } }), Object.defineProperty(e, "logger", { enumerable: !0, get: function() {
1821
+ return L.logger;
1822
+ } }), Object.defineProperty(e, "authLogger", { enumerable: !0, get: function() {
1823
+ return L.authLogger;
1824
+ } }), Object.defineProperty(e, "apiLogger", { enumerable: !0, get: function() {
1825
+ return L.apiLogger;
1826
+ } }), Object.defineProperty(e, "contractLogger", { enumerable: !0, get: function() {
1827
+ return L.contractLogger;
1828
+ } }), Object.defineProperty(e, "ensLogger", { enumerable: !0, get: function() {
1829
+ return L.ensLogger;
1830
+ } }), Object.defineProperty(e, "storageLogger", { enumerable: !0, get: function() {
1831
+ return L.storageLogger;
1832
+ } });
1833
+ var V = Er();
1834
+ Object.defineProperty(e, "createURLSearchParams", { enumerable: !0, get: function() {
1835
+ return V.createURLSearchParams;
1836
+ } }), Object.defineProperty(e, "createSearchParams", { enumerable: !0, get: function() {
1837
+ return V.createSearchParams;
1838
+ } }), Object.defineProperty(e, "searchParamsToString", { enumerable: !0, get: function() {
1839
+ return V.searchParamsToString;
1840
+ } }), Object.defineProperty(e, "parseSearchParams", { enumerable: !0, get: function() {
1841
+ return V.parseSearchParams;
1842
+ } });
1843
+ var D = hr();
1844
+ Object.defineProperty(e, "safeAsync", { enumerable: !0, get: function() {
1845
+ return D.safeAsync;
1846
+ } }), Object.defineProperty(e, "withLoadingState", { enumerable: !0, get: function() {
1847
+ return D.withLoadingState;
1848
+ } }), Object.defineProperty(e, "safeParallel", { enumerable: !0, get: function() {
1849
+ return D.safeParallel;
1850
+ } }), Object.defineProperty(e, "withTimeout", { enumerable: !0, get: function() {
1851
+ return D.withTimeout;
1852
+ } }), Object.defineProperty(e, "withCache", { enumerable: !0, get: function() {
1853
+ return D.withCache;
1854
+ } }), Object.defineProperty(e, "clearExpiredCache", { enumerable: !0, get: function() {
1855
+ return D.clearExpiredCache;
1856
+ } }), Object.defineProperty(e, "debounceAsync", { enumerable: !0, get: function() {
1857
+ return D.debounceAsync;
2011
1858
  } });
2012
- })(z)), z;
1859
+ })(be)), be;
2013
1860
  }
2014
- var G = hn();
2015
- const En = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` : "", nr = ({ addressType: e }) => {
1861
+ var K = br();
1862
+ const Sr = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` : "", At = ({ addressType: e }) => {
2016
1863
  const t = () => {
2017
1864
  switch (e) {
2018
- case G.AddressType.EVMAddress:
1865
+ case K.AddressType.EVMAddress:
2019
1866
  return "ETH";
2020
- case G.AddressType.SolanaAddress:
1867
+ case K.AddressType.SolanaAddress:
2021
1868
  return "SOL";
2022
- case G.AddressType.ENSName:
1869
+ case K.AddressType.ENSName:
2023
1870
  return "ENS";
2024
- case G.AddressType.SNSName:
1871
+ case K.AddressType.SNSName:
2025
1872
  return "SNS";
2026
1873
  default:
2027
1874
  return "DOMAIN";
2028
1875
  }
2029
1876
  };
2030
- return /* @__PURE__ */ R(
1877
+ return /* @__PURE__ */ v(
2031
1878
  "span",
2032
1879
  {
2033
- className: w(
1880
+ className: M(
2034
1881
  "inline-flex items-center px-2.5 py-0.5 rounded-md text-xs font-medium border",
2035
1882
  (() => {
2036
1883
  switch (e) {
2037
- case G.AddressType.EVMAddress:
1884
+ case K.AddressType.EVMAddress:
2038
1885
  return "bg-blue-50 text-blue-700 border-blue-200 dark:bg-blue-900/10 dark:text-blue-300 dark:border-blue-800";
2039
- case G.AddressType.SolanaAddress:
1886
+ case K.AddressType.SolanaAddress:
2040
1887
  return "bg-purple-50 text-purple-700 border-purple-200 dark:bg-purple-900/10 dark:text-purple-300 dark:border-purple-800";
2041
- case G.AddressType.ENSName:
1888
+ case K.AddressType.ENSName:
2042
1889
  return "bg-green-50 text-green-700 border-green-200 dark:bg-green-900/10 dark:text-green-300 dark:border-green-800";
2043
- case G.AddressType.SNSName:
1890
+ case K.AddressType.SNSName:
2044
1891
  return "bg-orange-50 text-orange-700 border-orange-200 dark:bg-orange-900/10 dark:text-orange-300 dark:border-orange-800";
2045
1892
  default:
2046
1893
  return "bg-gray-50 text-gray-700 border-gray-200 dark:bg-gray-900/10 dark:text-gray-300 dark:border-gray-800";
@@ -2050,7 +1897,7 @@ const En = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
2050
1897
  children: t()
2051
1898
  }
2052
1899
  );
2053
- }, bn = ({
1900
+ }, yr = ({
2054
1901
  domainEmails: e,
2055
1902
  isExpanded: t,
2056
1903
  selectedAccount: r,
@@ -2058,38 +1905,38 @@ const En = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
2058
1905
  onAccountSettings: i,
2059
1906
  onTrack: a
2060
1907
  }) => {
2061
- const o = Nr(null), [u, c] = _r(void 0);
2062
- return Cr(() => {
1908
+ const o = Yt(null), [d, c] = qt(void 0);
1909
+ return zt(() => {
2063
1910
  if (o.current) {
2064
- const s = o.current.scrollHeight;
2065
- c(t ? s + 8 : 0);
1911
+ const l = o.current.scrollHeight;
1912
+ c(t ? l + 8 : 0);
2066
1913
  }
2067
- }, [t, e]), /* @__PURE__ */ R(
1914
+ }, [t, e]), /* @__PURE__ */ v(
2068
1915
  "div",
2069
1916
  {
2070
1917
  className: "overflow-hidden transition-all duration-300 ease-in-out",
2071
- style: { height: u !== void 0 ? `${u}px` : "auto" },
2072
- children: /* @__PURE__ */ R("div", { ref: o, className: "ml-6 mt-2 space-y-1", children: e.map((s) => /* @__PURE__ */ k(
1918
+ style: { height: d !== void 0 ? `${d}px` : "auto" },
1919
+ children: /* @__PURE__ */ v("div", { ref: o, className: "ml-6 mt-2 space-y-1", children: e.map((l) => /* @__PURE__ */ F(
2073
1920
  "button",
2074
1921
  {
2075
1922
  onClick: () => {
2076
- a?.("account_select"), n(s.address);
1923
+ a?.("account_select"), n(l.address);
2077
1924
  },
2078
- className: w(
1925
+ className: M(
2079
1926
  "w-full flex items-center justify-between text-left px-3 py-2 rounded-lg transition-colors h-[44px]",
2080
- $t.body.sm(),
2081
- r === s.address ? "bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300" : "hover:bg-gray-100 dark:hover:bg-gray-700"
1927
+ ht.body.sm(),
1928
+ r === l.address ? "bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300" : "hover:bg-gray-100 dark:hover:bg-gray-700"
2082
1929
  ),
2083
1930
  children: [
2084
- /* @__PURE__ */ R("span", { className: "truncate flex-1", children: s.name }),
2085
- /* @__PURE__ */ R(nr, { addressType: s.addressType })
1931
+ /* @__PURE__ */ v("span", { className: "truncate flex-1", children: l.name }),
1932
+ /* @__PURE__ */ v(At, { addressType: l.addressType })
2086
1933
  ]
2087
1934
  },
2088
- s.address
1935
+ l.address
2089
1936
  )) })
2090
1937
  }
2091
1938
  );
2092
- }, ei = ({
1939
+ }, na = ({
2093
1940
  walletGroups: e,
2094
1941
  selectedAccount: t,
2095
1942
  expandedWallets: r,
@@ -2097,41 +1944,41 @@ const En = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
2097
1944
  onToggleWallet: i,
2098
1945
  onAccountSettings: a,
2099
1946
  className: o = "",
2100
- onTrack: u
2101
- }) => /* @__PURE__ */ R("nav", { className: w("space-y-1", o), children: e.map((c) => /* @__PURE__ */ k("div", { children: [
2102
- /* @__PURE__ */ k(
1947
+ onTrack: d
1948
+ }) => /* @__PURE__ */ v("nav", { className: M("space-y-1", o), children: e.map((c) => /* @__PURE__ */ F("div", { children: [
1949
+ /* @__PURE__ */ F(
2103
1950
  "button",
2104
1951
  {
2105
1952
  onClick: () => {
2106
- u?.("primary_account_select"), n(c.primaryEmail.address);
1953
+ d?.("primary_account_select"), n(c.primaryEmail.address);
2107
1954
  },
2108
- className: w(
1955
+ className: M(
2109
1956
  "w-full flex items-center justify-between text-left px-3 py-2 rounded-lg transition-colors h-[44px]",
2110
- $t.body.sm(),
1957
+ ht.body.sm(),
2111
1958
  t === c.primaryEmail.address && c.domainEmails.length === 0 ? "bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300" : "hover:bg-gray-100 dark:hover:bg-gray-700"
2112
1959
  ),
2113
1960
  style: c.customColor ? { backgroundColor: c.customColor } : void 0,
2114
1961
  children: [
2115
- /* @__PURE__ */ k("div", { className: "flex items-center flex-1 min-w-0", children: [
2116
- /* @__PURE__ */ R("span", { className: "truncate flex-1", children: En(c.walletAddress) }),
2117
- /* @__PURE__ */ R(nr, { addressType: c.primaryEmail.addressType })
1962
+ /* @__PURE__ */ F("div", { className: "flex items-center flex-1 min-w-0", children: [
1963
+ /* @__PURE__ */ v("span", { className: "truncate flex-1", children: Sr(c.walletAddress) }),
1964
+ /* @__PURE__ */ v(At, { addressType: c.primaryEmail.addressType })
2118
1965
  ] }),
2119
- c.domainEmails.length > 0 && /* @__PURE__ */ R(
1966
+ c.domainEmails.length > 0 && /* @__PURE__ */ v(
2120
1967
  "div",
2121
1968
  {
2122
- onClick: (s) => {
2123
- s.stopPropagation(), u?.("toggle_wallet"), i(c.walletAddress);
1969
+ onClick: (l) => {
1970
+ l.stopPropagation(), d?.("toggle_wallet"), i(c.walletAddress);
2124
1971
  },
2125
1972
  className: "p-1 rounded-lg hover:bg-gray-200 dark:hover:bg-gray-600 transition-colors cursor-pointer",
2126
1973
  role: "button",
2127
1974
  tabIndex: 0,
2128
- onKeyDown: (s) => {
2129
- (s.key === "Enter" || s.key === " ") && (s.preventDefault(), s.stopPropagation(), u?.("toggle_wallet"), i(c.walletAddress));
1975
+ onKeyDown: (l) => {
1976
+ (l.key === "Enter" || l.key === " ") && (l.preventDefault(), l.stopPropagation(), d?.("toggle_wallet"), i(c.walletAddress));
2130
1977
  },
2131
- children: /* @__PURE__ */ R(
2132
- Pr,
1978
+ children: /* @__PURE__ */ v(
1979
+ Kt,
2133
1980
  {
2134
- className: w(
1981
+ className: M(
2135
1982
  "h-4 w-4 text-gray-500 transition-transform duration-300 ease-in-out",
2136
1983
  r.includes(c.walletAddress) ? "rotate-90" : "rotate-0"
2137
1984
  )
@@ -2142,25 +1989,25 @@ const En = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
2142
1989
  ]
2143
1990
  }
2144
1991
  ),
2145
- c.domainEmails.length > 0 && /* @__PURE__ */ R(
2146
- bn,
1992
+ c.domainEmails.length > 0 && /* @__PURE__ */ v(
1993
+ yr,
2147
1994
  {
2148
1995
  domainEmails: c.domainEmails,
2149
1996
  isExpanded: r.includes(c.walletAddress),
2150
1997
  selectedAccount: t,
2151
1998
  onAccountSelect: n,
2152
1999
  onAccountSettings: a,
2153
- onTrack: u
2000
+ onTrack: d
2154
2001
  }
2155
2002
  )
2156
- ] }, c.walletAddress)) }), ti = ({
2003
+ ] }, c.walletAddress)) }), aa = ({
2157
2004
  className: e,
2158
2005
  children: t,
2159
2006
  disabled: r
2160
- }) => /* @__PURE__ */ R(
2007
+ }) => /* @__PURE__ */ v(
2161
2008
  "div",
2162
2009
  {
2163
- className: w(
2010
+ className: M(
2164
2011
  "p-4 rounded-lg border transition-colors",
2165
2012
  "bg-white dark:bg-gray-900",
2166
2013
  "border-gray-200 dark:border-gray-700",
@@ -2172,14 +2019,14 @@ const En = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
2172
2019
  "aria-label": "EmailAnalytics",
2173
2020
  children: t || "EmailAnalytics Component"
2174
2021
  }
2175
- ), ri = ({
2022
+ ), ia = ({
2176
2023
  className: e,
2177
2024
  children: t,
2178
2025
  disabled: r
2179
- }) => /* @__PURE__ */ R(
2026
+ }) => /* @__PURE__ */ v(
2180
2027
  "div",
2181
2028
  {
2182
- className: w(
2029
+ className: M(
2183
2030
  "p-4 rounded-lg border transition-colors",
2184
2031
  "bg-white dark:bg-gray-900",
2185
2032
  "border-gray-200 dark:border-gray-700",
@@ -2191,7 +2038,7 @@ const En = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
2191
2038
  "aria-label": "EmailCampaign",
2192
2039
  children: t || "EmailCampaign Component"
2193
2040
  }
2194
- ), ar = ({
2041
+ ), Rt = ({
2195
2042
  label: e,
2196
2043
  value: t,
2197
2044
  onChange: r,
@@ -2199,26 +2046,26 @@ const En = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
2199
2046
  required: i = !1,
2200
2047
  error: a,
2201
2048
  className: o = ""
2202
- }) => /* @__PURE__ */ k("div", { className: o, children: [
2203
- /* @__PURE__ */ k(
2204
- Rr,
2049
+ }) => /* @__PURE__ */ F("div", { className: o, children: [
2050
+ /* @__PURE__ */ F(
2051
+ Ht,
2205
2052
  {
2206
2053
  htmlFor: e.toLowerCase(),
2207
2054
  className: "text-sm font-medium text-gray-700 dark:text-gray-300",
2208
2055
  children: [
2209
2056
  e,
2210
2057
  " ",
2211
- i && /* @__PURE__ */ R("span", { className: "text-red-500", children: "*" })
2058
+ i && /* @__PURE__ */ v("span", { className: "text-red-500", children: "*" })
2212
2059
  ]
2213
2060
  }
2214
2061
  ),
2215
- /* @__PURE__ */ R(
2062
+ /* @__PURE__ */ v(
2216
2063
  "input",
2217
2064
  {
2218
2065
  id: e.toLowerCase(),
2219
2066
  type: "email",
2220
2067
  value: t,
2221
- onChange: (u) => r(u.target.value),
2068
+ onChange: (d) => r(d.target.value),
2222
2069
  placeholder: n,
2223
2070
  className: `
2224
2071
  mt-1 block w-full px-3 py-2 border rounded-md shadow-sm
@@ -2228,8 +2075,8 @@ const En = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
2228
2075
  `
2229
2076
  }
2230
2077
  ),
2231
- a && /* @__PURE__ */ R("p", { className: "mt-1 text-sm text-red-600 dark:text-red-400", children: a })
2232
- ] }), zt = ({
2078
+ a && /* @__PURE__ */ v("p", { className: "mt-1 text-sm text-red-600 dark:text-red-400", children: a })
2079
+ ] }), st = ({
2233
2080
  isVisible: e,
2234
2081
  onToggle: t,
2235
2082
  showLabel: r,
@@ -2237,9 +2084,9 @@ const En = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
2237
2084
  onTrack: i,
2238
2085
  trackingLabel: a,
2239
2086
  componentName: o = "CollapsibleEmailField",
2240
- ...u
2241
- }) => /* @__PURE__ */ k("div", { children: [
2242
- /* @__PURE__ */ k(
2087
+ ...d
2088
+ }) => /* @__PURE__ */ F("div", { children: [
2089
+ /* @__PURE__ */ F(
2243
2090
  "button",
2244
2091
  {
2245
2092
  type: "button",
@@ -2248,13 +2095,13 @@ const En = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
2248
2095
  },
2249
2096
  className: "flex items-center text-sm text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 mb-2",
2250
2097
  children: [
2251
- e ? /* @__PURE__ */ R(Ir, { className: "h-4 w-4 mr-1" }) : /* @__PURE__ */ R(wr, { className: "h-4 w-4 mr-1" }),
2098
+ e ? /* @__PURE__ */ v(Zt, { className: "h-4 w-4 mr-1" }) : /* @__PURE__ */ v(Jt, { className: "h-4 w-4 mr-1" }),
2252
2099
  e ? n : r
2253
2100
  ]
2254
2101
  }
2255
2102
  ),
2256
- e && /* @__PURE__ */ R(ar, { ...u })
2257
- ] }), ni = ({
2103
+ e && /* @__PURE__ */ v(Rt, { ...d })
2104
+ ] }), oa = ({
2258
2105
  to: e,
2259
2106
  onToChange: t,
2260
2107
  cc: r = "",
@@ -2262,11 +2109,11 @@ const En = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
2262
2109
  bcc: i = "",
2263
2110
  onBccChange: a,
2264
2111
  showCc: o = !1,
2265
- showBcc: u = !1,
2112
+ showBcc: d = !1,
2266
2113
  onToggleCc: c,
2267
- onToggleBcc: s,
2114
+ onToggleBcc: l,
2268
2115
  errors: f = {},
2269
- className: l = "",
2116
+ className: u = "",
2270
2117
  labels: m = {},
2271
2118
  placeholders: b = {},
2272
2119
  onTrack: S,
@@ -2285,26 +2132,26 @@ const En = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
2285
2132
  to: "recipient@example.com",
2286
2133
  cc: "cc@example.com",
2287
2134
  bcc: "bcc@example.com"
2288
- }, E = { ...A, ...m }, T = { ...y, ...b };
2289
- return /* @__PURE__ */ k("div", { className: `space-y-4 ${l}`, children: [
2290
- /* @__PURE__ */ R(
2291
- ar,
2135
+ }, E = { ...A, ...m }, R = { ...y, ...b };
2136
+ return /* @__PURE__ */ F("div", { className: `space-y-4 ${u}`, children: [
2137
+ /* @__PURE__ */ v(
2138
+ Rt,
2292
2139
  {
2293
2140
  label: E.to,
2294
2141
  value: e,
2295
2142
  onChange: t,
2296
- placeholder: T.to,
2143
+ placeholder: R.to,
2297
2144
  required: !0,
2298
2145
  error: f.to
2299
2146
  }
2300
2147
  ),
2301
- c && n && /* @__PURE__ */ R(
2302
- zt,
2148
+ c && n && /* @__PURE__ */ v(
2149
+ st,
2303
2150
  {
2304
2151
  label: E.cc,
2305
2152
  value: r,
2306
2153
  onChange: n,
2307
- placeholder: T.cc,
2154
+ placeholder: R.cc,
2308
2155
  error: f.cc,
2309
2156
  isVisible: o,
2310
2157
  onToggle: c,
@@ -2314,16 +2161,16 @@ const En = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
2314
2161
  trackingLabel: p
2315
2162
  }
2316
2163
  ),
2317
- s && a && /* @__PURE__ */ R(
2318
- zt,
2164
+ l && a && /* @__PURE__ */ v(
2165
+ st,
2319
2166
  {
2320
2167
  label: E.bcc,
2321
2168
  value: i,
2322
2169
  onChange: a,
2323
- placeholder: T.bcc,
2170
+ placeholder: R.bcc,
2324
2171
  error: f.bcc,
2325
- isVisible: u,
2326
- onToggle: s,
2172
+ isVisible: d,
2173
+ onToggle: l,
2327
2174
  showLabel: E.addBcc,
2328
2175
  hideLabel: E.removeBcc,
2329
2176
  onTrack: S,
@@ -2331,7 +2178,7 @@ const En = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
2331
2178
  }
2332
2179
  )
2333
2180
  ] });
2334
- }, ai = ({
2181
+ }, ua = ({
2335
2182
  className: e,
2336
2183
  children: t,
2337
2184
  disabled: r = !1,
@@ -2341,10 +2188,10 @@ const En = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
2341
2188
  const a = () => {
2342
2189
  r || (i?.("click"), n?.());
2343
2190
  };
2344
- return /* @__PURE__ */ R(
2191
+ return /* @__PURE__ */ v(
2345
2192
  "div",
2346
2193
  {
2347
- className: w(
2194
+ className: M(
2348
2195
  "p-4 rounded-lg border transition-colors",
2349
2196
  "bg-white dark:bg-gray-900",
2350
2197
  "border-gray-200 dark:border-gray-700",
@@ -2360,11 +2207,11 @@ const En = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
2360
2207
  }
2361
2208
  );
2362
2209
  };
2363
- function I(e, t) {
2210
+ function w(e, t) {
2364
2211
  if (e === !1 || e === null || typeof e > "u")
2365
2212
  throw new Error(t);
2366
2213
  }
2367
- function B(e, t) {
2214
+ function H(e, t) {
2368
2215
  if (!e) {
2369
2216
  typeof console < "u" && console.warn(t);
2370
2217
  try {
@@ -2373,14 +2220,14 @@ function B(e, t) {
2373
2220
  }
2374
2221
  }
2375
2222
  }
2376
- function He({
2223
+ function ve({
2377
2224
  pathname: e = "/",
2378
2225
  search: t = "",
2379
2226
  hash: r = ""
2380
2227
  }) {
2381
2228
  return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), r && r !== "#" && (e += r.charAt(0) === "#" ? r : "#" + r), e;
2382
2229
  }
2383
- function Ye(e) {
2230
+ function Ce(e) {
2384
2231
  let t = {};
2385
2232
  if (e) {
2386
2233
  let r = e.indexOf("#");
@@ -2390,100 +2237,100 @@ function Ye(e) {
2390
2237
  }
2391
2238
  return t;
2392
2239
  }
2393
- function ir(e, t, r = "/") {
2394
- return yn(e, t, r, !1);
2240
+ function Nt(e, t, r = "/") {
2241
+ return pr(e, t, r, !1);
2395
2242
  }
2396
- function yn(e, t, r, n) {
2397
- let i = typeof t == "string" ? Ye(t) : t, a = Y(i.pathname || "/", r);
2243
+ function pr(e, t, r, n) {
2244
+ let i = typeof t == "string" ? Ce(t) : t, a = Z(i.pathname || "/", r);
2398
2245
  if (a == null)
2399
2246
  return null;
2400
- let o = or(e);
2401
- Sn(o);
2402
- let u = null;
2403
- for (let c = 0; u == null && c < o.length; ++c) {
2404
- let s = In(a);
2405
- u = Cn(
2247
+ let o = Tt(e);
2248
+ Ar(o);
2249
+ let d = null;
2250
+ for (let c = 0; d == null && c < o.length; ++c) {
2251
+ let l = Mr(a);
2252
+ d = Ir(
2406
2253
  o[c],
2407
- s,
2254
+ l,
2408
2255
  n
2409
2256
  );
2410
2257
  }
2411
- return u;
2258
+ return d;
2412
2259
  }
2413
- function or(e, t = [], r = [], n = "", i = !1) {
2414
- let a = (o, u, c = i, s) => {
2260
+ function Tt(e, t = [], r = [], n = "", i = !1) {
2261
+ let a = (o, d, c = i, l) => {
2415
2262
  let f = {
2416
- relativePath: s === void 0 ? o.path || "" : s,
2263
+ relativePath: l === void 0 ? o.path || "" : l,
2417
2264
  caseSensitive: o.caseSensitive === !0,
2418
- childrenIndex: u,
2265
+ childrenIndex: d,
2419
2266
  route: o
2420
2267
  };
2421
2268
  if (f.relativePath.startsWith("/")) {
2422
2269
  if (!f.relativePath.startsWith(n) && c)
2423
2270
  return;
2424
- I(
2271
+ w(
2425
2272
  f.relativePath.startsWith(n),
2426
2273
  `Absolute route path "${f.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`
2427
2274
  ), f.relativePath = f.relativePath.slice(n.length);
2428
2275
  }
2429
- let l = q([n, f.relativePath]), m = r.concat(f);
2430
- o.children && o.children.length > 0 && (I(
2276
+ let u = q([n, f.relativePath]), m = r.concat(f);
2277
+ o.children && o.children.length > 0 && (w(
2431
2278
  // Our types know better, but runtime JS may not!
2432
2279
  // @ts-expect-error
2433
2280
  o.index !== !0,
2434
- `Index routes must not have child routes. Please remove all child routes from route path "${l}".`
2435
- ), or(
2281
+ `Index routes must not have child routes. Please remove all child routes from route path "${u}".`
2282
+ ), Tt(
2436
2283
  o.children,
2437
2284
  t,
2438
2285
  m,
2439
- l,
2286
+ u,
2440
2287
  c
2441
2288
  )), !(o.path == null && !o.index) && t.push({
2442
- path: l,
2443
- score: Nn(l, o.index),
2289
+ path: u,
2290
+ score: Pr(u, o.index),
2444
2291
  routesMeta: m
2445
2292
  });
2446
2293
  };
2447
- return e.forEach((o, u) => {
2294
+ return e.forEach((o, d) => {
2448
2295
  if (o.path === "" || !o.path?.includes("?"))
2449
- a(o, u);
2296
+ a(o, d);
2450
2297
  else
2451
- for (let c of ur(o.path))
2452
- a(o, u, !0, c);
2298
+ for (let c of Ot(o.path))
2299
+ a(o, d, !0, c);
2453
2300
  }), t;
2454
2301
  }
2455
- function ur(e) {
2302
+ function Ot(e) {
2456
2303
  let t = e.split("/");
2457
2304
  if (t.length === 0) return [];
2458
2305
  let [r, ...n] = t, i = r.endsWith("?"), a = r.replace(/\?$/, "");
2459
2306
  if (n.length === 0)
2460
2307
  return i ? [a, ""] : [a];
2461
- let o = ur(n.join("/")), u = [];
2462
- return u.push(
2308
+ let o = Ot(n.join("/")), d = [];
2309
+ return d.push(
2463
2310
  ...o.map(
2464
2311
  (c) => c === "" ? a : [a, c].join("/")
2465
2312
  )
2466
- ), i && u.push(...o), u.map(
2313
+ ), i && d.push(...o), d.map(
2467
2314
  (c) => e.startsWith("/") && c === "" ? "/" : c
2468
2315
  );
2469
2316
  }
2470
- function Sn(e) {
2317
+ function Ar(e) {
2471
2318
  e.sort(
2472
- (t, r) => t.score !== r.score ? r.score - t.score : _n(
2319
+ (t, r) => t.score !== r.score ? r.score - t.score : _r(
2473
2320
  t.routesMeta.map((n) => n.childrenIndex),
2474
2321
  r.routesMeta.map((n) => n.childrenIndex)
2475
2322
  )
2476
2323
  );
2477
2324
  }
2478
- var pn = /^:[\w-]+$/, An = 3, vn = 2, Tn = 1, On = 10, Rn = -2, Kt = (e) => e === "*";
2479
- function Nn(e, t) {
2325
+ var Rr = /^:[\w-]+$/, Nr = 3, Tr = 2, Or = 1, vr = 10, Cr = -2, ct = (e) => e === "*";
2326
+ function Pr(e, t) {
2480
2327
  let r = e.split("/"), n = r.length;
2481
- return r.some(Kt) && (n += Rn), t && (n += vn), r.filter((i) => !Kt(i)).reduce(
2482
- (i, a) => i + (pn.test(a) ? An : a === "" ? Tn : On),
2328
+ return r.some(ct) && (n += Cr), t && (n += Tr), r.filter((i) => !ct(i)).reduce(
2329
+ (i, a) => i + (Rr.test(a) ? Nr : a === "" ? Or : vr),
2483
2330
  n
2484
2331
  );
2485
2332
  }
2486
- function _n(e, t) {
2333
+ function _r(e, t) {
2487
2334
  return e.length === t.length && e.slice(0, -1).every((n, i) => n === t[i]) ? (
2488
2335
  // If two routes are siblings, we should try to match the earlier sibling
2489
2336
  // first. This allows people to have fine-grained control over the matching
@@ -2496,52 +2343,52 @@ function _n(e, t) {
2496
2343
  0
2497
2344
  );
2498
2345
  }
2499
- function Cn(e, t, r = !1) {
2346
+ function Ir(e, t, r = !1) {
2500
2347
  let { routesMeta: n } = e, i = {}, a = "/", o = [];
2501
- for (let u = 0; u < n.length; ++u) {
2502
- let c = n[u], s = u === n.length - 1, f = a === "/" ? t : t.slice(a.length) || "/", l = be(
2503
- { path: c.relativePath, caseSensitive: c.caseSensitive, end: s },
2348
+ for (let d = 0; d < n.length; ++d) {
2349
+ let c = n[d], l = d === n.length - 1, f = a === "/" ? t : t.slice(a.length) || "/", u = me(
2350
+ { path: c.relativePath, caseSensitive: c.caseSensitive, end: l },
2504
2351
  f
2505
2352
  ), m = c.route;
2506
- if (!l && s && r && !n[n.length - 1].route.index && (l = be(
2353
+ if (!u && l && r && !n[n.length - 1].route.index && (u = me(
2507
2354
  {
2508
2355
  path: c.relativePath,
2509
2356
  caseSensitive: c.caseSensitive,
2510
2357
  end: !1
2511
2358
  },
2512
2359
  f
2513
- )), !l)
2360
+ )), !u)
2514
2361
  return null;
2515
- Object.assign(i, l.params), o.push({
2362
+ Object.assign(i, u.params), o.push({
2516
2363
  // TODO: Can this as be avoided?
2517
2364
  params: i,
2518
- pathname: q([a, l.pathname]),
2519
- pathnameBase: Dn(
2520
- q([a, l.pathnameBase])
2365
+ pathname: q([a, u.pathname]),
2366
+ pathnameBase: Ur(
2367
+ q([a, u.pathnameBase])
2521
2368
  ),
2522
2369
  route: m
2523
- }), l.pathnameBase !== "/" && (a = q([a, l.pathnameBase]));
2370
+ }), u.pathnameBase !== "/" && (a = q([a, u.pathnameBase]));
2524
2371
  }
2525
2372
  return o;
2526
2373
  }
2527
- function be(e, t) {
2374
+ function me(e, t) {
2528
2375
  typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
2529
- let [r, n] = Pn(
2376
+ let [r, n] = wr(
2530
2377
  e.path,
2531
2378
  e.caseSensitive,
2532
2379
  e.end
2533
2380
  ), i = t.match(r);
2534
2381
  if (!i) return null;
2535
- let a = i[0], o = a.replace(/(.)\/+$/, "$1"), u = i.slice(1);
2382
+ let a = i[0], o = a.replace(/(.)\/+$/, "$1"), d = i.slice(1);
2536
2383
  return {
2537
2384
  params: n.reduce(
2538
- (s, { paramName: f, isOptional: l }, m) => {
2385
+ (l, { paramName: f, isOptional: u }, m) => {
2539
2386
  if (f === "*") {
2540
- let S = u[m] || "";
2387
+ let S = d[m] || "";
2541
2388
  o = a.slice(0, a.length - S.length).replace(/(.)\/+$/, "$1");
2542
2389
  }
2543
- const b = u[m];
2544
- return l && !b ? s[f] = void 0 : s[f] = (b || "").replace(/%2F/g, "/"), s;
2390
+ const b = d[m];
2391
+ return u && !b ? l[f] = void 0 : l[f] = (b || "").replace(/%2F/g, "/"), l;
2545
2392
  },
2546
2393
  {}
2547
2394
  ),
@@ -2550,139 +2397,139 @@ function be(e, t) {
2550
2397
  pattern: e
2551
2398
  };
2552
2399
  }
2553
- function Pn(e, t = !1, r = !0) {
2554
- B(
2400
+ function wr(e, t = !1, r = !0) {
2401
+ H(
2555
2402
  e === "*" || !e.endsWith("*") || e.endsWith("/*"),
2556
2403
  `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`
2557
2404
  );
2558
2405
  let n = [], i = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(
2559
2406
  /\/:([\w-]+)(\?)?/g,
2560
- (o, u, c) => (n.push({ paramName: u, isOptional: c != null }), c ? "/?([^\\/]+)?" : "/([^\\/]+)")
2407
+ (o, d, c) => (n.push({ paramName: d, isOptional: c != null }), c ? "/?([^\\/]+)?" : "/([^\\/]+)")
2561
2408
  ).replace(/\/([\w-]+)\?(\/|$)/g, "(/$1)?$2");
2562
2409
  return e.endsWith("*") ? (n.push({ paramName: "*" }), i += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : r ? i += "\\/*$" : e !== "" && e !== "/" && (i += "(?:(?=\\/|$))"), [new RegExp(i, t ? void 0 : "i"), n];
2563
2410
  }
2564
- function In(e) {
2411
+ function Mr(e) {
2565
2412
  try {
2566
2413
  return e.split("/").map((t) => decodeURIComponent(t).replace(/\//g, "%2F")).join("/");
2567
2414
  } catch (t) {
2568
- return B(
2415
+ return H(
2569
2416
  !1,
2570
2417
  `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`
2571
2418
  ), e;
2572
2419
  }
2573
2420
  }
2574
- function Y(e, t) {
2421
+ function Z(e, t) {
2575
2422
  if (t === "/") return e;
2576
2423
  if (!e.toLowerCase().startsWith(t.toLowerCase()))
2577
2424
  return null;
2578
2425
  let r = t.endsWith("/") ? t.length - 1 : t.length, n = e.charAt(r);
2579
2426
  return n && n !== "/" ? null : e.slice(r) || "/";
2580
2427
  }
2581
- var lr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, wn = (e) => lr.test(e);
2582
- function Mn(e, t = "/") {
2428
+ var vt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Lr = (e) => vt.test(e);
2429
+ function Dr(e, t = "/") {
2583
2430
  let {
2584
2431
  pathname: r,
2585
2432
  search: n = "",
2586
2433
  hash: i = ""
2587
- } = typeof e == "string" ? Ye(e) : e, a;
2434
+ } = typeof e == "string" ? Ce(e) : e, a;
2588
2435
  if (r)
2589
- if (wn(r))
2436
+ if (Lr(r))
2590
2437
  a = r;
2591
2438
  else {
2592
2439
  if (r.includes("//")) {
2593
2440
  let o = r;
2594
- r = r.replace(/\/\/+/g, "/"), B(
2441
+ r = r.replace(/\/\/+/g, "/"), H(
2595
2442
  !1,
2596
2443
  `Pathnames cannot have embedded double slashes - normalizing ${o} -> ${r}`
2597
2444
  );
2598
2445
  }
2599
- r.startsWith("/") ? a = Zt(r.substring(1), "/") : a = Zt(r, t);
2446
+ r.startsWith("/") ? a = dt(r.substring(1), "/") : a = dt(r, t);
2600
2447
  }
2601
2448
  else
2602
2449
  a = t;
2603
2450
  return {
2604
2451
  pathname: a,
2605
- search: jn(n),
2606
- hash: Un(i)
2452
+ search: kr(n),
2453
+ hash: Vr(i)
2607
2454
  };
2608
2455
  }
2609
- function Zt(e, t) {
2456
+ function dt(e, t) {
2610
2457
  let r = t.replace(/\/+$/, "").split("/");
2611
2458
  return e.split("/").forEach((i) => {
2612
2459
  i === ".." ? r.length > 1 && r.pop() : i !== "." && r.push(i);
2613
2460
  }), r.length > 1 ? r.join("/") : "/";
2614
2461
  }
2615
- function Be(e, t, r, n) {
2462
+ function Ne(e, t, r, n) {
2616
2463
  return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(
2617
2464
  n
2618
2465
  )}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
2619
2466
  }
2620
- function Ln(e) {
2467
+ function jr(e) {
2621
2468
  return e.filter(
2622
2469
  (t, r) => r === 0 || t.route.path && t.route.path.length > 0
2623
2470
  );
2624
2471
  }
2625
- function sr(e) {
2626
- let t = Ln(e);
2472
+ function Ct(e) {
2473
+ let t = jr(e);
2627
2474
  return t.map(
2628
2475
  (r, n) => n === t.length - 1 ? r.pathname : r.pathnameBase
2629
2476
  );
2630
2477
  }
2631
- function cr(e, t, r, n = !1) {
2478
+ function Pt(e, t, r, n = !1) {
2632
2479
  let i;
2633
- typeof e == "string" ? i = Ye(e) : (i = { ...e }, I(
2480
+ typeof e == "string" ? i = Ce(e) : (i = { ...e }, w(
2634
2481
  !i.pathname || !i.pathname.includes("?"),
2635
- Be("?", "pathname", "search", i)
2636
- ), I(
2482
+ Ne("?", "pathname", "search", i)
2483
+ ), w(
2637
2484
  !i.pathname || !i.pathname.includes("#"),
2638
- Be("#", "pathname", "hash", i)
2639
- ), I(
2485
+ Ne("#", "pathname", "hash", i)
2486
+ ), w(
2640
2487
  !i.search || !i.search.includes("#"),
2641
- Be("#", "search", "hash", i)
2488
+ Ne("#", "search", "hash", i)
2642
2489
  ));
2643
- let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname, u;
2490
+ let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname, d;
2644
2491
  if (o == null)
2645
- u = r;
2492
+ d = r;
2646
2493
  else {
2647
- let l = t.length - 1;
2494
+ let u = t.length - 1;
2648
2495
  if (!n && o.startsWith("..")) {
2649
2496
  let m = o.split("/");
2650
2497
  for (; m[0] === ".."; )
2651
- m.shift(), l -= 1;
2498
+ m.shift(), u -= 1;
2652
2499
  i.pathname = m.join("/");
2653
2500
  }
2654
- u = l >= 0 ? t[l] : "/";
2501
+ d = u >= 0 ? t[u] : "/";
2655
2502
  }
2656
- let c = Mn(i, u), s = o && o !== "/" && o.endsWith("/"), f = (a || o === ".") && r.endsWith("/");
2657
- return !c.pathname.endsWith("/") && (s || f) && (c.pathname += "/"), c;
2503
+ let c = Dr(i, d), l = o && o !== "/" && o.endsWith("/"), f = (a || o === ".") && r.endsWith("/");
2504
+ return !c.pathname.endsWith("/") && (l || f) && (c.pathname += "/"), c;
2658
2505
  }
2659
- var q = (e) => e.join("/").replace(/\/\/+/g, "/"), Dn = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), jn = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Un = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, kn = class {
2506
+ var q = (e) => e.join("/").replace(/\/\/+/g, "/"), Ur = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), kr = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Vr = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, Wr = class {
2660
2507
  constructor(e, t, r, n = !1) {
2661
2508
  this.status = e, this.statusText = t || "", this.internal = n, r instanceof Error ? (this.data = r.toString(), this.error = r) : this.data = r;
2662
2509
  }
2663
2510
  };
2664
- function Vn(e) {
2511
+ function Fr(e) {
2665
2512
  return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
2666
2513
  }
2667
- function Wn(e) {
2514
+ function Br(e) {
2668
2515
  return e.map((t) => t.route.path).filter(Boolean).join("/").replace(/\/\/*/g, "/") || "/";
2669
2516
  }
2670
- var dr = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
2671
- function fr(e, t) {
2517
+ var _t = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
2518
+ function It(e, t) {
2672
2519
  let r = e;
2673
- if (typeof r != "string" || !lr.test(r))
2520
+ if (typeof r != "string" || !vt.test(r))
2674
2521
  return {
2675
2522
  absoluteURL: void 0,
2676
2523
  isExternal: !1,
2677
2524
  to: r
2678
2525
  };
2679
2526
  let n = r, i = !1;
2680
- if (dr)
2527
+ if (_t)
2681
2528
  try {
2682
- let a = new URL(window.location.href), o = r.startsWith("//") ? new URL(a.protocol + r) : new URL(r), u = Y(o.pathname, t);
2683
- o.origin === a.origin && u != null ? r = u + o.search + o.hash : i = !0;
2529
+ let a = new URL(window.location.href), o = r.startsWith("//") ? new URL(a.protocol + r) : new URL(r), d = Z(o.pathname, t);
2530
+ o.origin === a.origin && d != null ? r = d + o.search + o.hash : i = !0;
2684
2531
  } catch {
2685
- B(
2532
+ H(
2686
2533
  !1,
2687
2534
  `<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
2688
2535
  );
@@ -2694,53 +2541,53 @@ function fr(e, t) {
2694
2541
  };
2695
2542
  }
2696
2543
  Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
2697
- var mr = [
2544
+ var wt = [
2698
2545
  "POST",
2699
2546
  "PUT",
2700
2547
  "PATCH",
2701
2548
  "DELETE"
2702
2549
  ];
2703
2550
  new Set(
2704
- mr
2551
+ wt
2705
2552
  );
2706
- var Bn = [
2553
+ var Gr = [
2707
2554
  "GET",
2708
- ...mr
2555
+ ...wt
2709
2556
  ];
2710
- new Set(Bn);
2711
- var ae = h.createContext(null);
2712
- ae.displayName = "DataRouter";
2713
- var ye = h.createContext(null);
2714
- ye.displayName = "DataRouterState";
2715
- var Fn = h.createContext(!1), gr = h.createContext({
2557
+ new Set(Gr);
2558
+ var te = h.createContext(null);
2559
+ te.displayName = "DataRouter";
2560
+ var ge = h.createContext(null);
2561
+ ge.displayName = "DataRouterState";
2562
+ var Hr = h.createContext(!1), Mt = h.createContext({
2716
2563
  isTransitioning: !1
2717
2564
  });
2718
- gr.displayName = "ViewTransition";
2719
- var qn = h.createContext(
2565
+ Mt.displayName = "ViewTransition";
2566
+ var Yr = h.createContext(
2720
2567
  /* @__PURE__ */ new Map()
2721
2568
  );
2722
- qn.displayName = "Fetchers";
2723
- var Hn = h.createContext(null);
2724
- Hn.displayName = "Await";
2725
- var V = h.createContext(
2569
+ Yr.displayName = "Fetchers";
2570
+ var qr = h.createContext(null);
2571
+ qr.displayName = "Await";
2572
+ var B = h.createContext(
2726
2573
  null
2727
2574
  );
2728
- V.displayName = "Navigation";
2729
- var ze = h.createContext(
2575
+ B.displayName = "Navigation";
2576
+ var Pe = h.createContext(
2730
2577
  null
2731
2578
  );
2732
- ze.displayName = "Location";
2733
- var H = h.createContext({
2579
+ Pe.displayName = "Location";
2580
+ var z = h.createContext({
2734
2581
  outlet: null,
2735
2582
  matches: [],
2736
2583
  isDataRoute: !1
2737
2584
  });
2738
- H.displayName = "Route";
2739
- var Ke = h.createContext(null);
2740
- Ke.displayName = "RouteError";
2741
- var hr = "REACT_ROUTER_ERROR", Gn = "REDIRECT", Yn = "ROUTE_ERROR_RESPONSE";
2742
- function zn(e) {
2743
- if (e.startsWith(`${hr}:${Gn}:{`))
2585
+ z.displayName = "Route";
2586
+ var _e = h.createContext(null);
2587
+ _e.displayName = "RouteError";
2588
+ var Lt = "REACT_ROUTER_ERROR", zr = "REDIRECT", Kr = "ROUTE_ERROR_RESPONSE";
2589
+ function Zr(e) {
2590
+ if (e.startsWith(`${Lt}:${zr}:{`))
2744
2591
  try {
2745
2592
  let t = JSON.parse(e.slice(28));
2746
2593
  if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string" && typeof t.location == "string" && typeof t.reloadDocument == "boolean" && typeof t.replace == "boolean")
@@ -2748,14 +2595,14 @@ function zn(e) {
2748
2595
  } catch {
2749
2596
  }
2750
2597
  }
2751
- function Kn(e) {
2598
+ function Jr(e) {
2752
2599
  if (e.startsWith(
2753
- `${hr}:${Yn}:{`
2600
+ `${Lt}:${Kr}:{`
2754
2601
  ))
2755
2602
  try {
2756
2603
  let t = JSON.parse(e.slice(40));
2757
2604
  if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string")
2758
- return new kn(
2605
+ return new Wr(
2759
2606
  t.status,
2760
2607
  t.statusText,
2761
2608
  t.data
@@ -2763,62 +2610,62 @@ function Kn(e) {
2763
2610
  } catch {
2764
2611
  }
2765
2612
  }
2766
- function Zn(e, { relative: t } = {}) {
2767
- I(
2768
- Se(),
2613
+ function Xr(e, { relative: t } = {}) {
2614
+ w(
2615
+ Ee(),
2769
2616
  // TODO: This error is probably because they somehow have 2 versions of the
2770
2617
  // router loaded. We can help them understand how to avoid that.
2771
2618
  "useHref() may be used only in the context of a <Router> component."
2772
2619
  );
2773
- let { basename: r, navigator: n } = h.useContext(V), { hash: i, pathname: a, search: o } = me(e, { relative: t }), u = a;
2774
- return r !== "/" && (u = a === "/" ? r : q([r, a])), n.createHref({ pathname: u, search: o, hash: i });
2620
+ let { basename: r, navigator: n } = h.useContext(B), { hash: i, pathname: a, search: o } = se(e, { relative: t }), d = a;
2621
+ return r !== "/" && (d = a === "/" ? r : q([r, a])), n.createHref({ pathname: d, search: o, hash: i });
2775
2622
  }
2776
- function Se() {
2777
- return h.useContext(ze) != null;
2623
+ function Ee() {
2624
+ return h.useContext(Pe) != null;
2778
2625
  }
2779
- function ee() {
2780
- return I(
2781
- Se(),
2626
+ function x() {
2627
+ return w(
2628
+ Ee(),
2782
2629
  // TODO: This error is probably because they somehow have 2 versions of the
2783
2630
  // router loaded. We can help them understand how to avoid that.
2784
2631
  "useLocation() may be used only in the context of a <Router> component."
2785
- ), h.useContext(ze).location;
2632
+ ), h.useContext(Pe).location;
2786
2633
  }
2787
- var Er = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
2788
- function br(e) {
2789
- h.useContext(V).static || h.useLayoutEffect(e);
2634
+ var Dt = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
2635
+ function jt(e) {
2636
+ h.useContext(B).static || h.useLayoutEffect(e);
2790
2637
  }
2791
- function Jn() {
2792
- let { isDataRoute: e } = h.useContext(H);
2793
- return e ? la() : Xn();
2638
+ function Qr() {
2639
+ let { isDataRoute: e } = h.useContext(z);
2640
+ return e ? dn() : xr();
2794
2641
  }
2795
- function Xn() {
2796
- I(
2797
- Se(),
2642
+ function xr() {
2643
+ w(
2644
+ Ee(),
2798
2645
  // TODO: This error is probably because they somehow have 2 versions of the
2799
2646
  // router loaded. We can help them understand how to avoid that.
2800
2647
  "useNavigate() may be used only in the context of a <Router> component."
2801
2648
  );
2802
- let e = h.useContext(ae), { basename: t, navigator: r } = h.useContext(V), { matches: n } = h.useContext(H), { pathname: i } = ee(), a = JSON.stringify(sr(n)), o = h.useRef(!1);
2803
- return br(() => {
2649
+ let e = h.useContext(te), { basename: t, navigator: r } = h.useContext(B), { matches: n } = h.useContext(z), { pathname: i } = x(), a = JSON.stringify(Ct(n)), o = h.useRef(!1);
2650
+ return jt(() => {
2804
2651
  o.current = !0;
2805
2652
  }), h.useCallback(
2806
- (c, s = {}) => {
2807
- if (B(o.current, Er), !o.current) return;
2653
+ (c, l = {}) => {
2654
+ if (H(o.current, Dt), !o.current) return;
2808
2655
  if (typeof c == "number") {
2809
2656
  r.go(c);
2810
2657
  return;
2811
2658
  }
2812
- let f = cr(
2659
+ let f = Pt(
2813
2660
  c,
2814
2661
  JSON.parse(a),
2815
2662
  i,
2816
- s.relative === "path"
2663
+ l.relative === "path"
2817
2664
  );
2818
- e == null && t !== "/" && (f.pathname = f.pathname === "/" ? t : q([t, f.pathname])), (s.replace ? r.replace : r.push)(
2665
+ e == null && t !== "/" && (f.pathname = f.pathname === "/" ? t : q([t, f.pathname])), (l.replace ? r.replace : r.push)(
2819
2666
  f,
2820
- s.state,
2821
- s
2667
+ l.state,
2668
+ l
2822
2669
  );
2823
2670
  },
2824
2671
  [
@@ -2831,10 +2678,10 @@ function Xn() {
2831
2678
  );
2832
2679
  }
2833
2680
  h.createContext(null);
2834
- function me(e, { relative: t } = {}) {
2835
- let { matches: r } = h.useContext(H), { pathname: n } = ee(), i = JSON.stringify(sr(r));
2681
+ function se(e, { relative: t } = {}) {
2682
+ let { matches: r } = h.useContext(z), { pathname: n } = x(), i = JSON.stringify(Ct(r));
2836
2683
  return h.useMemo(
2837
- () => cr(
2684
+ () => Pt(
2838
2685
  e,
2839
2686
  JSON.parse(i),
2840
2687
  n,
@@ -2843,39 +2690,39 @@ function me(e, { relative: t } = {}) {
2843
2690
  [e, i, n, t]
2844
2691
  );
2845
2692
  }
2846
- function Qn(e, t, r, n, i) {
2847
- I(
2848
- Se(),
2693
+ function $r(e, t, r, n, i) {
2694
+ w(
2695
+ Ee(),
2849
2696
  // TODO: This error is probably because they somehow have 2 versions of the
2850
2697
  // router loaded. We can help them understand how to avoid that.
2851
2698
  "useRoutes() may be used only in the context of a <Router> component."
2852
2699
  );
2853
- let { navigator: a } = h.useContext(V), { matches: o } = h.useContext(H), u = o[o.length - 1], c = u ? u.params : {}, s = u ? u.pathname : "/", f = u ? u.pathnameBase : "/", l = u && u.route;
2700
+ let { navigator: a } = h.useContext(B), { matches: o } = h.useContext(z), d = o[o.length - 1], c = d ? d.params : {}, l = d ? d.pathname : "/", f = d ? d.pathnameBase : "/", u = d && d.route;
2854
2701
  {
2855
- let y = l && l.path || "";
2856
- Sr(
2857
- s,
2858
- !l || y.endsWith("*") || y.endsWith("*?"),
2859
- `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${y}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
2702
+ let y = u && u.path || "";
2703
+ kt(
2704
+ l,
2705
+ !u || y.endsWith("*") || y.endsWith("*?"),
2706
+ `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${y}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
2860
2707
 
2861
2708
  Please change the parent <Route path="${y}"> to <Route path="${y === "/" ? "*" : `${y}/*`}">.`
2862
2709
  );
2863
2710
  }
2864
- let m = ee(), b;
2711
+ let m = x(), b;
2865
2712
  b = m;
2866
2713
  let S = b.pathname || "/", p = S;
2867
2714
  if (f !== "/") {
2868
2715
  let y = f.replace(/^\//, "").split("/");
2869
2716
  p = "/" + S.replace(/^\//, "").split("/").slice(y.length).join("/");
2870
2717
  }
2871
- let g = ir(e, { pathname: p });
2872
- return B(
2873
- l || g != null,
2718
+ let g = Nt(e, { pathname: p });
2719
+ return H(
2720
+ u || g != null,
2874
2721
  `No routes matched location "${b.pathname}${b.search}${b.hash}" `
2875
- ), B(
2722
+ ), H(
2876
2723
  g == null || g[g.length - 1].route.element !== void 0 || g[g.length - 1].route.Component !== void 0 || g[g.length - 1].route.lazy !== void 0,
2877
2724
  `Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`
2878
- ), ra(
2725
+ ), an(
2879
2726
  g && g.map(
2880
2727
  (y) => Object.assign({}, y, {
2881
2728
  params: Object.assign({}, c, y.params),
@@ -2907,14 +2754,14 @@ Please change the parent <Route path="${y}"> to <Route path="${y === "/" ? "*" :
2907
2754
  i
2908
2755
  );
2909
2756
  }
2910
- function xn() {
2911
- let e = ua(), t = Vn(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), r = e instanceof Error ? e.stack : null, n = "rgba(200,200,200, 0.5)", i = { padding: "0.5rem", backgroundColor: n }, a = { padding: "2px 4px", backgroundColor: n }, o = null;
2757
+ function en() {
2758
+ let e = cn(), t = Fr(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), r = e instanceof Error ? e.stack : null, n = "rgba(200,200,200, 0.5)", i = { padding: "0.5rem", backgroundColor: n }, a = { padding: "2px 4px", backgroundColor: n }, o = null;
2912
2759
  return console.error(
2913
2760
  "Error handled by React Router default ErrorBoundary:",
2914
2761
  e
2915
2762
  ), o = /* @__PURE__ */ h.createElement(h.Fragment, null, /* @__PURE__ */ h.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ h.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ h.createElement("code", { style: a }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ h.createElement("code", { style: a }, "errorElement"), " prop on your route.")), /* @__PURE__ */ h.createElement(h.Fragment, null, /* @__PURE__ */ h.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ h.createElement("h3", { style: { fontStyle: "italic" } }, t), r ? /* @__PURE__ */ h.createElement("pre", { style: i }, r) : null, o);
2916
2763
  }
2917
- var $n = /* @__PURE__ */ h.createElement(xn, null), yr = class extends h.Component {
2764
+ var tn = /* @__PURE__ */ h.createElement(en, null), Ut = class extends h.Component {
2918
2765
  constructor(e) {
2919
2766
  super(e), this.state = {
2920
2767
  location: e.location,
@@ -2945,33 +2792,33 @@ var $n = /* @__PURE__ */ h.createElement(xn, null), yr = class extends h.Compone
2945
2792
  render() {
2946
2793
  let e = this.state.error;
2947
2794
  if (this.context && typeof e == "object" && e && "digest" in e && typeof e.digest == "string") {
2948
- const r = Kn(e.digest);
2795
+ const r = Jr(e.digest);
2949
2796
  r && (e = r);
2950
2797
  }
2951
- let t = e !== void 0 ? /* @__PURE__ */ h.createElement(H.Provider, { value: this.props.routeContext }, /* @__PURE__ */ h.createElement(
2952
- Ke.Provider,
2798
+ let t = e !== void 0 ? /* @__PURE__ */ h.createElement(z.Provider, { value: this.props.routeContext }, /* @__PURE__ */ h.createElement(
2799
+ _e.Provider,
2953
2800
  {
2954
2801
  value: e,
2955
2802
  children: this.props.component
2956
2803
  }
2957
2804
  )) : this.props.children;
2958
- return this.context ? /* @__PURE__ */ h.createElement(ea, { error: e }, t) : t;
2805
+ return this.context ? /* @__PURE__ */ h.createElement(rn, { error: e }, t) : t;
2959
2806
  }
2960
2807
  };
2961
- yr.contextType = Fn;
2962
- var Fe = /* @__PURE__ */ new WeakMap();
2963
- function ea({
2808
+ Ut.contextType = Hr;
2809
+ var Te = /* @__PURE__ */ new WeakMap();
2810
+ function rn({
2964
2811
  children: e,
2965
2812
  error: t
2966
2813
  }) {
2967
- let { basename: r } = h.useContext(V);
2814
+ let { basename: r } = h.useContext(B);
2968
2815
  if (typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
2969
- let n = zn(t.digest);
2816
+ let n = Zr(t.digest);
2970
2817
  if (n) {
2971
- let i = Fe.get(t);
2818
+ let i = Te.get(t);
2972
2819
  if (i) throw i;
2973
- let a = fr(n.location, r);
2974
- if (dr && !Fe.get(t))
2820
+ let a = It(n.location, r);
2821
+ if (_t && !Te.get(t))
2975
2822
  if (a.isExternal || n.reloadDocument)
2976
2823
  window.location.href = a.absoluteURL || a.to;
2977
2824
  else {
@@ -2980,7 +2827,7 @@ function ea({
2980
2827
  replace: n.replace
2981
2828
  })
2982
2829
  );
2983
- throw Fe.set(t, o), o;
2830
+ throw Te.set(t, o), o;
2984
2831
  }
2985
2832
  return /* @__PURE__ */ h.createElement(
2986
2833
  "meta",
@@ -2993,11 +2840,11 @@ function ea({
2993
2840
  }
2994
2841
  return e;
2995
2842
  }
2996
- function ta({ routeContext: e, match: t, children: r }) {
2997
- let n = h.useContext(ae);
2998
- return n && n.static && n.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (n.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ h.createElement(H.Provider, { value: e }, r);
2843
+ function nn({ routeContext: e, match: t, children: r }) {
2844
+ let n = h.useContext(te);
2845
+ return n && n.static && n.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (n.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ h.createElement(z.Provider, { value: e }, r);
2999
2846
  }
3000
- function ra(e, t = [], r = null, n = null, i = null) {
2847
+ function an(e, t = [], r = null, n = null, i = null) {
3001
2848
  if (e == null) {
3002
2849
  if (!r)
3003
2850
  return null;
@@ -3011,9 +2858,9 @@ function ra(e, t = [], r = null, n = null, i = null) {
3011
2858
  let a = e, o = r?.errors;
3012
2859
  if (o != null) {
3013
2860
  let f = a.findIndex(
3014
- (l) => l.route.id && o?.[l.route.id] !== void 0
2861
+ (u) => u.route.id && o?.[u.route.id] !== void 0
3015
2862
  );
3016
- I(
2863
+ w(
3017
2864
  f >= 0,
3018
2865
  `Could not find a matching route for errors on route IDs: ${Object.keys(
3019
2866
  o
@@ -3023,40 +2870,40 @@ function ra(e, t = [], r = null, n = null, i = null) {
3023
2870
  Math.min(a.length, f + 1)
3024
2871
  );
3025
2872
  }
3026
- let u = !1, c = -1;
2873
+ let d = !1, c = -1;
3027
2874
  if (r)
3028
2875
  for (let f = 0; f < a.length; f++) {
3029
- let l = a[f];
3030
- if ((l.route.HydrateFallback || l.route.hydrateFallbackElement) && (c = f), l.route.id) {
3031
- let { loaderData: m, errors: b } = r, S = l.route.loader && !m.hasOwnProperty(l.route.id) && (!b || b[l.route.id] === void 0);
3032
- if (l.route.lazy || S) {
3033
- u = !0, c >= 0 ? a = a.slice(0, c + 1) : a = [a[0]];
2876
+ let u = a[f];
2877
+ if ((u.route.HydrateFallback || u.route.hydrateFallbackElement) && (c = f), u.route.id) {
2878
+ let { loaderData: m, errors: b } = r, S = u.route.loader && !m.hasOwnProperty(u.route.id) && (!b || b[u.route.id] === void 0);
2879
+ if (u.route.lazy || S) {
2880
+ d = !0, c >= 0 ? a = a.slice(0, c + 1) : a = [a[0]];
3034
2881
  break;
3035
2882
  }
3036
2883
  }
3037
2884
  }
3038
- let s = r && n ? (f, l) => {
2885
+ let l = r && n ? (f, u) => {
3039
2886
  n(f, {
3040
2887
  location: r.location,
3041
2888
  params: r.matches?.[0]?.params ?? {},
3042
- unstable_pattern: Wn(r.matches),
3043
- errorInfo: l
2889
+ unstable_pattern: Br(r.matches),
2890
+ errorInfo: u
3044
2891
  });
3045
2892
  } : void 0;
3046
2893
  return a.reduceRight(
3047
- (f, l, m) => {
2894
+ (f, u, m) => {
3048
2895
  let b, S = !1, p = null, g = null;
3049
- r && (b = o && l.route.id ? o[l.route.id] : void 0, p = l.route.errorElement || $n, u && (c < 0 && m === 0 ? (Sr(
2896
+ r && (b = o && u.route.id ? o[u.route.id] : void 0, p = u.route.errorElement || tn, d && (c < 0 && m === 0 ? (kt(
3050
2897
  "route-fallback",
3051
2898
  !1,
3052
2899
  "No `HydrateFallback` element provided to render during initial hydration"
3053
- ), S = !0, g = null) : c === m && (S = !0, g = l.route.hydrateFallbackElement || null)));
2900
+ ), S = !0, g = null) : c === m && (S = !0, g = u.route.hydrateFallbackElement || null)));
3054
2901
  let A = t.concat(a.slice(0, m + 1)), y = () => {
3055
2902
  let E;
3056
- return b ? E = p : S ? E = g : l.route.Component ? E = /* @__PURE__ */ h.createElement(l.route.Component, null) : l.route.element ? E = l.route.element : E = f, /* @__PURE__ */ h.createElement(
3057
- ta,
2903
+ return b ? E = p : S ? E = g : u.route.Component ? E = /* @__PURE__ */ h.createElement(u.route.Component, null) : u.route.element ? E = u.route.element : E = f, /* @__PURE__ */ h.createElement(
2904
+ nn,
3058
2905
  {
3059
- match: l,
2906
+ match: u,
3060
2907
  routeContext: {
3061
2908
  outlet: f,
3062
2909
  matches: A,
@@ -3066,8 +2913,8 @@ function ra(e, t = [], r = null, n = null, i = null) {
3066
2913
  }
3067
2914
  );
3068
2915
  };
3069
- return r && (l.route.ErrorBoundary || l.route.errorElement || m === 0) ? /* @__PURE__ */ h.createElement(
3070
- yr,
2916
+ return r && (u.route.ErrorBoundary || u.route.errorElement || m === 0) ? /* @__PURE__ */ h.createElement(
2917
+ Ut,
3071
2918
  {
3072
2919
  location: r.location,
3073
2920
  revalidation: r.revalidation,
@@ -3075,170 +2922,170 @@ function ra(e, t = [], r = null, n = null, i = null) {
3075
2922
  error: b,
3076
2923
  children: y(),
3077
2924
  routeContext: { outlet: null, matches: A, isDataRoute: !0 },
3078
- onError: s
2925
+ onError: l
3079
2926
  }
3080
2927
  ) : y();
3081
2928
  },
3082
2929
  null
3083
2930
  );
3084
2931
  }
3085
- function Ze(e) {
2932
+ function Ie(e) {
3086
2933
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
3087
2934
  }
3088
- function na(e) {
3089
- let t = h.useContext(ae);
3090
- return I(t, Ze(e)), t;
2935
+ function on(e) {
2936
+ let t = h.useContext(te);
2937
+ return w(t, Ie(e)), t;
3091
2938
  }
3092
- function aa(e) {
3093
- let t = h.useContext(ye);
3094
- return I(t, Ze(e)), t;
2939
+ function un(e) {
2940
+ let t = h.useContext(ge);
2941
+ return w(t, Ie(e)), t;
3095
2942
  }
3096
- function ia(e) {
3097
- let t = h.useContext(H);
3098
- return I(t, Ze(e)), t;
2943
+ function ln(e) {
2944
+ let t = h.useContext(z);
2945
+ return w(t, Ie(e)), t;
3099
2946
  }
3100
- function Je(e) {
3101
- let t = ia(e), r = t.matches[t.matches.length - 1];
3102
- return I(
2947
+ function we(e) {
2948
+ let t = ln(e), r = t.matches[t.matches.length - 1];
2949
+ return w(
3103
2950
  r.route.id,
3104
2951
  `${e} can only be used on routes that contain a unique "id"`
3105
2952
  ), r.route.id;
3106
2953
  }
3107
- function oa() {
3108
- return Je(
2954
+ function sn() {
2955
+ return we(
3109
2956
  "useRouteId"
3110
2957
  /* UseRouteId */
3111
2958
  );
3112
2959
  }
3113
- function ua() {
3114
- let e = h.useContext(Ke), t = aa(
2960
+ function cn() {
2961
+ let e = h.useContext(_e), t = un(
3115
2962
  "useRouteError"
3116
2963
  /* UseRouteError */
3117
- ), r = Je(
2964
+ ), r = we(
3118
2965
  "useRouteError"
3119
2966
  /* UseRouteError */
3120
2967
  );
3121
2968
  return e !== void 0 ? e : t.errors?.[r];
3122
2969
  }
3123
- function la() {
3124
- let { router: e } = na(
2970
+ function dn() {
2971
+ let { router: e } = on(
3125
2972
  "useNavigate"
3126
2973
  /* UseNavigateStable */
3127
- ), t = Je(
2974
+ ), t = we(
3128
2975
  "useNavigate"
3129
2976
  /* UseNavigateStable */
3130
2977
  ), r = h.useRef(!1);
3131
- return br(() => {
2978
+ return jt(() => {
3132
2979
  r.current = !0;
3133
2980
  }), h.useCallback(
3134
2981
  async (i, a = {}) => {
3135
- B(r.current, Er), r.current && (typeof i == "number" ? await e.navigate(i) : await e.navigate(i, { fromRouteId: t, ...a }));
2982
+ H(r.current, Dt), r.current && (typeof i == "number" ? await e.navigate(i) : await e.navigate(i, { fromRouteId: t, ...a }));
3136
2983
  },
3137
2984
  [e, t]
3138
2985
  );
3139
2986
  }
3140
- var Jt = {};
3141
- function Sr(e, t, r) {
3142
- !t && !Jt[e] && (Jt[e] = !0, B(!1, r));
2987
+ var ft = {};
2988
+ function kt(e, t, r) {
2989
+ !t && !ft[e] && (ft[e] = !0, H(!1, r));
3143
2990
  }
3144
- h.memo(sa);
3145
- function sa({
2991
+ h.memo(fn);
2992
+ function fn({
3146
2993
  routes: e,
3147
2994
  future: t,
3148
2995
  state: r,
3149
2996
  onError: n
3150
2997
  }) {
3151
- return Qn(e, void 0, r, n, t);
2998
+ return $r(e, void 0, r, n, t);
3152
2999
  }
3153
- var he = "get", Ee = "application/x-www-form-urlencoded";
3154
- function pe(e) {
3000
+ var de = "get", fe = "application/x-www-form-urlencoded";
3001
+ function he(e) {
3155
3002
  return typeof HTMLElement < "u" && e instanceof HTMLElement;
3156
3003
  }
3157
- function ca(e) {
3158
- return pe(e) && e.tagName.toLowerCase() === "button";
3004
+ function mn(e) {
3005
+ return he(e) && e.tagName.toLowerCase() === "button";
3159
3006
  }
3160
- function da(e) {
3161
- return pe(e) && e.tagName.toLowerCase() === "form";
3007
+ function gn(e) {
3008
+ return he(e) && e.tagName.toLowerCase() === "form";
3162
3009
  }
3163
- function fa(e) {
3164
- return pe(e) && e.tagName.toLowerCase() === "input";
3010
+ function En(e) {
3011
+ return he(e) && e.tagName.toLowerCase() === "input";
3165
3012
  }
3166
- function ma(e) {
3013
+ function hn(e) {
3167
3014
  return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
3168
3015
  }
3169
- function ga(e, t) {
3016
+ function bn(e, t) {
3170
3017
  return e.button === 0 && // Ignore everything but left clicks
3171
3018
  (!t || t === "_self") && // Let browser handle "target=_blank" etc.
3172
- !ma(e);
3019
+ !hn(e);
3173
3020
  }
3174
- var ge = null;
3175
- function ha() {
3176
- if (ge === null)
3021
+ var ce = null;
3022
+ function Sn() {
3023
+ if (ce === null)
3177
3024
  try {
3178
3025
  new FormData(
3179
3026
  document.createElement("form"),
3180
3027
  // @ts-expect-error if FormData supports the submitter parameter, this will throw
3181
3028
  0
3182
- ), ge = !1;
3029
+ ), ce = !1;
3183
3030
  } catch {
3184
- ge = !0;
3031
+ ce = !0;
3185
3032
  }
3186
- return ge;
3033
+ return ce;
3187
3034
  }
3188
- var Ea = /* @__PURE__ */ new Set([
3035
+ var yn = /* @__PURE__ */ new Set([
3189
3036
  "application/x-www-form-urlencoded",
3190
3037
  "multipart/form-data",
3191
3038
  "text/plain"
3192
3039
  ]);
3193
- function qe(e) {
3194
- return e != null && !Ea.has(e) ? (B(
3040
+ function Oe(e) {
3041
+ return e != null && !yn.has(e) ? (H(
3195
3042
  !1,
3196
- `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ee}"`
3043
+ `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${fe}"`
3197
3044
  ), null) : e;
3198
3045
  }
3199
- function ba(e, t) {
3046
+ function pn(e, t) {
3200
3047
  let r, n, i, a, o;
3201
- if (da(e)) {
3202
- let u = e.getAttribute("action");
3203
- n = u ? Y(u, t) : null, r = e.getAttribute("method") || he, i = qe(e.getAttribute("enctype")) || Ee, a = new FormData(e);
3204
- } else if (ca(e) || fa(e) && (e.type === "submit" || e.type === "image")) {
3205
- let u = e.form;
3206
- if (u == null)
3048
+ if (gn(e)) {
3049
+ let d = e.getAttribute("action");
3050
+ n = d ? Z(d, t) : null, r = e.getAttribute("method") || de, i = Oe(e.getAttribute("enctype")) || fe, a = new FormData(e);
3051
+ } else if (mn(e) || En(e) && (e.type === "submit" || e.type === "image")) {
3052
+ let d = e.form;
3053
+ if (d == null)
3207
3054
  throw new Error(
3208
3055
  'Cannot submit a <button> or <input type="submit"> without a <form>'
3209
3056
  );
3210
- let c = e.getAttribute("formaction") || u.getAttribute("action");
3211
- if (n = c ? Y(c, t) : null, r = e.getAttribute("formmethod") || u.getAttribute("method") || he, i = qe(e.getAttribute("formenctype")) || qe(u.getAttribute("enctype")) || Ee, a = new FormData(u, e), !ha()) {
3212
- let { name: s, type: f, value: l } = e;
3057
+ let c = e.getAttribute("formaction") || d.getAttribute("action");
3058
+ if (n = c ? Z(c, t) : null, r = e.getAttribute("formmethod") || d.getAttribute("method") || de, i = Oe(e.getAttribute("formenctype")) || Oe(d.getAttribute("enctype")) || fe, a = new FormData(d, e), !Sn()) {
3059
+ let { name: l, type: f, value: u } = e;
3213
3060
  if (f === "image") {
3214
- let m = s ? `${s}.` : "";
3061
+ let m = l ? `${l}.` : "";
3215
3062
  a.append(`${m}x`, "0"), a.append(`${m}y`, "0");
3216
- } else s && a.append(s, l);
3063
+ } else l && a.append(l, u);
3217
3064
  }
3218
3065
  } else {
3219
- if (pe(e))
3066
+ if (he(e))
3220
3067
  throw new Error(
3221
3068
  'Cannot submit element that is not <form>, <button>, or <input type="submit|image">'
3222
3069
  );
3223
- r = he, n = null, i = Ee, o = e;
3070
+ r = de, n = null, i = fe, o = e;
3224
3071
  }
3225
3072
  return a && i === "text/plain" && (o = a, a = void 0), { action: n, method: r.toLowerCase(), encType: i, formData: a, body: o };
3226
3073
  }
3227
3074
  Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
3228
- function Xe(e, t) {
3075
+ function Me(e, t) {
3229
3076
  if (e === !1 || e === null || typeof e > "u")
3230
3077
  throw new Error(t);
3231
3078
  }
3232
- function ya(e, t, r, n) {
3079
+ function An(e, t, r, n) {
3233
3080
  let i = typeof e == "string" ? new URL(
3234
3081
  e,
3235
3082
  // This can be called during the SSR flow via PrefetchPageLinksImpl so
3236
3083
  // don't assume window is available
3237
3084
  typeof window > "u" ? "server://singlefetch/" : window.location.origin
3238
3085
  ) : e;
3239
- return r ? i.pathname.endsWith("/") ? i.pathname = `${i.pathname}_.${n}` : i.pathname = `${i.pathname}.${n}` : i.pathname === "/" ? i.pathname = `_root.${n}` : t && Y(i.pathname, t) === "/" ? i.pathname = `${t.replace(/\/$/, "")}/_root.${n}` : i.pathname = `${i.pathname.replace(/\/$/, "")}.${n}`, i;
3086
+ return r ? i.pathname.endsWith("/") ? i.pathname = `${i.pathname}_.${n}` : i.pathname = `${i.pathname}.${n}` : i.pathname === "/" ? i.pathname = `_root.${n}` : t && Z(i.pathname, t) === "/" ? i.pathname = `${t.replace(/\/$/, "")}/_root.${n}` : i.pathname = `${i.pathname.replace(/\/$/, "")}.${n}`, i;
3240
3087
  }
3241
- async function Sa(e, t) {
3088
+ async function Rn(e, t) {
3242
3089
  if (e.id in t)
3243
3090
  return t[e.id];
3244
3091
  try {
@@ -3255,43 +3102,43 @@ async function Sa(e, t) {
3255
3102
  });
3256
3103
  }
3257
3104
  }
3258
- function pa(e) {
3105
+ function Nn(e) {
3259
3106
  return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
3260
3107
  }
3261
- async function Aa(e, t, r) {
3108
+ async function Tn(e, t, r) {
3262
3109
  let n = await Promise.all(
3263
3110
  e.map(async (i) => {
3264
3111
  let a = t.routes[i.route.id];
3265
3112
  if (a) {
3266
- let o = await Sa(a, r);
3113
+ let o = await Rn(a, r);
3267
3114
  return o.links ? o.links() : [];
3268
3115
  }
3269
3116
  return [];
3270
3117
  })
3271
3118
  );
3272
- return Ra(
3273
- n.flat(1).filter(pa).filter((i) => i.rel === "stylesheet" || i.rel === "preload").map(
3119
+ return Pn(
3120
+ n.flat(1).filter(Nn).filter((i) => i.rel === "stylesheet" || i.rel === "preload").map(
3274
3121
  (i) => i.rel === "stylesheet" ? { ...i, rel: "prefetch", as: "style" } : { ...i, rel: "prefetch" }
3275
3122
  )
3276
3123
  );
3277
3124
  }
3278
- function Xt(e, t, r, n, i, a) {
3279
- let o = (c, s) => r[s] ? c.route.id !== r[s].route.id : !0, u = (c, s) => (
3125
+ function mt(e, t, r, n, i, a) {
3126
+ let o = (c, l) => r[l] ? c.route.id !== r[l].route.id : !0, d = (c, l) => (
3280
3127
  // param change, /users/123 -> /users/456
3281
- r[s].pathname !== c.pathname || // splat param changed, which is not present in match.path
3128
+ r[l].pathname !== c.pathname || // splat param changed, which is not present in match.path
3282
3129
  // e.g. /files/images/avatar.jpg -> files/finances.xls
3283
- r[s].route.path?.endsWith("*") && r[s].params["*"] !== c.params["*"]
3130
+ r[l].route.path?.endsWith("*") && r[l].params["*"] !== c.params["*"]
3284
3131
  );
3285
3132
  return a === "assets" ? t.filter(
3286
- (c, s) => o(c, s) || u(c, s)
3287
- ) : a === "data" ? t.filter((c, s) => {
3133
+ (c, l) => o(c, l) || d(c, l)
3134
+ ) : a === "data" ? t.filter((c, l) => {
3288
3135
  let f = n.routes[c.route.id];
3289
3136
  if (!f || !f.hasLoader)
3290
3137
  return !1;
3291
- if (o(c, s) || u(c, s))
3138
+ if (o(c, l) || d(c, l))
3292
3139
  return !0;
3293
3140
  if (c.route.shouldRevalidate) {
3294
- let l = c.route.shouldRevalidate({
3141
+ let u = c.route.shouldRevalidate({
3295
3142
  currentUrl: new URL(
3296
3143
  i.pathname + i.search + i.hash,
3297
3144
  window.origin
@@ -3301,14 +3148,14 @@ function Xt(e, t, r, n, i, a) {
3301
3148
  nextParams: c.params,
3302
3149
  defaultShouldRevalidate: !0
3303
3150
  });
3304
- if (typeof l == "boolean")
3305
- return l;
3151
+ if (typeof u == "boolean")
3152
+ return u;
3306
3153
  }
3307
3154
  return !0;
3308
3155
  }) : [];
3309
3156
  }
3310
- function va(e, t, { includeHydrateFallback: r } = {}) {
3311
- return Ta(
3157
+ function On(e, t, { includeHydrateFallback: r } = {}) {
3158
+ return vn(
3312
3159
  e.map((n) => {
3313
3160
  let i = t.routes[n.route.id];
3314
3161
  if (!i) return [];
@@ -3317,47 +3164,47 @@ function va(e, t, { includeHydrateFallback: r } = {}) {
3317
3164
  }).flat(1)
3318
3165
  );
3319
3166
  }
3320
- function Ta(e) {
3167
+ function vn(e) {
3321
3168
  return [...new Set(e)];
3322
3169
  }
3323
- function Oa(e) {
3170
+ function Cn(e) {
3324
3171
  let t = {}, r = Object.keys(e).sort();
3325
3172
  for (let n of r)
3326
3173
  t[n] = e[n];
3327
3174
  return t;
3328
3175
  }
3329
- function Ra(e, t) {
3176
+ function Pn(e, t) {
3330
3177
  let r = /* @__PURE__ */ new Set();
3331
3178
  return new Set(t), e.reduce((n, i) => {
3332
- let a = JSON.stringify(Oa(i));
3179
+ let a = JSON.stringify(Cn(i));
3333
3180
  return r.has(a) || (r.add(a), n.push({ key: a, link: i })), n;
3334
3181
  }, []);
3335
3182
  }
3336
- function pr() {
3337
- let e = h.useContext(ae);
3338
- return Xe(
3183
+ function Vt() {
3184
+ let e = h.useContext(te);
3185
+ return Me(
3339
3186
  e,
3340
3187
  "You must render this element inside a <DataRouterContext.Provider> element"
3341
3188
  ), e;
3342
3189
  }
3343
- function Na() {
3344
- let e = h.useContext(ye);
3345
- return Xe(
3190
+ function _n() {
3191
+ let e = h.useContext(ge);
3192
+ return Me(
3346
3193
  e,
3347
3194
  "You must render this element inside a <DataRouterStateContext.Provider> element"
3348
3195
  ), e;
3349
3196
  }
3350
- var Qe = h.createContext(void 0);
3351
- Qe.displayName = "FrameworkContext";
3352
- function Ar() {
3353
- let e = h.useContext(Qe);
3354
- return Xe(
3197
+ var Le = h.createContext(void 0);
3198
+ Le.displayName = "FrameworkContext";
3199
+ function Wt() {
3200
+ let e = h.useContext(Le);
3201
+ return Me(
3355
3202
  e,
3356
3203
  "You must render this element inside a <HydratedRouter> element"
3357
3204
  ), e;
3358
3205
  }
3359
- function _a(e, t) {
3360
- let r = h.useContext(Qe), [n, i] = h.useState(!1), [a, o] = h.useState(!1), { onFocus: u, onBlur: c, onMouseEnter: s, onMouseLeave: f, onTouchStart: l } = t, m = h.useRef(null);
3206
+ function In(e, t) {
3207
+ let r = h.useContext(Le), [n, i] = h.useState(!1), [a, o] = h.useState(!1), { onFocus: d, onBlur: c, onMouseEnter: l, onMouseLeave: f, onTouchStart: u } = t, m = h.useRef(null);
3361
3208
  h.useEffect(() => {
3362
3209
  if (e === "render" && o(!0), e === "viewport") {
3363
3210
  let p = (A) => {
@@ -3388,31 +3235,31 @@ function _a(e, t) {
3388
3235
  a,
3389
3236
  m,
3390
3237
  {
3391
- onFocus: fe(u, b),
3392
- onBlur: fe(c, S),
3393
- onMouseEnter: fe(s, b),
3394
- onMouseLeave: fe(f, S),
3395
- onTouchStart: fe(l, b)
3238
+ onFocus: le(d, b),
3239
+ onBlur: le(c, S),
3240
+ onMouseEnter: le(l, b),
3241
+ onMouseLeave: le(f, S),
3242
+ onTouchStart: le(u, b)
3396
3243
  }
3397
3244
  ] : [!1, m, {}];
3398
3245
  }
3399
- function fe(e, t) {
3246
+ function le(e, t) {
3400
3247
  return (r) => {
3401
3248
  e && e(r), r.defaultPrevented || t(r);
3402
3249
  };
3403
3250
  }
3404
- function Ca({ page: e, ...t }) {
3405
- let { router: r } = pr(), n = h.useMemo(
3406
- () => ir(r.routes, e, r.basename),
3251
+ function wn({ page: e, ...t }) {
3252
+ let { router: r } = Vt(), n = h.useMemo(
3253
+ () => Nt(r.routes, e, r.basename),
3407
3254
  [r.routes, e, r.basename]
3408
3255
  );
3409
- return n ? /* @__PURE__ */ h.createElement(Ia, { page: e, matches: n, ...t }) : null;
3256
+ return n ? /* @__PURE__ */ h.createElement(Ln, { page: e, matches: n, ...t }) : null;
3410
3257
  }
3411
- function Pa(e) {
3412
- let { manifest: t, routeModules: r } = Ar(), [n, i] = h.useState([]);
3258
+ function Mn(e) {
3259
+ let { manifest: t, routeModules: r } = Wt(), [n, i] = h.useState([]);
3413
3260
  return h.useEffect(() => {
3414
3261
  let a = !1;
3415
- return Aa(e, t, r).then(
3262
+ return Tn(e, t, r).then(
3416
3263
  (o) => {
3417
3264
  a || i(o);
3418
3265
  }
@@ -3421,43 +3268,43 @@ function Pa(e) {
3421
3268
  };
3422
3269
  }, [e, t, r]), n;
3423
3270
  }
3424
- function Ia({
3271
+ function Ln({
3425
3272
  page: e,
3426
3273
  matches: t,
3427
3274
  ...r
3428
3275
  }) {
3429
- let n = ee(), { future: i, manifest: a, routeModules: o } = Ar(), { basename: u } = pr(), { loaderData: c, matches: s } = Na(), f = h.useMemo(
3430
- () => Xt(
3276
+ let n = x(), { future: i, manifest: a, routeModules: o } = Wt(), { basename: d } = Vt(), { loaderData: c, matches: l } = _n(), f = h.useMemo(
3277
+ () => mt(
3431
3278
  e,
3432
3279
  t,
3433
- s,
3280
+ l,
3434
3281
  a,
3435
3282
  n,
3436
3283
  "data"
3437
3284
  ),
3438
- [e, t, s, a, n]
3439
- ), l = h.useMemo(
3440
- () => Xt(
3285
+ [e, t, l, a, n]
3286
+ ), u = h.useMemo(
3287
+ () => mt(
3441
3288
  e,
3442
3289
  t,
3443
- s,
3290
+ l,
3444
3291
  a,
3445
3292
  n,
3446
3293
  "assets"
3447
3294
  ),
3448
- [e, t, s, a, n]
3295
+ [e, t, l, a, n]
3449
3296
  ), m = h.useMemo(() => {
3450
3297
  if (e === n.pathname + n.search + n.hash)
3451
3298
  return [];
3452
3299
  let p = /* @__PURE__ */ new Set(), g = !1;
3453
3300
  if (t.forEach((y) => {
3454
3301
  let E = a.routes[y.route.id];
3455
- !E || !E.hasLoader || (!f.some((T) => T.route.id === y.route.id) && y.route.id in c && o[y.route.id]?.shouldRevalidate || E.hasClientLoader ? g = !0 : p.add(y.route.id));
3302
+ !E || !E.hasLoader || (!f.some((R) => R.route.id === y.route.id) && y.route.id in c && o[y.route.id]?.shouldRevalidate || E.hasClientLoader ? g = !0 : p.add(y.route.id));
3456
3303
  }), p.size === 0)
3457
3304
  return [];
3458
- let A = ya(
3305
+ let A = An(
3459
3306
  e,
3460
- u,
3307
+ d,
3461
3308
  i.unstable_trailingSlashAwareDataRequests,
3462
3309
  "data"
3463
3310
  );
@@ -3466,7 +3313,7 @@ function Ia({
3466
3313
  t.filter((y) => p.has(y.route.id)).map((y) => y.route.id).join(",")
3467
3314
  ), [A.pathname + A.search];
3468
3315
  }, [
3469
- u,
3316
+ d,
3470
3317
  i.unstable_trailingSlashAwareDataRequests,
3471
3318
  c,
3472
3319
  n,
@@ -3476,29 +3323,29 @@ function Ia({
3476
3323
  e,
3477
3324
  o
3478
3325
  ]), b = h.useMemo(
3479
- () => va(l, a),
3480
- [l, a]
3481
- ), S = Pa(l);
3326
+ () => On(u, a),
3327
+ [u, a]
3328
+ ), S = Mn(u);
3482
3329
  return /* @__PURE__ */ h.createElement(h.Fragment, null, m.map((p) => /* @__PURE__ */ h.createElement("link", { key: p, rel: "prefetch", as: "fetch", href: p, ...r })), b.map((p) => /* @__PURE__ */ h.createElement("link", { key: p, rel: "modulepreload", href: p, ...r })), S.map(({ key: p, link: g }) => (
3483
3330
  // these don't spread `linkProps` because they are full link descriptors
3484
3331
  // already with their own props
3485
3332
  /* @__PURE__ */ h.createElement("link", { key: p, nonce: r.nonce, ...g })
3486
3333
  )));
3487
3334
  }
3488
- function wa(...e) {
3335
+ function Dn(...e) {
3489
3336
  return (t) => {
3490
3337
  e.forEach((r) => {
3491
3338
  typeof r == "function" ? r(t) : r != null && (r.current = t);
3492
3339
  });
3493
3340
  };
3494
3341
  }
3495
- var Ma = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
3342
+ var jn = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
3496
3343
  try {
3497
- Ma && (window.__reactRouterVersion = // @ts-expect-error
3344
+ jn && (window.__reactRouterVersion = // @ts-expect-error
3498
3345
  "7.12.0");
3499
3346
  } catch {
3500
3347
  }
3501
- var vr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, xe = h.forwardRef(
3348
+ var Ft = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, De = h.forwardRef(
3502
3349
  function({
3503
3350
  onClick: t,
3504
3351
  discover: r = "render",
@@ -3506,52 +3353,52 @@ var vr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, xe = h.forwardRef(
3506
3353
  relative: i,
3507
3354
  reloadDocument: a,
3508
3355
  replace: o,
3509
- state: u,
3356
+ state: d,
3510
3357
  target: c,
3511
- to: s,
3358
+ to: l,
3512
3359
  preventScrollReset: f,
3513
- viewTransition: l,
3360
+ viewTransition: u,
3514
3361
  unstable_defaultShouldRevalidate: m,
3515
3362
  ...b
3516
3363
  }, S) {
3517
- let { basename: p, unstable_useTransitions: g } = h.useContext(V), A = typeof s == "string" && vr.test(s), y = fr(s, p);
3518
- s = y.to;
3519
- let E = Zn(s, { relative: i }), [T, N, M] = _a(
3364
+ let { basename: p, unstable_useTransitions: g } = h.useContext(B), A = typeof l == "string" && Ft.test(l), y = It(l, p);
3365
+ l = y.to;
3366
+ let E = Xr(l, { relative: i }), [R, T, C] = In(
3520
3367
  n,
3521
3368
  b
3522
- ), d = Ua(s, {
3369
+ ), s = Wn(l, {
3523
3370
  replace: o,
3524
- state: u,
3371
+ state: d,
3525
3372
  target: c,
3526
3373
  preventScrollReset: f,
3527
3374
  relative: i,
3528
- viewTransition: l,
3375
+ viewTransition: u,
3529
3376
  unstable_defaultShouldRevalidate: m,
3530
3377
  unstable_useTransitions: g
3531
3378
  });
3532
- function te(ie) {
3533
- t && t(ie), ie.defaultPrevented || d(ie);
3379
+ function L(D) {
3380
+ t && t(D), D.defaultPrevented || s(D);
3534
3381
  }
3535
- let re = (
3382
+ let V = (
3536
3383
  // eslint-disable-next-line jsx-a11y/anchor-has-content
3537
3384
  /* @__PURE__ */ h.createElement(
3538
3385
  "a",
3539
3386
  {
3540
3387
  ...b,
3541
- ...M,
3388
+ ...C,
3542
3389
  href: y.absoluteURL || E,
3543
- onClick: y.isExternal || a ? t : te,
3544
- ref: wa(S, N),
3390
+ onClick: y.isExternal || a ? t : L,
3391
+ ref: Dn(S, T),
3545
3392
  target: c,
3546
3393
  "data-discover": !A && r === "render" ? "true" : void 0
3547
3394
  }
3548
3395
  )
3549
3396
  );
3550
- return T && !A ? /* @__PURE__ */ h.createElement(h.Fragment, null, re, /* @__PURE__ */ h.createElement(Ca, { page: E })) : re;
3397
+ return R && !A ? /* @__PURE__ */ h.createElement(h.Fragment, null, V, /* @__PURE__ */ h.createElement(wn, { page: E })) : V;
3551
3398
  }
3552
3399
  );
3553
- xe.displayName = "Link";
3554
- var La = h.forwardRef(
3400
+ De.displayName = "Link";
3401
+ var Un = h.forwardRef(
3555
3402
  function({
3556
3403
  "aria-current": t = "page",
3557
3404
  caseSensitive: r = !1,
@@ -3559,44 +3406,44 @@ var La = h.forwardRef(
3559
3406
  end: i = !1,
3560
3407
  style: a,
3561
3408
  to: o,
3562
- viewTransition: u,
3409
+ viewTransition: d,
3563
3410
  children: c,
3564
- ...s
3411
+ ...l
3565
3412
  }, f) {
3566
- let l = me(o, { relative: s.relative }), m = ee(), b = h.useContext(ye), { navigator: S, basename: p } = h.useContext(V), g = b != null && // Conditional usage is OK here because the usage of a data router is static
3413
+ let u = se(o, { relative: l.relative }), m = x(), b = h.useContext(ge), { navigator: S, basename: p } = h.useContext(B), g = b != null && // Conditional usage is OK here because the usage of a data router is static
3567
3414
  // eslint-disable-next-line react-hooks/rules-of-hooks
3568
- Fa(l) && u === !0, A = S.encodeLocation ? S.encodeLocation(l).pathname : l.pathname, y = m.pathname, E = b && b.navigation && b.navigation.location ? b.navigation.location.pathname : null;
3569
- r || (y = y.toLowerCase(), E = E ? E.toLowerCase() : null, A = A.toLowerCase()), E && p && (E = Y(E, p) || E);
3570
- const T = A !== "/" && A.endsWith("/") ? A.length - 1 : A.length;
3571
- let N = y === A || !i && y.startsWith(A) && y.charAt(T) === "/", M = E != null && (E === A || !i && E.startsWith(A) && E.charAt(A.length) === "/"), d = {
3572
- isActive: N,
3573
- isPending: M,
3415
+ Yn(u) && d === !0, A = S.encodeLocation ? S.encodeLocation(u).pathname : u.pathname, y = m.pathname, E = b && b.navigation && b.navigation.location ? b.navigation.location.pathname : null;
3416
+ r || (y = y.toLowerCase(), E = E ? E.toLowerCase() : null, A = A.toLowerCase()), E && p && (E = Z(E, p) || E);
3417
+ const R = A !== "/" && A.endsWith("/") ? A.length - 1 : A.length;
3418
+ let T = y === A || !i && y.startsWith(A) && y.charAt(R) === "/", C = E != null && (E === A || !i && E.startsWith(A) && E.charAt(A.length) === "/"), s = {
3419
+ isActive: T,
3420
+ isPending: C,
3574
3421
  isTransitioning: g
3575
- }, te = N ? t : void 0, re;
3576
- typeof n == "function" ? re = n(d) : re = [
3422
+ }, L = T ? t : void 0, V;
3423
+ typeof n == "function" ? V = n(s) : V = [
3577
3424
  n,
3578
- N ? "active" : null,
3579
- M ? "pending" : null,
3425
+ T ? "active" : null,
3426
+ C ? "pending" : null,
3580
3427
  g ? "transitioning" : null
3581
3428
  ].filter(Boolean).join(" ");
3582
- let ie = typeof a == "function" ? a(d) : a;
3429
+ let D = typeof a == "function" ? a(s) : a;
3583
3430
  return /* @__PURE__ */ h.createElement(
3584
- xe,
3431
+ De,
3585
3432
  {
3586
- ...s,
3587
- "aria-current": te,
3588
- className: re,
3433
+ ...l,
3434
+ "aria-current": L,
3435
+ className: V,
3589
3436
  ref: f,
3590
- style: ie,
3437
+ style: D,
3591
3438
  to: o,
3592
- viewTransition: u
3439
+ viewTransition: d
3593
3440
  },
3594
- typeof c == "function" ? c(d) : c
3441
+ typeof c == "function" ? c(s) : c
3595
3442
  );
3596
3443
  }
3597
3444
  );
3598
- La.displayName = "NavLink";
3599
- var Da = h.forwardRef(
3445
+ Un.displayName = "NavLink";
3446
+ var kn = h.forwardRef(
3600
3447
  ({
3601
3448
  discover: e = "render",
3602
3449
  fetcherKey: t,
@@ -3604,30 +3451,30 @@ var Da = h.forwardRef(
3604
3451
  reloadDocument: n,
3605
3452
  replace: i,
3606
3453
  state: a,
3607
- method: o = he,
3608
- action: u,
3454
+ method: o = de,
3455
+ action: d,
3609
3456
  onSubmit: c,
3610
- relative: s,
3457
+ relative: l,
3611
3458
  preventScrollReset: f,
3612
- viewTransition: l,
3459
+ viewTransition: u,
3613
3460
  unstable_defaultShouldRevalidate: m,
3614
3461
  ...b
3615
3462
  }, S) => {
3616
- let { unstable_useTransitions: p } = h.useContext(V), g = Wa(), A = Ba(u, { relative: s }), y = o.toLowerCase() === "get" ? "get" : "post", E = typeof u == "string" && vr.test(u), T = (N) => {
3617
- if (c && c(N), N.defaultPrevented) return;
3618
- N.preventDefault();
3619
- let M = N.nativeEvent.submitter, d = M?.getAttribute("formmethod") || o, te = () => g(M || N.currentTarget, {
3463
+ let { unstable_useTransitions: p } = h.useContext(B), g = Gn(), A = Hn(d, { relative: l }), y = o.toLowerCase() === "get" ? "get" : "post", E = typeof d == "string" && Ft.test(d), R = (T) => {
3464
+ if (c && c(T), T.defaultPrevented) return;
3465
+ T.preventDefault();
3466
+ let C = T.nativeEvent.submitter, s = C?.getAttribute("formmethod") || o, L = () => g(C || T.currentTarget, {
3620
3467
  fetcherKey: t,
3621
- method: d,
3468
+ method: s,
3622
3469
  navigate: r,
3623
3470
  replace: i,
3624
3471
  state: a,
3625
- relative: s,
3472
+ relative: l,
3626
3473
  preventScrollReset: f,
3627
- viewTransition: l,
3474
+ viewTransition: u,
3628
3475
  unstable_defaultShouldRevalidate: m
3629
3476
  });
3630
- p && r !== !1 ? h.startTransition(() => te()) : te();
3477
+ p && r !== !1 ? h.startTransition(() => L()) : L();
3631
3478
  };
3632
3479
  return /* @__PURE__ */ h.createElement(
3633
3480
  "form",
@@ -3635,51 +3482,51 @@ var Da = h.forwardRef(
3635
3482
  ref: S,
3636
3483
  method: y,
3637
3484
  action: A,
3638
- onSubmit: n ? c : T,
3485
+ onSubmit: n ? c : R,
3639
3486
  ...b,
3640
3487
  "data-discover": !E && e === "render" ? "true" : void 0
3641
3488
  }
3642
3489
  );
3643
3490
  }
3644
3491
  );
3645
- Da.displayName = "Form";
3646
- function ja(e) {
3492
+ kn.displayName = "Form";
3493
+ function Vn(e) {
3647
3494
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
3648
3495
  }
3649
- function Tr(e) {
3650
- let t = h.useContext(ae);
3651
- return I(t, ja(e)), t;
3496
+ function Bt(e) {
3497
+ let t = h.useContext(te);
3498
+ return w(t, Vn(e)), t;
3652
3499
  }
3653
- function Ua(e, {
3500
+ function Wn(e, {
3654
3501
  target: t,
3655
3502
  replace: r,
3656
3503
  state: n,
3657
3504
  preventScrollReset: i,
3658
3505
  relative: a,
3659
3506
  viewTransition: o,
3660
- unstable_defaultShouldRevalidate: u,
3507
+ unstable_defaultShouldRevalidate: d,
3661
3508
  unstable_useTransitions: c
3662
3509
  } = {}) {
3663
- let s = Jn(), f = ee(), l = me(e, { relative: a });
3510
+ let l = Qr(), f = x(), u = se(e, { relative: a });
3664
3511
  return h.useCallback(
3665
3512
  (m) => {
3666
- if (ga(m, t)) {
3513
+ if (bn(m, t)) {
3667
3514
  m.preventDefault();
3668
- let b = r !== void 0 ? r : He(f) === He(l), S = () => s(e, {
3515
+ let b = r !== void 0 ? r : ve(f) === ve(u), S = () => l(e, {
3669
3516
  replace: b,
3670
3517
  state: n,
3671
3518
  preventScrollReset: i,
3672
3519
  relative: a,
3673
3520
  viewTransition: o,
3674
- unstable_defaultShouldRevalidate: u
3521
+ unstable_defaultShouldRevalidate: d
3675
3522
  });
3676
3523
  c ? h.startTransition(() => S()) : S();
3677
3524
  }
3678
3525
  },
3679
3526
  [
3680
3527
  f,
3681
- s,
3682
3528
  l,
3529
+ u,
3683
3530
  r,
3684
3531
  n,
3685
3532
  t,
@@ -3687,42 +3534,42 @@ function Ua(e, {
3687
3534
  i,
3688
3535
  a,
3689
3536
  o,
3690
- u,
3537
+ d,
3691
3538
  c
3692
3539
  ]
3693
3540
  );
3694
3541
  }
3695
- var ka = 0, Va = () => `__${String(++ka)}__`;
3696
- function Wa() {
3697
- let { router: e } = Tr(
3542
+ var Fn = 0, Bn = () => `__${String(++Fn)}__`;
3543
+ function Gn() {
3544
+ let { router: e } = Bt(
3698
3545
  "useSubmit"
3699
3546
  /* UseSubmit */
3700
- ), { basename: t } = h.useContext(V), r = oa(), n = e.fetch, i = e.navigate;
3547
+ ), { basename: t } = h.useContext(B), r = sn(), n = e.fetch, i = e.navigate;
3701
3548
  return h.useCallback(
3702
3549
  async (a, o = {}) => {
3703
- let { action: u, method: c, encType: s, formData: f, body: l } = ba(
3550
+ let { action: d, method: c, encType: l, formData: f, body: u } = pn(
3704
3551
  a,
3705
3552
  t
3706
3553
  );
3707
3554
  if (o.navigate === !1) {
3708
- let m = o.fetcherKey || Va();
3709
- await n(m, r, o.action || u, {
3555
+ let m = o.fetcherKey || Bn();
3556
+ await n(m, r, o.action || d, {
3710
3557
  unstable_defaultShouldRevalidate: o.unstable_defaultShouldRevalidate,
3711
3558
  preventScrollReset: o.preventScrollReset,
3712
3559
  formData: f,
3713
- body: l,
3560
+ body: u,
3714
3561
  formMethod: o.method || c,
3715
- formEncType: o.encType || s,
3562
+ formEncType: o.encType || l,
3716
3563
  flushSync: o.flushSync
3717
3564
  });
3718
3565
  } else
3719
- await i(o.action || u, {
3566
+ await i(o.action || d, {
3720
3567
  unstable_defaultShouldRevalidate: o.unstable_defaultShouldRevalidate,
3721
3568
  preventScrollReset: o.preventScrollReset,
3722
3569
  formData: f,
3723
- body: l,
3570
+ body: u,
3724
3571
  formMethod: o.method || c,
3725
- formEncType: o.encType || s,
3572
+ formEncType: o.encType || l,
3726
3573
  replace: o.replace,
3727
3574
  state: o.state,
3728
3575
  fromRouteId: r,
@@ -3733,79 +3580,79 @@ function Wa() {
3733
3580
  [n, i, t, r]
3734
3581
  );
3735
3582
  }
3736
- function Ba(e, { relative: t } = {}) {
3737
- let { basename: r } = h.useContext(V), n = h.useContext(H);
3738
- I(n, "useFormAction must be used inside a RouteContext");
3739
- let [i] = n.matches.slice(-1), a = { ...me(e || ".", { relative: t }) }, o = ee();
3583
+ function Hn(e, { relative: t } = {}) {
3584
+ let { basename: r } = h.useContext(B), n = h.useContext(z);
3585
+ w(n, "useFormAction must be used inside a RouteContext");
3586
+ let [i] = n.matches.slice(-1), a = { ...se(e || ".", { relative: t }) }, o = x();
3740
3587
  if (e == null) {
3741
3588
  a.search = o.search;
3742
- let u = new URLSearchParams(a.search), c = u.getAll("index");
3589
+ let d = new URLSearchParams(a.search), c = d.getAll("index");
3743
3590
  if (c.some((f) => f === "")) {
3744
- u.delete("index"), c.filter((l) => l).forEach((l) => u.append("index", l));
3745
- let f = u.toString();
3591
+ d.delete("index"), c.filter((u) => u).forEach((u) => d.append("index", u));
3592
+ let f = d.toString();
3746
3593
  a.search = f ? `?${f}` : "";
3747
3594
  }
3748
3595
  }
3749
- return (!e || e === ".") && i.route.index && (a.search = a.search ? a.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (a.pathname = a.pathname === "/" ? r : q([r, a.pathname])), He(a);
3596
+ return (!e || e === ".") && i.route.index && (a.search = a.search ? a.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (a.pathname = a.pathname === "/" ? r : q([r, a.pathname])), ve(a);
3750
3597
  }
3751
- function Fa(e, { relative: t } = {}) {
3752
- let r = h.useContext(gr);
3753
- I(
3598
+ function Yn(e, { relative: t } = {}) {
3599
+ let r = h.useContext(Mt);
3600
+ w(
3754
3601
  r != null,
3755
3602
  "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
3756
3603
  );
3757
- let { basename: n } = Tr(
3604
+ let { basename: n } = Bt(
3758
3605
  "useViewTransitionState"
3759
3606
  /* useViewTransitionState */
3760
- ), i = me(e, { relative: t });
3607
+ ), i = se(e, { relative: t });
3761
3608
  if (!r.isTransitioning)
3762
3609
  return !1;
3763
- let a = Y(r.currentLocation.pathname, n) || r.currentLocation.pathname, o = Y(r.nextLocation.pathname, n) || r.nextLocation.pathname;
3764
- return be(i.pathname, o) != null || be(i.pathname, a) != null;
3610
+ let a = Z(r.currentLocation.pathname, n) || r.currentLocation.pathname, o = Z(r.nextLocation.pathname, n) || r.nextLocation.pathname;
3611
+ return me(i.pathname, o) != null || me(i.pathname, a) != null;
3765
3612
  }
3766
- function Or(e) {
3613
+ function Gt(e) {
3767
3614
  var t, r, n = "";
3768
3615
  if (typeof e == "string" || typeof e == "number") n += e;
3769
3616
  else if (typeof e == "object") if (Array.isArray(e)) {
3770
3617
  var i = e.length;
3771
- for (t = 0; t < i; t++) e[t] && (r = Or(e[t])) && (n && (n += " "), n += r);
3618
+ for (t = 0; t < i; t++) e[t] && (r = Gt(e[t])) && (n && (n += " "), n += r);
3772
3619
  } else for (r in e) e[r] && (n && (n += " "), n += r);
3773
3620
  return n;
3774
3621
  }
3775
- function qa() {
3776
- for (var e, t, r = 0, n = "", i = arguments.length; r < i; r++) (e = arguments[r]) && (t = Or(e)) && (n && (n += " "), n += t);
3622
+ function qn() {
3623
+ for (var e, t, r = 0, n = "", i = arguments.length; r < i; r++) (e = arguments[r]) && (t = Gt(e)) && (n && (n += " "), n += t);
3777
3624
  return n;
3778
3625
  }
3779
- const Qt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, xt = qa, $e = (e, t) => (r) => {
3626
+ const gt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Et = qn, je = (e, t) => (r) => {
3780
3627
  var n;
3781
- if (t?.variants == null) return xt(e, r?.class, r?.className);
3782
- const { variants: i, defaultVariants: a } = t, o = Object.keys(i).map((s) => {
3783
- const f = r?.[s], l = a?.[s];
3628
+ if (t?.variants == null) return Et(e, r?.class, r?.className);
3629
+ const { variants: i, defaultVariants: a } = t, o = Object.keys(i).map((l) => {
3630
+ const f = r?.[l], u = a?.[l];
3784
3631
  if (f === null) return null;
3785
- const m = Qt(f) || Qt(l);
3786
- return i[s][m];
3787
- }), u = r && Object.entries(r).reduce((s, f) => {
3788
- let [l, m] = f;
3789
- return m === void 0 || (s[l] = m), s;
3790
- }, {}), c = t == null || (n = t.compoundVariants) === null || n === void 0 ? void 0 : n.reduce((s, f) => {
3791
- let { class: l, className: m, ...b } = f;
3632
+ const m = gt(f) || gt(u);
3633
+ return i[l][m];
3634
+ }), d = r && Object.entries(r).reduce((l, f) => {
3635
+ let [u, m] = f;
3636
+ return m === void 0 || (l[u] = m), l;
3637
+ }, {}), c = t == null || (n = t.compoundVariants) === null || n === void 0 ? void 0 : n.reduce((l, f) => {
3638
+ let { class: u, className: m, ...b } = f;
3792
3639
  return Object.entries(b).every((S) => {
3793
3640
  let [p, g] = S;
3794
3641
  return Array.isArray(g) ? g.includes({
3795
3642
  ...a,
3796
- ...u
3643
+ ...d
3797
3644
  }[p]) : {
3798
3645
  ...a,
3799
- ...u
3646
+ ...d
3800
3647
  }[p] === g;
3801
3648
  }) ? [
3802
- ...s,
3803
- l,
3649
+ ...l,
3650
+ u,
3804
3651
  m
3805
- ] : s;
3652
+ ] : l;
3806
3653
  }, []);
3807
- return xt(e, o, c, r?.class, r?.className);
3808
- }, Ha = $e("border-b transition-all duration-200", {
3654
+ return Et(e, o, c, r?.class, r?.className);
3655
+ }, zn = je("border-b transition-all duration-200", {
3809
3656
  variants: {
3810
3657
  variant: {
3811
3658
  default: "bg-gradient-to-r from-green-100 to-blue-100 dark:from-green-900/20 dark:to-blue-900/20 border-green-200 dark:border-green-700",
@@ -3823,7 +3670,7 @@ const Qt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, xt = qa, $
3823
3670
  variant: "default",
3824
3671
  size: "default"
3825
3672
  }
3826
- }), Ga = $e("font-semibold", {
3673
+ }), Kn = je("font-semibold", {
3827
3674
  variants: {
3828
3675
  variant: {
3829
3676
  default: "text-green-800 dark:text-green-200",
@@ -3835,7 +3682,7 @@ const Qt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, xt = qa, $
3835
3682
  defaultVariants: {
3836
3683
  variant: "default"
3837
3684
  }
3838
- }), Ya = $e(
3685
+ }), Zn = je(
3839
3686
  "inline-flex items-center justify-center px-6 py-2 rounded-lg font-medium transition-all duration-200 hover:transform hover:scale-105 focus:outline-none focus:ring-2 focus:ring-offset-2",
3840
3687
  {
3841
3688
  variants: {
@@ -3850,7 +3697,7 @@ const Qt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, xt = qa, $
3850
3697
  variant: "default"
3851
3698
  }
3852
3699
  }
3853
- ), ii = ({
3700
+ ), la = ({
3854
3701
  className: e,
3855
3702
  variant: t = "default",
3856
3703
  size: r = "default",
@@ -3858,28 +3705,28 @@ const Qt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, xt = qa, $
3858
3705
  ctaText: i = "Get Free Email",
3859
3706
  ctaLink: a = "/connect",
3860
3707
  showBadge: o = !0,
3861
- badgeText: u = "FREE",
3708
+ badgeText: d = "FREE",
3862
3709
  onDismiss: c,
3863
- isDismissible: s = !1,
3710
+ isDismissible: l = !1,
3864
3711
  dismissAriaLabel: f = "Dismiss banner",
3865
- onTrack: l
3866
- }) => /* @__PURE__ */ R("div", { className: w(Ha({ variant: t, size: r }), e), children: /* @__PURE__ */ R("div", { className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8", children: /* @__PURE__ */ k("div", { className: "flex flex-col sm:flex-row items-center justify-center gap-4 text-center relative", children: [
3867
- s && c && /* @__PURE__ */ R(
3712
+ onTrack: u
3713
+ }) => /* @__PURE__ */ v("div", { className: M(zn({ variant: t, size: r }), e), children: /* @__PURE__ */ v("div", { className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8", children: /* @__PURE__ */ F("div", { className: "flex flex-col sm:flex-row items-center justify-center gap-4 text-center relative", children: [
3714
+ l && c && /* @__PURE__ */ v(
3868
3715
  "button",
3869
3716
  {
3870
3717
  onClick: () => {
3871
- l?.("dismiss"), c();
3718
+ u?.("dismiss"), c();
3872
3719
  },
3873
3720
  className: "absolute right-0 top-1/2 -translate-y-1/2 p-1 rounded-full hover:bg-black/10 dark:hover:bg-white/10 transition-colors",
3874
3721
  "aria-label": f,
3875
- children: /* @__PURE__ */ R(
3722
+ children: /* @__PURE__ */ v(
3876
3723
  "svg",
3877
3724
  {
3878
3725
  className: "w-4 h-4 text-current opacity-60",
3879
3726
  fill: "none",
3880
3727
  stroke: "currentColor",
3881
3728
  viewBox: "0 0 24 24",
3882
- children: /* @__PURE__ */ R(
3729
+ children: /* @__PURE__ */ v(
3883
3730
  "path",
3884
3731
  {
3885
3732
  strokeLinecap: "round",
@@ -3892,29 +3739,29 @@ const Qt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, xt = qa, $
3892
3739
  )
3893
3740
  }
3894
3741
  ),
3895
- /* @__PURE__ */ k("div", { className: "flex items-center", children: [
3896
- o && /* @__PURE__ */ R(
3742
+ /* @__PURE__ */ F("div", { className: "flex items-center", children: [
3743
+ o && /* @__PURE__ */ v(
3897
3744
  "div",
3898
3745
  {
3899
- className: w(
3746
+ className: M(
3900
3747
  "text-xs font-bold px-3 py-1 rounded-full mr-3 transition-colors",
3901
3748
  t === "vibrant" ? "bg-white text-blue-600" : "bg-green-500 text-white"
3902
3749
  ),
3903
- children: u
3750
+ children: d
3904
3751
  }
3905
3752
  ),
3906
- /* @__PURE__ */ R("span", { className: w(Ga({ variant: t })), children: n })
3753
+ /* @__PURE__ */ v("span", { className: M(Kn({ variant: t })), children: n })
3907
3754
  ] }),
3908
- /* @__PURE__ */ R(
3909
- xe,
3755
+ /* @__PURE__ */ v(
3756
+ De,
3910
3757
  {
3911
3758
  to: a,
3912
- className: w(Ya({ variant: t })),
3913
- onClick: () => l?.("cta_click"),
3759
+ className: M(Zn({ variant: t })),
3760
+ onClick: () => u?.("cta_click"),
3914
3761
  children: i
3915
3762
  }
3916
3763
  )
3917
- ] }) }) }), oi = ({
3764
+ ] }) }) }), sa = ({
3918
3765
  className: e,
3919
3766
  children: t,
3920
3767
  disabled: r = !1,
@@ -3924,10 +3771,10 @@ const Qt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, xt = qa, $
3924
3771
  const a = () => {
3925
3772
  r || (i?.("click"), n?.());
3926
3773
  };
3927
- return /* @__PURE__ */ R(
3774
+ return /* @__PURE__ */ v(
3928
3775
  "div",
3929
3776
  {
3930
- className: w(
3777
+ className: M(
3931
3778
  "p-4 rounded-lg border transition-colors",
3932
3779
  "bg-white dark:bg-gray-900",
3933
3780
  "border-gray-200 dark:border-gray-700",
@@ -3944,16 +3791,16 @@ const Qt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, xt = qa, $
3944
3791
  );
3945
3792
  };
3946
3793
  export {
3947
- xa as AbTestEmail,
3948
- zt as CollapsibleEmailField,
3949
- $a as ContactCard,
3950
- ei as EmailAccountsList,
3951
- ti as EmailAnalytics,
3952
- ri as EmailCampaign,
3953
- ar as EmailInputField,
3954
- ni as EmailInputGroup,
3955
- ii as FreeEmailBanner,
3956
- Qa as SubscriberList,
3957
- ai as UemailUtemplate,
3958
- oi as UsubscriptionUplan
3794
+ ta as AbTestEmail,
3795
+ st as CollapsibleEmailField,
3796
+ ra as ContactCard,
3797
+ na as EmailAccountsList,
3798
+ aa as EmailAnalytics,
3799
+ ia as EmailCampaign,
3800
+ Rt as EmailInputField,
3801
+ oa as EmailInputGroup,
3802
+ la as FreeEmailBanner,
3803
+ ea as SubscriberList,
3804
+ ua as UemailUtemplate,
3805
+ sa as UsubscriptionUplan
3959
3806
  };