@sudobility/email-components 2.0.9 → 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,10 +1,10 @@
1
- import { jsx as v, jsxs as W } from "react/jsx-runtime";
2
- import { cn as M, Label as Bt } from "@sudobility/components";
3
- import * as E from "react";
4
- import { useRef as Gt, useState as Ht, useEffect as Yt } from "react";
5
- import { ChevronRightIcon as qt, ChevronUpIcon as zt, ChevronDownIcon as Kt } from "@heroicons/react/24/outline";
6
- import { textVariants as gt } from "@sudobility/design";
7
- const Qn = ({
1
+ import { jsx as v, jsxs as F } from "react/jsx-runtime";
2
+ import { cn as M, Label as Ht } from "@sudobility/components";
3
+ import * as h from "react";
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
@@ -23,7 +23,7 @@ const Qn = ({
23
23
  "aria-label": "SubscriberList",
24
24
  children: t || "SubscriberList Component"
25
25
  }
26
- ), xn = ({
26
+ ), ta = ({
27
27
  className: e,
28
28
  children: t,
29
29
  disabled: r
@@ -42,7 +42,7 @@ const Qn = ({
42
42
  "aria-label": "AbTestEmail",
43
43
  children: t || "AbTestEmail Component"
44
44
  }
45
- ), $n = ({
45
+ ), ra = ({
46
46
  className: e,
47
47
  children: t,
48
48
  disabled: r
@@ -62,127 +62,127 @@ const Qn = ({
62
62
  children: t || "ContactCard Component"
63
63
  }
64
64
  );
65
- var Ee = {}, T = {}, je;
66
- function x() {
67
- if (je) return T;
68
- je = 1, Object.defineProperty(T, "__esModule", { value: !0 }), T.Currency = T.ErrorType = T.FeatureFlag = T.EmailValidationState = T.PlatformType = T.ConnectionState = T.ConnectionType = T.EmailSortCriteria = T.SortOrder = T.EmailAddressType = T.InfoType = T.NotificationType = T.RequestStatus = T.SubscriptionAction = T.EmailAction = T.MediumView = T.MobileView = T.EmailComposeType = T.FontSize = T.Theme = T.Chain = T.ChainType = T.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;
69
69
  var e;
70
70
  (function(s) {
71
71
  s.CONNECTED = "connected", s.DISCONNECTED = "disconnected", s.VERIFIED = "verified";
72
- })(e || (T.AuthStatus = e = {}));
72
+ })(e || (N.AuthStatus = e = {}));
73
73
  var t;
74
74
  (function(s) {
75
75
  s.EVM = "evm", s.SOLANA = "solana";
76
- })(t || (T.ChainType = t = {}));
76
+ })(t || (N.ChainType = t = {}));
77
77
  var r;
78
78
  (function(s) {
79
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 || (T.Chain = r = {}));
80
+ })(r || (N.Chain = r = {}));
81
81
  var n;
82
82
  (function(s) {
83
83
  s.LIGHT = "light", s.DARK = "dark", s.SYSTEM = "system";
84
- })(n || (T.Theme = n = {}));
84
+ })(n || (N.Theme = n = {}));
85
85
  var i;
86
86
  (function(s) {
87
87
  s.SMALL = "small", s.MEDIUM = "medium", s.LARGE = "large";
88
- })(i || (T.FontSize = i = {}));
88
+ })(i || (N.FontSize = i = {}));
89
89
  var a;
90
90
  (function(s) {
91
91
  s.NEW = "new", s.REPLY = "reply", s.REPLY_ALL = "replyAll", s.FORWARD = "forward";
92
- })(a || (T.EmailComposeType = a = {}));
92
+ })(a || (N.EmailComposeType = a = {}));
93
93
  var o;
94
94
  (function(s) {
95
95
  s.EMAIL_ADDRESSES = "emailAddresses", s.FOLDERS = "folders", s.EMAILS = "emails", s.EMAIL_BODY = "emailBody";
96
- })(o || (T.MobileView = o = {}));
96
+ })(o || (N.MobileView = o = {}));
97
97
  var d;
98
98
  (function(s) {
99
99
  s.LEFT = "left", s.RIGHT = "right";
100
- })(d || (T.MediumView = d = {}));
100
+ })(d || (N.MediumView = d = {}));
101
101
  var c;
102
102
  (function(s) {
103
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 || (T.EmailAction = c = {}));
104
+ })(c || (N.EmailAction = c = {}));
105
105
  var l;
106
106
  (function(s) {
107
107
  s.VIEW = "view", s.PURCHASE = "purchase", s.CANCEL = "cancel", s.RESTORE = "restore";
108
- })(l || (T.SubscriptionAction = l = {}));
108
+ })(l || (N.SubscriptionAction = l = {}));
109
109
  var f;
110
110
  (function(s) {
111
111
  s.IDLE = "idle", s.LOADING = "loading", s.SUCCESS = "success", s.ERROR = "error";
112
- })(f || (T.RequestStatus = f = {}));
112
+ })(f || (N.RequestStatus = f = {}));
113
113
  var u;
114
114
  (function(s) {
115
115
  s.INFO = "info", s.SUCCESS = "success", s.WARNING = "warning", s.ERROR = "error";
116
- })(u || (T.NotificationType = u = {}));
116
+ })(u || (N.NotificationType = u = {}));
117
117
  var m;
118
118
  (function(s) {
119
119
  s.INFO = "info", s.SUCCESS = "success", s.WARNING = "warning", s.ERROR = "error";
120
- })(m || (T.InfoType = m = {}));
120
+ })(m || (N.InfoType = m = {}));
121
121
  var b;
122
122
  (function(s) {
123
123
  s.DIRECT = "direct", s.ENS = "ens", s.SNS = "sns", s.CUSTOM = "custom";
124
- })(b || (T.EmailAddressType = b = {}));
124
+ })(b || (N.EmailAddressType = b = {}));
125
125
  var S;
126
126
  (function(s) {
127
127
  s.ASC = "asc", s.DESC = "desc";
128
- })(S || (T.SortOrder = S = {}));
128
+ })(S || (N.SortOrder = S = {}));
129
129
  var p;
130
130
  (function(s) {
131
131
  s.DATE = "date", s.SUBJECT = "subject", s.FROM = "from", s.SIZE = "size";
132
- })(p || (T.EmailSortCriteria = p = {}));
132
+ })(p || (N.EmailSortCriteria = p = {}));
133
133
  var g;
134
134
  (function(s) {
135
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 || (T.ConnectionType = g = {}));
136
+ })(g || (N.ConnectionType = g = {}));
137
137
  var A;
138
138
  (function(s) {
139
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 || (T.ConnectionState = A = {}));
140
+ })(A || (N.ConnectionState = A = {}));
141
141
  var y;
142
142
  (function(s) {
143
143
  s.WEB = "web", s.REACT_NATIVE = "react_native", s.DESKTOP = "desktop";
144
- })(y || (T.PlatformType = y = {}));
145
- var h;
144
+ })(y || (N.PlatformType = y = {}));
145
+ var E;
146
146
  (function(s) {
147
147
  s.VALID = "valid", s.INVALID = "invalid", s.PENDING = "pending", s.UNKNOWN = "unknown";
148
- })(h || (T.EmailValidationState = h = {}));
148
+ })(E || (N.EmailValidationState = E = {}));
149
149
  var R;
150
150
  (function(s) {
151
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 || (T.FeatureFlag = R = {}));
153
- var N;
152
+ })(R || (N.FeatureFlag = R = {}));
153
+ var T;
154
154
  (function(s) {
155
155
  s.NETWORK = "network", s.AUTH = "auth", s.VALIDATION = "validation", s.PERMISSION = "permission", s.UNKNOWN = "unknown";
156
- })(N || (T.ErrorType = N = {}));
157
- var P;
156
+ })(T || (N.ErrorType = T = {}));
157
+ var C;
158
158
  return (function(s) {
159
159
  s.USD = "USD", s.EUR = "EUR", s.GBP = "GBP", s.CAD = "CAD", s.AUD = "AUD";
160
- })(P || (T.Currency = P = {})), T;
160
+ })(C || (N.Currency = C = {})), N;
161
161
  }
162
- var be = {}, Ue;
163
- function Zt() {
164
- return Ue || (Ue = 1, (function(e) {
162
+ var Se = {}, ke;
163
+ function Xt() {
164
+ return ke || (ke = 1, (function(e) {
165
165
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getWalletConnectionState = e.isWalletVerified = e.isWalletConnected = void 0;
166
- const t = x(), r = (a) => a != null && !!a.walletAddress;
166
+ const t = ee(), r = (a) => a != null && !!a.walletAddress;
167
167
  e.isWalletConnected = r;
168
168
  const n = (a) => (0, e.isWalletConnected)(a) && !!a.message && !!a.signature;
169
169
  e.isWalletVerified = n;
170
170
  const i = (a) => (0, e.isWalletConnected)(a) ? (0, e.isWalletVerified)(a) ? t.ConnectionState.VERIFIED : t.ConnectionState.CONNECTED : t.ConnectionState.DISCONNECTED;
171
171
  e.getWalletConnectionState = i;
172
- })(be)), be;
172
+ })(Se)), Se;
173
173
  }
174
- var D = {}, ke;
175
- function ht() {
176
- if (ke) return D;
177
- ke = 1, Object.defineProperty(D, "__esModule", { value: !0 }), D.PROTOCOL_CONSTANTS = D.TransactionStatus = D.MessageType = void 0, D.isSolanaAddress = r, D.isEvmAddress = n, D.isSolanaRecipient = i, D.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;
178
178
  var e;
179
179
  (function(o) {
180
180
  o.STANDARD = "standard", o.PRIORITY = "priority", o.PREPARED_STANDARD = "prepared_standard", o.PREPARED_PRIORITY = "prepared_priority";
181
- })(e || (D.MessageType = e = {}));
181
+ })(e || (j.MessageType = e = {}));
182
182
  var t;
183
183
  (function(o) {
184
184
  o.SUCCESS = "success", o.FAILED = "failed", o.PENDING = "pending";
185
- })(t || (D.TransactionStatus = t = {}));
185
+ })(t || (j.TransactionStatus = t = {}));
186
186
  function r(o) {
187
187
  try {
188
188
  if (o.length < 32 || o.length > 44 || !/^[1-9A-HJ-NP-Za-km-z]+$/.test(o))
@@ -205,7 +205,7 @@ function ht() {
205
205
  function a(o) {
206
206
  return n(o);
207
207
  }
208
- return D.PROTOCOL_CONSTANTS = {
208
+ return j.PROTOCOL_CONSTANTS = {
209
209
  /** Base send fee: 0.1 USDC (100,000 with 6 decimals) */
210
210
  SEND_FEE: 100000n,
211
211
  /** Claim period: 60 days in seconds */
@@ -223,17 +223,17 @@ function ht() {
223
223
  BODY: 2e3,
224
224
  MAIL_ID: 100
225
225
  }
226
- }, D;
226
+ }, j;
227
227
  }
228
- var Z = {}, j = {}, Ve;
229
- function Et() {
230
- if (Ve) return j;
231
- Ve = 1, Object.defineProperty(j, "__esModule", { value: !0 }), j.AddressType = void 0, j.isENSName = n, j.isSNSName = i, j.getAddressType = a, j.isValidWalletAddress = o, j.isValidSignature = d, j.parseEmailAddress = c, j.formatWalletAddress = l, j.getChainDisplayName = f;
232
- const e = x(), t = ht();
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();
233
233
  var r;
234
234
  (function(u) {
235
235
  u.EVMAddress = "EVMAddress", u.SolanaAddress = "SolanaAddress", u.ENSName = "ENSName", u.SNSName = "SNSName";
236
- })(r || (j.AddressType = r = {}));
236
+ })(r || (U.AddressType = r = {}));
237
237
  function n(u) {
238
238
  const m = u.toLowerCase();
239
239
  if (!m.endsWith(".eth") && !m.endsWith(".box"))
@@ -340,13 +340,13 @@ function Et() {
340
340
  return "Blockchain";
341
341
  }
342
342
  }
343
- return j;
343
+ return U;
344
344
  }
345
- var We;
346
- function Jt() {
347
- if (We) return Z;
348
- We = 1, Object.defineProperty(Z, "__esModule", { value: !0 }), Z.validateDomain = t, Z.validateMessage = r, Z.validateAddress = n, Z.validateAmount = i;
349
- const e = Et();
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();
350
350
  function t(a) {
351
351
  if (!a || a.length === 0)
352
352
  throw new Error("Domain cannot be empty");
@@ -398,25 +398,25 @@ function Jt() {
398
398
  throw new Error("Amount cannot be negative");
399
399
  return o;
400
400
  }
401
- return Z;
401
+ return J;
402
402
  }
403
- var te = {}, Fe;
404
- function Xt() {
405
- if (Fe) return te;
406
- Fe = 1, Object.defineProperty(te, "__esModule", { value: !0 }), te.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;
407
407
  var e;
408
408
  return (function(t) {
409
409
  t.LOCAL_STORAGE = "localStorage", t.SESSION_STORAGE = "sessionStorage", t.ASYNC_STORAGE = "asyncStorage", t.MEMORY = "memory";
410
- })(e || (te.StorageType = e = {})), te;
410
+ })(e || (re.StorageType = e = {})), re;
411
411
  }
412
- var J = {}, Be;
413
- function Qt() {
414
- if (Be) return J;
415
- Be = 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;
416
416
  var e;
417
417
  (function(r) {
418
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";
419
- })(e || (J.AnalyticsEvent = e = {}));
419
+ })(e || (X.AnalyticsEvent = e = {}));
420
420
  class t {
421
421
  /**
422
422
  * Build properties for email action events.
@@ -533,13 +533,13 @@ function Qt() {
533
533
  };
534
534
  }
535
535
  }
536
- return J.AnalyticsEventBuilder = t, J;
536
+ return X.AnalyticsEventBuilder = t, X;
537
537
  }
538
- var Se = {}, Ge;
539
- function xt() {
540
- return Ge || (Ge = 1, (function(e) {
538
+ var ye = {}, He;
539
+ function er() {
540
+ return He || (He = 1, (function(e) {
541
541
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ProcessedEventName = e.ContractType = e.ChainType = void 0;
542
- var t = x();
542
+ var t = ee();
543
543
  Object.defineProperty(e, "ChainType", { enumerable: !0, get: function() {
544
544
  return t.ChainType;
545
545
  } });
@@ -551,59 +551,59 @@ function xt() {
551
551
  (function(i) {
552
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";
553
553
  })(n || (e.ProcessedEventName = n = {}));
554
- })(Se)), Se;
554
+ })(ye)), ye;
555
555
  }
556
- var re = {}, He;
557
- function $t() {
558
- if (He) return re;
559
- He = 1, Object.defineProperty(re, "__esModule", { value: !0 }), re.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;
560
560
  class e extends Error {
561
561
  constructor(r, n, i, a) {
562
562
  super(r), this.name = "NetworkError", this.status = n, this.statusText = i, this.response = a;
563
563
  }
564
564
  }
565
- return re.NetworkError = e, re;
565
+ return ne.NetworkError = e, ne;
566
566
  }
567
- var ne = {}, Ye;
568
- function er() {
569
- if (Ye) return ne;
570
- Ye = 1, Object.defineProperty(ne, "__esModule", { value: !0 }), ne.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;
571
571
  var e;
572
572
  return (function(t) {
573
573
  t.METAMASK = "metamask", t.PHANTOM = "phantom", t.COINBASE = "coinbase", t.WALLETCONNECT = "walletconnect", t.INJECTED = "injected";
574
- })(e || (ne.WalletType = e = {})), ne;
574
+ })(e || (ae.WalletType = e = {})), ae;
575
575
  }
576
- var ae = {}, qe;
577
- function tr() {
578
- if (qe) return ae;
579
- qe = 1, Object.defineProperty(ae, "__esModule", { value: !0 }), ae.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;
580
580
  var e;
581
581
  return (function(t) {
582
582
  t.HOUR = "hour", t.DAY = "day", t.MONTH = "month";
583
- })(e || (ae.RateLimitPeriodType = e = {})), ae;
583
+ })(e || (ie.RateLimitPeriodType = e = {})), ie;
584
584
  }
585
- var H = {}, ze;
586
- function bt() {
587
- if (ze) return H;
588
- ze = 1, Object.defineProperty(H, "__esModule", { value: !0 }), H.InvitationStatus = H.EntityRole = H.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;
589
589
  var e;
590
590
  (function(n) {
591
591
  n.PERSONAL = "personal", n.ORGANIZATION = "organization";
592
- })(e || (H.EntityType = e = {}));
592
+ })(e || (Y.EntityType = e = {}));
593
593
  var t;
594
594
  (function(n) {
595
595
  n.OWNER = "owner", n.MANAGER = "manager", n.MEMBER = "member";
596
- })(t || (H.EntityRole = t = {}));
596
+ })(t || (Y.EntityRole = t = {}));
597
597
  var r;
598
598
  return (function(n) {
599
599
  n.PENDING = "pending", n.ACCEPTED = "accepted", n.DECLINED = "declined", n.EXPIRED = "expired";
600
- })(r || (H.InvitationStatus = r = {})), H;
600
+ })(r || (Y.InvitationStatus = r = {})), Y;
601
601
  }
602
- var ye = {}, Ke;
603
- function rr() {
604
- return Ke || (Ke = 1, (function(e) {
602
+ var pe = {}, Ze;
603
+ function ar() {
604
+ return Ze || (Ze = 1, (function(e) {
605
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 = bt();
606
+ const t = yt();
607
607
  e.OWNER_PERMISSIONS = {
608
608
  canViewEntity: !0,
609
609
  canEditEntity: !0,
@@ -648,13 +648,13 @@ function rr() {
648
648
  function n(i, a) {
649
649
  return e.ROLE_PERMISSIONS[i][a];
650
650
  }
651
- })(ye)), ye;
651
+ })(pe)), pe;
652
652
  }
653
- var ie = {}, Ze;
654
- function nr() {
655
- if (Ze) return ie;
656
- Ze = 1, Object.defineProperty(ie, "__esModule", { value: !0 }), ie.Web3UsernameValidator = void 0;
657
- const e = x();
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();
658
658
  class t {
659
659
  /**
660
660
  * Comprehensive address validation for API endpoint
@@ -729,7 +729,7 @@ function nr() {
729
729
  return this.VALID_SNS_TLDS.includes(o) && this.SNS_NAME_REGEX.test(a) && a.length >= 1;
730
730
  }
731
731
  }
732
- return ie.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 = [
733
733
  "sol",
734
734
  "abc",
735
735
  "backpack",
@@ -743,95 +743,95 @@ function nr() {
743
743
  "shdw",
744
744
  "stepn",
745
745
  "web3"
746
- ], ie;
746
+ ], oe;
747
747
  }
748
- var pe = {}, Je;
749
- function ar() {
750
- return Je || (Je = 1, (function(e) {
748
+ var Ae = {}, Xe;
749
+ function or() {
750
+ return Xe || (Xe = 1, (function(e) {
751
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;
752
- const t = (h, R) => (N) => {
752
+ const t = (E, R) => (T) => {
753
753
  try {
754
- return h(N) ? { isValid: !0, data: N } : { isValid: !1, error: `Invalid ${R}`, data: null };
755
- } catch (P) {
754
+ return E(T) ? { isValid: !0, data: T } : { isValid: !1, error: `Invalid ${R}`, data: null };
755
+ } catch (C) {
756
756
  return {
757
757
  isValid: !1,
758
- error: `Validation error for ${R}: ${P instanceof Error ? P.message : "Unknown error"}`,
758
+ error: `Validation error for ${R}: ${C instanceof Error ? C.message : "Unknown error"}`,
759
759
  data: null
760
760
  };
761
761
  }
762
762
  };
763
763
  e.createValidator = t;
764
- const r = (h) => typeof h == "string";
764
+ const r = (E) => typeof E == "string";
765
765
  e.isString = r;
766
- const n = (h) => typeof h == "number" && !isNaN(h);
766
+ const n = (E) => typeof E == "number" && !isNaN(E);
767
767
  e.isNumber = n;
768
- const i = (h) => typeof h == "boolean";
768
+ const i = (E) => typeof E == "boolean";
769
769
  e.isBoolean = i;
770
- const a = (h) => typeof h == "object" && h !== null && !Array.isArray(h);
770
+ const a = (E) => typeof E == "object" && E !== null && !Array.isArray(E);
771
771
  e.isObject = a;
772
- const o = (h) => Array.isArray(h);
772
+ const o = (E) => Array.isArray(E);
773
773
  e.isArray = o;
774
- const d = (h) => h == null;
774
+ const d = (E) => E == null;
775
775
  e.isNullish = d;
776
- const c = (h, R) => (0, e.isObject)(h) ? R.every((N) => N in h) : !1;
776
+ const c = (E, R) => (0, e.isObject)(E) ? R.every((T) => T in E) : !1;
777
777
  e.hasRequiredProperties = c;
778
- const l = (h, R) => (0, e.isArray)(h) ? h.every(R) : !1;
778
+ const l = (E, R) => (0, e.isArray)(E) ? E.every(R) : !1;
779
779
  e.validateArray = l;
780
- const f = (h) => (R) => R === void 0 || h(R);
780
+ const f = (E) => (R) => R === void 0 || E(R);
781
781
  e.optional = f;
782
- const u = (h) => (0, e.isObject)(h) && (0, e.isBoolean)(h.success);
782
+ const u = (E) => (0, e.isObject)(E) && (0, e.isBoolean)(E.success);
783
783
  e.isApiResponse = u;
784
- const m = (h, R) => !(0, e.isApiResponse)(h) || !h.success ? !1 : R && "data" in h ? R(h.data) : !0;
784
+ const m = (E, R) => !(0, e.isApiResponse)(E) || !E.success ? !1 : R && "data" in E ? R(E.data) : !0;
785
785
  e.isSuccessResponse = m;
786
- const b = (h) => (0, e.isApiResponse)(h) && !h.success && "error" in h && (0, e.isString)(h.error);
786
+ const b = (E) => (0, e.isApiResponse)(E) && !E.success && "error" in E && (0, e.isString)(E.error);
787
787
  e.isErrorResponse = b;
788
- const S = (h) => {
789
- if (!(0, e.isString)(h))
788
+ const S = (E) => {
789
+ if (!(0, e.isString)(E))
790
790
  return !1;
791
- const R = new Date(h);
791
+ const R = new Date(E);
792
792
  return !isNaN(R.getTime());
793
793
  };
794
794
  e.isValidDate = S;
795
- const p = (h) => (0, e.isString)(h) ? /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(h) : !1;
795
+ const p = (E) => (0, e.isString)(E) ? /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(E) : !1;
796
796
  e.isEmail = p;
797
- const g = (h) => {
798
- if (!(0, e.isString)(h))
797
+ const g = (E) => {
798
+ if (!(0, e.isString)(E))
799
799
  return !1;
800
800
  try {
801
- return new URL(h), !0;
801
+ return new URL(E), !0;
802
802
  } catch {
803
803
  return !1;
804
804
  }
805
805
  };
806
806
  e.isUrl = g;
807
- const A = (h, R) => (N, P = R) => {
808
- if (!h(N))
809
- throw new TypeError(`Invalid ${P}: expected ${R}`);
807
+ const A = (E, R) => (T, C = R) => {
808
+ if (!E(T))
809
+ throw new TypeError(`Invalid ${C}: expected ${R}`);
810
810
  };
811
811
  e.createAssertion = A;
812
- const y = (h, R) => {
812
+ const y = (E, R) => {
813
813
  try {
814
- const N = JSON.parse(h);
815
- return R ? R(N) ? { isValid: !0, data: N } : {
814
+ const T = JSON.parse(E);
815
+ return R ? R(T) ? { isValid: !0, data: T } : {
816
816
  isValid: !1,
817
817
  error: "Parsed JSON does not match expected type",
818
818
  data: null
819
- } : { isValid: !0, data: N };
820
- } catch (N) {
819
+ } : { isValid: !0, data: T };
820
+ } catch (T) {
821
821
  return {
822
822
  isValid: !1,
823
- error: `JSON parse error: ${N instanceof Error ? N.message : "Unknown error"}`,
823
+ error: `JSON parse error: ${T instanceof Error ? T.message : "Unknown error"}`,
824
824
  data: null
825
825
  };
826
826
  }
827
827
  };
828
828
  e.parseJson = y;
829
- })(pe)), pe;
829
+ })(Ae)), Ae;
830
830
  }
831
- var U = {}, Xe;
832
- function ir() {
833
- if (Xe) return U;
834
- Xe = 1, Object.defineProperty(U, "__esModule", { value: !0 }), U.createMultiChainId = e, U.createUserMultiChainId = t, U.createChainStatsId = r, U.createDelegationId = n, U.normalizeAddress = i, U.formatBigInt = a, U.isZeroAddress = o, U.isTestNet = d, U.validateEventArgs = c;
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
835
  function e(l, f, u) {
836
836
  return `${l}-${f}-${u}`;
837
837
  }
@@ -888,13 +888,13 @@ function ir() {
888
888
  return console.error(`❌ Missing required field: ${String(u)}`), !1;
889
889
  return !0;
890
890
  }
891
- return U;
891
+ return k;
892
892
  }
893
- var V = {}, Qe;
894
- function or() {
895
- if (Qe) return V;
896
- Qe = 1, Object.defineProperty(V, "__esModule", { value: !0 }), V.generateAuthMessage = t, V.isAuthExpired = r, V.getAuthStatusText = n, V.canAccessProtectedFeatures = i, V.isAuthStatusConnected = a, V.generateNonce = o, V.extractNonceFromMessage = d, V.isValidNonce = c;
897
- const e = x();
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
898
  function t(l, f) {
899
899
  const u = f || `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
900
900
  return `Authenticate with ${l}
@@ -943,11 +943,27 @@ Nonce: ${u}`;
943
943
  }
944
944
  return !0;
945
945
  }
946
- return V;
946
+ return W;
947
947
  }
948
- var Ae = {}, xe;
949
- function ur() {
950
- return xe || (xe = 1, (function(e) {
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 $;
963
+ }
964
+ var Re = {}, et;
965
+ function cr() {
966
+ return et || (et = 1, (function(e) {
951
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;
952
968
  function t(n) {
953
969
  return (n / Math.pow(10, e.USDC_DECIMALS)).toFixed(2);
@@ -955,12 +971,12 @@ function ur() {
955
971
  function r(n) {
956
972
  return Math.floor(parseFloat(n) * Math.pow(10, e.USDC_DECIMALS));
957
973
  }
958
- })(Ae)), Ae;
974
+ })(Re)), Re;
959
975
  }
960
- var B = {}, $e;
961
- function lr() {
962
- if ($e) return B;
963
- $e = 1, Object.defineProperty(B, "__esModule", { value: !0 }), B.formatEmailDate = e, B.formatTimestamp = t, B.formatRelativeTime = r, B.parseDate = n, B.isDateInRange = i, B.addDays = a, B.addHours = o;
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;
964
980
  function e(d) {
965
981
  const c = typeof d == "string" ? new Date(d) : d;
966
982
  if (isNaN(c.getTime()))
@@ -1010,12 +1026,12 @@ function lr() {
1010
1026
  const l = new Date(d);
1011
1027
  return l.setHours(l.getHours() + c), l;
1012
1028
  }
1013
- return B;
1029
+ return G;
1014
1030
  }
1015
- var C = {}, et;
1016
- function sr() {
1017
- if (et) return C;
1018
- et = 1, Object.defineProperty(C, "__esModule", { value: !0 }), C.truncate = e, C.capitalize = t, C.toTitleCase = r, C.toKebabCase = n, C.toCamelCase = i, C.toSnakeCase = a, C.normalizeWhitespace = o, C.isBlank = d, C.isNotBlank = c, C.escapeHtml = l, C.stripHtml = f, C.getInitials = u, C.formatBytes = m, C.randomString = b, C.pluralize = S, C.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;
1019
1035
  function e(g, A, y = "...") {
1020
1036
  return !g || g.length <= A ? g : g.slice(0, A - y.length) + y;
1021
1037
  }
@@ -1064,8 +1080,8 @@ function sr() {
1064
1080
  function m(g, A = 2) {
1065
1081
  if (g === 0)
1066
1082
  return "0 Bytes";
1067
- const y = 1024, h = A < 0 ? 0 : A, R = ["Bytes", "KB", "MB", "GB", "TB", "PB"], N = Math.floor(Math.log(g) / Math.log(y));
1068
- return parseFloat((g / Math.pow(y, N)).toFixed(h)) + " " + R[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];
1069
1085
  }
1070
1086
  function b(g, A = "alphanumeric") {
1071
1087
  let y;
@@ -1085,10 +1101,10 @@ function sr() {
1085
1101
  default:
1086
1102
  y = A;
1087
1103
  }
1088
- let h = "";
1104
+ let E = "";
1089
1105
  for (let R = 0; R < g; R++)
1090
- h += y.charAt(Math.floor(Math.random() * y.length));
1091
- return h;
1106
+ E += y.charAt(Math.floor(Math.random() * y.length));
1107
+ return E;
1092
1108
  }
1093
1109
  function S(g, A, y) {
1094
1110
  return g === 1 ? A : y || `${A}s`;
@@ -1096,12 +1112,12 @@ function sr() {
1096
1112
  function p(g) {
1097
1113
  return g.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
1098
1114
  }
1099
- return C;
1115
+ return P;
1100
1116
  }
1101
- var O = {}, tt;
1102
- function cr() {
1103
- if (tt) return O;
1104
- tt = 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;
1105
1121
  const e = 3e4;
1106
1122
  O.API_TIMEOUT = e;
1107
1123
  const t = 3;
@@ -1235,19 +1251,19 @@ function cr() {
1235
1251
  };
1236
1252
  return O.Z_INDEX = g, O;
1237
1253
  }
1238
- var oe = {}, rt;
1239
- function dr() {
1240
- return rt || (rt = 1, Object.defineProperty(oe, "__esModule", { value: !0 }), oe.STATUS_VALUES = void 0, oe.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 = {
1241
1257
  SUCCESS: "success",
1242
1258
  PENDING: "pending",
1243
1259
  FAILED: "failed",
1244
1260
  ERROR: "error"
1245
- }), oe;
1261
+ }), ue;
1246
1262
  }
1247
- var _ = {}, nt;
1248
- function St() {
1249
- if (nt) return _;
1250
- nt = 1, Object.defineProperty(_, "__esModule", { value: !0 }), _.storageLogger = _.ensLogger = _.contractLogger = _.apiLogger = _.authLogger = _.logger = _.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;
1251
1267
  var e;
1252
1268
  (function(c) {
1253
1269
  c.ERROR = "error", c.WARN = "warn", c.INFO = "info", c.DEBUG = "debug";
@@ -1303,10 +1319,10 @@ function St() {
1303
1319
  const d = r.withContext("STORAGE");
1304
1320
  return _.storageLogger = d, _;
1305
1321
  }
1306
- var X = {}, at;
1307
- function fr() {
1308
- if (at) return X;
1309
- at = 1, Object.defineProperty(X, "__esModule", { value: !0 }), X.createURLSearchParams = t, X.createSearchParams = r, X.searchParamsToString = n, X.parseSearchParams = i;
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;
1310
1326
  class e {
1311
1327
  constructor(o) {
1312
1328
  if (this.params = /* @__PURE__ */ new Map(), o)
@@ -1380,13 +1396,13 @@ function fr() {
1380
1396
  d[l] = c;
1381
1397
  }), d;
1382
1398
  }
1383
- return X;
1399
+ return Q;
1384
1400
  }
1385
- var I = {}, it;
1386
- function mr() {
1387
- if (it) return I;
1388
- it = 1, Object.defineProperty(I, "__esModule", { value: !0 }), I.debounceAsync = I.clearExpiredCache = I.withCache = I.withTimeout = I.safeParallel = I.withLoadingState = I.safeAsync = void 0;
1389
- const e = St(), t = async (f, u) => {
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) => {
1390
1406
  try {
1391
1407
  return { data: await f(), success: !0 };
1392
1408
  } catch (m) {
@@ -1456,11 +1472,11 @@ function mr() {
1456
1472
  });
1457
1473
  return I.debounceAsync = l, I;
1458
1474
  }
1459
- var ot;
1460
- function gr() {
1461
- return ot || (ot = 1, (function(e) {
1462
- 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.USDC_DECIMALS = e.CLAIM_PERIOD_DAYS = 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.storageLogger = e.ensLogger = e.contractLogger = 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 = void 0, e.debounceAsync = e.clearExpiredCache = e.withCache = e.withTimeout = e.safeParallel = e.withLoadingState = e.safeAsync = e.parseSearchParams = e.searchParamsToString = e.createSearchParams = e.createURLSearchParams = void 0;
1463
- var t = x();
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();
1464
1480
  Object.defineProperty(e, "AuthStatus", { enumerable: !0, get: function() {
1465
1481
  return t.AuthStatus;
1466
1482
  } }), Object.defineProperty(e, "Chain", { enumerable: !0, get: function() {
@@ -1508,7 +1524,7 @@ function gr() {
1508
1524
  } }), Object.defineProperty(e, "Theme", { enumerable: !0, get: function() {
1509
1525
  return t.Theme;
1510
1526
  } });
1511
- var r = Zt();
1527
+ var r = Xt();
1512
1528
  Object.defineProperty(e, "getWalletConnectionState", { enumerable: !0, get: function() {
1513
1529
  return r.getWalletConnectionState;
1514
1530
  } }), Object.defineProperty(e, "isWalletConnected", { enumerable: !0, get: function() {
@@ -1516,7 +1532,7 @@ function gr() {
1516
1532
  } }), Object.defineProperty(e, "isWalletVerified", { enumerable: !0, get: function() {
1517
1533
  return r.isWalletVerified;
1518
1534
  } });
1519
- var n = ht();
1535
+ var n = bt();
1520
1536
  Object.defineProperty(e, "MessageType", { enumerable: !0, get: function() {
1521
1537
  return n.MessageType;
1522
1538
  } }), Object.defineProperty(e, "PROTOCOL_CONSTANTS", { enumerable: !0, get: function() {
@@ -1532,7 +1548,7 @@ function gr() {
1532
1548
  } }), Object.defineProperty(e, "isSolanaRecipient", { enumerable: !0, get: function() {
1533
1549
  return n.isSolanaRecipient;
1534
1550
  } });
1535
- var i = Jt();
1551
+ var i = Qt();
1536
1552
  Object.defineProperty(e, "validateAddress", { enumerable: !0, get: function() {
1537
1553
  return i.validateAddress;
1538
1554
  } }), Object.defineProperty(e, "validateAmount", { enumerable: !0, get: function() {
@@ -1542,35 +1558,35 @@ function gr() {
1542
1558
  } }), Object.defineProperty(e, "validateMessage", { enumerable: !0, get: function() {
1543
1559
  return i.validateMessage;
1544
1560
  } });
1545
- var a = Xt();
1561
+ var a = xt();
1546
1562
  Object.defineProperty(e, "StorageType", { enumerable: !0, get: function() {
1547
1563
  return a.StorageType;
1548
1564
  } });
1549
- var o = Qt();
1565
+ var o = $t();
1550
1566
  Object.defineProperty(e, "AnalyticsEvent", { enumerable: !0, get: function() {
1551
1567
  return o.AnalyticsEvent;
1552
1568
  } }), Object.defineProperty(e, "AnalyticsEventBuilder", { enumerable: !0, get: function() {
1553
1569
  return o.AnalyticsEventBuilder;
1554
1570
  } });
1555
- var d = xt();
1571
+ var d = er();
1556
1572
  Object.defineProperty(e, "ContractType", { enumerable: !0, get: function() {
1557
1573
  return d.ContractType;
1558
1574
  } }), Object.defineProperty(e, "ProcessedEventName", { enumerable: !0, get: function() {
1559
1575
  return d.ProcessedEventName;
1560
1576
  } });
1561
- var c = $t();
1577
+ var c = tr();
1562
1578
  Object.defineProperty(e, "NetworkError", { enumerable: !0, get: function() {
1563
1579
  return c.NetworkError;
1564
1580
  } });
1565
- var l = er();
1581
+ var l = rr();
1566
1582
  Object.defineProperty(e, "WalletType", { enumerable: !0, get: function() {
1567
1583
  return l.WalletType;
1568
1584
  } });
1569
- var f = tr();
1585
+ var f = nr();
1570
1586
  Object.defineProperty(e, "RateLimitPeriodType", { enumerable: !0, get: function() {
1571
1587
  return f.RateLimitPeriodType;
1572
1588
  } });
1573
- var u = bt();
1589
+ var u = yt();
1574
1590
  Object.defineProperty(e, "EntityType", { enumerable: !0, get: function() {
1575
1591
  return u.EntityType;
1576
1592
  } }), Object.defineProperty(e, "EntityRole", { enumerable: !0, get: function() {
@@ -1578,7 +1594,7 @@ function gr() {
1578
1594
  } }), Object.defineProperty(e, "InvitationStatus", { enumerable: !0, get: function() {
1579
1595
  return u.InvitationStatus;
1580
1596
  } });
1581
- var m = rr();
1597
+ var m = ar();
1582
1598
  Object.defineProperty(e, "OWNER_PERMISSIONS", { enumerable: !0, get: function() {
1583
1599
  return m.OWNER_PERMISSIONS;
1584
1600
  } }), Object.defineProperty(e, "MANAGER_PERMISSIONS", { enumerable: !0, get: function() {
@@ -1590,11 +1606,11 @@ function gr() {
1590
1606
  } }), Object.defineProperty(e, "hasPermission", { enumerable: !0, get: function() {
1591
1607
  return m.hasPermission;
1592
1608
  } });
1593
- var b = nr();
1609
+ var b = ir();
1594
1610
  Object.defineProperty(e, "Web3UsernameValidator", { enumerable: !0, get: function() {
1595
1611
  return b.Web3UsernameValidator;
1596
1612
  } });
1597
- var S = ar();
1613
+ var S = or();
1598
1614
  Object.defineProperty(e, "createAssertion", { enumerable: !0, get: function() {
1599
1615
  return S.createAssertion;
1600
1616
  } }), Object.defineProperty(e, "createValidator", { enumerable: !0, get: function() {
@@ -1632,7 +1648,7 @@ function gr() {
1632
1648
  } }), Object.defineProperty(e, "validateArray", { enumerable: !0, get: function() {
1633
1649
  return S.validateArray;
1634
1650
  } });
1635
- var p = Et();
1651
+ var p = St();
1636
1652
  Object.defineProperty(e, "AddressType", { enumerable: !0, get: function() {
1637
1653
  return p.AddressType;
1638
1654
  } }), Object.defineProperty(e, "formatWalletAddress", { enumerable: !0, get: function() {
@@ -1652,7 +1668,7 @@ function gr() {
1652
1668
  } }), Object.defineProperty(e, "parseEmailAddress", { enumerable: !0, get: function() {
1653
1669
  return p.parseEmailAddress;
1654
1670
  } });
1655
- var g = ir();
1671
+ var g = ur();
1656
1672
  Object.defineProperty(e, "createChainStatsId", { enumerable: !0, get: function() {
1657
1673
  return g.createChainStatsId;
1658
1674
  } }), Object.defineProperty(e, "createDelegationId", { enumerable: !0, get: function() {
@@ -1672,7 +1688,7 @@ function gr() {
1672
1688
  } }), Object.defineProperty(e, "validateEventArgs", { enumerable: !0, get: function() {
1673
1689
  return g.validateEventArgs;
1674
1690
  } });
1675
- var A = or();
1691
+ var A = lr();
1676
1692
  Object.defineProperty(e, "canAccessProtectedFeatures", { enumerable: !0, get: function() {
1677
1693
  return A.canAccessProtectedFeatures;
1678
1694
  } }), Object.defineProperty(e, "extractNonceFromMessage", { enumerable: !0, get: function() {
@@ -1690,161 +1706,169 @@ function gr() {
1690
1706
  } }), Object.defineProperty(e, "isValidNonce", { enumerable: !0, get: function() {
1691
1707
  return A.isValidNonce;
1692
1708
  } });
1693
- var y = ur();
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();
1694
1718
  Object.defineProperty(e, "CLAIM_PERIOD_DAYS", { enumerable: !0, get: function() {
1695
- return y.CLAIM_PERIOD_DAYS;
1719
+ return E.CLAIM_PERIOD_DAYS;
1696
1720
  } }), Object.defineProperty(e, "USDC_DECIMALS", { enumerable: !0, get: function() {
1697
- return y.USDC_DECIMALS;
1721
+ return E.USDC_DECIMALS;
1698
1722
  } }), Object.defineProperty(e, "formatUSDC", { enumerable: !0, get: function() {
1699
- return y.formatUSDC;
1723
+ return E.formatUSDC;
1700
1724
  } }), Object.defineProperty(e, "parseUSDC", { enumerable: !0, get: function() {
1701
- return y.parseUSDC;
1725
+ return E.parseUSDC;
1702
1726
  } });
1703
- var h = lr();
1727
+ var R = dr();
1704
1728
  Object.defineProperty(e, "addDays", { enumerable: !0, get: function() {
1705
- return h.addDays;
1729
+ return R.addDays;
1706
1730
  } }), Object.defineProperty(e, "addHours", { enumerable: !0, get: function() {
1707
- return h.addHours;
1731
+ return R.addHours;
1708
1732
  } }), Object.defineProperty(e, "formatEmailDate", { enumerable: !0, get: function() {
1709
- return h.formatEmailDate;
1733
+ return R.formatEmailDate;
1710
1734
  } }), Object.defineProperty(e, "formatRelativeTime", { enumerable: !0, get: function() {
1711
- return h.formatRelativeTime;
1735
+ return R.formatRelativeTime;
1712
1736
  } }), Object.defineProperty(e, "formatTimestamp", { enumerable: !0, get: function() {
1713
- return h.formatTimestamp;
1737
+ return R.formatTimestamp;
1714
1738
  } }), Object.defineProperty(e, "isDateInRange", { enumerable: !0, get: function() {
1715
- return h.isDateInRange;
1739
+ return R.isDateInRange;
1716
1740
  } }), Object.defineProperty(e, "parseDate", { enumerable: !0, get: function() {
1717
- return h.parseDate;
1741
+ return R.parseDate;
1718
1742
  } });
1719
- var R = sr();
1743
+ var T = fr();
1720
1744
  Object.defineProperty(e, "capitalize", { enumerable: !0, get: function() {
1721
- return R.capitalize;
1745
+ return T.capitalize;
1722
1746
  } }), Object.defineProperty(e, "escapeHtml", { enumerable: !0, get: function() {
1723
- return R.escapeHtml;
1747
+ return T.escapeHtml;
1724
1748
  } }), Object.defineProperty(e, "formatBytes", { enumerable: !0, get: function() {
1725
- return R.formatBytes;
1749
+ return T.formatBytes;
1726
1750
  } }), Object.defineProperty(e, "formatNumber", { enumerable: !0, get: function() {
1727
- return R.formatNumber;
1751
+ return T.formatNumber;
1728
1752
  } }), Object.defineProperty(e, "getInitials", { enumerable: !0, get: function() {
1729
- return R.getInitials;
1753
+ return T.getInitials;
1730
1754
  } }), Object.defineProperty(e, "isBlank", { enumerable: !0, get: function() {
1731
- return R.isBlank;
1755
+ return T.isBlank;
1732
1756
  } }), Object.defineProperty(e, "isNotBlank", { enumerable: !0, get: function() {
1733
- return R.isNotBlank;
1757
+ return T.isNotBlank;
1734
1758
  } }), Object.defineProperty(e, "normalizeWhitespace", { enumerable: !0, get: function() {
1735
- return R.normalizeWhitespace;
1759
+ return T.normalizeWhitespace;
1736
1760
  } }), Object.defineProperty(e, "pluralize", { enumerable: !0, get: function() {
1737
- return R.pluralize;
1761
+ return T.pluralize;
1738
1762
  } }), Object.defineProperty(e, "randomString", { enumerable: !0, get: function() {
1739
- return R.randomString;
1763
+ return T.randomString;
1740
1764
  } }), Object.defineProperty(e, "stripHtml", { enumerable: !0, get: function() {
1741
- return R.stripHtml;
1765
+ return T.stripHtml;
1742
1766
  } }), Object.defineProperty(e, "toCamelCase", { enumerable: !0, get: function() {
1743
- return R.toCamelCase;
1767
+ return T.toCamelCase;
1744
1768
  } }), Object.defineProperty(e, "toKebabCase", { enumerable: !0, get: function() {
1745
- return R.toKebabCase;
1769
+ return T.toKebabCase;
1746
1770
  } }), Object.defineProperty(e, "toSnakeCase", { enumerable: !0, get: function() {
1747
- return R.toSnakeCase;
1771
+ return T.toSnakeCase;
1748
1772
  } }), Object.defineProperty(e, "toTitleCase", { enumerable: !0, get: function() {
1749
- return R.toTitleCase;
1773
+ return T.toTitleCase;
1750
1774
  } }), Object.defineProperty(e, "truncate", { enumerable: !0, get: function() {
1751
- return R.truncate;
1775
+ return T.truncate;
1752
1776
  } });
1753
- var N = cr();
1777
+ var C = mr();
1754
1778
  Object.defineProperty(e, "API_TIMEOUT", { enumerable: !0, get: function() {
1755
- return N.API_TIMEOUT;
1779
+ return C.API_TIMEOUT;
1756
1780
  } }), Object.defineProperty(e, "API_RETRY_ATTEMPTS", { enumerable: !0, get: function() {
1757
- return N.API_RETRY_ATTEMPTS;
1781
+ return C.API_RETRY_ATTEMPTS;
1758
1782
  } }), Object.defineProperty(e, "API_RETRY_DELAY", { enumerable: !0, get: function() {
1759
- return N.API_RETRY_DELAY;
1783
+ return C.API_RETRY_DELAY;
1760
1784
  } }), Object.defineProperty(e, "AUTH_STATUS", { enumerable: !0, get: function() {
1761
- return N.AUTH_STATUS;
1785
+ return C.AUTH_STATUS;
1762
1786
  } }), Object.defineProperty(e, "CHAIN_TYPE", { enumerable: !0, get: function() {
1763
- return N.CHAIN_TYPE;
1787
+ return C.CHAIN_TYPE;
1764
1788
  } }), Object.defineProperty(e, "STORAGE_KEYS", { enumerable: !0, get: function() {
1765
- return N.STORAGE_KEYS;
1789
+ return C.STORAGE_KEYS;
1766
1790
  } }), Object.defineProperty(e, "EMAIL_CONFIG", { enumerable: !0, get: function() {
1767
- return N.EMAIL_CONFIG;
1791
+ return C.EMAIL_CONFIG;
1768
1792
  } }), Object.defineProperty(e, "SUBSCRIPTION_TIERS", { enumerable: !0, get: function() {
1769
- return N.SUBSCRIPTION_TIERS;
1793
+ return C.SUBSCRIPTION_TIERS;
1770
1794
  } }), Object.defineProperty(e, "TIME_FORMAT", { enumerable: !0, get: function() {
1771
- return N.TIME_FORMAT;
1795
+ return C.TIME_FORMAT;
1772
1796
  } }), Object.defineProperty(e, "ERROR_MESSAGES", { enumerable: !0, get: function() {
1773
- return N.ERROR_MESSAGES;
1797
+ return C.ERROR_MESSAGES;
1774
1798
  } }), Object.defineProperty(e, "SUCCESS_MESSAGES", { enumerable: !0, get: function() {
1775
- return N.SUCCESS_MESSAGES;
1799
+ return C.SUCCESS_MESSAGES;
1776
1800
  } }), Object.defineProperty(e, "ROUTES", { enumerable: !0, get: function() {
1777
- return N.ROUTES;
1801
+ return C.ROUTES;
1778
1802
  } }), Object.defineProperty(e, "CONTACT_INFO", { enumerable: !0, get: function() {
1779
- return N.CONTACT_INFO;
1803
+ return C.CONTACT_INFO;
1780
1804
  } }), Object.defineProperty(e, "WALLET_NAMES", { enumerable: !0, get: function() {
1781
- return N.WALLET_NAMES;
1805
+ return C.WALLET_NAMES;
1782
1806
  } }), Object.defineProperty(e, "NETWORK_IDS", { enumerable: !0, get: function() {
1783
- return N.NETWORK_IDS;
1807
+ return C.NETWORK_IDS;
1784
1808
  } }), Object.defineProperty(e, "ANIMATION", { enumerable: !0, get: function() {
1785
- return N.ANIMATION;
1809
+ return C.ANIMATION;
1786
1810
  } }), Object.defineProperty(e, "Z_INDEX", { enumerable: !0, get: function() {
1787
- return N.Z_INDEX;
1811
+ return C.Z_INDEX;
1788
1812
  } });
1789
- var P = dr();
1813
+ var s = gr();
1790
1814
  Object.defineProperty(e, "STATUS_VALUES", { enumerable: !0, get: function() {
1791
- return P.STATUS_VALUES;
1815
+ return s.STATUS_VALUES;
1792
1816
  } });
1793
- var s = St();
1817
+ var L = pt();
1794
1818
  Object.defineProperty(e, "LogLevel", { enumerable: !0, get: function() {
1795
- return s.LogLevel;
1819
+ return L.LogLevel;
1796
1820
  } }), Object.defineProperty(e, "logger", { enumerable: !0, get: function() {
1797
- return s.logger;
1821
+ return L.logger;
1798
1822
  } }), Object.defineProperty(e, "authLogger", { enumerable: !0, get: function() {
1799
- return s.authLogger;
1823
+ return L.authLogger;
1800
1824
  } }), Object.defineProperty(e, "apiLogger", { enumerable: !0, get: function() {
1801
- return s.apiLogger;
1825
+ return L.apiLogger;
1802
1826
  } }), Object.defineProperty(e, "contractLogger", { enumerable: !0, get: function() {
1803
- return s.contractLogger;
1827
+ return L.contractLogger;
1804
1828
  } }), Object.defineProperty(e, "ensLogger", { enumerable: !0, get: function() {
1805
- return s.ensLogger;
1829
+ return L.ensLogger;
1806
1830
  } }), Object.defineProperty(e, "storageLogger", { enumerable: !0, get: function() {
1807
- return s.storageLogger;
1831
+ return L.storageLogger;
1808
1832
  } });
1809
- var k = fr();
1833
+ var V = Er();
1810
1834
  Object.defineProperty(e, "createURLSearchParams", { enumerable: !0, get: function() {
1811
- return k.createURLSearchParams;
1835
+ return V.createURLSearchParams;
1812
1836
  } }), Object.defineProperty(e, "createSearchParams", { enumerable: !0, get: function() {
1813
- return k.createSearchParams;
1837
+ return V.createSearchParams;
1814
1838
  } }), Object.defineProperty(e, "searchParamsToString", { enumerable: !0, get: function() {
1815
- return k.searchParamsToString;
1839
+ return V.searchParamsToString;
1816
1840
  } }), Object.defineProperty(e, "parseSearchParams", { enumerable: !0, get: function() {
1817
- return k.parseSearchParams;
1841
+ return V.parseSearchParams;
1818
1842
  } });
1819
- var L = mr();
1843
+ var D = hr();
1820
1844
  Object.defineProperty(e, "safeAsync", { enumerable: !0, get: function() {
1821
- return L.safeAsync;
1845
+ return D.safeAsync;
1822
1846
  } }), Object.defineProperty(e, "withLoadingState", { enumerable: !0, get: function() {
1823
- return L.withLoadingState;
1847
+ return D.withLoadingState;
1824
1848
  } }), Object.defineProperty(e, "safeParallel", { enumerable: !0, get: function() {
1825
- return L.safeParallel;
1849
+ return D.safeParallel;
1826
1850
  } }), Object.defineProperty(e, "withTimeout", { enumerable: !0, get: function() {
1827
- return L.withTimeout;
1851
+ return D.withTimeout;
1828
1852
  } }), Object.defineProperty(e, "withCache", { enumerable: !0, get: function() {
1829
- return L.withCache;
1853
+ return D.withCache;
1830
1854
  } }), Object.defineProperty(e, "clearExpiredCache", { enumerable: !0, get: function() {
1831
- return L.clearExpiredCache;
1855
+ return D.clearExpiredCache;
1832
1856
  } }), Object.defineProperty(e, "debounceAsync", { enumerable: !0, get: function() {
1833
- return L.debounceAsync;
1857
+ return D.debounceAsync;
1834
1858
  } });
1835
- })(Ee)), Ee;
1859
+ })(be)), be;
1836
1860
  }
1837
- var z = gr();
1838
- const hr = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` : "", yt = ({ 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 }) => {
1839
1863
  const t = () => {
1840
1864
  switch (e) {
1841
- case z.AddressType.EVMAddress:
1865
+ case K.AddressType.EVMAddress:
1842
1866
  return "ETH";
1843
- case z.AddressType.SolanaAddress:
1867
+ case K.AddressType.SolanaAddress:
1844
1868
  return "SOL";
1845
- case z.AddressType.ENSName:
1869
+ case K.AddressType.ENSName:
1846
1870
  return "ENS";
1847
- case z.AddressType.SNSName:
1871
+ case K.AddressType.SNSName:
1848
1872
  return "SNS";
1849
1873
  default:
1850
1874
  return "DOMAIN";
@@ -1857,13 +1881,13 @@ const hr = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
1857
1881
  "inline-flex items-center px-2.5 py-0.5 rounded-md text-xs font-medium border",
1858
1882
  (() => {
1859
1883
  switch (e) {
1860
- case z.AddressType.EVMAddress:
1884
+ case K.AddressType.EVMAddress:
1861
1885
  return "bg-blue-50 text-blue-700 border-blue-200 dark:bg-blue-900/10 dark:text-blue-300 dark:border-blue-800";
1862
- case z.AddressType.SolanaAddress:
1886
+ case K.AddressType.SolanaAddress:
1863
1887
  return "bg-purple-50 text-purple-700 border-purple-200 dark:bg-purple-900/10 dark:text-purple-300 dark:border-purple-800";
1864
- case z.AddressType.ENSName:
1888
+ case K.AddressType.ENSName:
1865
1889
  return "bg-green-50 text-green-700 border-green-200 dark:bg-green-900/10 dark:text-green-300 dark:border-green-800";
1866
- case z.AddressType.SNSName:
1890
+ case K.AddressType.SNSName:
1867
1891
  return "bg-orange-50 text-orange-700 border-orange-200 dark:bg-orange-900/10 dark:text-orange-300 dark:border-orange-800";
1868
1892
  default:
1869
1893
  return "bg-gray-50 text-gray-700 border-gray-200 dark:bg-gray-900/10 dark:text-gray-300 dark:border-gray-800";
@@ -1873,7 +1897,7 @@ const hr = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
1873
1897
  children: t()
1874
1898
  }
1875
1899
  );
1876
- }, Er = ({
1900
+ }, yr = ({
1877
1901
  domainEmails: e,
1878
1902
  isExpanded: t,
1879
1903
  selectedAccount: r,
@@ -1881,8 +1905,8 @@ const hr = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
1881
1905
  onAccountSettings: i,
1882
1906
  onTrack: a
1883
1907
  }) => {
1884
- const o = Gt(null), [d, c] = Ht(void 0);
1885
- return Yt(() => {
1908
+ const o = Yt(null), [d, c] = qt(void 0);
1909
+ return zt(() => {
1886
1910
  if (o.current) {
1887
1911
  const l = o.current.scrollHeight;
1888
1912
  c(t ? l + 8 : 0);
@@ -1892,7 +1916,7 @@ const hr = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
1892
1916
  {
1893
1917
  className: "overflow-hidden transition-all duration-300 ease-in-out",
1894
1918
  style: { height: d !== void 0 ? `${d}px` : "auto" },
1895
- children: /* @__PURE__ */ v("div", { ref: o, className: "ml-6 mt-2 space-y-1", children: e.map((l) => /* @__PURE__ */ W(
1919
+ children: /* @__PURE__ */ v("div", { ref: o, className: "ml-6 mt-2 space-y-1", children: e.map((l) => /* @__PURE__ */ F(
1896
1920
  "button",
1897
1921
  {
1898
1922
  onClick: () => {
@@ -1900,19 +1924,19 @@ const hr = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
1900
1924
  },
1901
1925
  className: M(
1902
1926
  "w-full flex items-center justify-between text-left px-3 py-2 rounded-lg transition-colors h-[44px]",
1903
- gt.body.sm(),
1927
+ ht.body.sm(),
1904
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"
1905
1929
  ),
1906
1930
  children: [
1907
1931
  /* @__PURE__ */ v("span", { className: "truncate flex-1", children: l.name }),
1908
- /* @__PURE__ */ v(yt, { addressType: l.addressType })
1932
+ /* @__PURE__ */ v(At, { addressType: l.addressType })
1909
1933
  ]
1910
1934
  },
1911
1935
  l.address
1912
1936
  )) })
1913
1937
  }
1914
1938
  );
1915
- }, ea = ({
1939
+ }, na = ({
1916
1940
  walletGroups: e,
1917
1941
  selectedAccount: t,
1918
1942
  expandedWallets: r,
@@ -1921,8 +1945,8 @@ const hr = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
1921
1945
  onAccountSettings: a,
1922
1946
  className: o = "",
1923
1947
  onTrack: d
1924
- }) => /* @__PURE__ */ v("nav", { className: M("space-y-1", o), children: e.map((c) => /* @__PURE__ */ W("div", { children: [
1925
- /* @__PURE__ */ W(
1948
+ }) => /* @__PURE__ */ v("nav", { className: M("space-y-1", o), children: e.map((c) => /* @__PURE__ */ F("div", { children: [
1949
+ /* @__PURE__ */ F(
1926
1950
  "button",
1927
1951
  {
1928
1952
  onClick: () => {
@@ -1930,14 +1954,14 @@ const hr = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
1930
1954
  },
1931
1955
  className: M(
1932
1956
  "w-full flex items-center justify-between text-left px-3 py-2 rounded-lg transition-colors h-[44px]",
1933
- gt.body.sm(),
1957
+ ht.body.sm(),
1934
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"
1935
1959
  ),
1936
1960
  style: c.customColor ? { backgroundColor: c.customColor } : void 0,
1937
1961
  children: [
1938
- /* @__PURE__ */ W("div", { className: "flex items-center flex-1 min-w-0", children: [
1939
- /* @__PURE__ */ v("span", { className: "truncate flex-1", children: hr(c.walletAddress) }),
1940
- /* @__PURE__ */ v(yt, { 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 })
1941
1965
  ] }),
1942
1966
  c.domainEmails.length > 0 && /* @__PURE__ */ v(
1943
1967
  "div",
@@ -1952,7 +1976,7 @@ const hr = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
1952
1976
  (l.key === "Enter" || l.key === " ") && (l.preventDefault(), l.stopPropagation(), d?.("toggle_wallet"), i(c.walletAddress));
1953
1977
  },
1954
1978
  children: /* @__PURE__ */ v(
1955
- qt,
1979
+ Kt,
1956
1980
  {
1957
1981
  className: M(
1958
1982
  "h-4 w-4 text-gray-500 transition-transform duration-300 ease-in-out",
@@ -1966,7 +1990,7 @@ const hr = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
1966
1990
  }
1967
1991
  ),
1968
1992
  c.domainEmails.length > 0 && /* @__PURE__ */ v(
1969
- Er,
1993
+ yr,
1970
1994
  {
1971
1995
  domainEmails: c.domainEmails,
1972
1996
  isExpanded: r.includes(c.walletAddress),
@@ -1976,7 +2000,7 @@ const hr = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
1976
2000
  onTrack: d
1977
2001
  }
1978
2002
  )
1979
- ] }, c.walletAddress)) }), ta = ({
2003
+ ] }, c.walletAddress)) }), aa = ({
1980
2004
  className: e,
1981
2005
  children: t,
1982
2006
  disabled: r
@@ -1995,7 +2019,7 @@ const hr = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
1995
2019
  "aria-label": "EmailAnalytics",
1996
2020
  children: t || "EmailAnalytics Component"
1997
2021
  }
1998
- ), ra = ({
2022
+ ), ia = ({
1999
2023
  className: e,
2000
2024
  children: t,
2001
2025
  disabled: r
@@ -2014,7 +2038,7 @@ const hr = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
2014
2038
  "aria-label": "EmailCampaign",
2015
2039
  children: t || "EmailCampaign Component"
2016
2040
  }
2017
- ), pt = ({
2041
+ ), Rt = ({
2018
2042
  label: e,
2019
2043
  value: t,
2020
2044
  onChange: r,
@@ -2022,9 +2046,9 @@ const hr = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
2022
2046
  required: i = !1,
2023
2047
  error: a,
2024
2048
  className: o = ""
2025
- }) => /* @__PURE__ */ W("div", { className: o, children: [
2026
- /* @__PURE__ */ W(
2027
- Bt,
2049
+ }) => /* @__PURE__ */ F("div", { className: o, children: [
2050
+ /* @__PURE__ */ F(
2051
+ Ht,
2028
2052
  {
2029
2053
  htmlFor: e.toLowerCase(),
2030
2054
  className: "text-sm font-medium text-gray-700 dark:text-gray-300",
@@ -2052,7 +2076,7 @@ const hr = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
2052
2076
  }
2053
2077
  ),
2054
2078
  a && /* @__PURE__ */ v("p", { className: "mt-1 text-sm text-red-600 dark:text-red-400", children: a })
2055
- ] }), ut = ({
2079
+ ] }), st = ({
2056
2080
  isVisible: e,
2057
2081
  onToggle: t,
2058
2082
  showLabel: r,
@@ -2061,8 +2085,8 @@ const hr = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
2061
2085
  trackingLabel: a,
2062
2086
  componentName: o = "CollapsibleEmailField",
2063
2087
  ...d
2064
- }) => /* @__PURE__ */ W("div", { children: [
2065
- /* @__PURE__ */ W(
2088
+ }) => /* @__PURE__ */ F("div", { children: [
2089
+ /* @__PURE__ */ F(
2066
2090
  "button",
2067
2091
  {
2068
2092
  type: "button",
@@ -2071,13 +2095,13 @@ const hr = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
2071
2095
  },
2072
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",
2073
2097
  children: [
2074
- e ? /* @__PURE__ */ v(zt, { className: "h-4 w-4 mr-1" }) : /* @__PURE__ */ v(Kt, { 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" }),
2075
2099
  e ? n : r
2076
2100
  ]
2077
2101
  }
2078
2102
  ),
2079
- e && /* @__PURE__ */ v(pt, { ...d })
2080
- ] }), na = ({
2103
+ e && /* @__PURE__ */ v(Rt, { ...d })
2104
+ ] }), oa = ({
2081
2105
  to: e,
2082
2106
  onToChange: t,
2083
2107
  cc: r = "",
@@ -2108,12 +2132,12 @@ const hr = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
2108
2132
  to: "recipient@example.com",
2109
2133
  cc: "cc@example.com",
2110
2134
  bcc: "bcc@example.com"
2111
- }, h = { ...A, ...m }, R = { ...y, ...b };
2112
- return /* @__PURE__ */ W("div", { className: `space-y-4 ${u}`, children: [
2135
+ }, E = { ...A, ...m }, R = { ...y, ...b };
2136
+ return /* @__PURE__ */ F("div", { className: `space-y-4 ${u}`, children: [
2113
2137
  /* @__PURE__ */ v(
2114
- pt,
2138
+ Rt,
2115
2139
  {
2116
- label: h.to,
2140
+ label: E.to,
2117
2141
  value: e,
2118
2142
  onChange: t,
2119
2143
  placeholder: R.to,
@@ -2122,39 +2146,39 @@ const hr = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
2122
2146
  }
2123
2147
  ),
2124
2148
  c && n && /* @__PURE__ */ v(
2125
- ut,
2149
+ st,
2126
2150
  {
2127
- label: h.cc,
2151
+ label: E.cc,
2128
2152
  value: r,
2129
2153
  onChange: n,
2130
2154
  placeholder: R.cc,
2131
2155
  error: f.cc,
2132
2156
  isVisible: o,
2133
2157
  onToggle: c,
2134
- showLabel: h.addCc,
2135
- hideLabel: h.removeCc,
2158
+ showLabel: E.addCc,
2159
+ hideLabel: E.removeCc,
2136
2160
  onTrack: S,
2137
2161
  trackingLabel: p
2138
2162
  }
2139
2163
  ),
2140
2164
  l && a && /* @__PURE__ */ v(
2141
- ut,
2165
+ st,
2142
2166
  {
2143
- label: h.bcc,
2167
+ label: E.bcc,
2144
2168
  value: i,
2145
2169
  onChange: a,
2146
2170
  placeholder: R.bcc,
2147
2171
  error: f.bcc,
2148
2172
  isVisible: d,
2149
2173
  onToggle: l,
2150
- showLabel: h.addBcc,
2151
- hideLabel: h.removeBcc,
2174
+ showLabel: E.addBcc,
2175
+ hideLabel: E.removeBcc,
2152
2176
  onTrack: S,
2153
2177
  trackingLabel: p
2154
2178
  }
2155
2179
  )
2156
2180
  ] });
2157
- }, aa = ({
2181
+ }, ua = ({
2158
2182
  className: e,
2159
2183
  children: t,
2160
2184
  disabled: r = !1,
@@ -2187,7 +2211,7 @@ function w(e, t) {
2187
2211
  if (e === !1 || e === null || typeof e > "u")
2188
2212
  throw new Error(t);
2189
2213
  }
2190
- function G(e, t) {
2214
+ function H(e, t) {
2191
2215
  if (!e) {
2192
2216
  typeof console < "u" && console.warn(t);
2193
2217
  try {
@@ -2196,14 +2220,14 @@ function G(e, t) {
2196
2220
  }
2197
2221
  }
2198
2222
  }
2199
- function Oe({
2223
+ function ve({
2200
2224
  pathname: e = "/",
2201
2225
  search: t = "",
2202
2226
  hash: r = ""
2203
2227
  }) {
2204
2228
  return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), r && r !== "#" && (e += r.charAt(0) === "#" ? r : "#" + r), e;
2205
2229
  }
2206
- function ve(e) {
2230
+ function Ce(e) {
2207
2231
  let t = {};
2208
2232
  if (e) {
2209
2233
  let r = e.indexOf("#");
@@ -2213,19 +2237,19 @@ function ve(e) {
2213
2237
  }
2214
2238
  return t;
2215
2239
  }
2216
- function At(e, t, r = "/") {
2217
- return br(e, t, r, !1);
2240
+ function Nt(e, t, r = "/") {
2241
+ return pr(e, t, r, !1);
2218
2242
  }
2219
- function br(e, t, r, n) {
2220
- let i = typeof t == "string" ? ve(t) : t, a = K(i.pathname || "/", r);
2243
+ function pr(e, t, r, n) {
2244
+ let i = typeof t == "string" ? Ce(t) : t, a = Z(i.pathname || "/", r);
2221
2245
  if (a == null)
2222
2246
  return null;
2223
- let o = Rt(e);
2224
- Sr(o);
2247
+ let o = Tt(e);
2248
+ Ar(o);
2225
2249
  let d = null;
2226
2250
  for (let c = 0; d == null && c < o.length; ++c) {
2227
- let l = _r(a);
2228
- d = Cr(
2251
+ let l = Mr(a);
2252
+ d = Ir(
2229
2253
  o[c],
2230
2254
  l,
2231
2255
  n
@@ -2233,7 +2257,7 @@ function br(e, t, r, n) {
2233
2257
  }
2234
2258
  return d;
2235
2259
  }
2236
- function Rt(e, t = [], r = [], n = "", i = !1) {
2260
+ function Tt(e, t = [], r = [], n = "", i = !1) {
2237
2261
  let a = (o, d, c = i, l) => {
2238
2262
  let f = {
2239
2263
  relativePath: l === void 0 ? o.path || "" : l,
@@ -2249,13 +2273,13 @@ function Rt(e, t = [], r = [], n = "", i = !1) {
2249
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.`
2250
2274
  ), f.relativePath = f.relativePath.slice(n.length);
2251
2275
  }
2252
- let u = Y([n, f.relativePath]), m = r.concat(f);
2276
+ let u = q([n, f.relativePath]), m = r.concat(f);
2253
2277
  o.children && o.children.length > 0 && (w(
2254
2278
  // Our types know better, but runtime JS may not!
2255
2279
  // @ts-expect-error
2256
2280
  o.index !== !0,
2257
2281
  `Index routes must not have child routes. Please remove all child routes from route path "${u}".`
2258
- ), Rt(
2282
+ ), Tt(
2259
2283
  o.children,
2260
2284
  t,
2261
2285
  m,
@@ -2263,7 +2287,7 @@ function Rt(e, t = [], r = [], n = "", i = !1) {
2263
2287
  c
2264
2288
  )), !(o.path == null && !o.index) && t.push({
2265
2289
  path: u,
2266
- score: Or(u, o.index),
2290
+ score: Pr(u, o.index),
2267
2291
  routesMeta: m
2268
2292
  });
2269
2293
  };
@@ -2271,17 +2295,17 @@ function Rt(e, t = [], r = [], n = "", i = !1) {
2271
2295
  if (o.path === "" || !o.path?.includes("?"))
2272
2296
  a(o, d);
2273
2297
  else
2274
- for (let c of Nt(o.path))
2298
+ for (let c of Ot(o.path))
2275
2299
  a(o, d, !0, c);
2276
2300
  }), t;
2277
2301
  }
2278
- function Nt(e) {
2302
+ function Ot(e) {
2279
2303
  let t = e.split("/");
2280
2304
  if (t.length === 0) return [];
2281
2305
  let [r, ...n] = t, i = r.endsWith("?"), a = r.replace(/\?$/, "");
2282
2306
  if (n.length === 0)
2283
2307
  return i ? [a, ""] : [a];
2284
- let o = Nt(n.join("/")), d = [];
2308
+ let o = Ot(n.join("/")), d = [];
2285
2309
  return d.push(
2286
2310
  ...o.map(
2287
2311
  (c) => c === "" ? a : [a, c].join("/")
@@ -2290,23 +2314,23 @@ function Nt(e) {
2290
2314
  (c) => e.startsWith("/") && c === "" ? "/" : c
2291
2315
  );
2292
2316
  }
2293
- function Sr(e) {
2317
+ function Ar(e) {
2294
2318
  e.sort(
2295
- (t, r) => t.score !== r.score ? r.score - t.score : vr(
2319
+ (t, r) => t.score !== r.score ? r.score - t.score : _r(
2296
2320
  t.routesMeta.map((n) => n.childrenIndex),
2297
2321
  r.routesMeta.map((n) => n.childrenIndex)
2298
2322
  )
2299
2323
  );
2300
2324
  }
2301
- var yr = /^:[\w-]+$/, pr = 3, Ar = 2, Rr = 1, Nr = 10, Tr = -2, lt = (e) => e === "*";
2302
- function Or(e, t) {
2325
+ var Rr = /^:[\w-]+$/, Nr = 3, Tr = 2, Or = 1, vr = 10, Cr = -2, ct = (e) => e === "*";
2326
+ function Pr(e, t) {
2303
2327
  let r = e.split("/"), n = r.length;
2304
- return r.some(lt) && (n += Tr), t && (n += Ar), r.filter((i) => !lt(i)).reduce(
2305
- (i, a) => i + (yr.test(a) ? pr : a === "" ? Rr : Nr),
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),
2306
2330
  n
2307
2331
  );
2308
2332
  }
2309
- function vr(e, t) {
2333
+ function _r(e, t) {
2310
2334
  return e.length === t.length && e.slice(0, -1).every((n, i) => n === t[i]) ? (
2311
2335
  // If two routes are siblings, we should try to match the earlier sibling
2312
2336
  // first. This allows people to have fine-grained control over the matching
@@ -2319,14 +2343,14 @@ function vr(e, t) {
2319
2343
  0
2320
2344
  );
2321
2345
  }
2322
- function Cr(e, t, r = !1) {
2346
+ function Ir(e, t, r = !1) {
2323
2347
  let { routesMeta: n } = e, i = {}, a = "/", o = [];
2324
2348
  for (let d = 0; d < n.length; ++d) {
2325
- let c = n[d], l = d === n.length - 1, f = a === "/" ? t : t.slice(a.length) || "/", u = fe(
2349
+ let c = n[d], l = d === n.length - 1, f = a === "/" ? t : t.slice(a.length) || "/", u = me(
2326
2350
  { path: c.relativePath, caseSensitive: c.caseSensitive, end: l },
2327
2351
  f
2328
2352
  ), m = c.route;
2329
- if (!u && l && r && !n[n.length - 1].route.index && (u = fe(
2353
+ if (!u && l && r && !n[n.length - 1].route.index && (u = me(
2330
2354
  {
2331
2355
  path: c.relativePath,
2332
2356
  caseSensitive: c.caseSensitive,
@@ -2338,18 +2362,18 @@ function Cr(e, t, r = !1) {
2338
2362
  Object.assign(i, u.params), o.push({
2339
2363
  // TODO: Can this as be avoided?
2340
2364
  params: i,
2341
- pathname: Y([a, u.pathname]),
2342
- pathnameBase: Lr(
2343
- Y([a, u.pathnameBase])
2365
+ pathname: q([a, u.pathname]),
2366
+ pathnameBase: Ur(
2367
+ q([a, u.pathnameBase])
2344
2368
  ),
2345
2369
  route: m
2346
- }), u.pathnameBase !== "/" && (a = Y([a, u.pathnameBase]));
2370
+ }), u.pathnameBase !== "/" && (a = q([a, u.pathnameBase]));
2347
2371
  }
2348
2372
  return o;
2349
2373
  }
2350
- function fe(e, t) {
2374
+ function me(e, t) {
2351
2375
  typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
2352
- let [r, n] = Pr(
2376
+ let [r, n] = wr(
2353
2377
  e.path,
2354
2378
  e.caseSensitive,
2355
2379
  e.end
@@ -2373,8 +2397,8 @@ function fe(e, t) {
2373
2397
  pattern: e
2374
2398
  };
2375
2399
  }
2376
- function Pr(e, t = !1, r = !0) {
2377
- G(
2400
+ function wr(e, t = !1, r = !0) {
2401
+ H(
2378
2402
  e === "*" || !e.endsWith("*") || e.endsWith("/*"),
2379
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(/\*$/, "/*")}".`
2380
2404
  );
@@ -2384,84 +2408,84 @@ function Pr(e, t = !1, r = !0) {
2384
2408
  ).replace(/\/([\w-]+)\?(\/|$)/g, "(/$1)?$2");
2385
2409
  return e.endsWith("*") ? (n.push({ paramName: "*" }), i += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : r ? i += "\\/*$" : e !== "" && e !== "/" && (i += "(?:(?=\\/|$))"), [new RegExp(i, t ? void 0 : "i"), n];
2386
2410
  }
2387
- function _r(e) {
2411
+ function Mr(e) {
2388
2412
  try {
2389
2413
  return e.split("/").map((t) => decodeURIComponent(t).replace(/\//g, "%2F")).join("/");
2390
2414
  } catch (t) {
2391
- return G(
2415
+ return H(
2392
2416
  !1,
2393
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}).`
2394
2418
  ), e;
2395
2419
  }
2396
2420
  }
2397
- function K(e, t) {
2421
+ function Z(e, t) {
2398
2422
  if (t === "/") return e;
2399
2423
  if (!e.toLowerCase().startsWith(t.toLowerCase()))
2400
2424
  return null;
2401
2425
  let r = t.endsWith("/") ? t.length - 1 : t.length, n = e.charAt(r);
2402
2426
  return n && n !== "/" ? null : e.slice(r) || "/";
2403
2427
  }
2404
- var Tt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ir = (e) => Tt.test(e);
2405
- function wr(e, t = "/") {
2428
+ var vt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Lr = (e) => vt.test(e);
2429
+ function Dr(e, t = "/") {
2406
2430
  let {
2407
2431
  pathname: r,
2408
2432
  search: n = "",
2409
2433
  hash: i = ""
2410
- } = typeof e == "string" ? ve(e) : e, a;
2434
+ } = typeof e == "string" ? Ce(e) : e, a;
2411
2435
  if (r)
2412
- if (Ir(r))
2436
+ if (Lr(r))
2413
2437
  a = r;
2414
2438
  else {
2415
2439
  if (r.includes("//")) {
2416
2440
  let o = r;
2417
- r = r.replace(/\/\/+/g, "/"), G(
2441
+ r = r.replace(/\/\/+/g, "/"), H(
2418
2442
  !1,
2419
2443
  `Pathnames cannot have embedded double slashes - normalizing ${o} -> ${r}`
2420
2444
  );
2421
2445
  }
2422
- r.startsWith("/") ? a = st(r.substring(1), "/") : a = st(r, t);
2446
+ r.startsWith("/") ? a = dt(r.substring(1), "/") : a = dt(r, t);
2423
2447
  }
2424
2448
  else
2425
2449
  a = t;
2426
2450
  return {
2427
2451
  pathname: a,
2428
- search: Dr(n),
2429
- hash: jr(i)
2452
+ search: kr(n),
2453
+ hash: Vr(i)
2430
2454
  };
2431
2455
  }
2432
- function st(e, t) {
2456
+ function dt(e, t) {
2433
2457
  let r = t.replace(/\/+$/, "").split("/");
2434
2458
  return e.split("/").forEach((i) => {
2435
2459
  i === ".." ? r.length > 1 && r.pop() : i !== "." && r.push(i);
2436
2460
  }), r.length > 1 ? r.join("/") : "/";
2437
2461
  }
2438
- function Re(e, t, r, n) {
2462
+ function Ne(e, t, r, n) {
2439
2463
  return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(
2440
2464
  n
2441
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.`;
2442
2466
  }
2443
- function Mr(e) {
2467
+ function jr(e) {
2444
2468
  return e.filter(
2445
2469
  (t, r) => r === 0 || t.route.path && t.route.path.length > 0
2446
2470
  );
2447
2471
  }
2448
- function Ot(e) {
2449
- let t = Mr(e);
2472
+ function Ct(e) {
2473
+ let t = jr(e);
2450
2474
  return t.map(
2451
2475
  (r, n) => n === t.length - 1 ? r.pathname : r.pathnameBase
2452
2476
  );
2453
2477
  }
2454
- function vt(e, t, r, n = !1) {
2478
+ function Pt(e, t, r, n = !1) {
2455
2479
  let i;
2456
- typeof e == "string" ? i = ve(e) : (i = { ...e }, w(
2480
+ typeof e == "string" ? i = Ce(e) : (i = { ...e }, w(
2457
2481
  !i.pathname || !i.pathname.includes("?"),
2458
- Re("?", "pathname", "search", i)
2482
+ Ne("?", "pathname", "search", i)
2459
2483
  ), w(
2460
2484
  !i.pathname || !i.pathname.includes("#"),
2461
- Re("#", "pathname", "hash", i)
2485
+ Ne("#", "pathname", "hash", i)
2462
2486
  ), w(
2463
2487
  !i.search || !i.search.includes("#"),
2464
- Re("#", "search", "hash", i)
2488
+ Ne("#", "search", "hash", i)
2465
2489
  ));
2466
2490
  let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname, d;
2467
2491
  if (o == null)
@@ -2476,36 +2500,36 @@ function vt(e, t, r, n = !1) {
2476
2500
  }
2477
2501
  d = u >= 0 ? t[u] : "/";
2478
2502
  }
2479
- let c = wr(i, d), l = o && o !== "/" && o.endsWith("/"), f = (a || o === ".") && r.endsWith("/");
2503
+ let c = Dr(i, d), l = o && o !== "/" && o.endsWith("/"), f = (a || o === ".") && r.endsWith("/");
2480
2504
  return !c.pathname.endsWith("/") && (l || f) && (c.pathname += "/"), c;
2481
2505
  }
2482
- var Y = (e) => e.join("/").replace(/\/\/+/g, "/"), Lr = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), Dr = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, jr = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, Ur = 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 {
2483
2507
  constructor(e, t, r, n = !1) {
2484
2508
  this.status = e, this.statusText = t || "", this.internal = n, r instanceof Error ? (this.data = r.toString(), this.error = r) : this.data = r;
2485
2509
  }
2486
2510
  };
2487
- function kr(e) {
2511
+ function Fr(e) {
2488
2512
  return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
2489
2513
  }
2490
- function Vr(e) {
2514
+ function Br(e) {
2491
2515
  return e.map((t) => t.route.path).filter(Boolean).join("/").replace(/\/\/*/g, "/") || "/";
2492
2516
  }
2493
- var Ct = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
2494
- function Pt(e, t) {
2517
+ var _t = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
2518
+ function It(e, t) {
2495
2519
  let r = e;
2496
- if (typeof r != "string" || !Tt.test(r))
2520
+ if (typeof r != "string" || !vt.test(r))
2497
2521
  return {
2498
2522
  absoluteURL: void 0,
2499
2523
  isExternal: !1,
2500
2524
  to: r
2501
2525
  };
2502
2526
  let n = r, i = !1;
2503
- if (Ct)
2527
+ if (_t)
2504
2528
  try {
2505
- let a = new URL(window.location.href), o = r.startsWith("//") ? new URL(a.protocol + r) : new URL(r), d = K(o.pathname, t);
2529
+ let a = new URL(window.location.href), o = r.startsWith("//") ? new URL(a.protocol + r) : new URL(r), d = Z(o.pathname, t);
2506
2530
  o.origin === a.origin && d != null ? r = d + o.search + o.hash : i = !0;
2507
2531
  } catch {
2508
- G(
2532
+ H(
2509
2533
  !1,
2510
2534
  `<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
2511
2535
  );
@@ -2517,53 +2541,53 @@ function Pt(e, t) {
2517
2541
  };
2518
2542
  }
2519
2543
  Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
2520
- var _t = [
2544
+ var wt = [
2521
2545
  "POST",
2522
2546
  "PUT",
2523
2547
  "PATCH",
2524
2548
  "DELETE"
2525
2549
  ];
2526
2550
  new Set(
2527
- _t
2551
+ wt
2528
2552
  );
2529
- var Wr = [
2553
+ var Gr = [
2530
2554
  "GET",
2531
- ..._t
2555
+ ...wt
2532
2556
  ];
2533
- new Set(Wr);
2534
- var $ = E.createContext(null);
2535
- $.displayName = "DataRouter";
2536
- var me = E.createContext(null);
2537
- me.displayName = "DataRouterState";
2538
- var Fr = E.createContext(!1), It = E.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({
2539
2563
  isTransitioning: !1
2540
2564
  });
2541
- It.displayName = "ViewTransition";
2542
- var Br = E.createContext(
2565
+ Mt.displayName = "ViewTransition";
2566
+ var Yr = h.createContext(
2543
2567
  /* @__PURE__ */ new Map()
2544
2568
  );
2545
- Br.displayName = "Fetchers";
2546
- var Gr = E.createContext(null);
2547
- Gr.displayName = "Await";
2548
- var F = E.createContext(
2569
+ Yr.displayName = "Fetchers";
2570
+ var qr = h.createContext(null);
2571
+ qr.displayName = "Await";
2572
+ var B = h.createContext(
2549
2573
  null
2550
2574
  );
2551
- F.displayName = "Navigation";
2552
- var Ce = E.createContext(
2575
+ B.displayName = "Navigation";
2576
+ var Pe = h.createContext(
2553
2577
  null
2554
2578
  );
2555
- Ce.displayName = "Location";
2556
- var q = E.createContext({
2579
+ Pe.displayName = "Location";
2580
+ var z = h.createContext({
2557
2581
  outlet: null,
2558
2582
  matches: [],
2559
2583
  isDataRoute: !1
2560
2584
  });
2561
- q.displayName = "Route";
2562
- var Pe = E.createContext(null);
2563
- Pe.displayName = "RouteError";
2564
- var wt = "REACT_ROUTER_ERROR", Hr = "REDIRECT", Yr = "ROUTE_ERROR_RESPONSE";
2565
- function qr(e) {
2566
- if (e.startsWith(`${wt}:${Hr}:{`))
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}:{`))
2567
2591
  try {
2568
2592
  let t = JSON.parse(e.slice(28));
2569
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")
@@ -2571,14 +2595,14 @@ function qr(e) {
2571
2595
  } catch {
2572
2596
  }
2573
2597
  }
2574
- function zr(e) {
2598
+ function Jr(e) {
2575
2599
  if (e.startsWith(
2576
- `${wt}:${Yr}:{`
2600
+ `${Lt}:${Kr}:{`
2577
2601
  ))
2578
2602
  try {
2579
2603
  let t = JSON.parse(e.slice(40));
2580
2604
  if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string")
2581
- return new Ur(
2605
+ return new Wr(
2582
2606
  t.status,
2583
2607
  t.statusText,
2584
2608
  t.data
@@ -2586,59 +2610,59 @@ function zr(e) {
2586
2610
  } catch {
2587
2611
  }
2588
2612
  }
2589
- function Kr(e, { relative: t } = {}) {
2613
+ function Xr(e, { relative: t } = {}) {
2590
2614
  w(
2591
- ge(),
2615
+ Ee(),
2592
2616
  // TODO: This error is probably because they somehow have 2 versions of the
2593
2617
  // router loaded. We can help them understand how to avoid that.
2594
2618
  "useHref() may be used only in the context of a <Router> component."
2595
2619
  );
2596
- let { basename: r, navigator: n } = E.useContext(F), { hash: i, pathname: a, search: o } = le(e, { relative: t }), d = a;
2597
- return r !== "/" && (d = a === "/" ? r : Y([r, a])), n.createHref({ pathname: d, 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 });
2598
2622
  }
2599
- function ge() {
2600
- return E.useContext(Ce) != null;
2623
+ function Ee() {
2624
+ return h.useContext(Pe) != null;
2601
2625
  }
2602
- function Q() {
2626
+ function x() {
2603
2627
  return w(
2604
- ge(),
2628
+ Ee(),
2605
2629
  // TODO: This error is probably because they somehow have 2 versions of the
2606
2630
  // router loaded. We can help them understand how to avoid that.
2607
2631
  "useLocation() may be used only in the context of a <Router> component."
2608
- ), E.useContext(Ce).location;
2632
+ ), h.useContext(Pe).location;
2609
2633
  }
2610
- var Mt = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
2611
- function Lt(e) {
2612
- E.useContext(F).static || E.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);
2613
2637
  }
2614
- function Zr() {
2615
- let { isDataRoute: e } = E.useContext(q);
2616
- return e ? ln() : Jr();
2638
+ function Qr() {
2639
+ let { isDataRoute: e } = h.useContext(z);
2640
+ return e ? dn() : xr();
2617
2641
  }
2618
- function Jr() {
2642
+ function xr() {
2619
2643
  w(
2620
- ge(),
2644
+ Ee(),
2621
2645
  // TODO: This error is probably because they somehow have 2 versions of the
2622
2646
  // router loaded. We can help them understand how to avoid that.
2623
2647
  "useNavigate() may be used only in the context of a <Router> component."
2624
2648
  );
2625
- let e = E.useContext($), { basename: t, navigator: r } = E.useContext(F), { matches: n } = E.useContext(q), { pathname: i } = Q(), a = JSON.stringify(Ot(n)), o = E.useRef(!1);
2626
- return Lt(() => {
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(() => {
2627
2651
  o.current = !0;
2628
- }), E.useCallback(
2652
+ }), h.useCallback(
2629
2653
  (c, l = {}) => {
2630
- if (G(o.current, Mt), !o.current) return;
2654
+ if (H(o.current, Dt), !o.current) return;
2631
2655
  if (typeof c == "number") {
2632
2656
  r.go(c);
2633
2657
  return;
2634
2658
  }
2635
- let f = vt(
2659
+ let f = Pt(
2636
2660
  c,
2637
2661
  JSON.parse(a),
2638
2662
  i,
2639
2663
  l.relative === "path"
2640
2664
  );
2641
- e == null && t !== "/" && (f.pathname = f.pathname === "/" ? t : Y([t, f.pathname])), (l.replace ? r.replace : r.push)(
2665
+ e == null && t !== "/" && (f.pathname = f.pathname === "/" ? t : q([t, f.pathname])), (l.replace ? r.replace : r.push)(
2642
2666
  f,
2643
2667
  l.state,
2644
2668
  l
@@ -2653,11 +2677,11 @@ function Jr() {
2653
2677
  ]
2654
2678
  );
2655
2679
  }
2656
- E.createContext(null);
2657
- function le(e, { relative: t } = {}) {
2658
- let { matches: r } = E.useContext(q), { pathname: n } = Q(), i = JSON.stringify(Ot(r));
2659
- return E.useMemo(
2660
- () => vt(
2680
+ h.createContext(null);
2681
+ function se(e, { relative: t } = {}) {
2682
+ let { matches: r } = h.useContext(z), { pathname: n } = x(), i = JSON.stringify(Ct(r));
2683
+ return h.useMemo(
2684
+ () => Pt(
2661
2685
  e,
2662
2686
  JSON.parse(i),
2663
2687
  n,
@@ -2666,17 +2690,17 @@ function le(e, { relative: t } = {}) {
2666
2690
  [e, i, n, t]
2667
2691
  );
2668
2692
  }
2669
- function Xr(e, t, r, n, i) {
2693
+ function $r(e, t, r, n, i) {
2670
2694
  w(
2671
- ge(),
2695
+ Ee(),
2672
2696
  // TODO: This error is probably because they somehow have 2 versions of the
2673
2697
  // router loaded. We can help them understand how to avoid that.
2674
2698
  "useRoutes() may be used only in the context of a <Router> component."
2675
2699
  );
2676
- let { navigator: a } = E.useContext(F), { matches: o } = E.useContext(q), d = o[o.length - 1], c = d ? d.params : {}, l = d ? d.pathname : "/", f = d ? d.pathnameBase : "/", u = d && d.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;
2677
2701
  {
2678
2702
  let y = u && u.path || "";
2679
- jt(
2703
+ kt(
2680
2704
  l,
2681
2705
  !u || y.endsWith("*") || y.endsWith("*?"),
2682
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.
@@ -2684,25 +2708,25 @@ function Xr(e, t, r, n, i) {
2684
2708
  Please change the parent <Route path="${y}"> to <Route path="${y === "/" ? "*" : `${y}/*`}">.`
2685
2709
  );
2686
2710
  }
2687
- let m = Q(), b;
2711
+ let m = x(), b;
2688
2712
  b = m;
2689
2713
  let S = b.pathname || "/", p = S;
2690
2714
  if (f !== "/") {
2691
2715
  let y = f.replace(/^\//, "").split("/");
2692
2716
  p = "/" + S.replace(/^\//, "").split("/").slice(y.length).join("/");
2693
2717
  }
2694
- let g = At(e, { pathname: p });
2695
- return G(
2718
+ let g = Nt(e, { pathname: p });
2719
+ return H(
2696
2720
  u || g != null,
2697
2721
  `No routes matched location "${b.pathname}${b.search}${b.hash}" `
2698
- ), G(
2722
+ ), H(
2699
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,
2700
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.`
2701
- ), tn(
2725
+ ), an(
2702
2726
  g && g.map(
2703
2727
  (y) => Object.assign({}, y, {
2704
2728
  params: Object.assign({}, c, y.params),
2705
- pathname: Y([
2729
+ pathname: q([
2706
2730
  f,
2707
2731
  // Re-encode pathnames that were decoded inside matchRoutes.
2708
2732
  // Pre-encode `?` and `#` ahead of `encodeLocation` because it uses
@@ -2712,7 +2736,7 @@ Please change the parent <Route path="${y}"> to <Route path="${y === "/" ? "*" :
2712
2736
  y.pathname.replace(/\?/g, "%3F").replace(/#/g, "%23")
2713
2737
  ).pathname : y.pathname
2714
2738
  ]),
2715
- pathnameBase: y.pathnameBase === "/" ? f : Y([
2739
+ pathnameBase: y.pathnameBase === "/" ? f : q([
2716
2740
  f,
2717
2741
  // Re-encode pathnames that were decoded inside matchRoutes
2718
2742
  // Pre-encode `?` and `#` ahead of `encodeLocation` because it uses
@@ -2730,14 +2754,14 @@ Please change the parent <Route path="${y}"> to <Route path="${y === "/" ? "*" :
2730
2754
  i
2731
2755
  );
2732
2756
  }
2733
- function Qr() {
2734
- let e = un(), t = kr(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;
2735
2759
  return console.error(
2736
2760
  "Error handled by React Router default ErrorBoundary:",
2737
2761
  e
2738
- ), o = /* @__PURE__ */ E.createElement(E.Fragment, null, /* @__PURE__ */ E.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ E.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ E.createElement("code", { style: a }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ E.createElement("code", { style: a }, "errorElement"), " prop on your route.")), /* @__PURE__ */ E.createElement(E.Fragment, null, /* @__PURE__ */ E.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ E.createElement("h3", { style: { fontStyle: "italic" } }, t), r ? /* @__PURE__ */ E.createElement("pre", { style: i }, r) : null, o);
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);
2739
2763
  }
2740
- var xr = /* @__PURE__ */ E.createElement(Qr, null), Dt = class extends E.Component {
2764
+ var tn = /* @__PURE__ */ h.createElement(en, null), Ut = class extends h.Component {
2741
2765
  constructor(e) {
2742
2766
  super(e), this.state = {
2743
2767
  location: e.location,
@@ -2768,33 +2792,33 @@ var xr = /* @__PURE__ */ E.createElement(Qr, null), Dt = class extends E.Compone
2768
2792
  render() {
2769
2793
  let e = this.state.error;
2770
2794
  if (this.context && typeof e == "object" && e && "digest" in e && typeof e.digest == "string") {
2771
- const r = zr(e.digest);
2795
+ const r = Jr(e.digest);
2772
2796
  r && (e = r);
2773
2797
  }
2774
- let t = e !== void 0 ? /* @__PURE__ */ E.createElement(q.Provider, { value: this.props.routeContext }, /* @__PURE__ */ E.createElement(
2775
- Pe.Provider,
2798
+ let t = e !== void 0 ? /* @__PURE__ */ h.createElement(z.Provider, { value: this.props.routeContext }, /* @__PURE__ */ h.createElement(
2799
+ _e.Provider,
2776
2800
  {
2777
2801
  value: e,
2778
2802
  children: this.props.component
2779
2803
  }
2780
2804
  )) : this.props.children;
2781
- return this.context ? /* @__PURE__ */ E.createElement($r, { error: e }, t) : t;
2805
+ return this.context ? /* @__PURE__ */ h.createElement(rn, { error: e }, t) : t;
2782
2806
  }
2783
2807
  };
2784
- Dt.contextType = Fr;
2785
- var Ne = /* @__PURE__ */ new WeakMap();
2786
- function $r({
2808
+ Ut.contextType = Hr;
2809
+ var Te = /* @__PURE__ */ new WeakMap();
2810
+ function rn({
2787
2811
  children: e,
2788
2812
  error: t
2789
2813
  }) {
2790
- let { basename: r } = E.useContext(F);
2814
+ let { basename: r } = h.useContext(B);
2791
2815
  if (typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
2792
- let n = qr(t.digest);
2816
+ let n = Zr(t.digest);
2793
2817
  if (n) {
2794
- let i = Ne.get(t);
2818
+ let i = Te.get(t);
2795
2819
  if (i) throw i;
2796
- let a = Pt(n.location, r);
2797
- if (Ct && !Ne.get(t))
2820
+ let a = It(n.location, r);
2821
+ if (_t && !Te.get(t))
2798
2822
  if (a.isExternal || n.reloadDocument)
2799
2823
  window.location.href = a.absoluteURL || a.to;
2800
2824
  else {
@@ -2803,9 +2827,9 @@ function $r({
2803
2827
  replace: n.replace
2804
2828
  })
2805
2829
  );
2806
- throw Ne.set(t, o), o;
2830
+ throw Te.set(t, o), o;
2807
2831
  }
2808
- return /* @__PURE__ */ E.createElement(
2832
+ return /* @__PURE__ */ h.createElement(
2809
2833
  "meta",
2810
2834
  {
2811
2835
  httpEquiv: "refresh",
@@ -2816,11 +2840,11 @@ function $r({
2816
2840
  }
2817
2841
  return e;
2818
2842
  }
2819
- function en({ routeContext: e, match: t, children: r }) {
2820
- let n = E.useContext($);
2821
- return n && n.static && n.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (n.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ E.createElement(q.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);
2822
2846
  }
2823
- function tn(e, t = [], r = null, n = null, i = null) {
2847
+ function an(e, t = [], r = null, n = null, i = null) {
2824
2848
  if (e == null) {
2825
2849
  if (!r)
2826
2850
  return null;
@@ -2862,22 +2886,22 @@ function tn(e, t = [], r = null, n = null, i = null) {
2862
2886
  n(f, {
2863
2887
  location: r.location,
2864
2888
  params: r.matches?.[0]?.params ?? {},
2865
- unstable_pattern: Vr(r.matches),
2889
+ unstable_pattern: Br(r.matches),
2866
2890
  errorInfo: u
2867
2891
  });
2868
2892
  } : void 0;
2869
2893
  return a.reduceRight(
2870
2894
  (f, u, m) => {
2871
2895
  let b, S = !1, p = null, g = null;
2872
- r && (b = o && u.route.id ? o[u.route.id] : void 0, p = u.route.errorElement || xr, d && (c < 0 && m === 0 ? (jt(
2896
+ r && (b = o && u.route.id ? o[u.route.id] : void 0, p = u.route.errorElement || tn, d && (c < 0 && m === 0 ? (kt(
2873
2897
  "route-fallback",
2874
2898
  !1,
2875
2899
  "No `HydrateFallback` element provided to render during initial hydration"
2876
2900
  ), S = !0, g = null) : c === m && (S = !0, g = u.route.hydrateFallbackElement || null)));
2877
2901
  let A = t.concat(a.slice(0, m + 1)), y = () => {
2878
- let h;
2879
- return b ? h = p : S ? h = g : u.route.Component ? h = /* @__PURE__ */ E.createElement(u.route.Component, null) : u.route.element ? h = u.route.element : h = f, /* @__PURE__ */ E.createElement(
2880
- en,
2902
+ let E;
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,
2881
2905
  {
2882
2906
  match: u,
2883
2907
  routeContext: {
@@ -2885,12 +2909,12 @@ function tn(e, t = [], r = null, n = null, i = null) {
2885
2909
  matches: A,
2886
2910
  isDataRoute: r != null
2887
2911
  },
2888
- children: h
2912
+ children: E
2889
2913
  }
2890
2914
  );
2891
2915
  };
2892
- return r && (u.route.ErrorBoundary || u.route.errorElement || m === 0) ? /* @__PURE__ */ E.createElement(
2893
- Dt,
2916
+ return r && (u.route.ErrorBoundary || u.route.errorElement || m === 0) ? /* @__PURE__ */ h.createElement(
2917
+ Ut,
2894
2918
  {
2895
2919
  location: r.location,
2896
2920
  revalidation: r.revalidation,
@@ -2905,133 +2929,133 @@ function tn(e, t = [], r = null, n = null, i = null) {
2905
2929
  null
2906
2930
  );
2907
2931
  }
2908
- function _e(e) {
2932
+ function Ie(e) {
2909
2933
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
2910
2934
  }
2911
- function rn(e) {
2912
- let t = E.useContext($);
2913
- return w(t, _e(e)), t;
2935
+ function on(e) {
2936
+ let t = h.useContext(te);
2937
+ return w(t, Ie(e)), t;
2914
2938
  }
2915
- function nn(e) {
2916
- let t = E.useContext(me);
2917
- return w(t, _e(e)), t;
2939
+ function un(e) {
2940
+ let t = h.useContext(ge);
2941
+ return w(t, Ie(e)), t;
2918
2942
  }
2919
- function an(e) {
2920
- let t = E.useContext(q);
2921
- return w(t, _e(e)), t;
2943
+ function ln(e) {
2944
+ let t = h.useContext(z);
2945
+ return w(t, Ie(e)), t;
2922
2946
  }
2923
- function Ie(e) {
2924
- let t = an(e), r = t.matches[t.matches.length - 1];
2947
+ function we(e) {
2948
+ let t = ln(e), r = t.matches[t.matches.length - 1];
2925
2949
  return w(
2926
2950
  r.route.id,
2927
2951
  `${e} can only be used on routes that contain a unique "id"`
2928
2952
  ), r.route.id;
2929
2953
  }
2930
- function on() {
2931
- return Ie(
2954
+ function sn() {
2955
+ return we(
2932
2956
  "useRouteId"
2933
2957
  /* UseRouteId */
2934
2958
  );
2935
2959
  }
2936
- function un() {
2937
- let e = E.useContext(Pe), t = nn(
2960
+ function cn() {
2961
+ let e = h.useContext(_e), t = un(
2938
2962
  "useRouteError"
2939
2963
  /* UseRouteError */
2940
- ), r = Ie(
2964
+ ), r = we(
2941
2965
  "useRouteError"
2942
2966
  /* UseRouteError */
2943
2967
  );
2944
2968
  return e !== void 0 ? e : t.errors?.[r];
2945
2969
  }
2946
- function ln() {
2947
- let { router: e } = rn(
2970
+ function dn() {
2971
+ let { router: e } = on(
2948
2972
  "useNavigate"
2949
2973
  /* UseNavigateStable */
2950
- ), t = Ie(
2974
+ ), t = we(
2951
2975
  "useNavigate"
2952
2976
  /* UseNavigateStable */
2953
- ), r = E.useRef(!1);
2954
- return Lt(() => {
2977
+ ), r = h.useRef(!1);
2978
+ return jt(() => {
2955
2979
  r.current = !0;
2956
- }), E.useCallback(
2980
+ }), h.useCallback(
2957
2981
  async (i, a = {}) => {
2958
- G(r.current, Mt), 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 }));
2959
2983
  },
2960
2984
  [e, t]
2961
2985
  );
2962
2986
  }
2963
- var ct = {};
2964
- function jt(e, t, r) {
2965
- !t && !ct[e] && (ct[e] = !0, G(!1, r));
2987
+ var ft = {};
2988
+ function kt(e, t, r) {
2989
+ !t && !ft[e] && (ft[e] = !0, H(!1, r));
2966
2990
  }
2967
- E.memo(sn);
2968
- function sn({
2991
+ h.memo(fn);
2992
+ function fn({
2969
2993
  routes: e,
2970
2994
  future: t,
2971
2995
  state: r,
2972
2996
  onError: n
2973
2997
  }) {
2974
- return Xr(e, void 0, r, n, t);
2998
+ return $r(e, void 0, r, n, t);
2975
2999
  }
2976
- var ce = "get", de = "application/x-www-form-urlencoded";
3000
+ var de = "get", fe = "application/x-www-form-urlencoded";
2977
3001
  function he(e) {
2978
3002
  return typeof HTMLElement < "u" && e instanceof HTMLElement;
2979
3003
  }
2980
- function cn(e) {
3004
+ function mn(e) {
2981
3005
  return he(e) && e.tagName.toLowerCase() === "button";
2982
3006
  }
2983
- function dn(e) {
3007
+ function gn(e) {
2984
3008
  return he(e) && e.tagName.toLowerCase() === "form";
2985
3009
  }
2986
- function fn(e) {
3010
+ function En(e) {
2987
3011
  return he(e) && e.tagName.toLowerCase() === "input";
2988
3012
  }
2989
- function mn(e) {
3013
+ function hn(e) {
2990
3014
  return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
2991
3015
  }
2992
- function gn(e, t) {
3016
+ function bn(e, t) {
2993
3017
  return e.button === 0 && // Ignore everything but left clicks
2994
3018
  (!t || t === "_self") && // Let browser handle "target=_blank" etc.
2995
- !mn(e);
3019
+ !hn(e);
2996
3020
  }
2997
- var se = null;
2998
- function hn() {
2999
- if (se === null)
3021
+ var ce = null;
3022
+ function Sn() {
3023
+ if (ce === null)
3000
3024
  try {
3001
3025
  new FormData(
3002
3026
  document.createElement("form"),
3003
3027
  // @ts-expect-error if FormData supports the submitter parameter, this will throw
3004
3028
  0
3005
- ), se = !1;
3029
+ ), ce = !1;
3006
3030
  } catch {
3007
- se = !0;
3031
+ ce = !0;
3008
3032
  }
3009
- return se;
3033
+ return ce;
3010
3034
  }
3011
- var En = /* @__PURE__ */ new Set([
3035
+ var yn = /* @__PURE__ */ new Set([
3012
3036
  "application/x-www-form-urlencoded",
3013
3037
  "multipart/form-data",
3014
3038
  "text/plain"
3015
3039
  ]);
3016
- function Te(e) {
3017
- return e != null && !En.has(e) ? (G(
3040
+ function Oe(e) {
3041
+ return e != null && !yn.has(e) ? (H(
3018
3042
  !1,
3019
- `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${de}"`
3043
+ `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${fe}"`
3020
3044
  ), null) : e;
3021
3045
  }
3022
- function bn(e, t) {
3046
+ function pn(e, t) {
3023
3047
  let r, n, i, a, o;
3024
- if (dn(e)) {
3048
+ if (gn(e)) {
3025
3049
  let d = e.getAttribute("action");
3026
- n = d ? K(d, t) : null, r = e.getAttribute("method") || ce, i = Te(e.getAttribute("enctype")) || de, a = new FormData(e);
3027
- } else if (cn(e) || fn(e) && (e.type === "submit" || e.type === "image")) {
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")) {
3028
3052
  let d = e.form;
3029
3053
  if (d == null)
3030
3054
  throw new Error(
3031
3055
  'Cannot submit a <button> or <input type="submit"> without a <form>'
3032
3056
  );
3033
3057
  let c = e.getAttribute("formaction") || d.getAttribute("action");
3034
- if (n = c ? K(c, t) : null, r = e.getAttribute("formmethod") || d.getAttribute("method") || ce, i = Te(e.getAttribute("formenctype")) || Te(d.getAttribute("enctype")) || de, a = new FormData(d, e), !hn()) {
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()) {
3035
3059
  let { name: l, type: f, value: u } = e;
3036
3060
  if (f === "image") {
3037
3061
  let m = l ? `${l}.` : "";
@@ -3043,25 +3067,25 @@ function bn(e, t) {
3043
3067
  throw new Error(
3044
3068
  'Cannot submit element that is not <form>, <button>, or <input type="submit|image">'
3045
3069
  );
3046
- r = ce, n = null, i = de, o = e;
3070
+ r = de, n = null, i = fe, o = e;
3047
3071
  }
3048
3072
  return a && i === "text/plain" && (o = a, a = void 0), { action: n, method: r.toLowerCase(), encType: i, formData: a, body: o };
3049
3073
  }
3050
3074
  Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
3051
- function we(e, t) {
3075
+ function Me(e, t) {
3052
3076
  if (e === !1 || e === null || typeof e > "u")
3053
3077
  throw new Error(t);
3054
3078
  }
3055
- function Sn(e, t, r, n) {
3079
+ function An(e, t, r, n) {
3056
3080
  let i = typeof e == "string" ? new URL(
3057
3081
  e,
3058
3082
  // This can be called during the SSR flow via PrefetchPageLinksImpl so
3059
3083
  // don't assume window is available
3060
3084
  typeof window > "u" ? "server://singlefetch/" : window.location.origin
3061
3085
  ) : e;
3062
- return r ? i.pathname.endsWith("/") ? i.pathname = `${i.pathname}_.${n}` : i.pathname = `${i.pathname}.${n}` : i.pathname === "/" ? i.pathname = `_root.${n}` : t && K(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;
3063
3087
  }
3064
- async function yn(e, t) {
3088
+ async function Rn(e, t) {
3065
3089
  if (e.id in t)
3066
3090
  return t[e.id];
3067
3091
  try {
@@ -3078,27 +3102,27 @@ async function yn(e, t) {
3078
3102
  });
3079
3103
  }
3080
3104
  }
3081
- function pn(e) {
3105
+ function Nn(e) {
3082
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";
3083
3107
  }
3084
- async function An(e, t, r) {
3108
+ async function Tn(e, t, r) {
3085
3109
  let n = await Promise.all(
3086
3110
  e.map(async (i) => {
3087
3111
  let a = t.routes[i.route.id];
3088
3112
  if (a) {
3089
- let o = await yn(a, r);
3113
+ let o = await Rn(a, r);
3090
3114
  return o.links ? o.links() : [];
3091
3115
  }
3092
3116
  return [];
3093
3117
  })
3094
3118
  );
3095
- return On(
3096
- n.flat(1).filter(pn).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(
3097
3121
  (i) => i.rel === "stylesheet" ? { ...i, rel: "prefetch", as: "style" } : { ...i, rel: "prefetch" }
3098
3122
  )
3099
3123
  );
3100
3124
  }
3101
- function dt(e, t, r, n, i, a) {
3125
+ function mt(e, t, r, n, i, a) {
3102
3126
  let o = (c, l) => r[l] ? c.route.id !== r[l].route.id : !0, d = (c, l) => (
3103
3127
  // param change, /users/123 -> /users/456
3104
3128
  r[l].pathname !== c.pathname || // splat param changed, which is not present in match.path
@@ -3130,8 +3154,8 @@ function dt(e, t, r, n, i, a) {
3130
3154
  return !0;
3131
3155
  }) : [];
3132
3156
  }
3133
- function Rn(e, t, { includeHydrateFallback: r } = {}) {
3134
- return Nn(
3157
+ function On(e, t, { includeHydrateFallback: r } = {}) {
3158
+ return vn(
3135
3159
  e.map((n) => {
3136
3160
  let i = t.routes[n.route.id];
3137
3161
  if (!i) return [];
@@ -3140,48 +3164,48 @@ function Rn(e, t, { includeHydrateFallback: r } = {}) {
3140
3164
  }).flat(1)
3141
3165
  );
3142
3166
  }
3143
- function Nn(e) {
3167
+ function vn(e) {
3144
3168
  return [...new Set(e)];
3145
3169
  }
3146
- function Tn(e) {
3170
+ function Cn(e) {
3147
3171
  let t = {}, r = Object.keys(e).sort();
3148
3172
  for (let n of r)
3149
3173
  t[n] = e[n];
3150
3174
  return t;
3151
3175
  }
3152
- function On(e, t) {
3176
+ function Pn(e, t) {
3153
3177
  let r = /* @__PURE__ */ new Set();
3154
3178
  return new Set(t), e.reduce((n, i) => {
3155
- let a = JSON.stringify(Tn(i));
3179
+ let a = JSON.stringify(Cn(i));
3156
3180
  return r.has(a) || (r.add(a), n.push({ key: a, link: i })), n;
3157
3181
  }, []);
3158
3182
  }
3159
- function Ut() {
3160
- let e = E.useContext($);
3161
- return we(
3183
+ function Vt() {
3184
+ let e = h.useContext(te);
3185
+ return Me(
3162
3186
  e,
3163
3187
  "You must render this element inside a <DataRouterContext.Provider> element"
3164
3188
  ), e;
3165
3189
  }
3166
- function vn() {
3167
- let e = E.useContext(me);
3168
- return we(
3190
+ function _n() {
3191
+ let e = h.useContext(ge);
3192
+ return Me(
3169
3193
  e,
3170
3194
  "You must render this element inside a <DataRouterStateContext.Provider> element"
3171
3195
  ), e;
3172
3196
  }
3173
- var Me = E.createContext(void 0);
3174
- Me.displayName = "FrameworkContext";
3175
- function kt() {
3176
- let e = E.useContext(Me);
3177
- return we(
3197
+ var Le = h.createContext(void 0);
3198
+ Le.displayName = "FrameworkContext";
3199
+ function Wt() {
3200
+ let e = h.useContext(Le);
3201
+ return Me(
3178
3202
  e,
3179
3203
  "You must render this element inside a <HydratedRouter> element"
3180
3204
  ), e;
3181
3205
  }
3182
- function Cn(e, t) {
3183
- let r = E.useContext(Me), [n, i] = E.useState(!1), [a, o] = E.useState(!1), { onFocus: d, onBlur: c, onMouseEnter: l, onMouseLeave: f, onTouchStart: u } = t, m = E.useRef(null);
3184
- E.useEffect(() => {
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);
3208
+ h.useEffect(() => {
3185
3209
  if (e === "render" && o(!0), e === "viewport") {
3186
3210
  let p = (A) => {
3187
3211
  A.forEach((y) => {
@@ -3192,7 +3216,7 @@ function Cn(e, t) {
3192
3216
  g.disconnect();
3193
3217
  };
3194
3218
  }
3195
- }, [e]), E.useEffect(() => {
3219
+ }, [e]), h.useEffect(() => {
3196
3220
  if (n) {
3197
3221
  let p = setTimeout(() => {
3198
3222
  o(!0);
@@ -3211,31 +3235,31 @@ function Cn(e, t) {
3211
3235
  a,
3212
3236
  m,
3213
3237
  {
3214
- onFocus: ue(d, b),
3215
- onBlur: ue(c, S),
3216
- onMouseEnter: ue(l, b),
3217
- onMouseLeave: ue(f, S),
3218
- onTouchStart: ue(u, 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)
3219
3243
  }
3220
3244
  ] : [!1, m, {}];
3221
3245
  }
3222
- function ue(e, t) {
3246
+ function le(e, t) {
3223
3247
  return (r) => {
3224
3248
  e && e(r), r.defaultPrevented || t(r);
3225
3249
  };
3226
3250
  }
3227
- function Pn({ page: e, ...t }) {
3228
- let { router: r } = Ut(), n = E.useMemo(
3229
- () => At(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),
3230
3254
  [r.routes, e, r.basename]
3231
3255
  );
3232
- return n ? /* @__PURE__ */ E.createElement(In, { page: e, matches: n, ...t }) : null;
3256
+ return n ? /* @__PURE__ */ h.createElement(Ln, { page: e, matches: n, ...t }) : null;
3233
3257
  }
3234
- function _n(e) {
3235
- let { manifest: t, routeModules: r } = kt(), [n, i] = E.useState([]);
3236
- return E.useEffect(() => {
3258
+ function Mn(e) {
3259
+ let { manifest: t, routeModules: r } = Wt(), [n, i] = h.useState([]);
3260
+ return h.useEffect(() => {
3237
3261
  let a = !1;
3238
- return An(e, t, r).then(
3262
+ return Tn(e, t, r).then(
3239
3263
  (o) => {
3240
3264
  a || i(o);
3241
3265
  }
@@ -3244,13 +3268,13 @@ function _n(e) {
3244
3268
  };
3245
3269
  }, [e, t, r]), n;
3246
3270
  }
3247
- function In({
3271
+ function Ln({
3248
3272
  page: e,
3249
3273
  matches: t,
3250
3274
  ...r
3251
3275
  }) {
3252
- let n = Q(), { future: i, manifest: a, routeModules: o } = kt(), { basename: d } = Ut(), { loaderData: c, matches: l } = vn(), f = E.useMemo(
3253
- () => dt(
3276
+ let n = x(), { future: i, manifest: a, routeModules: o } = Wt(), { basename: d } = Vt(), { loaderData: c, matches: l } = _n(), f = h.useMemo(
3277
+ () => mt(
3254
3278
  e,
3255
3279
  t,
3256
3280
  l,
@@ -3259,8 +3283,8 @@ function In({
3259
3283
  "data"
3260
3284
  ),
3261
3285
  [e, t, l, a, n]
3262
- ), u = E.useMemo(
3263
- () => dt(
3286
+ ), u = h.useMemo(
3287
+ () => mt(
3264
3288
  e,
3265
3289
  t,
3266
3290
  l,
@@ -3269,16 +3293,16 @@ function In({
3269
3293
  "assets"
3270
3294
  ),
3271
3295
  [e, t, l, a, n]
3272
- ), m = E.useMemo(() => {
3296
+ ), m = h.useMemo(() => {
3273
3297
  if (e === n.pathname + n.search + n.hash)
3274
3298
  return [];
3275
3299
  let p = /* @__PURE__ */ new Set(), g = !1;
3276
3300
  if (t.forEach((y) => {
3277
- let h = a.routes[y.route.id];
3278
- !h || !h.hasLoader || (!f.some((R) => R.route.id === y.route.id) && y.route.id in c && o[y.route.id]?.shouldRevalidate || h.hasClientLoader ? g = !0 : p.add(y.route.id));
3301
+ let E = a.routes[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));
3279
3303
  }), p.size === 0)
3280
3304
  return [];
3281
- let A = Sn(
3305
+ let A = An(
3282
3306
  e,
3283
3307
  d,
3284
3308
  i.unstable_trailingSlashAwareDataRequests,
@@ -3298,30 +3322,30 @@ function In({
3298
3322
  t,
3299
3323
  e,
3300
3324
  o
3301
- ]), b = E.useMemo(
3302
- () => Rn(u, a),
3325
+ ]), b = h.useMemo(
3326
+ () => On(u, a),
3303
3327
  [u, a]
3304
- ), S = _n(u);
3305
- return /* @__PURE__ */ E.createElement(E.Fragment, null, m.map((p) => /* @__PURE__ */ E.createElement("link", { key: p, rel: "prefetch", as: "fetch", href: p, ...r })), b.map((p) => /* @__PURE__ */ E.createElement("link", { key: p, rel: "modulepreload", href: p, ...r })), S.map(({ key: p, link: g }) => (
3328
+ ), S = Mn(u);
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 }) => (
3306
3330
  // these don't spread `linkProps` because they are full link descriptors
3307
3331
  // already with their own props
3308
- /* @__PURE__ */ E.createElement("link", { key: p, nonce: r.nonce, ...g })
3332
+ /* @__PURE__ */ h.createElement("link", { key: p, nonce: r.nonce, ...g })
3309
3333
  )));
3310
3334
  }
3311
- function wn(...e) {
3335
+ function Dn(...e) {
3312
3336
  return (t) => {
3313
3337
  e.forEach((r) => {
3314
3338
  typeof r == "function" ? r(t) : r != null && (r.current = t);
3315
3339
  });
3316
3340
  };
3317
3341
  }
3318
- var Mn = 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";
3319
3343
  try {
3320
- Mn && (window.__reactRouterVersion = // @ts-expect-error
3344
+ jn && (window.__reactRouterVersion = // @ts-expect-error
3321
3345
  "7.12.0");
3322
3346
  } catch {
3323
3347
  }
3324
- var Vt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Le = E.forwardRef(
3348
+ var Ft = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, De = h.forwardRef(
3325
3349
  function({
3326
3350
  onClick: t,
3327
3351
  discover: r = "render",
@@ -3337,12 +3361,12 @@ var Vt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Le = E.forwardRef(
3337
3361
  unstable_defaultShouldRevalidate: m,
3338
3362
  ...b
3339
3363
  }, S) {
3340
- let { basename: p, unstable_useTransitions: g } = E.useContext(F), A = typeof l == "string" && Vt.test(l), y = Pt(l, p);
3364
+ let { basename: p, unstable_useTransitions: g } = h.useContext(B), A = typeof l == "string" && Ft.test(l), y = It(l, p);
3341
3365
  l = y.to;
3342
- let h = Kr(l, { relative: i }), [R, N, P] = Cn(
3366
+ let E = Xr(l, { relative: i }), [R, T, C] = In(
3343
3367
  n,
3344
3368
  b
3345
- ), s = Un(l, {
3369
+ ), s = Wn(l, {
3346
3370
  replace: o,
3347
3371
  state: d,
3348
3372
  target: c,
@@ -3352,29 +3376,29 @@ var Vt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Le = E.forwardRef(
3352
3376
  unstable_defaultShouldRevalidate: m,
3353
3377
  unstable_useTransitions: g
3354
3378
  });
3355
- function k(ee) {
3356
- t && t(ee), ee.defaultPrevented || s(ee);
3379
+ function L(D) {
3380
+ t && t(D), D.defaultPrevented || s(D);
3357
3381
  }
3358
- let L = (
3382
+ let V = (
3359
3383
  // eslint-disable-next-line jsx-a11y/anchor-has-content
3360
- /* @__PURE__ */ E.createElement(
3384
+ /* @__PURE__ */ h.createElement(
3361
3385
  "a",
3362
3386
  {
3363
3387
  ...b,
3364
- ...P,
3365
- href: y.absoluteURL || h,
3366
- onClick: y.isExternal || a ? t : k,
3367
- ref: wn(S, N),
3388
+ ...C,
3389
+ href: y.absoluteURL || E,
3390
+ onClick: y.isExternal || a ? t : L,
3391
+ ref: Dn(S, T),
3368
3392
  target: c,
3369
3393
  "data-discover": !A && r === "render" ? "true" : void 0
3370
3394
  }
3371
3395
  )
3372
3396
  );
3373
- return R && !A ? /* @__PURE__ */ E.createElement(E.Fragment, null, L, /* @__PURE__ */ E.createElement(Pn, { page: h })) : L;
3397
+ return R && !A ? /* @__PURE__ */ h.createElement(h.Fragment, null, V, /* @__PURE__ */ h.createElement(wn, { page: E })) : V;
3374
3398
  }
3375
3399
  );
3376
- Le.displayName = "Link";
3377
- var Ln = E.forwardRef(
3400
+ De.displayName = "Link";
3401
+ var Un = h.forwardRef(
3378
3402
  function({
3379
3403
  "aria-current": t = "page",
3380
3404
  caseSensitive: r = !1,
@@ -3386,31 +3410,31 @@ var Ln = E.forwardRef(
3386
3410
  children: c,
3387
3411
  ...l
3388
3412
  }, f) {
3389
- let u = le(o, { relative: l.relative }), m = Q(), b = E.useContext(me), { navigator: S, basename: p } = E.useContext(F), 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
3390
3414
  // eslint-disable-next-line react-hooks/rules-of-hooks
3391
- Bn(u) && d === !0, A = S.encodeLocation ? S.encodeLocation(u).pathname : u.pathname, y = m.pathname, h = b && b.navigation && b.navigation.location ? b.navigation.location.pathname : null;
3392
- r || (y = y.toLowerCase(), h = h ? h.toLowerCase() : null, A = A.toLowerCase()), h && p && (h = K(h, p) || h);
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);
3393
3417
  const R = A !== "/" && A.endsWith("/") ? A.length - 1 : A.length;
3394
- let N = y === A || !i && y.startsWith(A) && y.charAt(R) === "/", P = h != null && (h === A || !i && h.startsWith(A) && h.charAt(A.length) === "/"), s = {
3395
- isActive: N,
3396
- isPending: P,
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,
3397
3421
  isTransitioning: g
3398
- }, k = N ? t : void 0, L;
3399
- typeof n == "function" ? L = n(s) : L = [
3422
+ }, L = T ? t : void 0, V;
3423
+ typeof n == "function" ? V = n(s) : V = [
3400
3424
  n,
3401
- N ? "active" : null,
3402
- P ? "pending" : null,
3425
+ T ? "active" : null,
3426
+ C ? "pending" : null,
3403
3427
  g ? "transitioning" : null
3404
3428
  ].filter(Boolean).join(" ");
3405
- let ee = typeof a == "function" ? a(s) : a;
3406
- return /* @__PURE__ */ E.createElement(
3407
- Le,
3429
+ let D = typeof a == "function" ? a(s) : a;
3430
+ return /* @__PURE__ */ h.createElement(
3431
+ De,
3408
3432
  {
3409
3433
  ...l,
3410
- "aria-current": k,
3411
- className: L,
3434
+ "aria-current": L,
3435
+ className: V,
3412
3436
  ref: f,
3413
- style: ee,
3437
+ style: D,
3414
3438
  to: o,
3415
3439
  viewTransition: d
3416
3440
  },
@@ -3418,8 +3442,8 @@ var Ln = E.forwardRef(
3418
3442
  );
3419
3443
  }
3420
3444
  );
3421
- Ln.displayName = "NavLink";
3422
- var Dn = E.forwardRef(
3445
+ Un.displayName = "NavLink";
3446
+ var kn = h.forwardRef(
3423
3447
  ({
3424
3448
  discover: e = "render",
3425
3449
  fetcherKey: t,
@@ -3427,7 +3451,7 @@ var Dn = E.forwardRef(
3427
3451
  reloadDocument: n,
3428
3452
  replace: i,
3429
3453
  state: a,
3430
- method: o = ce,
3454
+ method: o = de,
3431
3455
  action: d,
3432
3456
  onSubmit: c,
3433
3457
  relative: l,
@@ -3436,10 +3460,10 @@ var Dn = E.forwardRef(
3436
3460
  unstable_defaultShouldRevalidate: m,
3437
3461
  ...b
3438
3462
  }, S) => {
3439
- let { unstable_useTransitions: p } = E.useContext(F), g = Wn(), A = Fn(d, { relative: l }), y = o.toLowerCase() === "get" ? "get" : "post", h = typeof d == "string" && Vt.test(d), R = (N) => {
3440
- if (c && c(N), N.defaultPrevented) return;
3441
- N.preventDefault();
3442
- let P = N.nativeEvent.submitter, s = P?.getAttribute("formmethod") || o, k = () => g(P || 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, {
3443
3467
  fetcherKey: t,
3444
3468
  method: s,
3445
3469
  navigate: r,
@@ -3450,9 +3474,9 @@ var Dn = E.forwardRef(
3450
3474
  viewTransition: u,
3451
3475
  unstable_defaultShouldRevalidate: m
3452
3476
  });
3453
- p && r !== !1 ? E.startTransition(() => k()) : k();
3477
+ p && r !== !1 ? h.startTransition(() => L()) : L();
3454
3478
  };
3455
- return /* @__PURE__ */ E.createElement(
3479
+ return /* @__PURE__ */ h.createElement(
3456
3480
  "form",
3457
3481
  {
3458
3482
  ref: S,
@@ -3460,20 +3484,20 @@ var Dn = E.forwardRef(
3460
3484
  action: A,
3461
3485
  onSubmit: n ? c : R,
3462
3486
  ...b,
3463
- "data-discover": !h && e === "render" ? "true" : void 0
3487
+ "data-discover": !E && e === "render" ? "true" : void 0
3464
3488
  }
3465
3489
  );
3466
3490
  }
3467
3491
  );
3468
- Dn.displayName = "Form";
3469
- function jn(e) {
3492
+ kn.displayName = "Form";
3493
+ function Vn(e) {
3470
3494
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
3471
3495
  }
3472
- function Wt(e) {
3473
- let t = E.useContext($);
3474
- return w(t, jn(e)), t;
3496
+ function Bt(e) {
3497
+ let t = h.useContext(te);
3498
+ return w(t, Vn(e)), t;
3475
3499
  }
3476
- function Un(e, {
3500
+ function Wn(e, {
3477
3501
  target: t,
3478
3502
  replace: r,
3479
3503
  state: n,
@@ -3483,12 +3507,12 @@ function Un(e, {
3483
3507
  unstable_defaultShouldRevalidate: d,
3484
3508
  unstable_useTransitions: c
3485
3509
  } = {}) {
3486
- let l = Zr(), f = Q(), u = le(e, { relative: a });
3487
- return E.useCallback(
3510
+ let l = Qr(), f = x(), u = se(e, { relative: a });
3511
+ return h.useCallback(
3488
3512
  (m) => {
3489
- if (gn(m, t)) {
3513
+ if (bn(m, t)) {
3490
3514
  m.preventDefault();
3491
- let b = r !== void 0 ? r : Oe(f) === Oe(u), S = () => l(e, {
3515
+ let b = r !== void 0 ? r : ve(f) === ve(u), S = () => l(e, {
3492
3516
  replace: b,
3493
3517
  state: n,
3494
3518
  preventScrollReset: i,
@@ -3496,7 +3520,7 @@ function Un(e, {
3496
3520
  viewTransition: o,
3497
3521
  unstable_defaultShouldRevalidate: d
3498
3522
  });
3499
- c ? E.startTransition(() => S()) : S();
3523
+ c ? h.startTransition(() => S()) : S();
3500
3524
  }
3501
3525
  },
3502
3526
  [
@@ -3515,20 +3539,20 @@ function Un(e, {
3515
3539
  ]
3516
3540
  );
3517
3541
  }
3518
- var kn = 0, Vn = () => `__${String(++kn)}__`;
3519
- function Wn() {
3520
- let { router: e } = Wt(
3542
+ var Fn = 0, Bn = () => `__${String(++Fn)}__`;
3543
+ function Gn() {
3544
+ let { router: e } = Bt(
3521
3545
  "useSubmit"
3522
3546
  /* UseSubmit */
3523
- ), { basename: t } = E.useContext(F), r = on(), n = e.fetch, i = e.navigate;
3524
- return E.useCallback(
3547
+ ), { basename: t } = h.useContext(B), r = sn(), n = e.fetch, i = e.navigate;
3548
+ return h.useCallback(
3525
3549
  async (a, o = {}) => {
3526
- let { action: d, method: c, encType: l, formData: f, body: u } = bn(
3550
+ let { action: d, method: c, encType: l, formData: f, body: u } = pn(
3527
3551
  a,
3528
3552
  t
3529
3553
  );
3530
3554
  if (o.navigate === !1) {
3531
- let m = o.fetcherKey || Vn();
3555
+ let m = o.fetcherKey || Bn();
3532
3556
  await n(m, r, o.action || d, {
3533
3557
  unstable_defaultShouldRevalidate: o.unstable_defaultShouldRevalidate,
3534
3558
  preventScrollReset: o.preventScrollReset,
@@ -3556,10 +3580,10 @@ function Wn() {
3556
3580
  [n, i, t, r]
3557
3581
  );
3558
3582
  }
3559
- function Fn(e, { relative: t } = {}) {
3560
- let { basename: r } = E.useContext(F), n = E.useContext(q);
3583
+ function Hn(e, { relative: t } = {}) {
3584
+ let { basename: r } = h.useContext(B), n = h.useContext(z);
3561
3585
  w(n, "useFormAction must be used inside a RouteContext");
3562
- let [i] = n.matches.slice(-1), a = { ...le(e || ".", { relative: t }) }, o = Q();
3586
+ let [i] = n.matches.slice(-1), a = { ...se(e || ".", { relative: t }) }, o = x();
3563
3587
  if (e == null) {
3564
3588
  a.search = o.search;
3565
3589
  let d = new URLSearchParams(a.search), c = d.getAll("index");
@@ -3569,43 +3593,43 @@ function Fn(e, { relative: t } = {}) {
3569
3593
  a.search = f ? `?${f}` : "";
3570
3594
  }
3571
3595
  }
3572
- return (!e || e === ".") && i.route.index && (a.search = a.search ? a.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (a.pathname = a.pathname === "/" ? r : Y([r, a.pathname])), Oe(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);
3573
3597
  }
3574
- function Bn(e, { relative: t } = {}) {
3575
- let r = E.useContext(It);
3598
+ function Yn(e, { relative: t } = {}) {
3599
+ let r = h.useContext(Mt);
3576
3600
  w(
3577
3601
  r != null,
3578
3602
  "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
3579
3603
  );
3580
- let { basename: n } = Wt(
3604
+ let { basename: n } = Bt(
3581
3605
  "useViewTransitionState"
3582
3606
  /* useViewTransitionState */
3583
- ), i = le(e, { relative: t });
3607
+ ), i = se(e, { relative: t });
3584
3608
  if (!r.isTransitioning)
3585
3609
  return !1;
3586
- let a = K(r.currentLocation.pathname, n) || r.currentLocation.pathname, o = K(r.nextLocation.pathname, n) || r.nextLocation.pathname;
3587
- return fe(i.pathname, o) != null || fe(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;
3588
3612
  }
3589
- function Ft(e) {
3613
+ function Gt(e) {
3590
3614
  var t, r, n = "";
3591
3615
  if (typeof e == "string" || typeof e == "number") n += e;
3592
3616
  else if (typeof e == "object") if (Array.isArray(e)) {
3593
3617
  var i = e.length;
3594
- for (t = 0; t < i; t++) e[t] && (r = Ft(e[t])) && (n && (n += " "), n += r);
3618
+ for (t = 0; t < i; t++) e[t] && (r = Gt(e[t])) && (n && (n += " "), n += r);
3595
3619
  } else for (r in e) e[r] && (n && (n += " "), n += r);
3596
3620
  return n;
3597
3621
  }
3598
- function Gn() {
3599
- for (var e, t, r = 0, n = "", i = arguments.length; r < i; r++) (e = arguments[r]) && (t = Ft(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);
3600
3624
  return n;
3601
3625
  }
3602
- const ft = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, mt = Gn, De = (e, t) => (r) => {
3626
+ const gt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Et = qn, je = (e, t) => (r) => {
3603
3627
  var n;
3604
- if (t?.variants == null) return mt(e, r?.class, r?.className);
3628
+ if (t?.variants == null) return Et(e, r?.class, r?.className);
3605
3629
  const { variants: i, defaultVariants: a } = t, o = Object.keys(i).map((l) => {
3606
3630
  const f = r?.[l], u = a?.[l];
3607
3631
  if (f === null) return null;
3608
- const m = ft(f) || ft(u);
3632
+ const m = gt(f) || gt(u);
3609
3633
  return i[l][m];
3610
3634
  }), d = r && Object.entries(r).reduce((l, f) => {
3611
3635
  let [u, m] = f;
@@ -3627,8 +3651,8 @@ const ft = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, mt = Gn, D
3627
3651
  m
3628
3652
  ] : l;
3629
3653
  }, []);
3630
- return mt(e, o, c, r?.class, r?.className);
3631
- }, Hn = De("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", {
3632
3656
  variants: {
3633
3657
  variant: {
3634
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",
@@ -3646,7 +3670,7 @@ const ft = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, mt = Gn, D
3646
3670
  variant: "default",
3647
3671
  size: "default"
3648
3672
  }
3649
- }), Yn = De("font-semibold", {
3673
+ }), Kn = je("font-semibold", {
3650
3674
  variants: {
3651
3675
  variant: {
3652
3676
  default: "text-green-800 dark:text-green-200",
@@ -3658,7 +3682,7 @@ const ft = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, mt = Gn, D
3658
3682
  defaultVariants: {
3659
3683
  variant: "default"
3660
3684
  }
3661
- }), qn = De(
3685
+ }), Zn = je(
3662
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",
3663
3687
  {
3664
3688
  variants: {
@@ -3673,7 +3697,7 @@ const ft = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, mt = Gn, D
3673
3697
  variant: "default"
3674
3698
  }
3675
3699
  }
3676
- ), ia = ({
3700
+ ), la = ({
3677
3701
  className: e,
3678
3702
  variant: t = "default",
3679
3703
  size: r = "default",
@@ -3686,7 +3710,7 @@ const ft = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, mt = Gn, D
3686
3710
  isDismissible: l = !1,
3687
3711
  dismissAriaLabel: f = "Dismiss banner",
3688
3712
  onTrack: u
3689
- }) => /* @__PURE__ */ v("div", { className: M(Hn({ 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__ */ W("div", { className: "flex flex-col sm:flex-row items-center justify-center gap-4 text-center relative", children: [
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: [
3690
3714
  l && c && /* @__PURE__ */ v(
3691
3715
  "button",
3692
3716
  {
@@ -3715,7 +3739,7 @@ const ft = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, mt = Gn, D
3715
3739
  )
3716
3740
  }
3717
3741
  ),
3718
- /* @__PURE__ */ W("div", { className: "flex items-center", children: [
3742
+ /* @__PURE__ */ F("div", { className: "flex items-center", children: [
3719
3743
  o && /* @__PURE__ */ v(
3720
3744
  "div",
3721
3745
  {
@@ -3726,18 +3750,18 @@ const ft = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, mt = Gn, D
3726
3750
  children: d
3727
3751
  }
3728
3752
  ),
3729
- /* @__PURE__ */ v("span", { className: M(Yn({ variant: t })), children: n })
3753
+ /* @__PURE__ */ v("span", { className: M(Kn({ variant: t })), children: n })
3730
3754
  ] }),
3731
3755
  /* @__PURE__ */ v(
3732
- Le,
3756
+ De,
3733
3757
  {
3734
3758
  to: a,
3735
- className: M(qn({ variant: t })),
3759
+ className: M(Zn({ variant: t })),
3736
3760
  onClick: () => u?.("cta_click"),
3737
3761
  children: i
3738
3762
  }
3739
3763
  )
3740
- ] }) }) }), oa = ({
3764
+ ] }) }) }), sa = ({
3741
3765
  className: e,
3742
3766
  children: t,
3743
3767
  disabled: r = !1,
@@ -3767,16 +3791,16 @@ const ft = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, mt = Gn, D
3767
3791
  );
3768
3792
  };
3769
3793
  export {
3770
- xn as AbTestEmail,
3771
- ut as CollapsibleEmailField,
3772
- $n as ContactCard,
3773
- ea as EmailAccountsList,
3774
- ta as EmailAnalytics,
3775
- ra as EmailCampaign,
3776
- pt as EmailInputField,
3777
- na as EmailInputGroup,
3778
- ia as FreeEmailBanner,
3779
- Qn as SubscriberList,
3780
- aa as UemailUtemplate,
3781
- oa 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
3782
3806
  };