@srimandir/dosha-calculator 2.0.4 → 2.0.5

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.
@@ -1,10 +1,10 @@
1
- import * as je from "react";
2
- import sn, { useRef as de, useEffect as xe, createContext as Kn, useContext as qn, useMemo as nn, useState as q, useCallback as Fe, forwardRef as Wn, useImperativeHandle as Hn } from "react";
1
+ import * as Te from "react";
2
+ import sn, { useRef as ue, useEffect as Se, createContext as Kn, useContext as qn, useMemo as nn, useState as q, useCallback as Fe, forwardRef as Wn, useImperativeHandle as Hn } from "react";
3
3
  import { FooterCTAButton as rs, FormContainer as Gn, PrivacyBanner as zn, FormSectionHeader as Vn, FormField as bt, FormTextInput as Jn, FormSegmentedControl as Yn, FormTagPills as Qn, FormCheckboxWithHelp as Xn, FormLocationInput as Zn, FormFooterNote as ea, UserReviewsSection as an, FAQAccordion as on, ContactUsSection as ln, PageHeader as ta, MarqueeStrip as ra, FooterShell as sa, footerShellStyles as st } from "@srimandir/astrology-common";
4
- var Yt = { exports: {} }, It = {};
4
+ var Qt = { exports: {} }, Dt = {};
5
5
  var ss;
6
6
  function na() {
7
- if (ss) return It;
7
+ if (ss) return Dt;
8
8
  ss = 1;
9
9
  var t = sn, e = /* @__PURE__ */ Symbol.for("react.element"), r = /* @__PURE__ */ Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, n = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
10
10
  function i(o, c, u) {
@@ -14,9 +14,9 @@ function na() {
14
14
  if (o && o.defaultProps) for (d in c = o.defaultProps, c) f[d] === void 0 && (f[d] = c[d]);
15
15
  return { $$typeof: e, type: o, key: m, ref: p, props: f, _owner: n.current };
16
16
  }
17
- return It.Fragment = r, It.jsx = i, It.jsxs = i, It;
17
+ return Dt.Fragment = r, Dt.jsx = i, Dt.jsxs = i, Dt;
18
18
  }
19
- var Dt = {};
19
+ var $t = {};
20
20
  var ns;
21
21
  function aa() {
22
22
  return ns || (ns = 1, process.env.NODE_ENV !== "production" && (function() {
@@ -39,22 +39,22 @@ function aa() {
39
39
  {
40
40
  var O = k.ReactDebugCurrentFrame, G = O.getStackAddendum();
41
41
  G !== "" && (S += "%s", T = T.concat([G]));
42
- var J = T.map(function(K) {
42
+ var Y = T.map(function(K) {
43
43
  return String(K);
44
44
  });
45
- J.unshift("Warning: " + S), Function.prototype.apply.call(console[h], console, J);
45
+ Y.unshift("Warning: " + S), Function.prototype.apply.call(console[h], console, Y);
46
46
  }
47
47
  }
48
48
  var j = !1, x = !1, N = !1, D = !1, V = !1, $;
49
49
  $ = /* @__PURE__ */ Symbol.for("react.module.reference");
50
- function Ne(h) {
50
+ function Oe(h) {
51
51
  return !!(typeof h == "string" || typeof h == "function" || h === s || h === a || V || h === n || h === u || h === d || D || h === p || j || x || N || typeof h == "object" && h !== null && (h.$$typeof === m || h.$$typeof === f || h.$$typeof === i || h.$$typeof === o || h.$$typeof === c || // This needs to include all possible module reference object
52
52
  // types supported by any Flight configuration anywhere since
53
53
  // we don't know which Flight build this will end up being used
54
54
  // with.
55
55
  h.$$typeof === $ || h.getModuleId !== void 0));
56
56
  }
57
- function ne(h, S, T) {
57
+ function se(h, S, T) {
58
58
  var O = h.displayName;
59
59
  if (O)
60
60
  return O;
@@ -94,14 +94,14 @@ function aa() {
94
94
  var T = h;
95
95
  return le(T._context) + ".Provider";
96
96
  case c:
97
- return ne(h, h.render, "ForwardRef");
97
+ return se(h, h.render, "ForwardRef");
98
98
  case f:
99
99
  var O = h.displayName || null;
100
100
  return O !== null ? O : H(h.type) || "Memo";
101
101
  case m: {
102
- var G = h, J = G._payload, K = G._init;
102
+ var G = h, Y = G._payload, K = G._init;
103
103
  try {
104
- return H(K(J));
104
+ return H(K(Y));
105
105
  } catch {
106
106
  return null;
107
107
  }
@@ -109,18 +109,18 @@ function aa() {
109
109
  }
110
110
  return null;
111
111
  }
112
- var pe = Object.assign, _ = 0, F, z, L, I, W, M, Z;
113
- function Ae() {
112
+ var fe = Object.assign, _ = 0, F, z, L, I, W, M, Z;
113
+ function je() {
114
114
  }
115
- Ae.__reactDisabledLog = !0;
116
- function ge() {
115
+ je.__reactDisabledLog = !0;
116
+ function pe() {
117
117
  {
118
118
  if (_ === 0) {
119
119
  F = console.log, z = console.info, L = console.warn, I = console.error, W = console.group, M = console.groupCollapsed, Z = console.groupEnd;
120
120
  var h = {
121
121
  configurable: !0,
122
122
  enumerable: !0,
123
- value: Ae,
123
+ value: je,
124
124
  writable: !0
125
125
  };
126
126
  Object.defineProperties(console, {
@@ -145,25 +145,25 @@ function aa() {
145
145
  writable: !0
146
146
  };
147
147
  Object.defineProperties(console, {
148
- log: pe({}, h, {
148
+ log: fe({}, h, {
149
149
  value: F
150
150
  }),
151
- info: pe({}, h, {
151
+ info: fe({}, h, {
152
152
  value: z
153
153
  }),
154
- warn: pe({}, h, {
154
+ warn: fe({}, h, {
155
155
  value: L
156
156
  }),
157
- error: pe({}, h, {
157
+ error: fe({}, h, {
158
158
  value: I
159
159
  }),
160
- group: pe({}, h, {
160
+ group: fe({}, h, {
161
161
  value: W
162
162
  }),
163
- groupCollapsed: pe({}, h, {
163
+ groupCollapsed: fe({}, h, {
164
164
  value: M
165
165
  }),
166
- groupEnd: pe({}, h, {
166
+ groupEnd: fe({}, h, {
167
167
  value: Z
168
168
  })
169
169
  });
@@ -171,8 +171,8 @@ function aa() {
171
171
  _ < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
172
172
  }
173
173
  }
174
- var _e = k.ReactCurrentDispatcher, Ke;
175
- function Me(h, S, T) {
174
+ var we = k.ReactCurrentDispatcher, Ke;
175
+ function Ue(h, S, T) {
176
176
  {
177
177
  if (Ke === void 0)
178
178
  try {
@@ -185,16 +185,16 @@ function aa() {
185
185
  ` + Ke + h;
186
186
  }
187
187
  }
188
- var ze = !1, Ie;
188
+ var ze = !1, Ne;
189
189
  {
190
190
  var ft = typeof WeakMap == "function" ? WeakMap : Map;
191
- Ie = new ft();
191
+ Ne = new ft();
192
192
  }
193
193
  function Ve(h, S) {
194
194
  if (!h || ze)
195
195
  return "";
196
196
  {
197
- var T = Ie.get(h);
197
+ var T = Ne.get(h);
198
198
  if (T !== void 0)
199
199
  return T;
200
200
  }
@@ -202,8 +202,8 @@ function aa() {
202
202
  ze = !0;
203
203
  var G = Error.prepareStackTrace;
204
204
  Error.prepareStackTrace = void 0;
205
- var J;
206
- J = _e.current, _e.current = null, ge();
205
+ var Y;
206
+ Y = we.current, we.current = null, pe();
207
207
  try {
208
208
  if (S) {
209
209
  var K = function() {
@@ -216,50 +216,50 @@ function aa() {
216
216
  }), typeof Reflect == "object" && Reflect.construct) {
217
217
  try {
218
218
  Reflect.construct(K, []);
219
- } catch (we) {
220
- O = we;
219
+ } catch (be) {
220
+ O = be;
221
221
  }
222
222
  Reflect.construct(h, [], K);
223
223
  } else {
224
224
  try {
225
225
  K.call();
226
- } catch (we) {
227
- O = we;
226
+ } catch (be) {
227
+ O = be;
228
228
  }
229
229
  h.call(K.prototype);
230
230
  }
231
231
  } else {
232
232
  try {
233
233
  throw Error();
234
- } catch (we) {
235
- O = we;
234
+ } catch (be) {
235
+ O = be;
236
236
  }
237
237
  h();
238
238
  }
239
- } catch (we) {
240
- if (we && O && typeof we.stack == "string") {
241
- for (var B = we.stack.split(`
242
- `), ve = O.stack.split(`
243
- `), re = B.length - 1, ae = ve.length - 1; re >= 1 && ae >= 0 && B[re] !== ve[ae]; )
244
- ae--;
245
- for (; re >= 1 && ae >= 0; re--, ae--)
246
- if (B[re] !== ve[ae]) {
247
- if (re !== 1 || ae !== 1)
239
+ } catch (be) {
240
+ if (be && O && typeof be.stack == "string") {
241
+ for (var B = be.stack.split(`
242
+ `), ye = O.stack.split(`
243
+ `), te = B.length - 1, ne = ye.length - 1; te >= 1 && ne >= 0 && B[te] !== ye[ne]; )
244
+ ne--;
245
+ for (; te >= 1 && ne >= 0; te--, ne--)
246
+ if (B[te] !== ye[ne]) {
247
+ if (te !== 1 || ne !== 1)
248
248
  do
249
- if (re--, ae--, ae < 0 || B[re] !== ve[ae]) {
250
- var Pe = `
251
- ` + B[re].replace(" at new ", " at ");
252
- return h.displayName && Pe.includes("<anonymous>") && (Pe = Pe.replace("<anonymous>", h.displayName)), typeof h == "function" && Ie.set(h, Pe), Pe;
249
+ if (te--, ne--, ne < 0 || B[te] !== ye[ne]) {
250
+ var Ee = `
251
+ ` + B[te].replace(" at new ", " at ");
252
+ return h.displayName && Ee.includes("<anonymous>") && (Ee = Ee.replace("<anonymous>", h.displayName)), typeof h == "function" && Ne.set(h, Ee), Ee;
253
253
  }
254
- while (re >= 1 && ae >= 0);
254
+ while (te >= 1 && ne >= 0);
255
255
  break;
256
256
  }
257
257
  }
258
258
  } finally {
259
- ze = !1, _e.current = J, ee(), Error.prepareStackTrace = G;
259
+ ze = !1, we.current = Y, ee(), Error.prepareStackTrace = G;
260
260
  }
261
- var vt = h ? h.displayName || h.name : "", rt = vt ? Me(vt) : "";
262
- return typeof h == "function" && Ie.set(h, rt), rt;
261
+ var vt = h ? h.displayName || h.name : "", rt = vt ? Ue(vt) : "";
262
+ return typeof h == "function" && Ne.set(h, rt), rt;
263
263
  }
264
264
  function qe(h, S, T) {
265
265
  return Ve(h, !1);
@@ -274,12 +274,12 @@ function aa() {
274
274
  if (typeof h == "function")
275
275
  return Ve(h, mt(h));
276
276
  if (typeof h == "string")
277
- return Me(h);
277
+ return Ue(h);
278
278
  switch (h) {
279
279
  case u:
280
- return Me("Suspense");
280
+ return Ue("Suspense");
281
281
  case d:
282
- return Me("SuspenseList");
282
+ return Ue("SuspenseList");
283
283
  }
284
284
  if (typeof h == "object")
285
285
  switch (h.$$typeof) {
@@ -288,16 +288,16 @@ function aa() {
288
288
  case f:
289
289
  return We(h.type, S, T);
290
290
  case m: {
291
- var O = h, G = O._payload, J = O._init;
291
+ var O = h, G = O._payload, Y = O._init;
292
292
  try {
293
- return We(J(G), S, T);
293
+ return We(Y(G), S, T);
294
294
  } catch {
295
295
  }
296
296
  }
297
297
  }
298
298
  return "";
299
299
  }
300
- var ke = Object.prototype.hasOwnProperty, pt = {}, E = k.ReactDebugCurrentFrame;
300
+ var _e = Object.prototype.hasOwnProperty, pt = {}, E = k.ReactDebugCurrentFrame;
301
301
  function U(h) {
302
302
  if (h) {
303
303
  var S = h._owner, T = We(h.type, h._source, S ? S.type : null);
@@ -305,73 +305,73 @@ function aa() {
305
305
  } else
306
306
  E.setExtraStackFrame(null);
307
307
  }
308
- function he(h, S, T, O, G) {
308
+ function ge(h, S, T, O, G) {
309
309
  {
310
- var J = Function.call.bind(ke);
310
+ var Y = Function.call.bind(_e);
311
311
  for (var K in h)
312
- if (J(h, K)) {
312
+ if (Y(h, K)) {
313
313
  var B = void 0;
314
314
  try {
315
315
  if (typeof h[K] != "function") {
316
- var ve = Error((O || "React class") + ": " + T + " type `" + K + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof h[K] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
317
- throw ve.name = "Invariant Violation", ve;
316
+ var ye = Error((O || "React class") + ": " + T + " type `" + K + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof h[K] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
317
+ throw ye.name = "Invariant Violation", ye;
318
318
  }
319
319
  B = h[K](S, K, O, T, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
320
- } catch (re) {
321
- B = re;
320
+ } catch (te) {
321
+ B = te;
322
322
  }
323
323
  B && !(B instanceof Error) && (U(G), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", O || "React class", T, K, typeof B), U(null)), B instanceof Error && !(B.message in pt) && (pt[B.message] = !0, U(G), w("Failed %s type: %s", T, B.message), U(null));
324
324
  }
325
325
  }
326
326
  }
327
- var ye = Array.isArray;
328
- function te(h) {
329
- return ye(h);
327
+ var ve = Array.isArray;
328
+ function Ie(h) {
329
+ return ve(h);
330
330
  }
331
- function ce(h) {
331
+ function Me(h) {
332
332
  {
333
333
  var S = typeof Symbol == "function" && Symbol.toStringTag, T = S && h[Symbol.toStringTag] || h.constructor.name || "Object";
334
334
  return T;
335
335
  }
336
336
  }
337
- function De(h) {
337
+ function ie(h) {
338
338
  try {
339
- return C(h), !1;
339
+ return P(h), !1;
340
340
  } catch {
341
341
  return !0;
342
342
  }
343
343
  }
344
- function C(h) {
344
+ function P(h) {
345
345
  return "" + h;
346
346
  }
347
- function Q(h) {
348
- if (De(h))
349
- return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ce(h)), C(h);
347
+ function J(h) {
348
+ if (ie(h))
349
+ return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Me(h)), P(h);
350
350
  }
351
- var be = k.ReactCurrentOwner, Be = {
351
+ var me = k.ReactCurrentOwner, Be = {
352
352
  key: !0,
353
353
  ref: !0,
354
354
  __self: !0,
355
355
  __source: !0
356
- }, gt, Je;
357
- function Ee(h) {
358
- if (ke.call(h, "ref")) {
356
+ }, gt, yt;
357
+ function vr(h) {
358
+ if (_e.call(h, "ref")) {
359
359
  var S = Object.getOwnPropertyDescriptor(h, "ref").get;
360
360
  if (S && S.isReactWarning)
361
361
  return !1;
362
362
  }
363
363
  return h.ref !== void 0;
364
364
  }
365
- function yr(h) {
366
- if (ke.call(h, "key")) {
365
+ function Nt(h) {
366
+ if (_e.call(h, "key")) {
367
367
  var S = Object.getOwnPropertyDescriptor(h, "key").get;
368
368
  if (S && S.isReactWarning)
369
369
  return !1;
370
370
  }
371
371
  return h.key !== void 0;
372
372
  }
373
- function vr(h, S) {
374
- typeof h.ref == "string" && be.current;
373
+ function Ae(h, S) {
374
+ typeof h.ref == "string" && me.current;
375
375
  }
376
376
  function br(h, S) {
377
377
  {
@@ -387,7 +387,7 @@ function aa() {
387
387
  function wr(h, S) {
388
388
  {
389
389
  var T = function() {
390
- Je || (Je = !0, w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", S));
390
+ yt || (yt = !0, w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", S));
391
391
  };
392
392
  T.isReactWarning = !0, Object.defineProperty(h, "ref", {
393
393
  get: T,
@@ -395,7 +395,7 @@ function aa() {
395
395
  });
396
396
  }
397
397
  }
398
- var _r = function(h, S, T, O, G, J, K) {
398
+ var _r = function(h, S, T, O, G, Y, K) {
399
399
  var B = {
400
400
  // This tag allows us to uniquely identify this as a React Element
401
401
  $$typeof: e,
@@ -405,7 +405,7 @@ function aa() {
405
405
  ref: T,
406
406
  props: K,
407
407
  // Record the component responsible for creating this element.
408
- _owner: J
408
+ _owner: Y
409
409
  };
410
410
  return B._store = {}, Object.defineProperty(B._store, "validated", {
411
411
  configurable: !1,
@@ -424,41 +424,41 @@ function aa() {
424
424
  value: G
425
425
  }), Object.freeze && (Object.freeze(B.props), Object.freeze(B)), B;
426
426
  };
427
- function Vr(h, S, T, O, G) {
427
+ function kr(h, S, T, O, G) {
428
428
  {
429
- var J, K = {}, B = null, ve = null;
430
- T !== void 0 && (Q(T), B = "" + T), yr(S) && (Q(S.key), B = "" + S.key), Ee(S) && (ve = S.ref, vr(S, G));
431
- for (J in S)
432
- ke.call(S, J) && !Be.hasOwnProperty(J) && (K[J] = S[J]);
429
+ var Y, K = {}, B = null, ye = null;
430
+ T !== void 0 && (J(T), B = "" + T), Nt(S) && (J(S.key), B = "" + S.key), vr(S) && (ye = S.ref, Ae(S, G));
431
+ for (Y in S)
432
+ _e.call(S, Y) && !Be.hasOwnProperty(Y) && (K[Y] = S[Y]);
433
433
  if (h && h.defaultProps) {
434
- var re = h.defaultProps;
435
- for (J in re)
436
- K[J] === void 0 && (K[J] = re[J]);
434
+ var te = h.defaultProps;
435
+ for (Y in te)
436
+ K[Y] === void 0 && (K[Y] = te[Y]);
437
437
  }
438
- if (B || ve) {
439
- var ae = typeof h == "function" ? h.displayName || h.name || "Unknown" : h;
440
- B && br(K, ae), ve && wr(K, ae);
438
+ if (B || ye) {
439
+ var ne = typeof h == "function" ? h.displayName || h.name || "Unknown" : h;
440
+ B && br(K, ne), ye && wr(K, ne);
441
441
  }
442
- return _r(h, B, ve, G, O, be.current, K);
442
+ return _r(h, B, ye, G, O, me.current, K);
443
443
  }
444
444
  }
445
- var Nt = k.ReactCurrentOwner, Jr = k.ReactDebugCurrentFrame;
446
- function yt(h) {
445
+ var It = k.ReactCurrentOwner, Sr = k.ReactDebugCurrentFrame;
446
+ function Je(h) {
447
447
  if (h) {
448
448
  var S = h._owner, T = We(h.type, h._source, S ? S.type : null);
449
- Jr.setExtraStackFrame(T);
449
+ Sr.setExtraStackFrame(T);
450
450
  } else
451
- Jr.setExtraStackFrame(null);
451
+ Sr.setExtraStackFrame(null);
452
452
  }
453
- var kr;
454
- kr = !1;
455
- function Sr(h) {
453
+ var xr;
454
+ xr = !1;
455
+ function Tr(h) {
456
456
  return typeof h == "object" && h !== null && h.$$typeof === e;
457
457
  }
458
458
  function Yr() {
459
459
  {
460
- if (Nt.current) {
461
- var h = H(Nt.current.type);
460
+ if (It.current) {
461
+ var h = H(It.current.type);
462
462
  if (h)
463
463
  return `
464
464
 
@@ -493,25 +493,25 @@ Check the top-level render call using <` + T + ">.");
493
493
  return;
494
494
  Qr[T] = !0;
495
495
  var O = "";
496
- h && h._owner && h._owner !== Nt.current && (O = " It was passed a child from " + H(h._owner.type) + "."), yt(h), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', T, O), yt(null);
496
+ h && h._owner && h._owner !== It.current && (O = " It was passed a child from " + H(h._owner.type) + "."), Je(h), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', T, O), Je(null);
497
497
  }
498
498
  }
499
499
  function Zr(h, S) {
500
500
  {
501
501
  if (typeof h != "object")
502
502
  return;
503
- if (te(h))
503
+ if (Ie(h))
504
504
  for (var T = 0; T < h.length; T++) {
505
505
  var O = h[T];
506
- Sr(O) && Xr(O, S);
506
+ Tr(O) && Xr(O, S);
507
507
  }
508
- else if (Sr(h))
508
+ else if (Tr(h))
509
509
  h._store && (h._store.validated = !0);
510
510
  else if (h) {
511
511
  var G = v(h);
512
512
  if (typeof G == "function" && G !== h.entries)
513
- for (var J = G.call(h), K; !(K = J.next()).done; )
514
- Sr(K.value) && Xr(K.value, S);
513
+ for (var Y = G.call(h), K; !(K = Y.next()).done; )
514
+ Tr(K.value) && Xr(K.value, S);
515
515
  }
516
516
  }
517
517
  }
@@ -531,9 +531,9 @@ Check the top-level render call using <` + T + ">.");
531
531
  return;
532
532
  if (T) {
533
533
  var O = H(S);
534
- he(T, h.props, "prop", O, h);
535
- } else if (S.PropTypes !== void 0 && !kr) {
536
- kr = !0;
534
+ ge(T, h.props, "prop", O, h);
535
+ } else if (S.PropTypes !== void 0 && !xr) {
536
+ xr = !0;
537
537
  var G = H(S);
538
538
  w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", G || "Unknown");
539
539
  }
@@ -545,56 +545,56 @@ Check the top-level render call using <` + T + ">.");
545
545
  for (var S = Object.keys(h.props), T = 0; T < S.length; T++) {
546
546
  var O = S[T];
547
547
  if (O !== "children" && O !== "key") {
548
- yt(h), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", O), yt(null);
548
+ Je(h), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", O), Je(null);
549
549
  break;
550
550
  }
551
551
  }
552
- h.ref !== null && (yt(h), w("Invalid attribute `ref` supplied to `React.Fragment`."), yt(null));
552
+ h.ref !== null && (Je(h), w("Invalid attribute `ref` supplied to `React.Fragment`."), Je(null));
553
553
  }
554
554
  }
555
555
  var es = {};
556
- function ts(h, S, T, O, G, J) {
556
+ function ts(h, S, T, O, G, Y) {
557
557
  {
558
- var K = Ne(h);
558
+ var K = Oe(h);
559
559
  if (!K) {
560
560
  var B = "";
561
561
  (h === void 0 || typeof h == "object" && h !== null && Object.keys(h).length === 0) && (B += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
562
- var ve = On();
563
- ve ? B += ve : B += Yr();
564
- var re;
565
- h === null ? re = "null" : te(h) ? re = "array" : h !== void 0 && h.$$typeof === e ? (re = "<" + (H(h.type) || "Unknown") + " />", B = " Did you accidentally export a JSX literal instead of a component?") : re = typeof h, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", re, B);
562
+ var ye = On();
563
+ ye ? B += ye : B += Yr();
564
+ var te;
565
+ h === null ? te = "null" : Ie(h) ? te = "array" : h !== void 0 && h.$$typeof === e ? (te = "<" + (H(h.type) || "Unknown") + " />", B = " Did you accidentally export a JSX literal instead of a component?") : te = typeof h, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", te, B);
566
566
  }
567
- var ae = Vr(h, S, T, G, J);
568
- if (ae == null)
569
- return ae;
567
+ var ne = kr(h, S, T, G, Y);
568
+ if (ne == null)
569
+ return ne;
570
570
  if (K) {
571
- var Pe = S.children;
572
- if (Pe !== void 0)
571
+ var Ee = S.children;
572
+ if (Ee !== void 0)
573
573
  if (O)
574
- if (te(Pe)) {
575
- for (var vt = 0; vt < Pe.length; vt++)
576
- Zr(Pe[vt], h);
577
- Object.freeze && Object.freeze(Pe);
574
+ if (Ie(Ee)) {
575
+ for (var vt = 0; vt < Ee.length; vt++)
576
+ Zr(Ee[vt], h);
577
+ Object.freeze && Object.freeze(Ee);
578
578
  } else
579
579
  w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
580
580
  else
581
- Zr(Pe, h);
581
+ Zr(Ee, h);
582
582
  }
583
- if (ke.call(S, "key")) {
584
- var rt = H(h), we = Object.keys(S).filter(function(Fn) {
583
+ if (_e.call(S, "key")) {
584
+ var rt = H(h), be = Object.keys(S).filter(function(Fn) {
585
585
  return Fn !== "key";
586
- }), xr = we.length > 0 ? "{key: someKey, " + we.join(": ..., ") + ": ...}" : "{key: someKey}";
587
- if (!es[rt + xr]) {
588
- var Bn = we.length > 0 ? "{" + we.join(": ..., ") + ": ...}" : "{}";
586
+ }), jr = be.length > 0 ? "{key: someKey, " + be.join(": ..., ") + ": ...}" : "{key: someKey}";
587
+ if (!es[rt + jr]) {
588
+ var Bn = be.length > 0 ? "{" + be.join(": ..., ") + ": ...}" : "{}";
589
589
  w(`A props object containing a "key" prop is being spread into JSX:
590
590
  let props = %s;
591
591
  <%s {...props} />
592
592
  React keys must be passed directly to JSX without using spread:
593
593
  let props = %s;
594
- <%s key={someKey} {...props} />`, xr, rt, Bn, rt), es[rt + xr] = !0;
594
+ <%s key={someKey} {...props} />`, jr, rt, Bn, rt), es[rt + jr] = !0;
595
595
  }
596
596
  }
597
- return h === s ? Dn(ae) : In(ae), ae;
597
+ return h === s ? Dn(ne) : In(ne), ne;
598
598
  }
599
599
  }
600
600
  function $n(h, S, T) {
@@ -604,20 +604,20 @@ React keys must be passed directly to JSX without using spread:
604
604
  return ts(h, S, T, !1);
605
605
  }
606
606
  var Un = Ln, Mn = $n;
607
- Dt.Fragment = s, Dt.jsx = Un, Dt.jsxs = Mn;
608
- })()), Dt;
607
+ $t.Fragment = s, $t.jsx = Un, $t.jsxs = Mn;
608
+ })()), $t;
609
609
  }
610
610
  var as;
611
611
  function ia() {
612
- return as || (as = 1, process.env.NODE_ENV === "production" ? Yt.exports = na() : Yt.exports = aa()), Yt.exports;
612
+ return as || (as = 1, process.env.NODE_ENV === "production" ? Qt.exports = na() : Qt.exports = aa()), Qt.exports;
613
613
  }
614
614
  var l = ia();
615
- const Tr = {
615
+ const Ar = {
616
616
  all_fields_filled: "all_fields_filled",
617
617
  fields_not_filled: "fields_not_filled",
618
618
  puja_clicked: "puja_clicked"
619
619
  };
620
- function fr(t, e) {
620
+ function mr(t, e) {
621
621
  var r = {};
622
622
  for (var s in t) Object.prototype.hasOwnProperty.call(t, s) && e.indexOf(s) < 0 && (r[s] = t[s]);
623
623
  if (t != null && typeof Object.getOwnPropertySymbols == "function")
@@ -653,30 +653,30 @@ function oa(t, e, r, s) {
653
653
  });
654
654
  }
655
655
  const la = (t) => t ? (...e) => t(...e) : (...e) => fetch(...e);
656
- class Hr extends Error {
656
+ class zr extends Error {
657
657
  constructor(e, r = "FunctionsError", s) {
658
658
  super(e), this.name = r, this.context = s;
659
659
  }
660
660
  }
661
- class ca extends Hr {
661
+ class ca extends zr {
662
662
  constructor(e) {
663
663
  super("Failed to send a request to the Edge Function", "FunctionsFetchError", e);
664
664
  }
665
665
  }
666
- class is extends Hr {
666
+ class is extends zr {
667
667
  constructor(e) {
668
668
  super("Relay Error invoking the Edge Function", "FunctionsRelayError", e);
669
669
  }
670
670
  }
671
- class os extends Hr {
671
+ class os extends zr {
672
672
  constructor(e) {
673
673
  super("Edge Function returned a non-2xx status code", "FunctionsHttpError", e);
674
674
  }
675
675
  }
676
- var Ir;
676
+ var $r;
677
677
  (function(t) {
678
678
  t.Any = "any", t.ApNortheast1 = "ap-northeast-1", t.ApNortheast2 = "ap-northeast-2", t.ApSouth1 = "ap-south-1", t.ApSoutheast1 = "ap-southeast-1", t.ApSoutheast2 = "ap-southeast-2", t.CaCentral1 = "ca-central-1", t.EuCentral1 = "eu-central-1", t.EuWest1 = "eu-west-1", t.EuWest2 = "eu-west-2", t.EuWest3 = "eu-west-3", t.SaEast1 = "sa-east-1", t.UsEast1 = "us-east-1", t.UsWest1 = "us-west-1", t.UsWest2 = "us-west-2";
679
- })(Ir || (Ir = {}));
679
+ })($r || ($r = {}));
680
680
  class ua {
681
681
  /**
682
682
  * Creates a new Functions client bound to an Edge Functions URL.
@@ -691,7 +691,7 @@ class ua {
691
691
  * })
692
692
  * ```
693
693
  */
694
- constructor(e, { headers: r = {}, customFetch: s, region: n = Ir.Any } = {}) {
694
+ constructor(e, { headers: r = {}, customFetch: s, region: n = $r.Any } = {}) {
695
695
  this.url = e, this.headers = r, this.region = n, this.fetch = la(s);
696
696
  }
697
697
  /**
@@ -1711,27 +1711,27 @@ var At = class extends fa {
1711
1711
  });
1712
1712
  }
1713
1713
  };
1714
- function Kt(t) {
1714
+ function qt(t) {
1715
1715
  "@babel/helpers - typeof";
1716
- return Kt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1716
+ return qt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1717
1717
  return typeof e;
1718
1718
  } : function(e) {
1719
1719
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1720
- }, Kt(t);
1720
+ }, qt(t);
1721
1721
  }
1722
1722
  function pa(t, e) {
1723
- if (Kt(t) != "object" || !t) return t;
1723
+ if (qt(t) != "object" || !t) return t;
1724
1724
  var r = t[Symbol.toPrimitive];
1725
1725
  if (r !== void 0) {
1726
1726
  var s = r.call(t, e);
1727
- if (Kt(s) != "object") return s;
1727
+ if (qt(s) != "object") return s;
1728
1728
  throw new TypeError("@@toPrimitive must return a primitive value.");
1729
1729
  }
1730
1730
  return (e === "string" ? String : Number)(t);
1731
1731
  }
1732
1732
  function ga(t) {
1733
1733
  var e = pa(t, "string");
1734
- return Kt(e) == "symbol" ? e : e + "";
1734
+ return qt(e) == "symbol" ? e : e + "";
1735
1735
  }
1736
1736
  function ya(t, e, r) {
1737
1737
  return (e = ga(e)) in t ? Object.defineProperty(t, e, {
@@ -1751,7 +1751,7 @@ function cs(t, e) {
1751
1751
  }
1752
1752
  return r;
1753
1753
  }
1754
- function Qt(t) {
1754
+ function Xt(t) {
1755
1755
  for (var e = 1; e < arguments.length; e++) {
1756
1756
  var r = arguments[e] != null ? arguments[e] : {};
1757
1757
  e % 2 ? cs(Object(r), !0).forEach(function(s) {
@@ -1795,11 +1795,11 @@ var va = class cn {
1795
1795
  const p = () => {
1796
1796
  clearTimeout(f), d.abort();
1797
1797
  };
1798
- return m.addEventListener("abort", p, { once: !0 }), o(c, Qt(Qt({}, u), {}, { signal: d.signal })).finally(() => {
1798
+ return m.addEventListener("abort", p, { once: !0 }), o(c, Xt(Xt({}, u), {}, { signal: d.signal })).finally(() => {
1799
1799
  clearTimeout(f), m.removeEventListener("abort", p);
1800
1800
  });
1801
1801
  }
1802
- return o(c, Qt(Qt({}, u), {}, { signal: d.signal })).finally(() => clearTimeout(f));
1802
+ return o(c, Xt(Xt({}, u), {}, { signal: d.signal })).finally(() => clearTimeout(f));
1803
1803
  } : this.fetch = o;
1804
1804
  }
1805
1805
  /**
@@ -1983,7 +1983,7 @@ Suggested solution: ${e.workaround}`), new Error(r);
1983
1983
  }
1984
1984
  }
1985
1985
  }
1986
- const wa = "2.97.0", _a = `realtime-js/${wa}`, ka = "1.0.0", un = "2.0.0", us = un, Dr = 1e4, Sa = 1e3, xa = 100;
1986
+ const wa = "2.97.0", _a = `realtime-js/${wa}`, ka = "1.0.0", un = "2.0.0", us = un, Lr = 1e4, Sa = 1e3, xa = 100;
1987
1987
  var Ze;
1988
1988
  (function(t) {
1989
1989
  t[t.connecting = 0] = "connecting", t[t.open = 1] = "open", t[t.closing = 2] = "closing", t[t.closed = 3] = "closed";
@@ -1992,14 +1992,14 @@ var oe;
1992
1992
  (function(t) {
1993
1993
  t.closed = "closed", t.errored = "errored", t.joined = "joined", t.joining = "joining", t.leaving = "leaving";
1994
1994
  })(oe || (oe = {}));
1995
- var Ue;
1995
+ var Le;
1996
1996
  (function(t) {
1997
1997
  t.close = "phx_close", t.error = "phx_error", t.join = "phx_join", t.reply = "phx_reply", t.leave = "phx_leave", t.access_token = "access_token";
1998
- })(Ue || (Ue = {}));
1999
- var $r;
1998
+ })(Le || (Le = {}));
1999
+ var Ur;
2000
2000
  (function(t) {
2001
2001
  t.websocket = "websocket";
2002
- })($r || ($r = {}));
2002
+ })(Ur || (Ur = {}));
2003
2003
  var ot;
2004
2004
  (function(t) {
2005
2005
  t.Connecting = "connecting", t.Open = "open", t.Closing = "closing", t.Closed = "closed";
@@ -2101,63 +2101,63 @@ class dn {
2101
2101
  }, this.timerCalc(this.tries + 1));
2102
2102
  }
2103
2103
  }
2104
- var Y;
2104
+ var Q;
2105
2105
  (function(t) {
2106
2106
  t.abstime = "abstime", t.bool = "bool", t.date = "date", t.daterange = "daterange", t.float4 = "float4", t.float8 = "float8", t.int2 = "int2", t.int4 = "int4", t.int4range = "int4range", t.int8 = "int8", t.int8range = "int8range", t.json = "json", t.jsonb = "jsonb", t.money = "money", t.numeric = "numeric", t.oid = "oid", t.reltime = "reltime", t.text = "text", t.time = "time", t.timestamp = "timestamp", t.timestamptz = "timestamptz", t.timetz = "timetz", t.tsrange = "tsrange", t.tstzrange = "tstzrange";
2107
- })(Y || (Y = {}));
2107
+ })(Q || (Q = {}));
2108
2108
  const ds = (t, e, r = {}) => {
2109
2109
  var s;
2110
2110
  const n = (s = r.skipTypes) !== null && s !== void 0 ? s : [];
2111
2111
  return e ? Object.keys(e).reduce((a, i) => (a[i] = ja(i, t, e, n), a), {}) : {};
2112
2112
  }, ja = (t, e, r, s) => {
2113
2113
  const n = e.find((o) => o.name === t), a = n?.type, i = r[t];
2114
- return a && !s.includes(a) ? hn(a, i) : Lr(i);
2114
+ return a && !s.includes(a) ? hn(a, i) : Mr(i);
2115
2115
  }, hn = (t, e) => {
2116
2116
  if (t.charAt(0) === "_") {
2117
2117
  const r = t.slice(1, t.length);
2118
2118
  return Ra(e, r);
2119
2119
  }
2120
2120
  switch (t) {
2121
- case Y.bool:
2121
+ case Q.bool:
2122
2122
  return Aa(e);
2123
- case Y.float4:
2124
- case Y.float8:
2125
- case Y.int2:
2126
- case Y.int4:
2127
- case Y.int8:
2128
- case Y.numeric:
2129
- case Y.oid:
2123
+ case Q.float4:
2124
+ case Q.float8:
2125
+ case Q.int2:
2126
+ case Q.int4:
2127
+ case Q.int8:
2128
+ case Q.numeric:
2129
+ case Q.oid:
2130
2130
  return Ea(e);
2131
- case Y.json:
2132
- case Y.jsonb:
2131
+ case Q.json:
2132
+ case Q.jsonb:
2133
2133
  return Pa(e);
2134
- case Y.timestamp:
2134
+ case Q.timestamp:
2135
2135
  return Ca(e);
2136
2136
  // Format to be consistent with PostgREST
2137
- case Y.abstime:
2137
+ case Q.abstime:
2138
2138
  // To allow users to cast it based on Timezone
2139
- case Y.date:
2139
+ case Q.date:
2140
2140
  // To allow users to cast it based on Timezone
2141
- case Y.daterange:
2142
- case Y.int4range:
2143
- case Y.int8range:
2144
- case Y.money:
2145
- case Y.reltime:
2141
+ case Q.daterange:
2142
+ case Q.int4range:
2143
+ case Q.int8range:
2144
+ case Q.money:
2145
+ case Q.reltime:
2146
2146
  // To allow users to cast it based on Timezone
2147
- case Y.text:
2148
- case Y.time:
2147
+ case Q.text:
2148
+ case Q.time:
2149
2149
  // To allow users to cast it based on Timezone
2150
- case Y.timestamptz:
2150
+ case Q.timestamptz:
2151
2151
  // To allow users to cast it based on Timezone
2152
- case Y.timetz:
2152
+ case Q.timetz:
2153
2153
  // To allow users to cast it based on Timezone
2154
- case Y.tsrange:
2155
- case Y.tstzrange:
2156
- return Lr(e);
2154
+ case Q.tsrange:
2155
+ case Q.tstzrange:
2156
+ return Mr(e);
2157
2157
  default:
2158
- return Lr(e);
2158
+ return Mr(e);
2159
2159
  }
2160
- }, Lr = (t) => t, Aa = (t) => {
2160
+ }, Mr = (t) => t, Aa = (t) => {
2161
2161
  switch (t) {
2162
2162
  case "t":
2163
2163
  return !0;
@@ -2200,7 +2200,7 @@ const ds = (t, e, r = {}) => {
2200
2200
  const e = new URL(t);
2201
2201
  return e.protocol = e.protocol.replace(/^ws/i, "http"), e.pathname = e.pathname.replace(/\/+$/, "").replace(/\/socket\/websocket$/i, "").replace(/\/socket$/i, "").replace(/\/websocket$/i, ""), e.pathname === "" || e.pathname === "/" ? e.pathname = "/api/broadcast" : e.pathname = e.pathname + "/api/broadcast", e.href;
2202
2202
  };
2203
- class jr {
2203
+ class Er {
2204
2204
  /**
2205
2205
  * Initializes the Push
2206
2206
  *
@@ -2209,7 +2209,7 @@ class jr {
2209
2209
  * @param payload The payload, for example `{user_id: 123}`
2210
2210
  * @param timeout The push timeout in milliseconds
2211
2211
  */
2212
- constructor(e, r, s = {}, n = Dr) {
2212
+ constructor(e, r, s = {}, n = Lr) {
2213
2213
  this.channel = e, this.event = r, this.payload = s, this.timeout = n, this.sent = !1, this.timeoutTimer = void 0, this.ref = "", this.receivedResp = null, this.recHooks = [], this.refEvent = null;
2214
2214
  }
2215
2215
  resend(e) {
@@ -2265,7 +2265,7 @@ var hs;
2265
2265
  (function(t) {
2266
2266
  t.SYNC = "sync", t.JOIN = "join", t.LEAVE = "leave";
2267
2267
  })(hs || (hs = {}));
2268
- class Mt {
2268
+ class Bt {
2269
2269
  /**
2270
2270
  * Creates a Presence helper that keeps the local presence state in sync with the server.
2271
2271
  *
@@ -2296,12 +2296,12 @@ class Mt {
2296
2296
  };
2297
2297
  this.channel._on(s.state, {}, (n) => {
2298
2298
  const { onJoin: a, onLeave: i, onSync: o } = this.caller;
2299
- this.joinRef = this.channel._joinRef(), this.state = Mt.syncState(this.state, n, a, i), this.pendingDiffs.forEach((c) => {
2300
- this.state = Mt.syncDiff(this.state, c, a, i);
2299
+ this.joinRef = this.channel._joinRef(), this.state = Bt.syncState(this.state, n, a, i), this.pendingDiffs.forEach((c) => {
2300
+ this.state = Bt.syncDiff(this.state, c, a, i);
2301
2301
  }), this.pendingDiffs = [], o();
2302
2302
  }), this.channel._on(s.diff, {}, (n) => {
2303
2303
  const { onJoin: a, onLeave: i, onSync: o } = this.caller;
2304
- this.inPendingSyncState() ? this.pendingDiffs.push(n) : (this.state = Mt.syncDiff(this.state, n, a, i), o());
2304
+ this.inPendingSyncState() ? this.pendingDiffs.push(n) : (this.state = Bt.syncDiff(this.state, n, a, i), o());
2305
2305
  }), this.onJoin((n, a, i) => {
2306
2306
  this.channel._trigger("presence", {
2307
2307
  event: "join",
@@ -2434,10 +2434,10 @@ var fs;
2434
2434
  (function(t) {
2435
2435
  t.ALL = "*", t.INSERT = "INSERT", t.UPDATE = "UPDATE", t.DELETE = "DELETE";
2436
2436
  })(fs || (fs = {}));
2437
- var Bt;
2437
+ var Ft;
2438
2438
  (function(t) {
2439
2439
  t.BROADCAST = "broadcast", t.PRESENCE = "presence", t.POSTGRES_CHANGES = "postgres_changes", t.SYSTEM = "system";
2440
- })(Bt || (Bt = {}));
2440
+ })(Ft || (Ft = {}));
2441
2441
  var He;
2442
2442
  (function(t) {
2443
2443
  t.SUBSCRIBED = "SUBSCRIBED", t.TIMED_OUT = "TIMED_OUT", t.CLOSED = "CLOSED", t.CHANNEL_ERROR = "CHANNEL_ERROR";
@@ -2465,7 +2465,7 @@ class Rt {
2465
2465
  broadcast: { ack: !1, self: !1 },
2466
2466
  presence: { key: "", enabled: !1 },
2467
2467
  private: !1
2468
- }, r.config), this.timeout = this.socket.timeout, this.joinPush = new jr(this, Ue.join, this.params, this.timeout), this.rejoinTimer = new dn(() => this._rejoinUntilConnected(), this.socket.reconnectAfterMs), this.joinPush.receive("ok", () => {
2468
+ }, r.config), this.timeout = this.socket.timeout, this.joinPush = new Er(this, Le.join, this.params, this.timeout), this.rejoinTimer = new dn(() => this._rejoinUntilConnected(), this.socket.reconnectAfterMs), this.joinPush.receive("ok", () => {
2469
2469
  this.state = oe.joined, this.rejoinTimer.reset(), this.pushBuffer.forEach((i) => i.send()), this.pushBuffer = [];
2470
2470
  }), this._onClose(() => {
2471
2471
  this.rejoinTimer.reset(), this.socket.log("channel", `close ${this.topic} ${this._joinRef()}`), this.state = oe.closed, this.socket._remove(this);
@@ -2475,16 +2475,16 @@ class Rt {
2475
2475
  this._isJoining() && (this.socket.log("channel", `timeout ${this.topic}`, this.joinPush.timeout), this.state = oe.errored, this.rejoinTimer.scheduleTimeout());
2476
2476
  }), this.joinPush.receive("error", (i) => {
2477
2477
  this._isLeaving() || this._isClosed() || (this.socket.log("channel", `error ${this.topic}`, i), this.state = oe.errored, this.rejoinTimer.scheduleTimeout());
2478
- }), this._on(Ue.reply, {}, (i, o) => {
2478
+ }), this._on(Le.reply, {}, (i, o) => {
2479
2479
  this._trigger(this._replyEventName(o), i);
2480
- }), this.presence = new Mt(this), this.broadcastEndpointURL = fn(this.socket.endPoint), this.private = this.params.config.private || !1, !this.private && (!((a = (n = this.params.config) === null || n === void 0 ? void 0 : n.broadcast) === null || a === void 0) && a.replay))
2480
+ }), this.presence = new Bt(this), this.broadcastEndpointURL = fn(this.socket.endPoint), this.private = this.params.config.private || !1, !this.private && (!((a = (n = this.params.config) === null || n === void 0 ? void 0 : n.broadcast) === null || a === void 0) && a.replay))
2481
2481
  throw `tried to use replay on public channel '${this.topic}'. It must be a private channel.`;
2482
2482
  }
2483
2483
  /** Subscribe registers your client with the server */
2484
2484
  subscribe(e, r = this.timeout) {
2485
2485
  var s, n, a;
2486
2486
  if (this.socket.isConnected() || this.socket.connect(), this.state == oe.closed) {
2487
- const { config: { broadcast: i, presence: o, private: c } } = this.params, u = (n = (s = this.bindings.postgres_changes) === null || s === void 0 ? void 0 : s.map((p) => p.filter)) !== null && n !== void 0 ? n : [], d = !!this.bindings[Bt.PRESENCE] && this.bindings[Bt.PRESENCE].length > 0 || ((a = this.params.config.presence) === null || a === void 0 ? void 0 : a.enabled) === !0, f = {}, m = {
2487
+ const { config: { broadcast: i, presence: o, private: c } } = this.params, u = (n = (s = this.bindings.postgres_changes) === null || s === void 0 ? void 0 : s.map((p) => p.filter)) !== null && n !== void 0 ? n : [], d = !!this.bindings[Ft.PRESENCE] && this.bindings[Ft.PRESENCE].length > 0 || ((a = this.params.config.presence) === null || a === void 0 ? void 0 : a.enabled) === !0, f = {}, m = {
2488
2488
  broadcast: i,
2489
2489
  presence: Object.assign(Object.assign({}, o), { enabled: d }),
2490
2490
  postgres_changes: u,
@@ -2547,7 +2547,7 @@ class Rt {
2547
2547
  }, e);
2548
2548
  }
2549
2549
  on(e, r, s) {
2550
- return this.state === oe.joined && e === Bt.PRESENCE && (this.socket.log("channel", `resubscribe to ${this.topic} due to change in presence callbacks on joined channel`), this.unsubscribe().then(async () => await this.subscribe())), this._on(e, r, s);
2550
+ return this.state === oe.joined && e === Ft.PRESENCE && (this.socket.log("channel", `resubscribe to ${this.topic} due to change in presence callbacks on joined channel`), this.unsubscribe().then(async () => await this.subscribe())), this._on(e, r, s);
2551
2551
  }
2552
2552
  /**
2553
2553
  * Sends a broadcast message explicitly via REST API.
@@ -2657,12 +2657,12 @@ class Rt {
2657
2657
  unsubscribe(e = this.timeout) {
2658
2658
  this.state = oe.leaving;
2659
2659
  const r = () => {
2660
- this.socket.log("channel", `leave ${this.topic}`), this._trigger(Ue.close, "leave", this._joinRef());
2660
+ this.socket.log("channel", `leave ${this.topic}`), this._trigger(Le.close, "leave", this._joinRef());
2661
2661
  };
2662
2662
  this.joinPush.destroy();
2663
2663
  let s = null;
2664
2664
  return new Promise((n) => {
2665
- s = new jr(this, Ue.leave, {}, e), s.receive("ok", () => {
2665
+ s = new Er(this, Le.leave, {}, e), s.receive("ok", () => {
2666
2666
  r(), n("ok");
2667
2667
  }).receive("timeout", () => {
2668
2668
  r(), n("timed out");
@@ -2690,7 +2690,7 @@ class Rt {
2690
2690
  _push(e, r, s = this.timeout) {
2691
2691
  if (!this.joinedOnce)
2692
2692
  throw `tried to push '${e}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;
2693
- let n = new jr(this, e, r, s);
2693
+ let n = new Er(this, e, r, s);
2694
2694
  return this._canPush() ? n.send() : this._addToPushBuffer(n), n;
2695
2695
  }
2696
2696
  /** @internal */
@@ -2722,7 +2722,7 @@ class Rt {
2722
2722
  /** @internal */
2723
2723
  _trigger(e, r, s) {
2724
2724
  var n, a;
2725
- const i = e.toLocaleLowerCase(), { close: o, error: c, leave: u, join: d } = Ue;
2725
+ const i = e.toLocaleLowerCase(), { close: o, error: c, leave: u, join: d } = Le;
2726
2726
  if (s && [o, c, u, d].indexOf(i) >= 0 && s !== this._joinRef())
2727
2727
  return;
2728
2728
  let m = this._onMessage(i, r, s);
@@ -2823,7 +2823,7 @@ class Rt {
2823
2823
  * @internal
2824
2824
  */
2825
2825
  _onClose(e) {
2826
- this._on(Ue.close, {}, e);
2826
+ this._on(Le.close, {}, e);
2827
2827
  }
2828
2828
  /**
2829
2829
  * Registers a callback that will be executed when the channel encounteres an error.
@@ -2831,7 +2831,7 @@ class Rt {
2831
2831
  * @internal
2832
2832
  */
2833
2833
  _onError(e) {
2834
- this._on(Ue.error, {}, (r) => e(r));
2834
+ this._on(Le.error, {}, (r) => e(r));
2835
2835
  }
2836
2836
  /**
2837
2837
  * Returns `true` if the socket is connected and the channel has been joined.
@@ -2854,8 +2854,8 @@ class Rt {
2854
2854
  return (e.type === "INSERT" || e.type === "UPDATE") && (r.new = ds(e.columns, e.record)), (e.type === "UPDATE" || e.type === "DELETE") && (r.old = ds(e.columns, e.old_record)), r;
2855
2855
  }
2856
2856
  }
2857
- const Ar = () => {
2858
- }, Xt = {
2857
+ const Pr = () => {
2858
+ }, Zt = {
2859
2859
  HEARTBEAT_INTERVAL: 25e3,
2860
2860
  RECONNECT_DELAY: 10,
2861
2861
  HEARTBEAT_TIMEOUT_FALLBACK: 100
@@ -2897,14 +2897,14 @@ class Da {
2897
2897
  */
2898
2898
  constructor(e, r) {
2899
2899
  var s;
2900
- if (this.accessTokenValue = null, this.apiKey = null, this._manuallySetToken = !1, this.channels = new Array(), this.endPoint = "", this.httpEndpoint = "", this.headers = {}, this.params = {}, this.timeout = Dr, this.transport = null, this.heartbeatIntervalMs = Xt.HEARTBEAT_INTERVAL, this.heartbeatTimer = void 0, this.pendingHeartbeatRef = null, this.heartbeatCallback = Ar, this.ref = 0, this.reconnectTimer = null, this.vsn = us, this.logger = Ar, this.conn = null, this.sendBuffer = [], this.serializer = new Ta(), this.stateChangeCallbacks = {
2900
+ if (this.accessTokenValue = null, this.apiKey = null, this._manuallySetToken = !1, this.channels = new Array(), this.endPoint = "", this.httpEndpoint = "", this.headers = {}, this.params = {}, this.timeout = Lr, this.transport = null, this.heartbeatIntervalMs = Zt.HEARTBEAT_INTERVAL, this.heartbeatTimer = void 0, this.pendingHeartbeatRef = null, this.heartbeatCallback = Pr, this.ref = 0, this.reconnectTimer = null, this.vsn = us, this.logger = Pr, this.conn = null, this.sendBuffer = [], this.serializer = new Ta(), this.stateChangeCallbacks = {
2901
2901
  open: [],
2902
2902
  close: [],
2903
2903
  error: [],
2904
2904
  message: []
2905
2905
  }, this.accessToken = null, this._connectionState = "disconnected", this._wasManualDisconnect = !1, this._authPromise = null, this._heartbeatSentAt = null, this._resolveFetch = (n) => n ? (...a) => n(...a) : (...a) => fetch(...a), !(!((s = r?.params) === null || s === void 0) && s.apikey))
2906
2906
  throw new Error("API key is required to connect to Realtime");
2907
- this.apiKey = r.params.apikey, this.endPoint = `${e}/${$r.websocket}`, this.httpEndpoint = fn(e), this._initializeOptions(r), this._setupReconnectionTimer(), this.fetch = this._resolveFetch(r?.fetch);
2907
+ this.apiKey = r.params.apikey, this.endPoint = `${e}/${Ur.websocket}`, this.httpEndpoint = fn(e), this._initializeOptions(r), this._setupReconnectionTimer(), this.fetch = this._resolveFetch(r?.fetch);
2908
2908
  }
2909
2909
  /**
2910
2910
  * Connects the socket, unless already connected.
@@ -3113,7 +3113,7 @@ Option 2: Install and provide the "ws" package:
3113
3113
  this._wasManualDisconnect = !1, (e = this.conn) === null || e === void 0 || e.close(Sa, "heartbeat timeout"), setTimeout(() => {
3114
3114
  var r;
3115
3115
  this.isConnected() || (r = this.reconnectTimer) === null || r === void 0 || r.scheduleTimeout();
3116
- }, Xt.HEARTBEAT_TIMEOUT_FALLBACK);
3116
+ }, Zt.HEARTBEAT_TIMEOUT_FALLBACK);
3117
3117
  return;
3118
3118
  }
3119
3119
  this._heartbeatSentAt = Date.now(), this.pendingHeartbeatRef = this._makeRef(), this.push({
@@ -3272,7 +3272,7 @@ Option 2: Install and provide the "ws" package:
3272
3272
  }
3273
3273
  /** @internal */
3274
3274
  _triggerChanError() {
3275
- this.channels.forEach((e) => e._trigger(Ue.error));
3275
+ this.channels.forEach((e) => e._trigger(Le.error));
3276
3276
  }
3277
3277
  /** @internal */
3278
3278
  _appendParams(e, r) {
@@ -3319,7 +3319,7 @@ Option 2: Install and provide the "ws" package:
3319
3319
  access_token: r,
3320
3320
  version: _a
3321
3321
  };
3322
- r && n.updateJoinPayload(a), n.joinedOnce && n._isJoined() && n._push(Ue.access_token, {
3322
+ r && n.updateJoinPayload(a), n.joinedOnce && n._isJoined() && n._push(Le.access_token, {
3323
3323
  access_token: r
3324
3324
  });
3325
3325
  }));
@@ -3365,7 +3365,7 @@ Option 2: Install and provide the "ws" package:
3365
3365
  this.reconnectTimer = new dn(async () => {
3366
3366
  setTimeout(async () => {
3367
3367
  await this._waitForAuthIfNeeded(), this.isConnected() || this.connect();
3368
- }, Xt.RECONNECT_DELAY);
3368
+ }, Zt.RECONNECT_DELAY);
3369
3369
  }, this.reconnectAfterMs);
3370
3370
  }
3371
3371
  /**
@@ -3374,7 +3374,7 @@ Option 2: Install and provide the "ws" package:
3374
3374
  */
3375
3375
  _initializeOptions(e) {
3376
3376
  var r, s, n, a, i, o, c, u, d, f, m, p;
3377
- switch (this.transport = (r = e?.transport) !== null && r !== void 0 ? r : null, this.timeout = (s = e?.timeout) !== null && s !== void 0 ? s : Dr, this.heartbeatIntervalMs = (n = e?.heartbeatIntervalMs) !== null && n !== void 0 ? n : Xt.HEARTBEAT_INTERVAL, this.worker = (a = e?.worker) !== null && a !== void 0 ? a : !1, this.accessToken = (i = e?.accessToken) !== null && i !== void 0 ? i : null, this.heartbeatCallback = (o = e?.heartbeatCallback) !== null && o !== void 0 ? o : Ar, this.vsn = (c = e?.vsn) !== null && c !== void 0 ? c : us, e?.params && (this.params = e.params), e?.logger && (this.logger = e.logger), (e?.logLevel || e?.log_level) && (this.logLevel = e.logLevel || e.log_level, this.params = Object.assign(Object.assign({}, this.params), { log_level: this.logLevel })), this.reconnectAfterMs = (u = e?.reconnectAfterMs) !== null && u !== void 0 ? u : ((g) => Oa[g - 1] || Na), this.vsn) {
3377
+ switch (this.transport = (r = e?.transport) !== null && r !== void 0 ? r : null, this.timeout = (s = e?.timeout) !== null && s !== void 0 ? s : Lr, this.heartbeatIntervalMs = (n = e?.heartbeatIntervalMs) !== null && n !== void 0 ? n : Zt.HEARTBEAT_INTERVAL, this.worker = (a = e?.worker) !== null && a !== void 0 ? a : !1, this.accessToken = (i = e?.accessToken) !== null && i !== void 0 ? i : null, this.heartbeatCallback = (o = e?.heartbeatCallback) !== null && o !== void 0 ? o : Pr, this.vsn = (c = e?.vsn) !== null && c !== void 0 ? c : us, e?.params && (this.params = e.params), e?.logger && (this.logger = e.logger), (e?.logLevel || e?.log_level) && (this.logLevel = e.logLevel || e.log_level, this.params = Object.assign(Object.assign({}, this.params), { log_level: this.logLevel })), this.reconnectAfterMs = (u = e?.reconnectAfterMs) !== null && u !== void 0 ? u : ((g) => Oa[g - 1] || Na), this.vsn) {
3378
3378
  case ka:
3379
3379
  this.encode = (d = e?.encode) !== null && d !== void 0 ? d : ((g, y) => y(JSON.stringify(g))), this.decode = (f = e?.decode) !== null && f !== void 0 ? f : ((g, y) => y(JSON.parse(g)));
3380
3380
  break;
@@ -3391,7 +3391,7 @@ Option 2: Install and provide the "ws" package:
3391
3391
  }
3392
3392
  }
3393
3393
  }
3394
- var qt = class extends Error {
3394
+ var Wt = class extends Error {
3395
3395
  constructor(t, e) {
3396
3396
  super(t), this.name = "IcebergError", this.status = e.status, this.icebergType = e.icebergType, this.icebergCode = e.icebergCode, this.details = e.details, this.isCommitStateUnknown = e.icebergType === "CommitStateUnknownException" || [500, 502, 504].includes(e.status) && e.icebergType?.includes("CommitState") === !0;
3397
3397
  }
@@ -3445,7 +3445,7 @@ function Ua(t) {
3445
3445
  }), d = await u.text(), f = (u.headers.get("content-type") || "").includes("application/json"), m = f && d ? JSON.parse(d) : d;
3446
3446
  if (!u.ok) {
3447
3447
  const p = f ? m : void 0, g = p?.error;
3448
- throw new qt(
3448
+ throw new Wt(
3449
3449
  g?.message ?? `Request failed with status ${u.status}`,
3450
3450
  {
3451
3451
  status: u.status,
@@ -3459,7 +3459,7 @@ function Ua(t) {
3459
3459
  }
3460
3460
  };
3461
3461
  }
3462
- function Zt(t) {
3462
+ function er(t) {
3463
3463
  return t.join("");
3464
3464
  }
3465
3465
  var Ma = class {
@@ -3467,7 +3467,7 @@ var Ma = class {
3467
3467
  this.client = t, this.prefix = e;
3468
3468
  }
3469
3469
  async listNamespaces(t) {
3470
- const e = t ? { parent: Zt(t.namespace) } : void 0;
3470
+ const e = t ? { parent: er(t.namespace) } : void 0;
3471
3471
  return (await this.client.request({
3472
3472
  method: "GET",
3473
3473
  path: `${this.prefix}/namespaces`,
@@ -3488,14 +3488,14 @@ var Ma = class {
3488
3488
  async dropNamespace(t) {
3489
3489
  await this.client.request({
3490
3490
  method: "DELETE",
3491
- path: `${this.prefix}/namespaces/${Zt(t.namespace)}`
3491
+ path: `${this.prefix}/namespaces/${er(t.namespace)}`
3492
3492
  });
3493
3493
  }
3494
3494
  async loadNamespaceMetadata(t) {
3495
3495
  return {
3496
3496
  properties: (await this.client.request({
3497
3497
  method: "GET",
3498
- path: `${this.prefix}/namespaces/${Zt(t.namespace)}`
3498
+ path: `${this.prefix}/namespaces/${er(t.namespace)}`
3499
3499
  })).data.properties
3500
3500
  };
3501
3501
  }
@@ -3503,10 +3503,10 @@ var Ma = class {
3503
3503
  try {
3504
3504
  return await this.client.request({
3505
3505
  method: "HEAD",
3506
- path: `${this.prefix}/namespaces/${Zt(t.namespace)}`
3506
+ path: `${this.prefix}/namespaces/${er(t.namespace)}`
3507
3507
  }), !0;
3508
3508
  } catch (e) {
3509
- if (e instanceof qt && e.status === 404)
3509
+ if (e instanceof Wt && e.status === 404)
3510
3510
  return !1;
3511
3511
  throw e;
3512
3512
  }
@@ -3515,7 +3515,7 @@ var Ma = class {
3515
3515
  try {
3516
3516
  return await this.createNamespace(t, e);
3517
3517
  } catch (r) {
3518
- if (r instanceof qt && r.status === 409)
3518
+ if (r instanceof Wt && r.status === 409)
3519
3519
  return;
3520
3520
  throw r;
3521
3521
  }
@@ -3579,7 +3579,7 @@ var Ba = class {
3579
3579
  headers: e
3580
3580
  }), !0;
3581
3581
  } catch (r) {
3582
- if (r instanceof qt && r.status === 404)
3582
+ if (r instanceof Wt && r.status === 404)
3583
3583
  return !1;
3584
3584
  throw r;
3585
3585
  }
@@ -3588,7 +3588,7 @@ var Ba = class {
3588
3588
  try {
3589
3589
  return await this.createTable(t, e);
3590
3590
  } catch (r) {
3591
- if (r instanceof qt && r.status === 409)
3591
+ if (r instanceof Wt && r.status === 409)
3592
3592
  return await this.loadTable({ namespace: t.namespace, name: e.name });
3593
3593
  throw r;
3594
3594
  }
@@ -3864,15 +3864,15 @@ var Ba = class {
3864
3864
  async createTableIfNotExists(t, e) {
3865
3865
  return this.tableOps.createTableIfNotExists(t, e);
3866
3866
  }
3867
- }, mr = class extends Error {
3867
+ }, pr = class extends Error {
3868
3868
  constructor(t, e = "storage", r, s) {
3869
3869
  super(t), this.__isStorageError = !0, this.namespace = e, this.name = e === "vectors" ? "StorageVectorsError" : "StorageError", this.status = r, this.statusCode = s;
3870
3870
  }
3871
3871
  };
3872
- function pr(t) {
3872
+ function gr(t) {
3873
3873
  return typeof t == "object" && t !== null && "__isStorageError" in t;
3874
3874
  }
3875
- var er = class extends mr {
3875
+ var tr = class extends pr {
3876
3876
  constructor(t, e, r, s = "storage") {
3877
3877
  super(t, s, e, r), this.name = s === "vectors" ? "StorageVectorsApiError" : "StorageApiError", this.status = e, this.statusCode = r;
3878
3878
  }
@@ -3884,7 +3884,7 @@ var er = class extends mr {
3884
3884
  statusCode: this.statusCode
3885
3885
  };
3886
3886
  }
3887
- }, mn = class extends mr {
3887
+ }, mn = class extends pr {
3888
3888
  constructor(t, e, r = "storage") {
3889
3889
  super(t, r), this.name = r === "vectors" ? "StorageVectorsUnknownError" : "StorageUnknownError", this.originalError = e;
3890
3890
  }
@@ -3893,36 +3893,36 @@ const Ka = (t) => t ? (...e) => t(...e) : (...e) => fetch(...e), qa = (t) => {
3893
3893
  if (typeof t != "object" || t === null) return !1;
3894
3894
  const e = Object.getPrototypeOf(t);
3895
3895
  return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
3896
- }, Ur = (t) => {
3897
- if (Array.isArray(t)) return t.map((r) => Ur(r));
3896
+ }, Br = (t) => {
3897
+ if (Array.isArray(t)) return t.map((r) => Br(r));
3898
3898
  if (typeof t == "function" || t !== Object(t)) return t;
3899
3899
  const e = {};
3900
3900
  return Object.entries(t).forEach(([r, s]) => {
3901
3901
  const n = r.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_]/g, ""));
3902
- e[n] = Ur(s);
3902
+ e[n] = Br(s);
3903
3903
  }), e;
3904
3904
  }, Wa = (t) => !t || typeof t != "string" || t.length === 0 || t.length > 100 || t.trim() !== t || t.includes("/") || t.includes("\\") ? !1 : /^[\w!.\*'() &$@=;:+,?-]+$/.test(t);
3905
- function Wt(t) {
3905
+ function Ht(t) {
3906
3906
  "@babel/helpers - typeof";
3907
- return Wt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
3907
+ return Ht = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
3908
3908
  return typeof e;
3909
3909
  } : function(e) {
3910
3910
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
3911
- }, Wt(t);
3911
+ }, Ht(t);
3912
3912
  }
3913
3913
  function Ha(t, e) {
3914
- if (Wt(t) != "object" || !t) return t;
3914
+ if (Ht(t) != "object" || !t) return t;
3915
3915
  var r = t[Symbol.toPrimitive];
3916
3916
  if (r !== void 0) {
3917
3917
  var s = r.call(t, e);
3918
- if (Wt(s) != "object") return s;
3918
+ if (Ht(s) != "object") return s;
3919
3919
  throw new TypeError("@@toPrimitive must return a primitive value.");
3920
3920
  }
3921
3921
  return (e === "string" ? String : Number)(t);
3922
3922
  }
3923
3923
  function Ga(t) {
3924
3924
  var e = Ha(t, "string");
3925
- return Wt(e) == "symbol" ? e : e + "";
3925
+ return Ht(e) == "symbol" ? e : e + "";
3926
3926
  }
3927
3927
  function za(t, e, r) {
3928
3928
  return (e = Ga(e)) in t ? Object.defineProperty(t, e, {
@@ -3942,7 +3942,7 @@ function ms(t, e) {
3942
3942
  }
3943
3943
  return r;
3944
3944
  }
3945
- function P(t) {
3945
+ function R(t) {
3946
3946
  for (var e = 1; e < arguments.length; e++) {
3947
3947
  var r = arguments[e] != null ? arguments[e] : {};
3948
3948
  e % 2 ? ms(Object(r), !0).forEach(function(s) {
@@ -3961,19 +3961,19 @@ const ps = (t) => {
3961
3961
  const n = t, a = n.status || 500;
3962
3962
  if (typeof n.json == "function") n.json().then((i) => {
3963
3963
  const o = i?.statusCode || i?.code || a + "";
3964
- e(new er(ps(i), a, o, s));
3964
+ e(new tr(ps(i), a, o, s));
3965
3965
  }).catch(() => {
3966
3966
  if (s === "vectors") {
3967
3967
  const i = a + "";
3968
- e(new er(n.statusText || `HTTP ${a} error`, a, i, s));
3968
+ e(new tr(n.statusText || `HTTP ${a} error`, a, i, s));
3969
3969
  } else {
3970
3970
  const i = a + "";
3971
- e(new er(n.statusText || `HTTP ${a} error`, a, i, s));
3971
+ e(new tr(n.statusText || `HTTP ${a} error`, a, i, s));
3972
3972
  }
3973
3973
  });
3974
3974
  else {
3975
3975
  const i = a + "";
3976
- e(new er(n.statusText || `HTTP ${a} error`, a, i, s));
3976
+ e(new tr(n.statusText || `HTTP ${a} error`, a, i, s));
3977
3977
  }
3978
3978
  } else e(new mn(ps(t), t, s));
3979
3979
  }, Ja = (t, e, r, s) => {
@@ -3981,9 +3981,9 @@ const ps = (t) => {
3981
3981
  method: t,
3982
3982
  headers: e?.headers || {}
3983
3983
  };
3984
- return t === "GET" || t === "HEAD" || !s ? P(P({}, n), r) : (qa(s) ? (n.headers = P({ "Content-Type": "application/json" }, e?.headers), n.body = JSON.stringify(s)) : n.body = s, e?.duplex && (n.duplex = e.duplex), P(P({}, n), r));
3984
+ return t === "GET" || t === "HEAD" || !s ? R(R({}, n), r) : (qa(s) ? (n.headers = R({ "Content-Type": "application/json" }, e?.headers), n.body = JSON.stringify(s)) : n.body = s, e?.duplex && (n.duplex = e.duplex), R(R({}, n), r));
3985
3985
  };
3986
- async function $t(t, e, r, s, n, a, i) {
3986
+ async function Lt(t, e, r, s, n, a, i) {
3987
3987
  return new Promise((o, c) => {
3988
3988
  t(r, Ja(e, s, n, a)).then((u) => {
3989
3989
  if (!u.ok) throw u;
@@ -3999,14 +3999,14 @@ async function $t(t, e, r, s, n, a, i) {
3999
3999
  }
4000
4000
  function pn(t = "storage") {
4001
4001
  return {
4002
- get: async (e, r, s, n) => $t(e, "GET", r, s, n, void 0, t),
4003
- post: async (e, r, s, n, a) => $t(e, "POST", r, n, a, s, t),
4004
- put: async (e, r, s, n, a) => $t(e, "PUT", r, n, a, s, t),
4005
- head: async (e, r, s, n) => $t(e, "HEAD", r, P(P({}, s), {}, { noResolveJson: !0 }), n, void 0, t),
4006
- remove: async (e, r, s, n, a) => $t(e, "DELETE", r, n, a, s, t)
4002
+ get: async (e, r, s, n) => Lt(e, "GET", r, s, n, void 0, t),
4003
+ post: async (e, r, s, n, a) => Lt(e, "POST", r, n, a, s, t),
4004
+ put: async (e, r, s, n, a) => Lt(e, "PUT", r, n, a, s, t),
4005
+ head: async (e, r, s, n) => Lt(e, "HEAD", r, R(R({}, s), {}, { noResolveJson: !0 }), n, void 0, t),
4006
+ remove: async (e, r, s, n, a) => Lt(e, "DELETE", r, n, a, s, t)
4007
4007
  };
4008
4008
  }
4009
- const Ya = pn("storage"), { get: Ht, post: Le, put: Mr, head: Qa, remove: Gr } = Ya, Te = pn("vectors");
4009
+ const Ya = pn("storage"), { get: Gt, post: $e, put: Fr, head: Qa, remove: Vr } = Ya, xe = pn("vectors");
4010
4010
  var Ot = class {
4011
4011
  /**
4012
4012
  * Creates a new BaseApiClient instance
@@ -4036,7 +4036,7 @@ var Ot = class {
4036
4036
  * @returns this - For method chaining
4037
4037
  */
4038
4038
  setHeader(t, e) {
4039
- return this.headers = P(P({}, this.headers), {}, { [t]: e }), this;
4039
+ return this.headers = R(R({}, this.headers), {}, { [t]: e }), this;
4040
4040
  }
4041
4041
  /**
4042
4042
  * Handles API operation with standardized error handling
@@ -4072,7 +4072,7 @@ var Ot = class {
4072
4072
  };
4073
4073
  } catch (r) {
4074
4074
  if (e.shouldThrowOnError) throw r;
4075
- if (pr(r)) return {
4075
+ if (gr(r)) return {
4076
4076
  data: null,
4077
4077
  error: r
4078
4078
  };
@@ -4095,7 +4095,7 @@ var Ot = class {
4095
4095
  };
4096
4096
  } catch (e) {
4097
4097
  if (t.shouldThrowOnError) throw e;
4098
- if (pr(e)) return {
4098
+ if (gr(e)) return {
4099
4099
  data: null,
4100
4100
  error: e
4101
4101
  };
@@ -4133,7 +4133,7 @@ var Za = class {
4133
4133
  };
4134
4134
  } catch (e) {
4135
4135
  if (t.shouldThrowOnError) throw e;
4136
- if (pr(e)) return {
4136
+ if (gr(e)) return {
4137
4137
  data: null,
4138
4138
  error: e
4139
4139
  };
@@ -4168,11 +4168,11 @@ var ti = class extends Ot {
4168
4168
  var n = this;
4169
4169
  return n.handleOperation(async () => {
4170
4170
  let a;
4171
- const i = P(P({}, gs), s);
4172
- let o = P(P({}, n.headers), t === "POST" && { "x-upsert": String(i.upsert) });
4171
+ const i = R(R({}, gs), s);
4172
+ let o = R(R({}, n.headers), t === "POST" && { "x-upsert": String(i.upsert) });
4173
4173
  const c = i.metadata;
4174
- typeof Blob < "u" && r instanceof Blob ? (a = new FormData(), a.append("cacheControl", i.cacheControl), c && a.append("metadata", n.encodeMetadata(c)), a.append("", r)) : typeof FormData < "u" && r instanceof FormData ? (a = r, a.has("cacheControl") || a.append("cacheControl", i.cacheControl), c && !a.has("metadata") && a.append("metadata", n.encodeMetadata(c))) : (a = r, o["cache-control"] = `max-age=${i.cacheControl}`, o["content-type"] = i.contentType, c && (o["x-metadata"] = n.toBase64(n.encodeMetadata(c))), (typeof ReadableStream < "u" && a instanceof ReadableStream || a && typeof a == "object" && "pipe" in a && typeof a.pipe == "function") && !i.duplex && (i.duplex = "half")), s?.headers && (o = P(P({}, o), s.headers));
4175
- const u = n._removeEmptyFolders(e), d = n._getFinalPath(u), f = await (t == "PUT" ? Mr : Le)(n.fetch, `${n.url}/object/${d}`, a, P({ headers: o }, i?.duplex ? { duplex: i.duplex } : {}));
4174
+ typeof Blob < "u" && r instanceof Blob ? (a = new FormData(), a.append("cacheControl", i.cacheControl), c && a.append("metadata", n.encodeMetadata(c)), a.append("", r)) : typeof FormData < "u" && r instanceof FormData ? (a = r, a.has("cacheControl") || a.append("cacheControl", i.cacheControl), c && !a.has("metadata") && a.append("metadata", n.encodeMetadata(c))) : (a = r, o["cache-control"] = `max-age=${i.cacheControl}`, o["content-type"] = i.contentType, c && (o["x-metadata"] = n.toBase64(n.encodeMetadata(c))), (typeof ReadableStream < "u" && a instanceof ReadableStream || a && typeof a == "object" && "pipe" in a && typeof a.pipe == "function") && !i.duplex && (i.duplex = "half")), s?.headers && (o = R(R({}, o), s.headers));
4175
+ const u = n._removeEmptyFolders(e), d = n._getFinalPath(u), f = await (t == "PUT" ? Fr : $e)(n.fetch, `${n.url}/object/${d}`, a, R({ headers: o }, i?.duplex ? { duplex: i.duplex } : {}));
4176
4176
  return {
4177
4177
  path: u,
4178
4178
  id: f.Id,
@@ -4263,10 +4263,10 @@ var ti = class extends Ot {
4263
4263
  const a = n._removeEmptyFolders(t), i = n._getFinalPath(a), o = new URL(n.url + `/object/upload/sign/${i}`);
4264
4264
  return o.searchParams.set("token", e), n.handleOperation(async () => {
4265
4265
  let c;
4266
- const u = P({ upsert: gs.upsert }, s), d = P(P({}, n.headers), { "x-upsert": String(u.upsert) });
4266
+ const u = R({ upsert: gs.upsert }, s), d = R(R({}, n.headers), { "x-upsert": String(u.upsert) });
4267
4267
  return typeof Blob < "u" && r instanceof Blob ? (c = new FormData(), c.append("cacheControl", u.cacheControl), c.append("", r)) : typeof FormData < "u" && r instanceof FormData ? (c = r, c.append("cacheControl", u.cacheControl)) : (c = r, d["cache-control"] = `max-age=${u.cacheControl}`, d["content-type"] = u.contentType), {
4268
4268
  path: a,
4269
- fullPath: (await Mr(n.fetch, o.toString(), c, { headers: d })).Key
4269
+ fullPath: (await Fr(n.fetch, o.toString(), c, { headers: d })).Key
4270
4270
  };
4271
4271
  });
4272
4272
  }
@@ -4304,10 +4304,10 @@ var ti = class extends Ot {
4304
4304
  var r = this;
4305
4305
  return r.handleOperation(async () => {
4306
4306
  let s = r._getFinalPath(t);
4307
- const n = P({}, r.headers);
4307
+ const n = R({}, r.headers);
4308
4308
  e?.upsert && (n["x-upsert"] = "true");
4309
- const a = await Le(r.fetch, `${r.url}/object/upload/sign/${s}`, {}, { headers: n }), i = new URL(r.url + a.url), o = i.searchParams.get("token");
4310
- if (!o) throw new mr("No token returned by API");
4309
+ const a = await $e(r.fetch, `${r.url}/object/upload/sign/${s}`, {}, { headers: n }), i = new URL(r.url + a.url), o = i.searchParams.get("token");
4310
+ if (!o) throw new pr("No token returned by API");
4311
4311
  return {
4312
4312
  signedUrl: i.toString(),
4313
4313
  path: t,
@@ -4391,7 +4391,7 @@ var ti = class extends Ot {
4391
4391
  */
4392
4392
  async move(t, e, r) {
4393
4393
  var s = this;
4394
- return s.handleOperation(async () => await Le(s.fetch, `${s.url}/object/move`, {
4394
+ return s.handleOperation(async () => await $e(s.fetch, `${s.url}/object/move`, {
4395
4395
  bucketId: s.bucketId,
4396
4396
  sourceKey: t,
4397
4397
  destinationKey: e,
@@ -4427,7 +4427,7 @@ var ti = class extends Ot {
4427
4427
  */
4428
4428
  async copy(t, e, r) {
4429
4429
  var s = this;
4430
- return s.handleOperation(async () => ({ path: (await Le(s.fetch, `${s.url}/object/copy`, {
4430
+ return s.handleOperation(async () => ({ path: (await $e(s.fetch, `${s.url}/object/copy`, {
4431
4431
  bucketId: s.bucketId,
4432
4432
  sourceKey: t,
4433
4433
  destinationKey: e,
@@ -4488,7 +4488,7 @@ var ti = class extends Ot {
4488
4488
  async createSignedUrl(t, e, r) {
4489
4489
  var s = this;
4490
4490
  return s.handleOperation(async () => {
4491
- let n = s._getFinalPath(t), a = await Le(s.fetch, `${s.url}/object/sign/${n}`, P({ expiresIn: e }, r?.transform ? { transform: r.transform } : {}), { headers: s.headers });
4491
+ let n = s._getFinalPath(t), a = await $e(s.fetch, `${s.url}/object/sign/${n}`, R({ expiresIn: e }, r?.transform ? { transform: r.transform } : {}), { headers: s.headers });
4492
4492
  const i = r?.download ? `&download=${r.download === !0 ? "" : r.download}` : "";
4493
4493
  return { signedUrl: encodeURI(`${s.url}${a.signedURL}${i}`) };
4494
4494
  });
@@ -4534,11 +4534,11 @@ var ti = class extends Ot {
4534
4534
  async createSignedUrls(t, e, r) {
4535
4535
  var s = this;
4536
4536
  return s.handleOperation(async () => {
4537
- const n = await Le(s.fetch, `${s.url}/object/sign/${s.bucketId}`, {
4537
+ const n = await $e(s.fetch, `${s.url}/object/sign/${s.bucketId}`, {
4538
4538
  expiresIn: e,
4539
4539
  paths: t
4540
4540
  }, { headers: s.headers }), a = r?.download ? `&download=${r.download === !0 ? "" : r.download}` : "";
4541
- return n.map((i) => P(P({}, i), {}, { signedUrl: i.signedURL ? encodeURI(`${s.url}${i.signedURL}${a}`) : null }));
4541
+ return n.map((i) => R(R({}, i), {}, { signedUrl: i.signedURL ? encodeURI(`${s.url}${i.signedURL}${a}`) : null }));
4542
4542
  });
4543
4543
  }
4544
4544
  /**
@@ -4600,7 +4600,7 @@ var ti = class extends Ot {
4600
4600
  * ```
4601
4601
  */
4602
4602
  download(t, e, r) {
4603
- const s = typeof e?.transform < "u" ? "render/image/authenticated" : "object", n = this.transformOptsToQueryString(e?.transform || {}), a = n ? `?${n}` : "", i = this._getFinalPath(t), o = () => Ht(this.fetch, `${this.url}/${s}/${i}${a}`, {
4603
+ const s = typeof e?.transform < "u" ? "render/image/authenticated" : "object", n = this.transformOptsToQueryString(e?.transform || {}), a = n ? `?${n}` : "", i = this._getFinalPath(t), o = () => Gt(this.fetch, `${this.url}/${s}/${i}${a}`, {
4604
4604
  headers: this.headers,
4605
4605
  noResolveJson: !0
4606
4606
  }, r);
@@ -4624,7 +4624,7 @@ var ti = class extends Ot {
4624
4624
  async info(t) {
4625
4625
  var e = this;
4626
4626
  const r = e._getFinalPath(t);
4627
- return e.handleOperation(async () => Ur(await Ht(e.fetch, `${e.url}/object/info/${r}`, { headers: e.headers })));
4627
+ return e.handleOperation(async () => Br(await Gt(e.fetch, `${e.url}/object/info/${r}`, { headers: e.headers })));
4628
4628
  }
4629
4629
  /**
4630
4630
  * Checks the existence of a file.
@@ -4651,7 +4651,7 @@ var ti = class extends Ot {
4651
4651
  };
4652
4652
  } catch (s) {
4653
4653
  if (e.shouldThrowOnError) throw s;
4654
- if (pr(s) && s instanceof mn) {
4654
+ if (gr(s) && s instanceof mn) {
4655
4655
  const n = s.originalError;
4656
4656
  if ([400, 404].includes(n?.status)) return {
4657
4657
  data: !1,
@@ -4744,7 +4744,7 @@ var ti = class extends Ot {
4744
4744
  */
4745
4745
  async remove(t) {
4746
4746
  var e = this;
4747
- return e.handleOperation(async () => await Gr(e.fetch, `${e.url}/object/${e.bucketId}`, { prefixes: t }, { headers: e.headers }));
4747
+ return e.handleOperation(async () => await Vr(e.fetch, `${e.url}/object/${e.bucketId}`, { prefixes: t }, { headers: e.headers }));
4748
4748
  }
4749
4749
  /**
4750
4750
  * Get file metadata
@@ -4817,8 +4817,8 @@ var ti = class extends Ot {
4817
4817
  async list(t, e, r) {
4818
4818
  var s = this;
4819
4819
  return s.handleOperation(async () => {
4820
- const n = P(P(P({}, ei), e), {}, { prefix: t || "" });
4821
- return await Le(s.fetch, `${s.url}/object/list/${s.bucketId}`, n, { headers: s.headers }, r);
4820
+ const n = R(R(R({}, ei), e), {}, { prefix: t || "" });
4821
+ return await $e(s.fetch, `${s.url}/object/list/${s.bucketId}`, n, { headers: s.headers }, r);
4822
4822
  });
4823
4823
  }
4824
4824
  /**
@@ -4831,8 +4831,8 @@ var ti = class extends Ot {
4831
4831
  async listV2(t, e) {
4832
4832
  var r = this;
4833
4833
  return r.handleOperation(async () => {
4834
- const s = P({}, t);
4835
- return await Le(r.fetch, `${r.url}/object/list-v2/${r.bucketId}`, s, { headers: r.headers }, e);
4834
+ const s = R({}, t);
4835
+ return await $e(r.fetch, `${r.url}/object/list-v2/${r.bucketId}`, s, { headers: r.headers }, e);
4836
4836
  });
4837
4837
  }
4838
4838
  encodeMetadata(t) {
@@ -4852,12 +4852,12 @@ var ti = class extends Ot {
4852
4852
  return t.width && e.push(`width=${t.width}`), t.height && e.push(`height=${t.height}`), t.resize && e.push(`resize=${t.resize}`), t.format && e.push(`format=${t.format}`), t.quality && e.push(`quality=${t.quality}`), e.join("&");
4853
4853
  }
4854
4854
  };
4855
- const ri = "2.97.0", Jt = { "X-Client-Info": `storage-js/${ri}` };
4855
+ const ri = "2.97.0", Yt = { "X-Client-Info": `storage-js/${ri}` };
4856
4856
  var si = class extends Ot {
4857
4857
  constructor(t, e = {}, r, s) {
4858
4858
  const n = new URL(t);
4859
4859
  s?.useNewHostname && /supabase\.(co|in|red)$/.test(n.hostname) && !n.hostname.includes("storage.supabase.") && (n.hostname = n.hostname.replace("supabase.", "storage.supabase."));
4860
- const a = n.href.replace(/\/$/, ""), i = P(P({}, Jt), e);
4860
+ const a = n.href.replace(/\/$/, ""), i = R(R({}, Yt), e);
4861
4861
  super(a, i, r, "storage");
4862
4862
  }
4863
4863
  /**
@@ -4896,7 +4896,7 @@ var si = class extends Ot {
4896
4896
  var e = this;
4897
4897
  return e.handleOperation(async () => {
4898
4898
  const r = e.listBucketOptionsToQueryString(t);
4899
- return await Ht(e.fetch, `${e.url}/bucket${r}`, { headers: e.headers });
4899
+ return await Gt(e.fetch, `${e.url}/bucket${r}`, { headers: e.headers });
4900
4900
  });
4901
4901
  }
4902
4902
  /**
@@ -4934,7 +4934,7 @@ var si = class extends Ot {
4934
4934
  */
4935
4935
  async getBucket(t) {
4936
4936
  var e = this;
4937
- return e.handleOperation(async () => await Ht(e.fetch, `${e.url}/bucket/${t}`, { headers: e.headers }));
4937
+ return e.handleOperation(async () => await Gt(e.fetch, `${e.url}/bucket/${t}`, { headers: e.headers }));
4938
4938
  }
4939
4939
  /**
4940
4940
  * Creates a new Storage bucket
@@ -4975,7 +4975,7 @@ var si = class extends Ot {
4975
4975
  */
4976
4976
  async createBucket(t, e = { public: !1 }) {
4977
4977
  var r = this;
4978
- return r.handleOperation(async () => await Le(r.fetch, `${r.url}/bucket`, {
4978
+ return r.handleOperation(async () => await $e(r.fetch, `${r.url}/bucket`, {
4979
4979
  id: t,
4980
4980
  name: t,
4981
4981
  type: e.type,
@@ -5021,7 +5021,7 @@ var si = class extends Ot {
5021
5021
  */
5022
5022
  async updateBucket(t, e) {
5023
5023
  var r = this;
5024
- return r.handleOperation(async () => await Mr(r.fetch, `${r.url}/bucket/${t}`, {
5024
+ return r.handleOperation(async () => await Fr(r.fetch, `${r.url}/bucket/${t}`, {
5025
5025
  id: t,
5026
5026
  name: t,
5027
5027
  public: e.public,
@@ -5055,7 +5055,7 @@ var si = class extends Ot {
5055
5055
  */
5056
5056
  async emptyBucket(t) {
5057
5057
  var e = this;
5058
- return e.handleOperation(async () => await Le(e.fetch, `${e.url}/bucket/${t}/empty`, {}, { headers: e.headers }));
5058
+ return e.handleOperation(async () => await $e(e.fetch, `${e.url}/bucket/${t}/empty`, {}, { headers: e.headers }));
5059
5059
  }
5060
5060
  /**
5061
5061
  * Deletes an existing bucket. A bucket can't be deleted with existing objects inside it.
@@ -5084,7 +5084,7 @@ var si = class extends Ot {
5084
5084
  */
5085
5085
  async deleteBucket(t) {
5086
5086
  var e = this;
5087
- return e.handleOperation(async () => await Gr(e.fetch, `${e.url}/bucket/${t}`, {}, { headers: e.headers }));
5087
+ return e.handleOperation(async () => await Vr(e.fetch, `${e.url}/bucket/${t}`, {}, { headers: e.headers }));
5088
5088
  }
5089
5089
  listBucketOptionsToQueryString(t) {
5090
5090
  const e = {};
@@ -5109,7 +5109,7 @@ var si = class extends Ot {
5109
5109
  * ```
5110
5110
  */
5111
5111
  constructor(t, e = {}, r) {
5112
- const s = t.replace(/\/$/, ""), n = P(P({}, Jt), e);
5112
+ const s = t.replace(/\/$/, ""), n = R(R({}, Yt), e);
5113
5113
  super(s, n, r, "storage");
5114
5114
  }
5115
5115
  /**
@@ -5148,7 +5148,7 @@ var si = class extends Ot {
5148
5148
  */
5149
5149
  async createBucket(t) {
5150
5150
  var e = this;
5151
- return e.handleOperation(async () => await Le(e.fetch, `${e.url}/bucket`, { name: t }, { headers: e.headers }));
5151
+ return e.handleOperation(async () => await $e(e.fetch, `${e.url}/bucket`, { name: t }, { headers: e.headers }));
5152
5152
  }
5153
5153
  /**
5154
5154
  * @alpha
@@ -5202,7 +5202,7 @@ var si = class extends Ot {
5202
5202
  const r = new URLSearchParams();
5203
5203
  t?.limit !== void 0 && r.set("limit", t.limit.toString()), t?.offset !== void 0 && r.set("offset", t.offset.toString()), t?.sortColumn && r.set("sortColumn", t.sortColumn), t?.sortOrder && r.set("sortOrder", t.sortOrder), t?.search && r.set("search", t.search);
5204
5204
  const s = r.toString(), n = s ? `${e.url}/bucket?${s}` : `${e.url}/bucket`;
5205
- return await Ht(e.fetch, n, { headers: e.headers });
5205
+ return await Gt(e.fetch, n, { headers: e.headers });
5206
5206
  });
5207
5207
  }
5208
5208
  /**
@@ -5238,7 +5238,7 @@ var si = class extends Ot {
5238
5238
  */
5239
5239
  async deleteBucket(t) {
5240
5240
  var e = this;
5241
- return e.handleOperation(async () => await Gr(e.fetch, `${e.url}/bucket/${t}`, {}, { headers: e.headers }));
5241
+ return e.handleOperation(async () => await Vr(e.fetch, `${e.url}/bucket/${t}`, {}, { headers: e.headers }));
5242
5242
  }
5243
5243
  /**
5244
5244
  * @alpha
@@ -5365,7 +5365,7 @@ var si = class extends Ot {
5365
5365
  */
5366
5366
  from(t) {
5367
5367
  var e = this;
5368
- if (!Wa(t)) throw new mr("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");
5368
+ if (!Wa(t)) throw new pr("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");
5369
5369
  const r = new Fa({
5370
5370
  baseUrl: this.url,
5371
5371
  catalogName: t,
@@ -5396,18 +5396,18 @@ var si = class extends Ot {
5396
5396
  }, ai = class extends Ot {
5397
5397
  /** Creates a new VectorIndexApi instance */
5398
5398
  constructor(t, e = {}, r) {
5399
- const s = t.replace(/\/$/, ""), n = P(P({}, Jt), {}, { "Content-Type": "application/json" }, e);
5399
+ const s = t.replace(/\/$/, ""), n = R(R({}, Yt), {}, { "Content-Type": "application/json" }, e);
5400
5400
  super(s, n, r, "vectors");
5401
5401
  }
5402
5402
  /** Creates a new vector index within a bucket */
5403
5403
  async createIndex(t) {
5404
5404
  var e = this;
5405
- return e.handleOperation(async () => await Te.post(e.fetch, `${e.url}/CreateIndex`, t, { headers: e.headers }) || {});
5405
+ return e.handleOperation(async () => await xe.post(e.fetch, `${e.url}/CreateIndex`, t, { headers: e.headers }) || {});
5406
5406
  }
5407
5407
  /** Retrieves metadata for a specific vector index */
5408
5408
  async getIndex(t, e) {
5409
5409
  var r = this;
5410
- return r.handleOperation(async () => await Te.post(r.fetch, `${r.url}/GetIndex`, {
5410
+ return r.handleOperation(async () => await xe.post(r.fetch, `${r.url}/GetIndex`, {
5411
5411
  vectorBucketName: t,
5412
5412
  indexName: e
5413
5413
  }, { headers: r.headers }));
@@ -5415,12 +5415,12 @@ var si = class extends Ot {
5415
5415
  /** Lists vector indexes within a bucket with optional filtering and pagination */
5416
5416
  async listIndexes(t) {
5417
5417
  var e = this;
5418
- return e.handleOperation(async () => await Te.post(e.fetch, `${e.url}/ListIndexes`, t, { headers: e.headers }));
5418
+ return e.handleOperation(async () => await xe.post(e.fetch, `${e.url}/ListIndexes`, t, { headers: e.headers }));
5419
5419
  }
5420
5420
  /** Deletes a vector index and all its data */
5421
5421
  async deleteIndex(t, e) {
5422
5422
  var r = this;
5423
- return r.handleOperation(async () => await Te.post(r.fetch, `${r.url}/DeleteIndex`, {
5423
+ return r.handleOperation(async () => await xe.post(r.fetch, `${r.url}/DeleteIndex`, {
5424
5424
  vectorBucketName: t,
5425
5425
  indexName: e
5426
5426
  }, { headers: r.headers }) || {});
@@ -5428,19 +5428,19 @@ var si = class extends Ot {
5428
5428
  }, ii = class extends Ot {
5429
5429
  /** Creates a new VectorDataApi instance */
5430
5430
  constructor(t, e = {}, r) {
5431
- const s = t.replace(/\/$/, ""), n = P(P({}, Jt), {}, { "Content-Type": "application/json" }, e);
5431
+ const s = t.replace(/\/$/, ""), n = R(R({}, Yt), {}, { "Content-Type": "application/json" }, e);
5432
5432
  super(s, n, r, "vectors");
5433
5433
  }
5434
5434
  /** Inserts or updates vectors in batch (1-500 per request) */
5435
5435
  async putVectors(t) {
5436
5436
  var e = this;
5437
5437
  if (t.vectors.length < 1 || t.vectors.length > 500) throw new Error("Vector batch size must be between 1 and 500 items");
5438
- return e.handleOperation(async () => await Te.post(e.fetch, `${e.url}/PutVectors`, t, { headers: e.headers }) || {});
5438
+ return e.handleOperation(async () => await xe.post(e.fetch, `${e.url}/PutVectors`, t, { headers: e.headers }) || {});
5439
5439
  }
5440
5440
  /** Retrieves vectors by their keys in batch */
5441
5441
  async getVectors(t) {
5442
5442
  var e = this;
5443
- return e.handleOperation(async () => await Te.post(e.fetch, `${e.url}/GetVectors`, t, { headers: e.headers }));
5443
+ return e.handleOperation(async () => await xe.post(e.fetch, `${e.url}/GetVectors`, t, { headers: e.headers }));
5444
5444
  }
5445
5445
  /** Lists vectors in an index with pagination */
5446
5446
  async listVectors(t) {
@@ -5450,44 +5450,44 @@ var si = class extends Ot {
5450
5450
  if (t.segmentIndex !== void 0 && (t.segmentIndex < 0 || t.segmentIndex >= t.segmentCount))
5451
5451
  throw new Error(`segmentIndex must be between 0 and ${t.segmentCount - 1}`);
5452
5452
  }
5453
- return e.handleOperation(async () => await Te.post(e.fetch, `${e.url}/ListVectors`, t, { headers: e.headers }));
5453
+ return e.handleOperation(async () => await xe.post(e.fetch, `${e.url}/ListVectors`, t, { headers: e.headers }));
5454
5454
  }
5455
5455
  /** Queries for similar vectors using approximate nearest neighbor search */
5456
5456
  async queryVectors(t) {
5457
5457
  var e = this;
5458
- return e.handleOperation(async () => await Te.post(e.fetch, `${e.url}/QueryVectors`, t, { headers: e.headers }));
5458
+ return e.handleOperation(async () => await xe.post(e.fetch, `${e.url}/QueryVectors`, t, { headers: e.headers }));
5459
5459
  }
5460
5460
  /** Deletes vectors by their keys in batch (1-500 per request) */
5461
5461
  async deleteVectors(t) {
5462
5462
  var e = this;
5463
5463
  if (t.keys.length < 1 || t.keys.length > 500) throw new Error("Keys batch size must be between 1 and 500 items");
5464
- return e.handleOperation(async () => await Te.post(e.fetch, `${e.url}/DeleteVectors`, t, { headers: e.headers }) || {});
5464
+ return e.handleOperation(async () => await xe.post(e.fetch, `${e.url}/DeleteVectors`, t, { headers: e.headers }) || {});
5465
5465
  }
5466
5466
  }, oi = class extends Ot {
5467
5467
  /** Creates a new VectorBucketApi instance */
5468
5468
  constructor(t, e = {}, r) {
5469
- const s = t.replace(/\/$/, ""), n = P(P({}, Jt), {}, { "Content-Type": "application/json" }, e);
5469
+ const s = t.replace(/\/$/, ""), n = R(R({}, Yt), {}, { "Content-Type": "application/json" }, e);
5470
5470
  super(s, n, r, "vectors");
5471
5471
  }
5472
5472
  /** Creates a new vector bucket */
5473
5473
  async createBucket(t) {
5474
5474
  var e = this;
5475
- return e.handleOperation(async () => await Te.post(e.fetch, `${e.url}/CreateVectorBucket`, { vectorBucketName: t }, { headers: e.headers }) || {});
5475
+ return e.handleOperation(async () => await xe.post(e.fetch, `${e.url}/CreateVectorBucket`, { vectorBucketName: t }, { headers: e.headers }) || {});
5476
5476
  }
5477
5477
  /** Retrieves metadata for a specific vector bucket */
5478
5478
  async getBucket(t) {
5479
5479
  var e = this;
5480
- return e.handleOperation(async () => await Te.post(e.fetch, `${e.url}/GetVectorBucket`, { vectorBucketName: t }, { headers: e.headers }));
5480
+ return e.handleOperation(async () => await xe.post(e.fetch, `${e.url}/GetVectorBucket`, { vectorBucketName: t }, { headers: e.headers }));
5481
5481
  }
5482
5482
  /** Lists vector buckets with optional filtering and pagination */
5483
5483
  async listBuckets(t = {}) {
5484
5484
  var e = this;
5485
- return e.handleOperation(async () => await Te.post(e.fetch, `${e.url}/ListVectorBuckets`, t, { headers: e.headers }));
5485
+ return e.handleOperation(async () => await xe.post(e.fetch, `${e.url}/ListVectorBuckets`, t, { headers: e.headers }));
5486
5486
  }
5487
5487
  /** Deletes a vector bucket (must be empty first) */
5488
5488
  async deleteBucket(t) {
5489
5489
  var e = this;
5490
- return e.handleOperation(async () => await Te.post(e.fetch, `${e.url}/DeleteVectorBucket`, { vectorBucketName: t }, { headers: e.headers }) || {});
5490
+ return e.handleOperation(async () => await xe.post(e.fetch, `${e.url}/DeleteVectorBucket`, { vectorBucketName: t }, { headers: e.headers }) || {});
5491
5491
  }
5492
5492
  }, li = class extends oi {
5493
5493
  /**
@@ -5681,7 +5681,7 @@ var si = class extends Ot {
5681
5681
  */
5682
5682
  async createIndex(t) {
5683
5683
  var e = () => super.createIndex, r = this;
5684
- return e().call(r, P(P({}, t), {}, { vectorBucketName: r.vectorBucketName }));
5684
+ return e().call(r, R(R({}, t), {}, { vectorBucketName: r.vectorBucketName }));
5685
5685
  }
5686
5686
  /**
5687
5687
  *
@@ -5704,7 +5704,7 @@ var si = class extends Ot {
5704
5704
  */
5705
5705
  async listIndexes(t = {}) {
5706
5706
  var e = () => super.listIndexes, r = this;
5707
- return e().call(r, P(P({}, t), {}, { vectorBucketName: r.vectorBucketName }));
5707
+ return e().call(r, R(R({}, t), {}, { vectorBucketName: r.vectorBucketName }));
5708
5708
  }
5709
5709
  /**
5710
5710
  *
@@ -5834,7 +5834,7 @@ var si = class extends Ot {
5834
5834
  */
5835
5835
  async putVectors(t) {
5836
5836
  var e = () => super.putVectors, r = this;
5837
- return e().call(r, P(P({}, t), {}, {
5837
+ return e().call(r, R(R({}, t), {}, {
5838
5838
  vectorBucketName: r.vectorBucketName,
5839
5839
  indexName: r.indexName
5840
5840
  }));
@@ -5863,7 +5863,7 @@ var si = class extends Ot {
5863
5863
  */
5864
5864
  async getVectors(t) {
5865
5865
  var e = () => super.getVectors, r = this;
5866
- return e().call(r, P(P({}, t), {}, {
5866
+ return e().call(r, R(R({}, t), {}, {
5867
5867
  vectorBucketName: r.vectorBucketName,
5868
5868
  indexName: r.indexName
5869
5869
  }));
@@ -5892,7 +5892,7 @@ var si = class extends Ot {
5892
5892
  */
5893
5893
  async listVectors(t = {}) {
5894
5894
  var e = () => super.listVectors, r = this;
5895
- return e().call(r, P(P({}, t), {}, {
5895
+ return e().call(r, R(R({}, t), {}, {
5896
5896
  vectorBucketName: r.vectorBucketName,
5897
5897
  indexName: r.indexName
5898
5898
  }));
@@ -5924,7 +5924,7 @@ var si = class extends Ot {
5924
5924
  */
5925
5925
  async queryVectors(t) {
5926
5926
  var e = () => super.queryVectors, r = this;
5927
- return e().call(r, P(P({}, t), {}, {
5927
+ return e().call(r, R(R({}, t), {}, {
5928
5928
  vectorBucketName: r.vectorBucketName,
5929
5929
  indexName: r.indexName
5930
5930
  }));
@@ -5952,7 +5952,7 @@ var si = class extends Ot {
5952
5952
  */
5953
5953
  async deleteVectors(t) {
5954
5954
  var e = () => super.deleteVectors, r = this;
5955
- return e().call(r, P(P({}, t), {}, {
5955
+ return e().call(r, R(R({}, t), {}, {
5956
5956
  vectorBucketName: r.vectorBucketName,
5957
5957
  indexName: r.indexName
5958
5958
  }));
@@ -6021,13 +6021,13 @@ var si = class extends Ot {
6021
6021
  return new ni(this.url + "/iceberg", this.headers, this.fetch);
6022
6022
  }
6023
6023
  };
6024
- const yn = "2.97.0", Et = 30 * 1e3, Br = 3, Er = Br * Et, hi = "http://localhost:9999", fi = "supabase.auth.token", mi = { "X-Client-Info": `gotrue-js/${yn}` }, Fr = "X-Supabase-Api-Version", vn = {
6024
+ const yn = "2.97.0", Et = 30 * 1e3, Kr = 3, Rr = Kr * Et, hi = "http://localhost:9999", fi = "supabase.auth.token", mi = { "X-Client-Info": `gotrue-js/${yn}` }, qr = "X-Supabase-Api-Version", vn = {
6025
6025
  "2024-01-01": {
6026
6026
  timestamp: Date.parse("2024-01-01T00:00:00.0Z"),
6027
6027
  name: "2024-01-01"
6028
6028
  }
6029
6029
  }, pi = /^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i, gi = 600 * 1e3;
6030
- class Gt extends Error {
6030
+ class zt extends Error {
6031
6031
  constructor(e, r, s) {
6032
6032
  super(e), this.__isAuthError = !0, this.name = "AuthError", this.status = r, this.code = s;
6033
6033
  }
@@ -6035,7 +6035,7 @@ class Gt extends Error {
6035
6035
  function A(t) {
6036
6036
  return typeof t == "object" && t !== null && "__isAuthError" in t;
6037
6037
  }
6038
- class yi extends Gt {
6038
+ class yi extends zt {
6039
6039
  constructor(e, r, s) {
6040
6040
  super(e, r, s), this.name = "AuthApiError", this.status = r, this.code = s;
6041
6041
  }
@@ -6043,22 +6043,22 @@ class yi extends Gt {
6043
6043
  function vi(t) {
6044
6044
  return A(t) && t.name === "AuthApiError";
6045
6045
  }
6046
- class lt extends Gt {
6046
+ class lt extends zt {
6047
6047
  constructor(e, r) {
6048
6048
  super(e), this.name = "AuthUnknownError", this.originalError = r;
6049
6049
  }
6050
6050
  }
6051
- class Ge extends Gt {
6051
+ class Ge extends zt {
6052
6052
  constructor(e, r, s, n) {
6053
6053
  super(e, s, n), this.name = r, this.status = s;
6054
6054
  }
6055
6055
  }
6056
- class Se extends Ge {
6056
+ class ke extends Ge {
6057
6057
  constructor() {
6058
6058
  super("Auth session missing!", "AuthSessionMissingError", 400, void 0);
6059
6059
  }
6060
6060
  }
6061
- function Pr(t) {
6061
+ function Cr(t) {
6062
6062
  return A(t) && t.name === "AuthSessionMissingError";
6063
6063
  }
6064
6064
  class _t extends Ge {
@@ -6066,12 +6066,12 @@ class _t extends Ge {
6066
6066
  super("Auth session or user missing", "AuthInvalidTokenResponseError", 500, void 0);
6067
6067
  }
6068
6068
  }
6069
- class tr extends Ge {
6069
+ class rr extends Ge {
6070
6070
  constructor(e) {
6071
6071
  super(e, "AuthInvalidCredentialsError", 400, void 0);
6072
6072
  }
6073
6073
  }
6074
- class rr extends Ge {
6074
+ class sr extends Ge {
6075
6075
  constructor(e, r = null) {
6076
6076
  super(e, "AuthImplicitGrantRedirectError", 500, void 0), this.details = null, this.details = r;
6077
6077
  }
@@ -6105,12 +6105,12 @@ class wi extends Ge {
6105
6105
  super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.", "AuthPKCECodeVerifierMissingError", 400, "pkce_code_verifier_not_found");
6106
6106
  }
6107
6107
  }
6108
- class Kr extends Ge {
6108
+ class Wr extends Ge {
6109
6109
  constructor(e, r) {
6110
6110
  super(e, "AuthRetryableFetchError", r, void 0);
6111
6111
  }
6112
6112
  }
6113
- function Rr(t) {
6113
+ function Or(t) {
6114
6114
  return A(t) && t.name === "AuthRetryableFetchError";
6115
6115
  }
6116
6116
  class vs extends Ge {
@@ -6118,32 +6118,32 @@ class vs extends Ge {
6118
6118
  super(e, "AuthWeakPasswordError", r, "weak_password"), this.reasons = s;
6119
6119
  }
6120
6120
  }
6121
- class qr extends Ge {
6121
+ class Hr extends Ge {
6122
6122
  constructor(e) {
6123
6123
  super(e, "AuthInvalidJwtError", 400, "invalid_jwt");
6124
6124
  }
6125
6125
  }
6126
- const ur = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""), bs = `
6126
+ const dr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""), bs = `
6127
6127
  \r=`.split(""), _i = (() => {
6128
6128
  const t = new Array(128);
6129
6129
  for (let e = 0; e < t.length; e += 1)
6130
6130
  t[e] = -1;
6131
6131
  for (let e = 0; e < bs.length; e += 1)
6132
6132
  t[bs[e].charCodeAt(0)] = -2;
6133
- for (let e = 0; e < ur.length; e += 1)
6134
- t[ur[e].charCodeAt(0)] = e;
6133
+ for (let e = 0; e < dr.length; e += 1)
6134
+ t[dr[e].charCodeAt(0)] = e;
6135
6135
  return t;
6136
6136
  })();
6137
6137
  function ws(t, e, r) {
6138
6138
  if (t !== null)
6139
6139
  for (e.queue = e.queue << 8 | t, e.queuedBits += 8; e.queuedBits >= 6; ) {
6140
6140
  const s = e.queue >> e.queuedBits - 6 & 63;
6141
- r(ur[s]), e.queuedBits -= 6;
6141
+ r(dr[s]), e.queuedBits -= 6;
6142
6142
  }
6143
6143
  else if (e.queuedBits > 0)
6144
6144
  for (e.queue = e.queue << 6 - e.queuedBits, e.queuedBits = 6; e.queuedBits >= 6; ) {
6145
6145
  const s = e.queue >> e.queuedBits - 6 & 63;
6146
- r(ur[s]), e.queuedBits -= 6;
6146
+ r(dr[s]), e.queuedBits -= 6;
6147
6147
  }
6148
6148
  }
6149
6149
  function bn(t, e, r) {
@@ -6246,11 +6246,11 @@ function ji(t) {
6246
6246
  function Ai() {
6247
6247
  return /* @__PURE__ */ Symbol("auth-callback");
6248
6248
  }
6249
- const me = () => typeof window < "u" && typeof document < "u", nt = {
6249
+ const he = () => typeof window < "u" && typeof document < "u", nt = {
6250
6250
  tested: !1,
6251
6251
  writable: !1
6252
6252
  }, wn = () => {
6253
- if (!me())
6253
+ if (!he())
6254
6254
  return !1;
6255
6255
  try {
6256
6256
  if (typeof globalThis.localStorage != "object")
@@ -6292,24 +6292,24 @@ const _n = (t) => t ? (...e) => t(...e) : (...e) => fetch(...e), Pi = (t) => typ
6292
6292
  } catch {
6293
6293
  return r;
6294
6294
  }
6295
- }, fe = async (t, e) => {
6295
+ }, de = async (t, e) => {
6296
6296
  await t.removeItem(e);
6297
6297
  };
6298
- class gr {
6298
+ class yr {
6299
6299
  constructor() {
6300
- this.promise = new gr.promiseConstructor((e, r) => {
6300
+ this.promise = new yr.promiseConstructor((e, r) => {
6301
6301
  this.resolve = e, this.reject = r;
6302
6302
  });
6303
6303
  }
6304
6304
  }
6305
- gr.promiseConstructor = Promise;
6306
- function sr(t) {
6305
+ yr.promiseConstructor = Promise;
6306
+ function nr(t) {
6307
6307
  const e = t.split(".");
6308
6308
  if (e.length !== 3)
6309
- throw new qr("Invalid JWT structure");
6309
+ throw new Hr("Invalid JWT structure");
6310
6310
  for (let s = 0; s < e.length; s++)
6311
6311
  if (!pi.test(e[s]))
6312
- throw new qr("JWT not in base64url format");
6312
+ throw new Hr("JWT not in base64url format");
6313
6313
  return {
6314
6314
  // using base64url lib
6315
6315
  header: JSON.parse(_s(e[0])),
@@ -6378,7 +6378,7 @@ async function kt(t, e, r = !1) {
6378
6378
  }
6379
6379
  const $i = /^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;
6380
6380
  function Li(t) {
6381
- const e = t.headers.get(Fr);
6381
+ const e = t.headers.get(qr);
6382
6382
  if (!e || !e.match($i))
6383
6383
  return null;
6384
6384
  try {
@@ -6416,7 +6416,7 @@ function St(t) {
6416
6416
  if (!Bi.test(t))
6417
6417
  throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not");
6418
6418
  }
6419
- function Cr() {
6419
+ function Nr() {
6420
6420
  const t = {};
6421
6421
  return new Proxy(t, {
6422
6422
  get: (e, r) => {
@@ -6458,9 +6458,9 @@ const it = (t) => t.msg || t.message || t.error_description || t.error || JSON.s
6458
6458
  async function Ss(t) {
6459
6459
  var e;
6460
6460
  if (!Pi(t))
6461
- throw new Kr(it(t), 0);
6461
+ throw new Wr(it(t), 0);
6462
6462
  if (Ki.includes(t.status))
6463
- throw new Kr(it(t), t.status);
6463
+ throw new Wr(it(t), t.status);
6464
6464
  let r;
6465
6465
  try {
6466
6466
  r = await t.json();
@@ -6473,7 +6473,7 @@ async function Ss(t) {
6473
6473
  if (s === "weak_password")
6474
6474
  throw new vs(it(r), t.status, ((e = r.weak_password) === null || e === void 0 ? void 0 : e.reasons) || []);
6475
6475
  if (s === "session_not_found")
6476
- throw new Se();
6476
+ throw new ke();
6477
6477
  } else if (typeof r == "object" && r && typeof r.weak_password == "object" && r.weak_password && Array.isArray(r.weak_password.reasons) && r.weak_password.reasons.length && r.weak_password.reasons.reduce((a, i) => a && typeof i == "string", !0))
6478
6478
  throw new vs(it(r), t.status, r.weak_password.reasons);
6479
6479
  throw new yi(it(r), t.status || 500, s);
@@ -6482,10 +6482,10 @@ const qi = (t, e, r, s) => {
6482
6482
  const n = { method: t, headers: e?.headers || {} };
6483
6483
  return t === "GET" ? n : (n.headers = Object.assign({ "Content-Type": "application/json;charset=UTF-8" }, e?.headers), n.body = JSON.stringify(s), Object.assign(Object.assign({}, n), r));
6484
6484
  };
6485
- async function R(t, e, r, s) {
6485
+ async function C(t, e, r, s) {
6486
6486
  var n;
6487
6487
  const a = Object.assign({}, s?.headers);
6488
- a[Fr] || (a[Fr] = vn["2024-01-01"].name), s?.jwt && (a.Authorization = `Bearer ${s.jwt}`);
6488
+ a[qr] || (a[qr] = vn["2024-01-01"].name), s?.jwt && (a.Authorization = `Bearer ${s.jwt}`);
6489
6489
  const i = (n = s?.query) !== null && n !== void 0 ? n : {};
6490
6490
  s?.redirectTo && (i.redirect_to = s.redirectTo);
6491
6491
  const o = Object.keys(i).length ? "?" + new URLSearchParams(i).toString() : "", c = await Wi(t, e, r + o, {
@@ -6500,7 +6500,7 @@ async function Wi(t, e, r, s, n, a) {
6500
6500
  try {
6501
6501
  o = await t(r, Object.assign({}, i));
6502
6502
  } catch (c) {
6503
- throw console.error(c), new Kr(it(c), 0);
6503
+ throw console.error(c), new Wr(it(c), 0);
6504
6504
  }
6505
6505
  if (o.ok || await Ss(o), s?.noResolveJson)
6506
6506
  return o;
@@ -6510,7 +6510,7 @@ async function Wi(t, e, r, s, n, a) {
6510
6510
  await Ss(c);
6511
6511
  }
6512
6512
  }
6513
- function $e(t) {
6513
+ function De(t) {
6514
6514
  var e;
6515
6515
  let r = null;
6516
6516
  zi(t) && (r = Object.assign({}, t), t.expires_at || (r.expires_at = ji(t.expires_in)));
@@ -6518,7 +6518,7 @@ function $e(t) {
6518
6518
  return { data: { session: r, user: s }, error: null };
6519
6519
  }
6520
6520
  function xs(t) {
6521
- const e = $e(t);
6521
+ const e = De(t);
6522
6522
  return !e.error && t.weak_password && typeof t.weak_password == "object" && Array.isArray(t.weak_password.reasons) && t.weak_password.reasons.length && t.weak_password.message && typeof t.weak_password.message == "string" && t.weak_password.reasons.reduce((r, s) => r && typeof s == "string", !0) && (e.data.weak_password = t.weak_password), e;
6523
6523
  }
6524
6524
  function et(t) {
@@ -6529,7 +6529,7 @@ function Hi(t) {
6529
6529
  return { data: t, error: null };
6530
6530
  }
6531
6531
  function Gi(t) {
6532
- const { action_link: e, email_otp: r, hashed_token: s, redirect_to: n, verification_type: a } = t, i = fr(t, ["action_link", "email_otp", "hashed_token", "redirect_to", "verification_type"]), o = {
6532
+ const { action_link: e, email_otp: r, hashed_token: s, redirect_to: n, verification_type: a } = t, i = mr(t, ["action_link", "email_otp", "hashed_token", "redirect_to", "verification_type"]), o = {
6533
6533
  action_link: e,
6534
6534
  email_otp: r,
6535
6535
  hashed_token: s,
@@ -6550,7 +6550,7 @@ function Ts(t) {
6550
6550
  function zi(t) {
6551
6551
  return t.access_token && t.refresh_token && t.expires_in;
6552
6552
  }
6553
- const Or = ["global", "local", "others"];
6553
+ const Ir = ["global", "local", "others"];
6554
6554
  class Vi {
6555
6555
  /**
6556
6556
  * Creates an admin API client that can be used to manage users and OAuth clients.
@@ -6583,11 +6583,11 @@ class Vi {
6583
6583
  * @param jwt A valid, logged-in JWT.
6584
6584
  * @param scope The logout sope.
6585
6585
  */
6586
- async signOut(e, r = Or[0]) {
6587
- if (Or.indexOf(r) < 0)
6588
- throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Or.join(", ")}`);
6586
+ async signOut(e, r = Ir[0]) {
6587
+ if (Ir.indexOf(r) < 0)
6588
+ throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Ir.join(", ")}`);
6589
6589
  try {
6590
- return await R(this.fetch, "POST", `${this.url}/logout?scope=${r}`, {
6590
+ return await C(this.fetch, "POST", `${this.url}/logout?scope=${r}`, {
6591
6591
  headers: this.headers,
6592
6592
  jwt: e,
6593
6593
  noResolveJson: !0
@@ -6605,7 +6605,7 @@ class Vi {
6605
6605
  */
6606
6606
  async inviteUserByEmail(e, r = {}) {
6607
6607
  try {
6608
- return await R(this.fetch, "POST", `${this.url}/invite`, {
6608
+ return await C(this.fetch, "POST", `${this.url}/invite`, {
6609
6609
  body: { email: e, data: r.data },
6610
6610
  headers: this.headers,
6611
6611
  redirectTo: r.redirectTo,
@@ -6626,8 +6626,8 @@ class Vi {
6626
6626
  */
6627
6627
  async generateLink(e) {
6628
6628
  try {
6629
- const { options: r } = e, s = fr(e, ["options"]), n = Object.assign(Object.assign({}, s), r);
6630
- return "newEmail" in s && (n.new_email = s?.newEmail, delete n.newEmail), await R(this.fetch, "POST", `${this.url}/admin/generate_link`, {
6629
+ const { options: r } = e, s = mr(e, ["options"]), n = Object.assign(Object.assign({}, s), r);
6630
+ return "newEmail" in s && (n.new_email = s?.newEmail, delete n.newEmail), await C(this.fetch, "POST", `${this.url}/admin/generate_link`, {
6631
6631
  body: n,
6632
6632
  headers: this.headers,
6633
6633
  xform: Gi,
@@ -6652,7 +6652,7 @@ class Vi {
6652
6652
  */
6653
6653
  async createUser(e) {
6654
6654
  try {
6655
- return await R(this.fetch, "POST", `${this.url}/admin/users`, {
6655
+ return await C(this.fetch, "POST", `${this.url}/admin/users`, {
6656
6656
  body: e,
6657
6657
  headers: this.headers,
6658
6658
  xform: et
@@ -6672,7 +6672,7 @@ class Vi {
6672
6672
  async listUsers(e) {
6673
6673
  var r, s, n, a, i, o, c;
6674
6674
  try {
6675
- const u = { nextPage: null, lastPage: 0, total: 0 }, d = await R(this.fetch, "GET", `${this.url}/admin/users`, {
6675
+ const u = { nextPage: null, lastPage: 0, total: 0 }, d = await C(this.fetch, "GET", `${this.url}/admin/users`, {
6676
6676
  headers: this.headers,
6677
6677
  noResolveJson: !0,
6678
6678
  query: {
@@ -6704,7 +6704,7 @@ class Vi {
6704
6704
  async getUserById(e) {
6705
6705
  St(e);
6706
6706
  try {
6707
- return await R(this.fetch, "GET", `${this.url}/admin/users/${e}`, {
6707
+ return await C(this.fetch, "GET", `${this.url}/admin/users/${e}`, {
6708
6708
  headers: this.headers,
6709
6709
  xform: et
6710
6710
  });
@@ -6749,7 +6749,7 @@ class Vi {
6749
6749
  async updateUserById(e, r) {
6750
6750
  St(e);
6751
6751
  try {
6752
- return await R(this.fetch, "PUT", `${this.url}/admin/users/${e}`, {
6752
+ return await C(this.fetch, "PUT", `${this.url}/admin/users/${e}`, {
6753
6753
  body: r,
6754
6754
  headers: this.headers,
6755
6755
  xform: et
@@ -6772,7 +6772,7 @@ class Vi {
6772
6772
  async deleteUser(e, r = !1) {
6773
6773
  St(e);
6774
6774
  try {
6775
- return await R(this.fetch, "DELETE", `${this.url}/admin/users/${e}`, {
6775
+ return await C(this.fetch, "DELETE", `${this.url}/admin/users/${e}`, {
6776
6776
  headers: this.headers,
6777
6777
  body: {
6778
6778
  should_soft_delete: r
@@ -6788,7 +6788,7 @@ class Vi {
6788
6788
  async _listFactors(e) {
6789
6789
  St(e.userId);
6790
6790
  try {
6791
- const { data: r, error: s } = await R(this.fetch, "GET", `${this.url}/admin/users/${e.userId}/factors`, {
6791
+ const { data: r, error: s } = await C(this.fetch, "GET", `${this.url}/admin/users/${e.userId}/factors`, {
6792
6792
  headers: this.headers,
6793
6793
  xform: (n) => ({ data: { factors: n }, error: null })
6794
6794
  });
@@ -6802,7 +6802,7 @@ class Vi {
6802
6802
  async _deleteFactor(e) {
6803
6803
  St(e.userId), St(e.id);
6804
6804
  try {
6805
- return { data: await R(this.fetch, "DELETE", `${this.url}/admin/users/${e.userId}/factors/${e.id}`, {
6805
+ return { data: await C(this.fetch, "DELETE", `${this.url}/admin/users/${e.userId}/factors/${e.id}`, {
6806
6806
  headers: this.headers
6807
6807
  }), error: null };
6808
6808
  } catch (r) {
@@ -6820,7 +6820,7 @@ class Vi {
6820
6820
  async _listOAuthClients(e) {
6821
6821
  var r, s, n, a, i, o, c;
6822
6822
  try {
6823
- const u = { nextPage: null, lastPage: 0, total: 0 }, d = await R(this.fetch, "GET", `${this.url}/admin/oauth/clients`, {
6823
+ const u = { nextPage: null, lastPage: 0, total: 0 }, d = await C(this.fetch, "GET", `${this.url}/admin/oauth/clients`, {
6824
6824
  headers: this.headers,
6825
6825
  noResolveJson: !0,
6826
6826
  query: {
@@ -6850,7 +6850,7 @@ class Vi {
6850
6850
  */
6851
6851
  async _createOAuthClient(e) {
6852
6852
  try {
6853
- return await R(this.fetch, "POST", `${this.url}/admin/oauth/clients`, {
6853
+ return await C(this.fetch, "POST", `${this.url}/admin/oauth/clients`, {
6854
6854
  body: e,
6855
6855
  headers: this.headers,
6856
6856
  xform: (r) => ({ data: r, error: null })
@@ -6869,7 +6869,7 @@ class Vi {
6869
6869
  */
6870
6870
  async _getOAuthClient(e) {
6871
6871
  try {
6872
- return await R(this.fetch, "GET", `${this.url}/admin/oauth/clients/${e}`, {
6872
+ return await C(this.fetch, "GET", `${this.url}/admin/oauth/clients/${e}`, {
6873
6873
  headers: this.headers,
6874
6874
  xform: (r) => ({ data: r, error: null })
6875
6875
  });
@@ -6887,7 +6887,7 @@ class Vi {
6887
6887
  */
6888
6888
  async _updateOAuthClient(e, r) {
6889
6889
  try {
6890
- return await R(this.fetch, "PUT", `${this.url}/admin/oauth/clients/${e}`, {
6890
+ return await C(this.fetch, "PUT", `${this.url}/admin/oauth/clients/${e}`, {
6891
6891
  body: r,
6892
6892
  headers: this.headers,
6893
6893
  xform: (s) => ({ data: s, error: null })
@@ -6906,7 +6906,7 @@ class Vi {
6906
6906
  */
6907
6907
  async _deleteOAuthClient(e) {
6908
6908
  try {
6909
- return await R(this.fetch, "DELETE", `${this.url}/admin/oauth/clients/${e}`, {
6909
+ return await C(this.fetch, "DELETE", `${this.url}/admin/oauth/clients/${e}`, {
6910
6910
  headers: this.headers,
6911
6911
  noResolveJson: !0
6912
6912
  }), { data: null, error: null };
@@ -6924,7 +6924,7 @@ class Vi {
6924
6924
  */
6925
6925
  async _regenerateOAuthClientSecret(e) {
6926
6926
  try {
6927
- return await R(this.fetch, "POST", `${this.url}/admin/oauth/clients/${e}/regenerate_secret`, {
6927
+ return await C(this.fetch, "POST", `${this.url}/admin/oauth/clients/${e}/regenerate_secret`, {
6928
6928
  headers: this.headers,
6929
6929
  xform: (r) => ({ data: r, error: null })
6930
6930
  });
@@ -7067,13 +7067,13 @@ Resources:`;
7067
7067
  return `${v}
7068
7068
  ${k}`;
7069
7069
  }
7070
- class ie extends Error {
7070
+ class ae extends Error {
7071
7071
  constructor({ message: e, code: r, cause: s, name: n }) {
7072
7072
  var a;
7073
7073
  super(e, { cause: s }), this.__isWebAuthnError = !0, this.name = (a = n ?? (s instanceof Error ? s.name : void 0)) !== null && a !== void 0 ? a : "Unknown Error", this.code = r;
7074
7074
  }
7075
7075
  }
7076
- class dr extends ie {
7076
+ class hr extends ae {
7077
7077
  constructor(e, r) {
7078
7078
  super({
7079
7079
  code: "ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",
@@ -7089,14 +7089,14 @@ function eo({ error: t, options: e }) {
7089
7089
  throw Error("options was missing required publicKey property");
7090
7090
  if (t.name === "AbortError") {
7091
7091
  if (e.signal instanceof AbortSignal)
7092
- return new ie({
7092
+ return new ae({
7093
7093
  message: "Registration ceremony was sent an abort signal",
7094
7094
  code: "ERROR_CEREMONY_ABORTED",
7095
7095
  cause: t
7096
7096
  });
7097
7097
  } else if (t.name === "ConstraintError") {
7098
7098
  if (((r = a.authenticatorSelection) === null || r === void 0 ? void 0 : r.requireResidentKey) === !0)
7099
- return new ie({
7099
+ return new ae({
7100
7100
  message: "Discoverable credentials were required but no available authenticator supported it",
7101
7101
  code: "ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",
7102
7102
  cause: t
@@ -7105,36 +7105,36 @@ function eo({ error: t, options: e }) {
7105
7105
  // @ts-ignore: `mediation` doesn't yet exist on CredentialCreationOptions but it's possible as of Sept 2024
7106
7106
  e.mediation === "conditional" && ((s = a.authenticatorSelection) === null || s === void 0 ? void 0 : s.userVerification) === "required"
7107
7107
  )
7108
- return new ie({
7108
+ return new ae({
7109
7109
  message: "User verification was required during automatic registration but it could not be performed",
7110
7110
  code: "ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",
7111
7111
  cause: t
7112
7112
  });
7113
7113
  if (((n = a.authenticatorSelection) === null || n === void 0 ? void 0 : n.userVerification) === "required")
7114
- return new ie({
7114
+ return new ae({
7115
7115
  message: "User verification was required but no available authenticator supported it",
7116
7116
  code: "ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",
7117
7117
  cause: t
7118
7118
  });
7119
7119
  } else {
7120
7120
  if (t.name === "InvalidStateError")
7121
- return new ie({
7121
+ return new ae({
7122
7122
  message: "The authenticator was previously registered",
7123
7123
  code: "ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",
7124
7124
  cause: t
7125
7125
  });
7126
7126
  if (t.name === "NotAllowedError")
7127
- return new ie({
7127
+ return new ae({
7128
7128
  message: t.message,
7129
7129
  code: "ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",
7130
7130
  cause: t
7131
7131
  });
7132
7132
  if (t.name === "NotSupportedError")
7133
- return a.pubKeyCredParams.filter((o) => o.type === "public-key").length === 0 ? new ie({
7133
+ return a.pubKeyCredParams.filter((o) => o.type === "public-key").length === 0 ? new ae({
7134
7134
  message: 'No entry in pubKeyCredParams was of type "public-key"',
7135
7135
  code: "ERROR_MALFORMED_PUBKEYCREDPARAMS",
7136
7136
  cause: t
7137
- }) : new ie({
7137
+ }) : new ae({
7138
7138
  message: "No available authenticator supported any of the specified pubKeyCredParams algorithms",
7139
7139
  code: "ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",
7140
7140
  cause: t
@@ -7143,31 +7143,31 @@ function eo({ error: t, options: e }) {
7143
7143
  const i = window.location.hostname;
7144
7144
  if (xn(i)) {
7145
7145
  if (a.rp.id !== i)
7146
- return new ie({
7146
+ return new ae({
7147
7147
  message: `The RP ID "${a.rp.id}" is invalid for this domain`,
7148
7148
  code: "ERROR_INVALID_RP_ID",
7149
7149
  cause: t
7150
7150
  });
7151
- } else return new ie({
7151
+ } else return new ae({
7152
7152
  message: `${window.location.hostname} is an invalid domain`,
7153
7153
  code: "ERROR_INVALID_DOMAIN",
7154
7154
  cause: t
7155
7155
  });
7156
7156
  } else if (t.name === "TypeError") {
7157
7157
  if (a.user.id.byteLength < 1 || a.user.id.byteLength > 64)
7158
- return new ie({
7158
+ return new ae({
7159
7159
  message: "User ID was not between 1 and 64 characters",
7160
7160
  code: "ERROR_INVALID_USER_ID_LENGTH",
7161
7161
  cause: t
7162
7162
  });
7163
7163
  } else if (t.name === "UnknownError")
7164
- return new ie({
7164
+ return new ae({
7165
7165
  message: "The authenticator was unable to process the specified options, or could not create a new credential",
7166
7166
  code: "ERROR_AUTHENTICATOR_GENERAL_ERROR",
7167
7167
  cause: t
7168
7168
  });
7169
7169
  }
7170
- return new ie({
7170
+ return new ae({
7171
7171
  message: "a Non-Webauthn related error has occurred",
7172
7172
  code: "ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",
7173
7173
  cause: t
@@ -7179,14 +7179,14 @@ function to({ error: t, options: e }) {
7179
7179
  throw Error("options was missing required publicKey property");
7180
7180
  if (t.name === "AbortError") {
7181
7181
  if (e.signal instanceof AbortSignal)
7182
- return new ie({
7182
+ return new ae({
7183
7183
  message: "Authentication ceremony was sent an abort signal",
7184
7184
  code: "ERROR_CEREMONY_ABORTED",
7185
7185
  cause: t
7186
7186
  });
7187
7187
  } else {
7188
7188
  if (t.name === "NotAllowedError")
7189
- return new ie({
7189
+ return new ae({
7190
7190
  message: t.message,
7191
7191
  code: "ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",
7192
7192
  cause: t
@@ -7195,24 +7195,24 @@ function to({ error: t, options: e }) {
7195
7195
  const s = window.location.hostname;
7196
7196
  if (xn(s)) {
7197
7197
  if (r.rpId !== s)
7198
- return new ie({
7198
+ return new ae({
7199
7199
  message: `The RP ID "${r.rpId}" is invalid for this domain`,
7200
7200
  code: "ERROR_INVALID_RP_ID",
7201
7201
  cause: t
7202
7202
  });
7203
- } else return new ie({
7203
+ } else return new ae({
7204
7204
  message: `${window.location.hostname} is an invalid domain`,
7205
7205
  code: "ERROR_INVALID_DOMAIN",
7206
7206
  cause: t
7207
7207
  });
7208
7208
  } else if (t.name === "UnknownError")
7209
- return new ie({
7209
+ return new ae({
7210
7210
  message: "The authenticator was unable to process the specified options, or could not create a new assertion signature",
7211
7211
  code: "ERROR_AUTHENTICATOR_GENERAL_ERROR",
7212
7212
  cause: t
7213
7213
  });
7214
7214
  }
7215
- return new ie({
7215
+ return new ae({
7216
7216
  message: "a Non-Webauthn related error has occurred",
7217
7217
  code: "ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",
7218
7218
  cause: t
@@ -7256,7 +7256,7 @@ function no(t) {
7256
7256
  /** we assert the options here as typescript still doesn't know about future webauthn types */
7257
7257
  t
7258
7258
  );
7259
- const { challenge: e, user: r, excludeCredentials: s } = t, n = fr(
7259
+ const { challenge: e, user: r, excludeCredentials: s } = t, n = mr(
7260
7260
  t,
7261
7261
  ["challenge", "user", "excludeCredentials"]
7262
7262
  ), a = Ct(e).buffer, i = Object.assign(Object.assign({}, r), { id: Ct(r.id).buffer }), o = Object.assign(Object.assign({}, n), {
@@ -7282,7 +7282,7 @@ function ao(t) {
7282
7282
  throw new Error("Credential request options are required");
7283
7283
  if (typeof PublicKeyCredential < "u" && "parseRequestOptionsFromJSON" in PublicKeyCredential && typeof PublicKeyCredential.parseRequestOptionsFromJSON == "function")
7284
7284
  return PublicKeyCredential.parseRequestOptionsFromJSON(t);
7285
- const { challenge: e, allowCredentials: r } = t, s = fr(
7285
+ const { challenge: e, allowCredentials: r } = t, s = mr(
7286
7286
  t,
7287
7287
  ["challenge", "allowCredentials"]
7288
7288
  ), n = Ct(e).buffer, a = Object.assign(Object.assign({}, s), { challenge: n });
@@ -7347,7 +7347,7 @@ function xn(t) {
7347
7347
  }
7348
7348
  function Es() {
7349
7349
  var t, e;
7350
- return !!(me() && "PublicKeyCredential" in window && window.PublicKeyCredential && "credentials" in navigator && typeof ((t = navigator?.credentials) === null || t === void 0 ? void 0 : t.create) == "function" && typeof ((e = navigator?.credentials) === null || e === void 0 ? void 0 : e.get) == "function");
7350
+ return !!(he() && "PublicKeyCredential" in window && window.PublicKeyCredential && "credentials" in navigator && typeof ((t = navigator?.credentials) === null || t === void 0 ? void 0 : t.create) == "function" && typeof ((e = navigator?.credentials) === null || e === void 0 ? void 0 : e.get) == "function");
7351
7351
  }
7352
7352
  async function lo(t) {
7353
7353
  try {
@@ -7357,10 +7357,10 @@ async function lo(t) {
7357
7357
  );
7358
7358
  return e ? e instanceof PublicKeyCredential ? { data: e, error: null } : {
7359
7359
  data: null,
7360
- error: new dr("Browser returned unexpected credential type", e)
7360
+ error: new hr("Browser returned unexpected credential type", e)
7361
7361
  } : {
7362
7362
  data: null,
7363
- error: new dr("Empty credential response", e)
7363
+ error: new hr("Empty credential response", e)
7364
7364
  };
7365
7365
  } catch (e) {
7366
7366
  return {
@@ -7380,10 +7380,10 @@ async function co(t) {
7380
7380
  );
7381
7381
  return e ? e instanceof PublicKeyCredential ? { data: e, error: null } : {
7382
7382
  data: null,
7383
- error: new dr("Browser returned unexpected credential type", e)
7383
+ error: new hr("Browser returned unexpected credential type", e)
7384
7384
  } : {
7385
7385
  data: null,
7386
- error: new dr("Empty credential response", e)
7386
+ error: new hr("Empty credential response", e)
7387
7387
  };
7388
7388
  } catch (e) {
7389
7389
  return {
@@ -7411,7 +7411,7 @@ const uo = {
7411
7411
  hints: ["security-key"],
7412
7412
  attestation: "direct"
7413
7413
  };
7414
- function hr(...t) {
7414
+ function fr(...t) {
7415
7415
  const e = (n) => n !== null && typeof n == "object" && !Array.isArray(n), r = (n) => n instanceof ArrayBuffer || ArrayBuffer.isView(n), s = {};
7416
7416
  for (const n of t)
7417
7417
  if (n)
@@ -7424,17 +7424,17 @@ function hr(...t) {
7424
7424
  s[a] = i;
7425
7425
  else if (e(i)) {
7426
7426
  const o = s[a];
7427
- e(o) ? s[a] = hr(o, i) : s[a] = hr(i);
7427
+ e(o) ? s[a] = fr(o, i) : s[a] = fr(i);
7428
7428
  } else
7429
7429
  s[a] = i;
7430
7430
  }
7431
7431
  return s;
7432
7432
  }
7433
7433
  function fo(t, e) {
7434
- return hr(uo, t, e || {});
7434
+ return fr(uo, t, e || {});
7435
7435
  }
7436
7436
  function mo(t, e) {
7437
- return hr(ho, t, e || {});
7437
+ return fr(ho, t, e || {});
7438
7438
  }
7439
7439
  class po {
7440
7440
  constructor(e) {
@@ -7568,7 +7568,7 @@ class po {
7568
7568
  if (!r)
7569
7569
  return {
7570
7570
  data: null,
7571
- error: new Gt("rpId is required for WebAuthn authentication")
7571
+ error: new zt("rpId is required for WebAuthn authentication")
7572
7572
  };
7573
7573
  try {
7574
7574
  if (!Es())
@@ -7620,7 +7620,7 @@ class po {
7620
7620
  if (!r)
7621
7621
  return {
7622
7622
  data: null,
7623
- error: new Gt("rpId is required for WebAuthn registration")
7623
+ error: new zt("rpId is required for WebAuthn registration")
7624
7624
  };
7625
7625
  try {
7626
7626
  if (!Es())
@@ -7682,7 +7682,7 @@ async function Ps(t, e, r) {
7682
7682
  return await r();
7683
7683
  }
7684
7684
  const Tt = {};
7685
- class zt {
7685
+ class Vt {
7686
7686
  /**
7687
7687
  * The JWKS used for verifying asymmetric JWTs
7688
7688
  */
@@ -7718,7 +7718,7 @@ class zt {
7718
7718
  var r, s, n;
7719
7719
  this.userStorage = null, this.memoryStorage = null, this.stateChangeEmitters = /* @__PURE__ */ new Map(), this.autoRefreshTicker = null, this.autoRefreshTickTimeout = null, this.visibilityChangedCallback = null, this.refreshingDeferred = null, this.initializePromise = null, this.detectSessionInUrl = !0, this.hasCustomAuthorizationHeader = !1, this.suppressGetSessionWarning = !1, this.lockAcquired = !1, this.pendingInLock = [], this.broadcastChannel = null, this.logger = console.log;
7720
7720
  const a = Object.assign(Object.assign({}, go), e);
7721
- if (this.storageKey = a.storageKey, this.instanceID = (r = zt.nextInstanceID[this.storageKey]) !== null && r !== void 0 ? r : 0, zt.nextInstanceID[this.storageKey] = this.instanceID + 1, this.logDebugMessages = !!a.debug, typeof a.debug == "function" && (this.logger = a.debug), this.instanceID > 0 && me()) {
7721
+ if (this.storageKey = a.storageKey, this.instanceID = (r = Vt.nextInstanceID[this.storageKey]) !== null && r !== void 0 ? r : 0, Vt.nextInstanceID[this.storageKey] = this.instanceID + 1, this.logDebugMessages = !!a.debug, typeof a.debug == "function" && (this.logger = a.debug), this.instanceID > 0 && he()) {
7722
7722
  const i = `${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;
7723
7723
  console.warn(i), this.logDebugMessages && console.trace(i);
7724
7724
  }
@@ -7726,7 +7726,7 @@ class zt {
7726
7726
  url: a.url,
7727
7727
  headers: a.headers,
7728
7728
  fetch: a.fetch
7729
- }), this.url = a.url, this.headers = a.headers, this.fetch = _n(a.fetch), this.lock = a.lock || Ps, this.detectSessionInUrl = a.detectSessionInUrl, this.flowType = a.flowType, this.hasCustomAuthorizationHeader = a.hasCustomAuthorizationHeader, this.throwOnError = a.throwOnError, this.lockAcquireTimeout = a.lockAcquireTimeout, a.lock ? this.lock = a.lock : this.persistSession && me() && (!((s = globalThis?.navigator) === null || s === void 0) && s.locks) ? this.lock = Ji : this.lock = Ps, this.jwks || (this.jwks = { keys: [] }, this.jwks_cached_at = Number.MIN_SAFE_INTEGER), this.mfa = {
7729
+ }), this.url = a.url, this.headers = a.headers, this.fetch = _n(a.fetch), this.lock = a.lock || Ps, this.detectSessionInUrl = a.detectSessionInUrl, this.flowType = a.flowType, this.hasCustomAuthorizationHeader = a.hasCustomAuthorizationHeader, this.throwOnError = a.throwOnError, this.lockAcquireTimeout = a.lockAcquireTimeout, a.lock ? this.lock = a.lock : this.persistSession && he() && (!((s = globalThis?.navigator) === null || s === void 0) && s.locks) ? this.lock = Ji : this.lock = Ps, this.jwks || (this.jwks = { keys: [] }, this.jwks_cached_at = Number.MIN_SAFE_INTEGER), this.mfa = {
7730
7730
  verify: this._verify.bind(this),
7731
7731
  enroll: this._enroll.bind(this),
7732
7732
  unenroll: this._unenroll.bind(this),
@@ -7741,7 +7741,7 @@ class zt {
7741
7741
  denyAuthorization: this._denyAuthorization.bind(this),
7742
7742
  listGrants: this._listOAuthGrants.bind(this),
7743
7743
  revokeGrant: this._revokeOAuthGrant.bind(this)
7744
- }, this.persistSession ? (a.storage ? this.storage = a.storage : wn() ? this.storage = globalThis.localStorage : (this.memoryStorage = {}, this.storage = js(this.memoryStorage)), a.userStorage && (this.userStorage = a.userStorage)) : (this.memoryStorage = {}, this.storage = js(this.memoryStorage)), me() && globalThis.BroadcastChannel && this.persistSession && this.storageKey) {
7744
+ }, this.persistSession ? (a.storage ? this.storage = a.storage : wn() ? this.storage = globalThis.localStorage : (this.memoryStorage = {}, this.storage = js(this.memoryStorage)), a.userStorage && (this.userStorage = a.userStorage)) : (this.memoryStorage = {}, this.storage = js(this.memoryStorage)), he() && globalThis.BroadcastChannel && this.persistSession && this.storageKey) {
7745
7745
  try {
7746
7746
  this.broadcastChannel = new globalThis.BroadcastChannel(this.storageKey);
7747
7747
  } catch (i) {
@@ -7800,7 +7800,7 @@ class zt {
7800
7800
  var e;
7801
7801
  try {
7802
7802
  let r = {}, s = "none";
7803
- if (me() && (r = Ei(window.location.href), this._isImplicitGrantCallback(r) ? s = "implicit" : await this._isPKCECallback(r) && (s = "pkce")), me() && this.detectSessionInUrl && s !== "none") {
7803
+ if (he() && (r = Ei(window.location.href), this._isImplicitGrantCallback(r) ? s = "implicit" : await this._isPKCECallback(r) && (s = "pkce")), he() && this.detectSessionInUrl && s !== "none") {
7804
7804
  const { data: n, error: a } = await this._getSessionFromURL(r, s);
7805
7805
  if (a) {
7806
7806
  if (this._debug("#_initialize()", "error detecting session from URL", a), bi(a)) {
@@ -7832,13 +7832,13 @@ class zt {
7832
7832
  async signInAnonymously(e) {
7833
7833
  var r, s, n;
7834
7834
  try {
7835
- const a = await R(this.fetch, "POST", `${this.url}/signup`, {
7835
+ const a = await C(this.fetch, "POST", `${this.url}/signup`, {
7836
7836
  headers: this.headers,
7837
7837
  body: {
7838
7838
  data: (s = (r = e?.options) === null || r === void 0 ? void 0 : r.data) !== null && s !== void 0 ? s : {},
7839
7839
  gotrue_meta_security: { captcha_token: (n = e?.options) === null || n === void 0 ? void 0 : n.captchaToken }
7840
7840
  },
7841
- xform: $e
7841
+ xform: De
7842
7842
  }), { data: i, error: o } = a;
7843
7843
  if (o || !i)
7844
7844
  return this._returnResult({ data: { user: null, session: null }, error: o });
@@ -7867,7 +7867,7 @@ class zt {
7867
7867
  if ("email" in e) {
7868
7868
  const { email: d, password: f, options: m } = e;
7869
7869
  let p = null, g = null;
7870
- this.flowType === "pkce" && ([p, g] = await kt(this.storage, this.storageKey)), a = await R(this.fetch, "POST", `${this.url}/signup`, {
7870
+ this.flowType === "pkce" && ([p, g] = await kt(this.storage, this.storageKey)), a = await C(this.fetch, "POST", `${this.url}/signup`, {
7871
7871
  headers: this.headers,
7872
7872
  redirectTo: m?.emailRedirectTo,
7873
7873
  body: {
@@ -7878,11 +7878,11 @@ class zt {
7878
7878
  code_challenge: p,
7879
7879
  code_challenge_method: g
7880
7880
  },
7881
- xform: $e
7881
+ xform: De
7882
7882
  });
7883
7883
  } else if ("phone" in e) {
7884
7884
  const { phone: d, password: f, options: m } = e;
7885
- a = await R(this.fetch, "POST", `${this.url}/signup`, {
7885
+ a = await C(this.fetch, "POST", `${this.url}/signup`, {
7886
7886
  headers: this.headers,
7887
7887
  body: {
7888
7888
  phone: d,
@@ -7891,17 +7891,17 @@ class zt {
7891
7891
  channel: (n = m?.channel) !== null && n !== void 0 ? n : "sms",
7892
7892
  gotrue_meta_security: { captcha_token: m?.captchaToken }
7893
7893
  },
7894
- xform: $e
7894
+ xform: De
7895
7895
  });
7896
7896
  } else
7897
- throw new tr("You must provide either an email or phone number and a password");
7897
+ throw new rr("You must provide either an email or phone number and a password");
7898
7898
  const { data: i, error: o } = a;
7899
7899
  if (o || !i)
7900
- return await fe(this.storage, `${this.storageKey}-code-verifier`), this._returnResult({ data: { user: null, session: null }, error: o });
7900
+ return await de(this.storage, `${this.storageKey}-code-verifier`), this._returnResult({ data: { user: null, session: null }, error: o });
7901
7901
  const c = i.session, u = i.user;
7902
7902
  return i.session && (await this._saveSession(i.session), await this._notifyAllSubscribers("SIGNED_IN", c)), this._returnResult({ data: { user: u, session: c }, error: null });
7903
7903
  } catch (a) {
7904
- if (await fe(this.storage, `${this.storageKey}-code-verifier`), A(a))
7904
+ if (await de(this.storage, `${this.storageKey}-code-verifier`), A(a))
7905
7905
  return this._returnResult({ data: { user: null, session: null }, error: a });
7906
7906
  throw a;
7907
7907
  }
@@ -7919,7 +7919,7 @@ class zt {
7919
7919
  let r;
7920
7920
  if ("email" in e) {
7921
7921
  const { email: a, password: i, options: o } = e;
7922
- r = await R(this.fetch, "POST", `${this.url}/token?grant_type=password`, {
7922
+ r = await C(this.fetch, "POST", `${this.url}/token?grant_type=password`, {
7923
7923
  headers: this.headers,
7924
7924
  body: {
7925
7925
  email: a,
@@ -7930,7 +7930,7 @@ class zt {
7930
7930
  });
7931
7931
  } else if ("phone" in e) {
7932
7932
  const { phone: a, password: i, options: o } = e;
7933
- r = await R(this.fetch, "POST", `${this.url}/token?grant_type=password`, {
7933
+ r = await C(this.fetch, "POST", `${this.url}/token?grant_type=password`, {
7934
7934
  headers: this.headers,
7935
7935
  body: {
7936
7936
  phone: a,
@@ -7940,7 +7940,7 @@ class zt {
7940
7940
  xform: xs
7941
7941
  });
7942
7942
  } else
7943
- throw new tr("You must provide either an email or phone number and a password");
7943
+ throw new rr("You must provide either an email or phone number and a password");
7944
7944
  const { data: s, error: n } = r;
7945
7945
  if (n)
7946
7946
  return this._returnResult({ data: { user: null, session: null }, error: n });
@@ -8003,7 +8003,7 @@ class zt {
8003
8003
  else {
8004
8004
  const { chain: y, wallet: v, statement: k, options: w } = e;
8005
8005
  let b;
8006
- if (me())
8006
+ if (he())
8007
8007
  if (typeof v == "object")
8008
8008
  b = v;
8009
8009
  else {
@@ -8053,14 +8053,14 @@ class zt {
8053
8053
  });
8054
8054
  }
8055
8055
  try {
8056
- const { data: y, error: v } = await R(this.fetch, "POST", `${this.url}/token?grant_type=web3`, {
8056
+ const { data: y, error: v } = await C(this.fetch, "POST", `${this.url}/token?grant_type=web3`, {
8057
8057
  headers: this.headers,
8058
8058
  body: Object.assign({
8059
8059
  chain: "ethereum",
8060
8060
  message: p,
8061
8061
  signature: g
8062
8062
  }, !((f = e.options) === null || f === void 0) && f.captchaToken ? { gotrue_meta_security: { captcha_token: (m = e.options) === null || m === void 0 ? void 0 : m.captchaToken } } : null),
8063
- xform: $e
8063
+ xform: De
8064
8064
  });
8065
8065
  if (v)
8066
8066
  throw v;
@@ -8083,7 +8083,7 @@ class zt {
8083
8083
  else {
8084
8084
  const { chain: v, wallet: k, statement: w, options: b } = e;
8085
8085
  let j;
8086
- if (me())
8086
+ if (he())
8087
8087
  if (typeof k == "object")
8088
8088
  j = k;
8089
8089
  else {
@@ -8145,10 +8145,10 @@ class zt {
8145
8145
  }
8146
8146
  }
8147
8147
  try {
8148
- const { data: v, error: k } = await R(this.fetch, "POST", `${this.url}/token?grant_type=web3`, {
8148
+ const { data: v, error: k } = await C(this.fetch, "POST", `${this.url}/token?grant_type=web3`, {
8149
8149
  headers: this.headers,
8150
8150
  body: Object.assign({ chain: "solana", message: g, signature: ht(y) }, !((m = e.options) === null || m === void 0) && m.captchaToken ? { gotrue_meta_security: { captcha_token: (p = e.options) === null || p === void 0 ? void 0 : p.captchaToken } } : null),
8151
- xform: $e
8151
+ xform: De
8152
8152
  });
8153
8153
  if (k)
8154
8154
  throw k;
@@ -8168,15 +8168,15 @@ class zt {
8168
8168
  try {
8169
8169
  if (!s && this.flowType === "pkce")
8170
8170
  throw new wi();
8171
- const { data: a, error: i } = await R(this.fetch, "POST", `${this.url}/token?grant_type=pkce`, {
8171
+ const { data: a, error: i } = await C(this.fetch, "POST", `${this.url}/token?grant_type=pkce`, {
8172
8172
  headers: this.headers,
8173
8173
  body: {
8174
8174
  auth_code: e,
8175
8175
  code_verifier: s
8176
8176
  },
8177
- xform: $e
8177
+ xform: De
8178
8178
  });
8179
- if (await fe(this.storage, `${this.storageKey}-code-verifier`), i)
8179
+ if (await de(this.storage, `${this.storageKey}-code-verifier`), i)
8180
8180
  throw i;
8181
8181
  if (!a || !a.session || !a.user) {
8182
8182
  const o = new _t();
@@ -8187,7 +8187,7 @@ class zt {
8187
8187
  }
8188
8188
  return a.session && (await this._saveSession(a.session), await this._notifyAllSubscribers("SIGNED_IN", a.session)), this._returnResult({ data: Object.assign(Object.assign({}, a), { redirectType: n ?? null }), error: i });
8189
8189
  } catch (a) {
8190
- if (await fe(this.storage, `${this.storageKey}-code-verifier`), A(a))
8190
+ if (await de(this.storage, `${this.storageKey}-code-verifier`), A(a))
8191
8191
  return this._returnResult({
8192
8192
  data: { user: null, session: null, redirectType: null },
8193
8193
  error: a
@@ -8201,7 +8201,7 @@ class zt {
8201
8201
  */
8202
8202
  async signInWithIdToken(e) {
8203
8203
  try {
8204
- const { options: r, provider: s, token: n, access_token: a, nonce: i } = e, o = await R(this.fetch, "POST", `${this.url}/token?grant_type=id_token`, {
8204
+ const { options: r, provider: s, token: n, access_token: a, nonce: i } = e, o = await C(this.fetch, "POST", `${this.url}/token?grant_type=id_token`, {
8205
8205
  headers: this.headers,
8206
8206
  body: {
8207
8207
  provider: s,
@@ -8210,7 +8210,7 @@ class zt {
8210
8210
  nonce: i,
8211
8211
  gotrue_meta_security: { captcha_token: r?.captchaToken }
8212
8212
  },
8213
- xform: $e
8213
+ xform: De
8214
8214
  }), { data: c, error: u } = o;
8215
8215
  if (u)
8216
8216
  return this._returnResult({ data: { user: null, session: null }, error: u });
@@ -8249,7 +8249,7 @@ class zt {
8249
8249
  const { email: o, options: c } = e;
8250
8250
  let u = null, d = null;
8251
8251
  this.flowType === "pkce" && ([u, d] = await kt(this.storage, this.storageKey));
8252
- const { error: f } = await R(this.fetch, "POST", `${this.url}/otp`, {
8252
+ const { error: f } = await C(this.fetch, "POST", `${this.url}/otp`, {
8253
8253
  headers: this.headers,
8254
8254
  body: {
8255
8255
  email: o,
@@ -8264,7 +8264,7 @@ class zt {
8264
8264
  return this._returnResult({ data: { user: null, session: null }, error: f });
8265
8265
  }
8266
8266
  if ("phone" in e) {
8267
- const { phone: o, options: c } = e, { data: u, error: d } = await R(this.fetch, "POST", `${this.url}/otp`, {
8267
+ const { phone: o, options: c } = e, { data: u, error: d } = await C(this.fetch, "POST", `${this.url}/otp`, {
8268
8268
  headers: this.headers,
8269
8269
  body: {
8270
8270
  phone: o,
@@ -8279,9 +8279,9 @@ class zt {
8279
8279
  error: d
8280
8280
  });
8281
8281
  }
8282
- throw new tr("You must provide either an email or phone number.");
8282
+ throw new rr("You must provide either an email or phone number.");
8283
8283
  } catch (o) {
8284
- if (await fe(this.storage, `${this.storageKey}-code-verifier`), A(o))
8284
+ if (await de(this.storage, `${this.storageKey}-code-verifier`), A(o))
8285
8285
  return this._returnResult({ data: { user: null, session: null }, error: o });
8286
8286
  throw o;
8287
8287
  }
@@ -8294,11 +8294,11 @@ class zt {
8294
8294
  try {
8295
8295
  let n, a;
8296
8296
  "options" in e && (n = (r = e.options) === null || r === void 0 ? void 0 : r.redirectTo, a = (s = e.options) === null || s === void 0 ? void 0 : s.captchaToken);
8297
- const { data: i, error: o } = await R(this.fetch, "POST", `${this.url}/verify`, {
8297
+ const { data: i, error: o } = await C(this.fetch, "POST", `${this.url}/verify`, {
8298
8298
  headers: this.headers,
8299
8299
  body: Object.assign(Object.assign({}, e), { gotrue_meta_security: { captcha_token: a } }),
8300
8300
  redirectTo: n,
8301
- xform: $e
8301
+ xform: De
8302
8302
  });
8303
8303
  if (o)
8304
8304
  throw o;
@@ -8331,14 +8331,14 @@ class zt {
8331
8331
  try {
8332
8332
  let o = null, c = null;
8333
8333
  this.flowType === "pkce" && ([o, c] = await kt(this.storage, this.storageKey));
8334
- const u = await R(this.fetch, "POST", `${this.url}/sso`, {
8334
+ const u = await C(this.fetch, "POST", `${this.url}/sso`, {
8335
8335
  body: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, "providerId" in e ? { provider_id: e.providerId } : null), "domain" in e ? { domain: e.domain } : null), { redirect_to: (s = (r = e.options) === null || r === void 0 ? void 0 : r.redirectTo) !== null && s !== void 0 ? s : void 0 }), !((n = e?.options) === null || n === void 0) && n.captchaToken ? { gotrue_meta_security: { captcha_token: e.options.captchaToken } } : null), { skip_http_redirect: !0, code_challenge: o, code_challenge_method: c }),
8336
8336
  headers: this.headers,
8337
8337
  xform: Hi
8338
8338
  });
8339
- return !((a = u.data) === null || a === void 0) && a.url && me() && !(!((i = e.options) === null || i === void 0) && i.skipBrowserRedirect) && window.location.assign(u.data.url), this._returnResult(u);
8339
+ return !((a = u.data) === null || a === void 0) && a.url && he() && !(!((i = e.options) === null || i === void 0) && i.skipBrowserRedirect) && window.location.assign(u.data.url), this._returnResult(u);
8340
8340
  } catch (o) {
8341
- if (await fe(this.storage, `${this.storageKey}-code-verifier`), A(o))
8341
+ if (await de(this.storage, `${this.storageKey}-code-verifier`), A(o))
8342
8342
  return this._returnResult({ data: null, error: o });
8343
8343
  throw o;
8344
8344
  }
@@ -8357,8 +8357,8 @@ class zt {
8357
8357
  if (s)
8358
8358
  throw s;
8359
8359
  if (!r)
8360
- throw new Se();
8361
- const { error: n } = await R(this.fetch, "GET", `${this.url}/reauthenticate`, {
8360
+ throw new ke();
8361
+ const { error: n } = await C(this.fetch, "GET", `${this.url}/reauthenticate`, {
8362
8362
  headers: this.headers,
8363
8363
  jwt: r.access_token
8364
8364
  });
@@ -8377,7 +8377,7 @@ class zt {
8377
8377
  try {
8378
8378
  const r = `${this.url}/resend`;
8379
8379
  if ("email" in e) {
8380
- const { email: s, type: n, options: a } = e, { error: i } = await R(this.fetch, "POST", r, {
8380
+ const { email: s, type: n, options: a } = e, { error: i } = await C(this.fetch, "POST", r, {
8381
8381
  headers: this.headers,
8382
8382
  body: {
8383
8383
  email: s,
@@ -8388,7 +8388,7 @@ class zt {
8388
8388
  });
8389
8389
  return this._returnResult({ data: { user: null, session: null }, error: i });
8390
8390
  } else if ("phone" in e) {
8391
- const { phone: s, type: n, options: a } = e, { data: i, error: o } = await R(this.fetch, "POST", r, {
8391
+ const { phone: s, type: n, options: a } = e, { data: i, error: o } = await C(this.fetch, "POST", r, {
8392
8392
  headers: this.headers,
8393
8393
  body: {
8394
8394
  phone: s,
@@ -8401,7 +8401,7 @@ class zt {
8401
8401
  error: o
8402
8402
  });
8403
8403
  }
8404
- throw new tr("You must provide either an email or phone number and a type");
8404
+ throw new rr("You must provide either an email or phone number and a type");
8405
8405
  } catch (r) {
8406
8406
  if (A(r))
8407
8407
  return this._returnResult({ data: { user: null, session: null }, error: r });
@@ -8487,11 +8487,11 @@ class zt {
8487
8487
  const r = await at(this.storage, this.storageKey);
8488
8488
  if (this._debug("#getSession()", "session from storage", r), r !== null && (this._isValidSession(r) ? e = r : (this._debug("#getSession()", "session from storage is not valid"), await this._removeSession())), !e)
8489
8489
  return { data: { session: null }, error: null };
8490
- const s = e.expires_at ? e.expires_at * 1e3 - Date.now() < Er : !1;
8490
+ const s = e.expires_at ? e.expires_at * 1e3 - Date.now() < Rr : !1;
8491
8491
  if (this._debug("#__loadSession()", `session has${s ? "" : " not"} expired`, "expires_at", e.expires_at), !s) {
8492
8492
  if (this.userStorage) {
8493
8493
  const i = await at(this.userStorage, this.storageKey + "-user");
8494
- i?.user ? e.user = i.user : e.user = Cr();
8494
+ i?.user ? e.user = i.user : e.user = Nr();
8495
8495
  }
8496
8496
  if (this.storage.isServer && e.user && !e.user.__isUserNotAvailableProxy) {
8497
8497
  const i = { value: this.suppressGetSessionWarning };
@@ -8521,7 +8521,7 @@ class zt {
8521
8521
  }
8522
8522
  async _getUser(e) {
8523
8523
  try {
8524
- return e ? await R(this.fetch, "GET", `${this.url}/user`, {
8524
+ return e ? await C(this.fetch, "GET", `${this.url}/user`, {
8525
8525
  headers: this.headers,
8526
8526
  jwt: e,
8527
8527
  xform: et
@@ -8530,7 +8530,7 @@ class zt {
8530
8530
  const { data: i, error: o } = r;
8531
8531
  if (o)
8532
8532
  throw o;
8533
- return !(!((s = i.session) === null || s === void 0) && s.access_token) && !this.hasCustomAuthorizationHeader ? { data: { user: null }, error: new Se() } : await R(this.fetch, "GET", `${this.url}/user`, {
8533
+ return !(!((s = i.session) === null || s === void 0) && s.access_token) && !this.hasCustomAuthorizationHeader ? { data: { user: null }, error: new ke() } : await C(this.fetch, "GET", `${this.url}/user`, {
8534
8534
  headers: this.headers,
8535
8535
  jwt: (a = (n = i.session) === null || n === void 0 ? void 0 : n.access_token) !== null && a !== void 0 ? a : void 0,
8536
8536
  xform: et
@@ -8538,7 +8538,7 @@ class zt {
8538
8538
  });
8539
8539
  } catch (r) {
8540
8540
  if (A(r))
8541
- return Pr(r) && (await this._removeSession(), await fe(this.storage, `${this.storageKey}-code-verifier`)), this._returnResult({ data: { user: null }, error: r });
8541
+ return Cr(r) && (await this._removeSession(), await de(this.storage, `${this.storageKey}-code-verifier`)), this._returnResult({ data: { user: null }, error: r });
8542
8542
  throw r;
8543
8543
  }
8544
8544
  }
@@ -8555,11 +8555,11 @@ class zt {
8555
8555
  if (a)
8556
8556
  throw a;
8557
8557
  if (!n.session)
8558
- throw new Se();
8558
+ throw new ke();
8559
8559
  const i = n.session;
8560
8560
  let o = null, c = null;
8561
8561
  this.flowType === "pkce" && e.email != null && ([o, c] = await kt(this.storage, this.storageKey));
8562
- const { data: u, error: d } = await R(this.fetch, "PUT", `${this.url}/user`, {
8562
+ const { data: u, error: d } = await C(this.fetch, "PUT", `${this.url}/user`, {
8563
8563
  headers: this.headers,
8564
8564
  redirectTo: r?.emailRedirectTo,
8565
8565
  body: Object.assign(Object.assign({}, e), { code_challenge: o, code_challenge_method: c }),
@@ -8571,7 +8571,7 @@ class zt {
8571
8571
  return i.user = u.user, await this._saveSession(i), await this._notifyAllSubscribers("USER_UPDATED", i), this._returnResult({ data: { user: i.user }, error: null });
8572
8572
  });
8573
8573
  } catch (s) {
8574
- if (await fe(this.storage, `${this.storageKey}-code-verifier`), A(s))
8574
+ if (await de(this.storage, `${this.storageKey}-code-verifier`), A(s))
8575
8575
  return this._returnResult({ data: { user: null }, error: s });
8576
8576
  throw s;
8577
8577
  }
@@ -8587,10 +8587,10 @@ class zt {
8587
8587
  async _setSession(e) {
8588
8588
  try {
8589
8589
  if (!e.access_token || !e.refresh_token)
8590
- throw new Se();
8590
+ throw new ke();
8591
8591
  const r = Date.now() / 1e3;
8592
8592
  let s = r, n = !0, a = null;
8593
- const { payload: i } = sr(e.access_token);
8593
+ const { payload: i } = nr(e.access_token);
8594
8594
  if (i.exp && (s = i.exp, n = s <= r), n) {
8595
8595
  const { data: o, error: c } = await this._callRefreshToken(e.refresh_token);
8596
8596
  if (c)
@@ -8638,7 +8638,7 @@ class zt {
8638
8638
  e = (s = i.session) !== null && s !== void 0 ? s : void 0;
8639
8639
  }
8640
8640
  if (!e?.refresh_token)
8641
- throw new Se();
8641
+ throw new ke();
8642
8642
  const { data: n, error: a } = await this._callRefreshToken(e.refresh_token);
8643
8643
  return a ? this._returnResult({ data: { user: null, session: null }, error: a }) : n ? this._returnResult({ data: { user: n.user, session: n }, error: null }) : this._returnResult({ data: { user: null, session: null }, error: null });
8644
8644
  });
@@ -8653,10 +8653,10 @@ class zt {
8653
8653
  */
8654
8654
  async _getSessionFromURL(e, r) {
8655
8655
  try {
8656
- if (!me())
8657
- throw new rr("No browser detected.");
8656
+ if (!he())
8657
+ throw new sr("No browser detected.");
8658
8658
  if (e.error || e.error_description || e.error_code)
8659
- throw new rr(e.error_description || "Error in URL with unspecified error_description", {
8659
+ throw new sr(e.error_description || "Error in URL with unspecified error_description", {
8660
8660
  error: e.error || "unspecified_error",
8661
8661
  code: e.error_code || "unspecified_code"
8662
8662
  });
@@ -8667,7 +8667,7 @@ class zt {
8667
8667
  break;
8668
8668
  case "pkce":
8669
8669
  if (this.flowType === "implicit")
8670
- throw new rr("Not a valid implicit grant flow url.");
8670
+ throw new sr("Not a valid implicit grant flow url.");
8671
8671
  break;
8672
8672
  default:
8673
8673
  }
@@ -8682,7 +8682,7 @@ class zt {
8682
8682
  }
8683
8683
  const { provider_token: s, provider_refresh_token: n, access_token: a, refresh_token: i, expires_in: o, expires_at: c, token_type: u } = e;
8684
8684
  if (!a || !o || !i || !u)
8685
- throw new rr("No session defined in URL");
8685
+ throw new sr("No session defined in URL");
8686
8686
  const d = Math.round(Date.now() / 1e3), f = parseInt(o);
8687
8687
  let m = d + f;
8688
8688
  c && (m = parseInt(c));
@@ -8742,15 +8742,15 @@ class zt {
8742
8742
  return await this._useSession(async (r) => {
8743
8743
  var s;
8744
8744
  const { data: n, error: a } = r;
8745
- if (a && !Pr(a))
8745
+ if (a && !Cr(a))
8746
8746
  return this._returnResult({ error: a });
8747
8747
  const i = (s = n.session) === null || s === void 0 ? void 0 : s.access_token;
8748
8748
  if (i) {
8749
8749
  const { error: o } = await this.admin.signOut(i, e);
8750
- if (o && !(vi(o) && (o.status === 404 || o.status === 401 || o.status === 403) || Pr(o)))
8750
+ if (o && !(vi(o) && (o.status === 404 || o.status === 401 || o.status === 403) || Cr(o)))
8751
8751
  return this._returnResult({ error: o });
8752
8752
  }
8753
- return e !== "others" && (await this._removeSession(), await fe(this.storage, `${this.storageKey}-code-verifier`)), this._returnResult({ error: null });
8753
+ return e !== "others" && (await this._removeSession(), await de(this.storage, `${this.storageKey}-code-verifier`)), this._returnResult({ error: null });
8754
8754
  });
8755
8755
  }
8756
8756
  onAuthStateChange(e) {
@@ -8794,7 +8794,7 @@ class zt {
8794
8794
  // isPasswordRecovery
8795
8795
  ));
8796
8796
  try {
8797
- return await R(this.fetch, "POST", `${this.url}/recover`, {
8797
+ return await C(this.fetch, "POST", `${this.url}/recover`, {
8798
8798
  body: {
8799
8799
  email: e,
8800
8800
  code_challenge: s,
@@ -8805,7 +8805,7 @@ class zt {
8805
8805
  redirectTo: r.redirectTo
8806
8806
  });
8807
8807
  } catch (a) {
8808
- if (await fe(this.storage, `${this.storageKey}-code-verifier`), A(a))
8808
+ if (await de(this.storage, `${this.storageKey}-code-verifier`), A(a))
8809
8809
  return this._returnResult({ data: null, error: a });
8810
8810
  throw a;
8811
8811
  }
@@ -8843,14 +8843,14 @@ class zt {
8843
8843
  queryParams: (c = e.options) === null || c === void 0 ? void 0 : c.queryParams,
8844
8844
  skipBrowserRedirect: !0
8845
8845
  });
8846
- return await R(this.fetch, "GET", p, {
8846
+ return await C(this.fetch, "GET", p, {
8847
8847
  headers: this.headers,
8848
8848
  jwt: (d = (u = f.session) === null || u === void 0 ? void 0 : u.access_token) !== null && d !== void 0 ? d : void 0
8849
8849
  });
8850
8850
  });
8851
8851
  if (n)
8852
8852
  throw n;
8853
- return me() && !(!((r = e.options) === null || r === void 0) && r.skipBrowserRedirect) && window.location.assign(s?.url), this._returnResult({
8853
+ return he() && !(!((r = e.options) === null || r === void 0) && r.skipBrowserRedirect) && window.location.assign(s?.url), this._returnResult({
8854
8854
  data: { provider: e.provider, url: s?.url },
8855
8855
  error: null
8856
8856
  });
@@ -8867,7 +8867,7 @@ class zt {
8867
8867
  const { error: n, data: { session: a } } = r;
8868
8868
  if (n)
8869
8869
  throw n;
8870
- const { options: i, provider: o, token: c, access_token: u, nonce: d } = e, f = await R(this.fetch, "POST", `${this.url}/token?grant_type=id_token`, {
8870
+ const { options: i, provider: o, token: c, access_token: u, nonce: d } = e, f = await C(this.fetch, "POST", `${this.url}/token?grant_type=id_token`, {
8871
8871
  headers: this.headers,
8872
8872
  jwt: (s = a?.access_token) !== null && s !== void 0 ? s : void 0,
8873
8873
  body: {
@@ -8878,14 +8878,14 @@ class zt {
8878
8878
  link_identity: !0,
8879
8879
  gotrue_meta_security: { captcha_token: i?.captchaToken }
8880
8880
  },
8881
- xform: $e
8881
+ xform: De
8882
8882
  }), { data: m, error: p } = f;
8883
8883
  return p ? this._returnResult({ data: { user: null, session: null }, error: p }) : !m || !m.session || !m.user ? this._returnResult({
8884
8884
  data: { user: null, session: null },
8885
8885
  error: new _t()
8886
8886
  }) : (m.session && (await this._saveSession(m.session), await this._notifyAllSubscribers("USER_UPDATED", m.session)), this._returnResult({ data: m, error: p }));
8887
8887
  } catch (n) {
8888
- if (await fe(this.storage, `${this.storageKey}-code-verifier`), A(n))
8888
+ if (await de(this.storage, `${this.storageKey}-code-verifier`), A(n))
8889
8889
  return this._returnResult({ data: { user: null, session: null }, error: n });
8890
8890
  throw n;
8891
8891
  }
@@ -8901,7 +8901,7 @@ class zt {
8901
8901
  const { data: a, error: i } = r;
8902
8902
  if (i)
8903
8903
  throw i;
8904
- return await R(this.fetch, "DELETE", `${this.url}/user/identities/${e.identity_id}`, {
8904
+ return await C(this.fetch, "DELETE", `${this.url}/user/identities/${e.identity_id}`, {
8905
8905
  headers: this.headers,
8906
8906
  jwt: (n = (s = a.session) === null || s === void 0 ? void 0 : s.access_token) !== null && n !== void 0 ? n : void 0
8907
8907
  });
@@ -8921,13 +8921,13 @@ class zt {
8921
8921
  this._debug(r, "begin");
8922
8922
  try {
8923
8923
  const s = Date.now();
8924
- return await Ci(async (n) => (n > 0 && await Ri(200 * Math.pow(2, n - 1)), this._debug(r, "refreshing attempt", n), await R(this.fetch, "POST", `${this.url}/token?grant_type=refresh_token`, {
8924
+ return await Ci(async (n) => (n > 0 && await Ri(200 * Math.pow(2, n - 1)), this._debug(r, "refreshing attempt", n), await C(this.fetch, "POST", `${this.url}/token?grant_type=refresh_token`, {
8925
8925
  body: { refresh_token: e },
8926
8926
  headers: this.headers,
8927
- xform: $e
8927
+ xform: De
8928
8928
  })), (n, a) => {
8929
8929
  const i = 200 * Math.pow(2, n);
8930
- return a && Rr(a) && // retryable only if the request can be sent before the backoff overflows the tick duration
8930
+ return a && Or(a) && // retryable only if the request can be sent before the backoff overflows the tick duration
8931
8931
  Date.now() + i - s < Et;
8932
8932
  });
8933
8933
  } catch (s) {
@@ -8947,7 +8947,7 @@ class zt {
8947
8947
  scopes: r.scopes,
8948
8948
  queryParams: r.queryParams
8949
8949
  });
8950
- return this._debug("#_handleProviderSignIn()", "provider", e, "options", r, "url", s), me() && !r.skipBrowserRedirect && window.location.assign(s), { data: { provider: e, url: s }, error: null };
8950
+ return this._debug("#_handleProviderSignIn()", "provider", e, "options", r, "url", s), he() && !r.skipBrowserRedirect && window.location.assign(s), { data: { provider: e, url: s }, error: null };
8951
8951
  }
8952
8952
  /**
8953
8953
  * Recovers the session from LocalStorage and refreshes the token
@@ -8961,20 +8961,20 @@ class zt {
8961
8961
  const n = await at(this.storage, this.storageKey);
8962
8962
  if (n && this.userStorage) {
8963
8963
  let i = await at(this.userStorage, this.storageKey + "-user");
8964
- !this.storage.isServer && Object.is(this.storage, this.userStorage) && !i && (i = { user: n.user }, await Pt(this.userStorage, this.storageKey + "-user", i)), n.user = (e = i?.user) !== null && e !== void 0 ? e : Cr();
8964
+ !this.storage.isServer && Object.is(this.storage, this.userStorage) && !i && (i = { user: n.user }, await Pt(this.userStorage, this.storageKey + "-user", i)), n.user = (e = i?.user) !== null && e !== void 0 ? e : Nr();
8965
8965
  } else if (n && !n.user && !n.user) {
8966
8966
  const i = await at(this.storage, this.storageKey + "-user");
8967
- i && i?.user ? (n.user = i.user, await fe(this.storage, this.storageKey + "-user"), await Pt(this.storage, this.storageKey, n)) : n.user = Cr();
8967
+ i && i?.user ? (n.user = i.user, await de(this.storage, this.storageKey + "-user"), await Pt(this.storage, this.storageKey, n)) : n.user = Nr();
8968
8968
  }
8969
8969
  if (this._debug(s, "session from storage", n), !this._isValidSession(n)) {
8970
8970
  this._debug(s, "session is not valid"), n !== null && await this._removeSession();
8971
8971
  return;
8972
8972
  }
8973
- const a = ((r = n.expires_at) !== null && r !== void 0 ? r : 1 / 0) * 1e3 - Date.now() < Er;
8974
- if (this._debug(s, `session has${a ? "" : " not"} expired with margin of ${Er}s`), a) {
8973
+ const a = ((r = n.expires_at) !== null && r !== void 0 ? r : 1 / 0) * 1e3 - Date.now() < Rr;
8974
+ if (this._debug(s, `session has${a ? "" : " not"} expired with margin of ${Rr}s`), a) {
8975
8975
  if (this.autoRefreshToken && n.refresh_token) {
8976
8976
  const { error: i } = await this._callRefreshToken(n.refresh_token);
8977
- i && (console.error(i), Rr(i) || (this._debug(s, "refresh failed with a non-retryable error, removing the session", i), await this._removeSession()));
8977
+ i && (console.error(i), Or(i) || (this._debug(s, "refresh failed with a non-retryable error, removing the session", i), await this._removeSession()));
8978
8978
  }
8979
8979
  } else if (n.user && n.user.__isUserNotAvailableProxy === !0)
8980
8980
  try {
@@ -8995,25 +8995,25 @@ class zt {
8995
8995
  async _callRefreshToken(e) {
8996
8996
  var r, s;
8997
8997
  if (!e)
8998
- throw new Se();
8998
+ throw new ke();
8999
8999
  if (this.refreshingDeferred)
9000
9000
  return this.refreshingDeferred.promise;
9001
9001
  const n = `#_callRefreshToken(${e.substring(0, 5)}...)`;
9002
9002
  this._debug(n, "begin");
9003
9003
  try {
9004
- this.refreshingDeferred = new gr();
9004
+ this.refreshingDeferred = new yr();
9005
9005
  const { data: a, error: i } = await this._refreshAccessToken(e);
9006
9006
  if (i)
9007
9007
  throw i;
9008
9008
  if (!a.session)
9009
- throw new Se();
9009
+ throw new ke();
9010
9010
  await this._saveSession(a.session), await this._notifyAllSubscribers("TOKEN_REFRESHED", a.session);
9011
9011
  const o = { data: a.session, error: null };
9012
9012
  return this.refreshingDeferred.resolve(o), o;
9013
9013
  } catch (a) {
9014
9014
  if (this._debug(n, "error", a), A(a)) {
9015
9015
  const i = { data: null, error: a };
9016
- return Rr(a) || await this._removeSession(), (r = this.refreshingDeferred) === null || r === void 0 || r.resolve(i), i;
9016
+ return Or(a) || await this._removeSession(), (r = this.refreshingDeferred) === null || r === void 0 || r.resolve(i), i;
9017
9017
  }
9018
9018
  throw (s = this.refreshingDeferred) === null || s === void 0 || s.reject(a), a;
9019
9019
  } finally {
@@ -9046,7 +9046,7 @@ class zt {
9046
9046
  * process to _startAutoRefreshToken if possible
9047
9047
  */
9048
9048
  async _saveSession(e) {
9049
- this._debug("#_saveSession()", e), this.suppressGetSessionWarning = !0, await fe(this.storage, `${this.storageKey}-code-verifier`);
9049
+ this._debug("#_saveSession()", e), this.suppressGetSessionWarning = !0, await de(this.storage, `${this.storageKey}-code-verifier`);
9050
9050
  const r = Object.assign({}, e), s = r.user && r.user.__isUserNotAvailableProxy === !0;
9051
9051
  if (this.userStorage) {
9052
9052
  !s && r.user && await Pt(this.userStorage, this.storageKey + "-user", {
@@ -9062,7 +9062,7 @@ class zt {
9062
9062
  }
9063
9063
  }
9064
9064
  async _removeSession() {
9065
- this._debug("#_removeSession()"), this.suppressGetSessionWarning = !1, await fe(this.storage, this.storageKey), await fe(this.storage, this.storageKey + "-code-verifier"), await fe(this.storage, this.storageKey + "-user"), this.userStorage && await fe(this.userStorage, this.storageKey + "-user"), await this._notifyAllSubscribers("SIGNED_OUT", null);
9065
+ this._debug("#_removeSession()"), this.suppressGetSessionWarning = !1, await de(this.storage, this.storageKey), await de(this.storage, this.storageKey + "-code-verifier"), await de(this.storage, this.storageKey + "-user"), this.userStorage && await de(this.userStorage, this.storageKey + "-user"), await this._notifyAllSubscribers("SIGNED_OUT", null);
9066
9066
  }
9067
9067
  /**
9068
9068
  * Removes any registered visibilitychange callback.
@@ -9075,7 +9075,7 @@ class zt {
9075
9075
  const e = this.visibilityChangedCallback;
9076
9076
  this.visibilityChangedCallback = null;
9077
9077
  try {
9078
- e && me() && window?.removeEventListener && window.removeEventListener("visibilitychange", e);
9078
+ e && he() && window?.removeEventListener && window.removeEventListener("visibilitychange", e);
9079
9079
  } catch (r) {
9080
9080
  console.error("removing visibilitychange callback failed", r);
9081
9081
  }
@@ -9157,7 +9157,7 @@ class zt {
9157
9157
  return;
9158
9158
  }
9159
9159
  const n = Math.floor((s.expires_at * 1e3 - e) / Et);
9160
- this._debug("#_autoRefreshTokenTick()", `access token expires in ${n} ticks, a tick lasts ${Et}ms, refresh threshold is ${Br} ticks`), n <= Br && await this._callRefreshToken(s.refresh_token);
9160
+ this._debug("#_autoRefreshTokenTick()", `access token expires in ${n} ticks, a tick lasts ${Et}ms, refresh threshold is ${Kr} ticks`), n <= Kr && await this._callRefreshToken(s.refresh_token);
9161
9161
  });
9162
9162
  } catch (r) {
9163
9163
  console.error("Auto refresh tick failed with error. This is likely a transient error.", r);
@@ -9179,7 +9179,7 @@ class zt {
9179
9179
  * platforms it assumes always foreground.
9180
9180
  */
9181
9181
  async _handleVisibilityChange() {
9182
- if (this._debug("#_handleVisibilityChange()"), !me() || !window?.addEventListener)
9182
+ if (this._debug("#_handleVisibilityChange()"), !he() || !window?.addEventListener)
9183
9183
  return this.autoRefreshToken && this.startAutoRefresh(), !1;
9184
9184
  try {
9185
9185
  this.visibilityChangedCallback = async () => {
@@ -9232,7 +9232,7 @@ class zt {
9232
9232
  return await this._useSession(async (r) => {
9233
9233
  var s;
9234
9234
  const { data: n, error: a } = r;
9235
- return a ? this._returnResult({ data: null, error: a }) : await R(this.fetch, "DELETE", `${this.url}/factors/${e.factorId}`, {
9235
+ return a ? this._returnResult({ data: null, error: a }) : await C(this.fetch, "DELETE", `${this.url}/factors/${e.factorId}`, {
9236
9236
  headers: this.headers,
9237
9237
  jwt: (s = n?.session) === null || s === void 0 ? void 0 : s.access_token
9238
9238
  });
@@ -9250,7 +9250,7 @@ class zt {
9250
9250
  const { data: a, error: i } = r;
9251
9251
  if (i)
9252
9252
  return this._returnResult({ data: null, error: i });
9253
- const o = Object.assign({ friendly_name: e.friendlyName, factor_type: e.factorType }, e.factorType === "phone" ? { phone: e.phone } : e.factorType === "totp" ? { issuer: e.issuer } : {}), { data: c, error: u } = await R(this.fetch, "POST", `${this.url}/factors`, {
9253
+ const o = Object.assign({ friendly_name: e.friendlyName, factor_type: e.factorType }, e.factorType === "phone" ? { phone: e.phone } : e.factorType === "totp" ? { issuer: e.issuer } : {}), { data: c, error: u } = await C(this.fetch, "POST", `${this.url}/factors`, {
9254
9254
  body: o,
9255
9255
  headers: this.headers,
9256
9256
  jwt: (s = a?.session) === null || s === void 0 ? void 0 : s.access_token
@@ -9273,7 +9273,7 @@ class zt {
9273
9273
  return this._returnResult({ data: null, error: a });
9274
9274
  const i = Object.assign({ challenge_id: e.challengeId }, "webauthn" in e ? {
9275
9275
  webauthn: Object.assign(Object.assign({}, e.webauthn), { credential_response: e.webauthn.type === "create" ? io(e.webauthn.credential_response) : oo(e.webauthn.credential_response) })
9276
- } : { code: e.code }), { data: o, error: c } = await R(this.fetch, "POST", `${this.url}/factors/${e.factorId}/verify`, {
9276
+ } : { code: e.code }), { data: o, error: c } = await C(this.fetch, "POST", `${this.url}/factors/${e.factorId}/verify`, {
9277
9277
  body: i,
9278
9278
  headers: this.headers,
9279
9279
  jwt: (s = n?.session) === null || s === void 0 ? void 0 : s.access_token
@@ -9295,7 +9295,7 @@ class zt {
9295
9295
  const { data: n, error: a } = r;
9296
9296
  if (a)
9297
9297
  return this._returnResult({ data: null, error: a });
9298
- const i = await R(this.fetch, "POST", `${this.url}/factors/${e.factorId}/challenge`, {
9298
+ const i = await C(this.fetch, "POST", `${this.url}/factors/${e.factorId}/challenge`, {
9299
9299
  body: e,
9300
9300
  headers: this.headers,
9301
9301
  jwt: (s = n?.session) === null || s === void 0 ? void 0 : s.access_token
@@ -9366,7 +9366,7 @@ class zt {
9366
9366
  var r, s, n, a;
9367
9367
  if (e)
9368
9368
  try {
9369
- const { payload: p } = sr(e);
9369
+ const { payload: p } = nr(e);
9370
9370
  let g = null;
9371
9371
  p.aal && (g = p.aal);
9372
9372
  let y = g;
@@ -9389,7 +9389,7 @@ class zt {
9389
9389
  data: { currentLevel: null, nextLevel: null, currentAuthenticationMethods: [] },
9390
9390
  error: null
9391
9391
  };
9392
- const { payload: c } = sr(i.access_token);
9392
+ const { payload: c } = nr(i.access_token);
9393
9393
  let u = null;
9394
9394
  c.aal && (u = c.aal);
9395
9395
  let d = u;
@@ -9409,11 +9409,11 @@ class zt {
9409
9409
  try {
9410
9410
  return await this._useSession(async (r) => {
9411
9411
  const { data: { session: s }, error: n } = r;
9412
- return n ? this._returnResult({ data: null, error: n }) : s ? await R(this.fetch, "GET", `${this.url}/oauth/authorizations/${e}`, {
9412
+ return n ? this._returnResult({ data: null, error: n }) : s ? await C(this.fetch, "GET", `${this.url}/oauth/authorizations/${e}`, {
9413
9413
  headers: this.headers,
9414
9414
  jwt: s.access_token,
9415
9415
  xform: (a) => ({ data: a, error: null })
9416
- }) : this._returnResult({ data: null, error: new Se() });
9416
+ }) : this._returnResult({ data: null, error: new ke() });
9417
9417
  });
9418
9418
  } catch (r) {
9419
9419
  if (A(r))
@@ -9432,14 +9432,14 @@ class zt {
9432
9432
  if (a)
9433
9433
  return this._returnResult({ data: null, error: a });
9434
9434
  if (!n)
9435
- return this._returnResult({ data: null, error: new Se() });
9436
- const i = await R(this.fetch, "POST", `${this.url}/oauth/authorizations/${e}/consent`, {
9435
+ return this._returnResult({ data: null, error: new ke() });
9436
+ const i = await C(this.fetch, "POST", `${this.url}/oauth/authorizations/${e}/consent`, {
9437
9437
  headers: this.headers,
9438
9438
  jwt: n.access_token,
9439
9439
  body: { action: "approve" },
9440
9440
  xform: (o) => ({ data: o, error: null })
9441
9441
  });
9442
- return i.data && i.data.redirect_url && me() && !r?.skipBrowserRedirect && window.location.assign(i.data.redirect_url), i;
9442
+ return i.data && i.data.redirect_url && he() && !r?.skipBrowserRedirect && window.location.assign(i.data.redirect_url), i;
9443
9443
  });
9444
9444
  } catch (s) {
9445
9445
  if (A(s))
@@ -9458,14 +9458,14 @@ class zt {
9458
9458
  if (a)
9459
9459
  return this._returnResult({ data: null, error: a });
9460
9460
  if (!n)
9461
- return this._returnResult({ data: null, error: new Se() });
9462
- const i = await R(this.fetch, "POST", `${this.url}/oauth/authorizations/${e}/consent`, {
9461
+ return this._returnResult({ data: null, error: new ke() });
9462
+ const i = await C(this.fetch, "POST", `${this.url}/oauth/authorizations/${e}/consent`, {
9463
9463
  headers: this.headers,
9464
9464
  jwt: n.access_token,
9465
9465
  body: { action: "deny" },
9466
9466
  xform: (o) => ({ data: o, error: null })
9467
9467
  });
9468
- return i.data && i.data.redirect_url && me() && !r?.skipBrowserRedirect && window.location.assign(i.data.redirect_url), i;
9468
+ return i.data && i.data.redirect_url && he() && !r?.skipBrowserRedirect && window.location.assign(i.data.redirect_url), i;
9469
9469
  });
9470
9470
  } catch (s) {
9471
9471
  if (A(s))
@@ -9481,11 +9481,11 @@ class zt {
9481
9481
  try {
9482
9482
  return await this._useSession(async (e) => {
9483
9483
  const { data: { session: r }, error: s } = e;
9484
- return s ? this._returnResult({ data: null, error: s }) : r ? await R(this.fetch, "GET", `${this.url}/user/oauth/grants`, {
9484
+ return s ? this._returnResult({ data: null, error: s }) : r ? await C(this.fetch, "GET", `${this.url}/user/oauth/grants`, {
9485
9485
  headers: this.headers,
9486
9486
  jwt: r.access_token,
9487
9487
  xform: (n) => ({ data: n, error: null })
9488
- }) : this._returnResult({ data: null, error: new Se() });
9488
+ }) : this._returnResult({ data: null, error: new ke() });
9489
9489
  });
9490
9490
  } catch (e) {
9491
9491
  if (A(e))
@@ -9501,12 +9501,12 @@ class zt {
9501
9501
  try {
9502
9502
  return await this._useSession(async (r) => {
9503
9503
  const { data: { session: s }, error: n } = r;
9504
- return n ? this._returnResult({ data: null, error: n }) : s ? (await R(this.fetch, "DELETE", `${this.url}/user/oauth/grants`, {
9504
+ return n ? this._returnResult({ data: null, error: n }) : s ? (await C(this.fetch, "DELETE", `${this.url}/user/oauth/grants`, {
9505
9505
  headers: this.headers,
9506
9506
  jwt: s.access_token,
9507
9507
  query: { client_id: e.clientId },
9508
9508
  noResolveJson: !0
9509
- }), { data: {}, error: null }) : this._returnResult({ data: null, error: new Se() });
9509
+ }), { data: {}, error: null }) : this._returnResult({ data: null, error: new ke() });
9510
9510
  });
9511
9511
  } catch (r) {
9512
9512
  if (A(r))
@@ -9521,7 +9521,7 @@ class zt {
9521
9521
  const n = Date.now();
9522
9522
  if (s = this.jwks.keys.find((o) => o.kid === e), s && this.jwks_cached_at + gi > n)
9523
9523
  return s;
9524
- const { data: a, error: i } = await R(this.fetch, "GET", `${this.url}/.well-known/jwks.json`, {
9524
+ const { data: a, error: i } = await C(this.fetch, "GET", `${this.url}/.well-known/jwks.json`, {
9525
9525
  headers: this.headers
9526
9526
  });
9527
9527
  if (i)
@@ -9553,7 +9553,7 @@ class zt {
9553
9553
  return this._returnResult({ data: null, error: g });
9554
9554
  s = p.session.access_token;
9555
9555
  }
9556
- const { header: n, payload: a, signature: i, raw: { header: o, payload: c } } = sr(s);
9556
+ const { header: n, payload: a, signature: i, raw: { header: o, payload: c } } = nr(s);
9557
9557
  r?.allowExpired || Ui(a.exp);
9558
9558
  const u = !n.alg || n.alg.startsWith("HS") || !n.kid || !("crypto" in globalThis && "subtle" in globalThis.crypto) ? null : await this.fetchJwk(n.kid, r?.keys ? { keys: r.keys } : r?.jwks);
9559
9559
  if (!u) {
@@ -9573,7 +9573,7 @@ class zt {
9573
9573
  "verify"
9574
9574
  ]);
9575
9575
  if (!await crypto.subtle.verify(d, f, i, Ti(`${o}.${c}`)))
9576
- throw new qr("Invalid JWT signature");
9576
+ throw new Hr("Invalid JWT signature");
9577
9577
  return {
9578
9578
  data: {
9579
9579
  claims: a,
@@ -9589,37 +9589,37 @@ class zt {
9589
9589
  }
9590
9590
  }
9591
9591
  }
9592
- zt.nextInstanceID = {};
9593
- const yo = zt, vo = "2.97.0";
9594
- let Ut = "";
9595
- typeof Deno < "u" ? Ut = "deno" : typeof document < "u" ? Ut = "web" : typeof navigator < "u" && navigator.product === "ReactNative" ? Ut = "react-native" : Ut = "node";
9596
- const bo = { "X-Client-Info": `supabase-js-${Ut}/${vo}` }, wo = { headers: bo }, _o = { schema: "public" }, ko = {
9592
+ Vt.nextInstanceID = {};
9593
+ const yo = Vt, vo = "2.97.0";
9594
+ let Mt = "";
9595
+ typeof Deno < "u" ? Mt = "deno" : typeof document < "u" ? Mt = "web" : typeof navigator < "u" && navigator.product === "ReactNative" ? Mt = "react-native" : Mt = "node";
9596
+ const bo = { "X-Client-Info": `supabase-js-${Mt}/${vo}` }, wo = { headers: bo }, _o = { schema: "public" }, ko = {
9597
9597
  autoRefreshToken: !0,
9598
9598
  persistSession: !0,
9599
9599
  detectSessionInUrl: !0,
9600
9600
  flowType: "implicit"
9601
9601
  }, So = {};
9602
- function Vt(t) {
9602
+ function Jt(t) {
9603
9603
  "@babel/helpers - typeof";
9604
- return Vt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
9604
+ return Jt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
9605
9605
  return typeof e;
9606
9606
  } : function(e) {
9607
9607
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
9608
- }, Vt(t);
9608
+ }, Jt(t);
9609
9609
  }
9610
9610
  function xo(t, e) {
9611
- if (Vt(t) != "object" || !t) return t;
9611
+ if (Jt(t) != "object" || !t) return t;
9612
9612
  var r = t[Symbol.toPrimitive];
9613
9613
  if (r !== void 0) {
9614
9614
  var s = r.call(t, e);
9615
- if (Vt(s) != "object") return s;
9615
+ if (Jt(s) != "object") return s;
9616
9616
  throw new TypeError("@@toPrimitive must return a primitive value.");
9617
9617
  }
9618
9618
  return (e === "string" ? String : Number)(t);
9619
9619
  }
9620
9620
  function To(t) {
9621
9621
  var e = xo(t, "string");
9622
- return Vt(e) == "symbol" ? e : e + "";
9622
+ return Jt(e) == "symbol" ? e : e + "";
9623
9623
  }
9624
9624
  function jo(t, e, r) {
9625
9625
  return (e = To(e)) in t ? Object.defineProperty(t, e, {
@@ -9893,7 +9893,7 @@ function Cs(t) {
9893
9893
  }
9894
9894
  return e.push(r), e.map((n) => n.trim().replace(/^"|"$/g, ""));
9895
9895
  }
9896
- function Re(t, ...e) {
9896
+ function Pe(t, ...e) {
9897
9897
  const r = (n) => n.trim().toLowerCase().replace(/[_\s]+/g, " ").trim(), s = /* @__PURE__ */ new Map();
9898
9898
  Object.entries(t).forEach(([n, a]) => s.set(r(n), a));
9899
9899
  for (const n of e) {
@@ -9915,26 +9915,26 @@ function Uo(t) {
9915
9915
  s.forEach((d, f) => {
9916
9916
  o[d] = i[f] ?? "";
9917
9917
  });
9918
- const c = Re(o, "store_id", "store id"), u = Re(o, "pooja_title", "pooja title", "puja title");
9918
+ const c = Pe(o, "store_id", "store id"), u = Pe(o, "pooja_title", "pooja title", "puja title");
9919
9919
  !c || !u || n.push({
9920
9920
  store_id: c,
9921
9921
  pooja_title: u,
9922
- temple_name: Re(o, "temple_name", "temple name") || "",
9923
- pooja_title_english: Re(o, "pooja_title_english", "pooja title english", "puja title english") || void 0,
9924
- temple_name_english: Re(o, "temple_name_english", "temple name english") || void 0,
9925
- cover_media_url: Re(o, "cover_media_url", "cover media url", "cover image") || void 0,
9926
- cover_media_url_english: Re(
9922
+ temple_name: Pe(o, "temple_name", "temple name") || "",
9923
+ pooja_title_english: Pe(o, "pooja_title_english", "pooja title english", "puja title english") || void 0,
9924
+ temple_name_english: Pe(o, "temple_name_english", "temple name english") || void 0,
9925
+ cover_media_url: Pe(o, "cover_media_url", "cover media url", "cover image") || void 0,
9926
+ cover_media_url_english: Pe(
9927
9927
  o,
9928
9928
  "cover_media_url_english",
9929
9929
  "cover media url english",
9930
9930
  "cover image english"
9931
9931
  ) || void 0,
9932
- puja_link: Re(o, "puja_link", "puja link", "pooja link") || Re(o, "puja link", "pooja link") || "",
9933
- puja_link_hindi: Re(o, "puja_link_hindi", "puja link hindi", "pooja link hindi") || void 0,
9932
+ puja_link: Pe(o, "puja_link", "puja link", "pooja link") || Pe(o, "puja link", "pooja link") || "",
9933
+ puja_link_hindi: Pe(o, "puja_link_hindi", "puja link hindi", "pooja link hindi") || void 0,
9934
9934
  individual_pack_price_inr: parseFloat(
9935
- Re(o, "individual_pack_price_inr", "individual pack price inr", "price")
9935
+ Pe(o, "individual_pack_price_inr", "individual pack price inr", "price")
9936
9936
  ) || 0,
9937
- schedule_date_ist: Re(o, "schedule_date_ist", "schedule date ist", "schedule date") || ""
9937
+ schedule_date_ist: Pe(o, "schedule_date_ist", "schedule date ist", "schedule date") || ""
9938
9938
  });
9939
9939
  }
9940
9940
  return n;
@@ -10132,7 +10132,7 @@ const Vo = "_container_m8vst_1", Jo = {
10132
10132
  function Yo() {
10133
10133
  return /* @__PURE__ */ l.jsx("div", { className: Jo.container, children: "100% Accurate • Secure • Trusted by 30L+ families" });
10134
10134
  }
10135
- const Qo = "_ctaFilled_1po13_2", Xo = "_ctaFilledContent_1po13_7", Zo = "_chevronRight_1po13_14", el = "_bookPujaButton_1po13_21", tl = "_bookPujaContent_1po13_27", rl = "_pujaInfo_1po13_36", sl = "_pujaName_1po13_44", nl = "_pujaPrice_1po13_57", al = "_priceLabel_1po13_64", il = "_priceAmount_1po13_68", ol = "_bookButton_1po13_74", Ce = {
10135
+ const Qo = "_ctaFilled_1po13_2", Xo = "_ctaFilledContent_1po13_7", Zo = "_chevronRight_1po13_14", el = "_bookPujaButton_1po13_21", tl = "_bookPujaContent_1po13_27", rl = "_pujaInfo_1po13_36", sl = "_pujaName_1po13_44", nl = "_pujaPrice_1po13_57", al = "_priceLabel_1po13_64", il = "_priceAmount_1po13_68", ol = "_bookButton_1po13_74", Re = {
10136
10136
  ctaFilled: Qo,
10137
10137
  ctaFilledContent: Xo,
10138
10138
  chevronRight: Zo,
@@ -10161,19 +10161,19 @@ function cl({
10161
10161
  {
10162
10162
  onClick: e,
10163
10163
  disabled: n,
10164
- className: Ce.bookPujaButton,
10165
- children: /* @__PURE__ */ l.jsxs("div", { className: Ce.bookPujaContent, children: [
10166
- /* @__PURE__ */ l.jsxs("div", { className: Ce.pujaInfo, children: [
10167
- /* @__PURE__ */ l.jsx("span", { className: Ce.pujaName, children: i.name }),
10168
- /* @__PURE__ */ l.jsxs("div", { className: Ce.pujaPrice, children: [
10169
- /* @__PURE__ */ l.jsx("span", { className: Ce.priceLabel, children: "Starting from " }),
10170
- /* @__PURE__ */ l.jsxs("span", { className: Ce.priceAmount, children: [
10164
+ className: Re.bookPujaButton,
10165
+ children: /* @__PURE__ */ l.jsxs("div", { className: Re.bookPujaContent, children: [
10166
+ /* @__PURE__ */ l.jsxs("div", { className: Re.pujaInfo, children: [
10167
+ /* @__PURE__ */ l.jsx("span", { className: Re.pujaName, children: i.name }),
10168
+ /* @__PURE__ */ l.jsxs("div", { className: Re.pujaPrice, children: [
10169
+ /* @__PURE__ */ l.jsx("span", { className: Re.priceLabel, children: "Starting from " }),
10170
+ /* @__PURE__ */ l.jsxs("span", { className: Re.priceAmount, children: [
10171
10171
  "₹",
10172
10172
  i.price
10173
10173
  ] })
10174
10174
  ] })
10175
10175
  ] }),
10176
- /* @__PURE__ */ l.jsxs("span", { className: Ce.bookButton, children: [
10176
+ /* @__PURE__ */ l.jsxs("span", { className: Re.bookButton, children: [
10177
10177
  c,
10178
10178
  " →"
10179
10179
  ] })
@@ -10184,15 +10184,15 @@ function cl({
10184
10184
  {
10185
10185
  onClick: e,
10186
10186
  disabled: n,
10187
- className: t ? Ce.ctaFilled : void 0,
10188
- children: n ? /* @__PURE__ */ l.jsx("span", { className: Ce.ctaFilledContent, children: /* @__PURE__ */ l.jsx("span", { "aria-hidden": "true", children: "…" }) }) : t ? /* @__PURE__ */ l.jsxs("span", { className: Ce.ctaFilledContent, children: [
10187
+ className: t ? Re.ctaFilled : void 0,
10188
+ children: n ? /* @__PURE__ */ l.jsx("span", { className: Re.ctaFilledContent, children: /* @__PURE__ */ l.jsx("span", { "aria-hidden": "true", children: "…" }) }) : t ? /* @__PURE__ */ l.jsxs("span", { className: Re.ctaFilledContent, children: [
10189
10189
  s,
10190
10190
  /* @__PURE__ */ l.jsx(
10191
10191
  "img",
10192
10192
  {
10193
10193
  src: ll,
10194
10194
  alt: "",
10195
- className: Ce.chevronRight,
10195
+ className: Re.chevronRight,
10196
10196
  width: 20,
10197
10197
  height: 20,
10198
10198
  "aria-hidden": "true"
@@ -10202,7 +10202,7 @@ function cl({
10202
10202
  }
10203
10203
  );
10204
10204
  }
10205
- const ul = "_bannerContainer_1s29r_1", dl = "_bannerImage_1s29r_13", hl = "_ticker_1s29r_20", fl = "_tickerContent_1s29r_30", nr = {
10205
+ const ul = "_bannerContainer_1s29r_1", dl = "_bannerImage_1s29r_13", hl = "_ticker_1s29r_20", fl = "_tickerContent_1s29r_30", ar = {
10206
10206
  bannerContainer: ul,
10207
10207
  bannerImage: dl,
10208
10208
  ticker: hl,
@@ -10212,17 +10212,17 @@ function ml({
10212
10212
  bannerConfig: t,
10213
10213
  className: e = ""
10214
10214
  }) {
10215
- return /* @__PURE__ */ l.jsxs("section", { className: `${nr.bannerContainer} ${e}`, children: [
10215
+ return /* @__PURE__ */ l.jsxs("section", { className: `${ar.bannerContainer} ${e}`, children: [
10216
10216
  /* @__PURE__ */ l.jsx(
10217
10217
  "img",
10218
10218
  {
10219
10219
  src: t.imageUrl,
10220
10220
  alt: t.alt,
10221
- className: nr.bannerImage,
10221
+ className: ar.bannerImage,
10222
10222
  loading: "eager"
10223
10223
  }
10224
10224
  ),
10225
- /* @__PURE__ */ l.jsx("div", { className: nr.ticker, children: /* @__PURE__ */ l.jsx("div", { className: nr.tickerContent, children: t.tickerText }) })
10225
+ /* @__PURE__ */ l.jsx("div", { className: ar.ticker, children: /* @__PURE__ */ l.jsx("div", { className: ar.tickerContent, children: t.tickerText }) })
10226
10226
  ] });
10227
10227
  }
10228
10228
  const pl = 112;
@@ -10231,8 +10231,8 @@ function Ye({
10231
10231
  children: e,
10232
10232
  onImpression: r
10233
10233
  }) {
10234
- const s = de(null), n = de(!1);
10235
- return xe(() => {
10234
+ const s = ue(null), n = ue(!1);
10235
+ return Se(() => {
10236
10236
  const a = s.current;
10237
10237
  if (!a) return;
10238
10238
  const i = new IntersectionObserver(
@@ -10382,7 +10382,7 @@ const nu = ["en", "hi"], au = {
10382
10382
  formTimeRequired: "Time is required when birth time is known.",
10383
10383
  formPlaceRequired: "Birth place is required.",
10384
10384
  formPlaceSelectFromDropdown: "Please select a place from the dropdown list.",
10385
- formAgeMarriageRestriction: "Please select appropriate problem areas. Marriage-related issues are applicable for users above 18 years.",
10385
+ formAgeMarriageRestriction: "Please select appropriate problem areas. Marriage, financial, career, and business-related issues are applicable for users above 18 years.",
10386
10386
  locationError: "Could not get location coordinates. Please try again.",
10387
10387
  calculationResolvingPlace: "Resolving place…",
10388
10388
  info: "Info",
@@ -10656,7 +10656,7 @@ Brings steady progress and long-term protection.`,
10656
10656
  formTimeRequired: "यदि जन्म समय ज्ञात है, तो समय आवश्यक है।",
10657
10657
  formPlaceRequired: "जन्म स्थान आवश्यक है।",
10658
10658
  formPlaceSelectFromDropdown: "कृपया ड्रॉपडाउन सूची से स्थान चुनें।",
10659
- formAgeMarriageRestriction: "कृपया उचित समस्या क्षेत्र चुनें। विवाह संबंधी समस्याएं 18 वर्ष से अधिक आयु के उपयोगकर्ताओं के लिए हैं।",
10659
+ formAgeMarriageRestriction: "कृपया उचित समस्या क्षेत्र चुनें। विवाह, वित्तीय, करियर और व्यापार संबंधी समस्याएं 18 वर्ष से अधिक आयु के उपयोगकर्ताओं के लिए हैं।",
10660
10660
  locationError: "लोकेशन निर्देशांक प्राप्त नहीं हो सके। कृपया पुनः प्रयास करें।",
10661
10661
  calculationResolvingPlace: "स्थान जांच रहे हैं…",
10662
10662
  info: "जानकारी",
@@ -10807,7 +10807,7 @@ function iu({ locale: t, children: e }) {
10807
10807
  function yl() {
10808
10808
  return qn(En);
10809
10809
  }
10810
- const vl = "_wrap_pkduc_1", bl = "_input_pkduc_5", wl = "_iconBtn_pkduc_28", _l = "_iconImg_pkduc_42", ar = {
10810
+ const vl = "_wrap_pkduc_1", bl = "_input_pkduc_5", wl = "_iconBtn_pkduc_28", _l = "_iconImg_pkduc_42", ir = {
10811
10811
  wrap: vl,
10812
10812
  input: bl,
10813
10813
  iconBtn: wl,
@@ -10820,7 +10820,7 @@ function Sl({
10820
10820
  onOpen: s,
10821
10821
  className: n = ""
10822
10822
  }) {
10823
- const a = de(null), i = nn(() => {
10823
+ const a = ue(null), i = nn(() => {
10824
10824
  const c = /* @__PURE__ */ new Date(), u = (d) => String(d).padStart(2, "0");
10825
10825
  return `${c.getFullYear()}-${u(c.getMonth() + 1)}-${u(c.getDate())}`;
10826
10826
  }, []), o = () => {
@@ -10828,14 +10828,14 @@ function Sl({
10828
10828
  const c = a.current;
10829
10829
  c && typeof c.showPicker == "function" ? c.showPicker() : c?.focus();
10830
10830
  };
10831
- return /* @__PURE__ */ l.jsxs("div", { className: `${ar.wrap} ${n}`, children: [
10831
+ return /* @__PURE__ */ l.jsxs("div", { className: `${ir.wrap} ${n}`, children: [
10832
10832
  /* @__PURE__ */ l.jsx(
10833
10833
  "input",
10834
10834
  {
10835
10835
  ref: a,
10836
10836
  id: t,
10837
10837
  type: "date",
10838
- className: ar.input,
10838
+ className: ir.input,
10839
10839
  value: e,
10840
10840
  max: i,
10841
10841
  onChange: (c) => {
@@ -10849,7 +10849,7 @@ function Sl({
10849
10849
  "button",
10850
10850
  {
10851
10851
  type: "button",
10852
- className: ar.iconBtn,
10852
+ className: ir.iconBtn,
10853
10853
  "aria-label": "Open date picker",
10854
10854
  onMouseDown: (c) => c.preventDefault(),
10855
10855
  onClick: (c) => {
@@ -10858,7 +10858,7 @@ function Sl({
10858
10858
  children: /* @__PURE__ */ l.jsx(
10859
10859
  "img",
10860
10860
  {
10861
- className: ar.iconImg,
10861
+ className: ir.iconImg,
10862
10862
  src: kl,
10863
10863
  alt: "",
10864
10864
  "aria-hidden": "true",
@@ -10870,7 +10870,7 @@ function Sl({
10870
10870
  )
10871
10871
  ] });
10872
10872
  }
10873
- const xl = "_wrap_1af76_1", Tl = "_input_1af76_5", jl = "_iconBtn_1af76_21", Al = "_iconImg_1af76_35", El = "_timePopover_1af76_39", Pl = "_timePickerRow_1af76_55", Rl = "_timePickerSelect_1af76_61", Cl = "_timePickerColon_1af76_77", Ol = "_meridiemToggle_1af76_85", Nl = "_meridiemBtn_1af76_94", Il = "_meridiemActive_1af76_109", Dl = "_timePopoverActions_1af76_114", $l = "_timePopoverBtn_1af76_120", Ll = "_timePopoverOk_1af76_139", ue = {
10873
+ const xl = "_wrap_1af76_1", Tl = "_input_1af76_5", jl = "_iconBtn_1af76_21", Al = "_iconImg_1af76_35", El = "_timePopover_1af76_39", Pl = "_timePickerRow_1af76_55", Rl = "_timePickerSelect_1af76_61", Cl = "_timePickerColon_1af76_77", Ol = "_meridiemToggle_1af76_85", Nl = "_meridiemBtn_1af76_94", Il = "_meridiemActive_1af76_109", Dl = "_timePopoverActions_1af76_114", $l = "_timePopoverBtn_1af76_120", Ll = "_timePopoverOk_1af76_139", ce = {
10874
10874
  wrap: xl,
10875
10875
  input: Tl,
10876
10876
  iconBtn: jl,
@@ -10912,8 +10912,8 @@ function Kl({
10912
10912
  disabled: a = !1,
10913
10913
  className: i = ""
10914
10914
  }) {
10915
- const o = de(null), [c, u] = q(!1), [d, f] = q({ hour12: 12, minute: "00", meridiem: "AM" });
10916
- xe(() => {
10915
+ const o = ue(null), [c, u] = q(!1), [d, f] = q({ hour12: 12, minute: "00", meridiem: "AM" });
10916
+ Se(() => {
10917
10917
  const g = (y) => {
10918
10918
  o.current && (o.current.contains(y.target) || u(!1));
10919
10919
  };
@@ -10925,12 +10925,12 @@ function Kl({
10925
10925
  const g = Fl(d);
10926
10926
  r(g), u(!1);
10927
10927
  };
10928
- return /* @__PURE__ */ l.jsxs("div", { className: `${ue.wrap} ${i}`, ref: o, children: [
10928
+ return /* @__PURE__ */ l.jsxs("div", { className: `${ce.wrap} ${i}`, ref: o, children: [
10929
10929
  /* @__PURE__ */ l.jsx(
10930
10930
  "input",
10931
10931
  {
10932
10932
  id: t,
10933
- className: ue.input,
10933
+ className: ce.input,
10934
10934
  type: "text",
10935
10935
  value: e ? Ml(e) : "",
10936
10936
  readOnly: !0,
@@ -10943,7 +10943,7 @@ function Kl({
10943
10943
  "button",
10944
10944
  {
10945
10945
  type: "button",
10946
- className: ue.iconBtn,
10946
+ className: ce.iconBtn,
10947
10947
  "aria-label": "Open time picker",
10948
10948
  disabled: a,
10949
10949
  onMouseDown: (g) => g.preventDefault(),
@@ -10953,7 +10953,7 @@ function Kl({
10953
10953
  children: /* @__PURE__ */ l.jsx(
10954
10954
  "img",
10955
10955
  {
10956
- className: ue.iconImg,
10956
+ className: ce.iconImg,
10957
10957
  src: Ul,
10958
10958
  alt: "",
10959
10959
  "aria-hidden": "true",
@@ -10966,15 +10966,15 @@ function Kl({
10966
10966
  c && !a && /* @__PURE__ */ l.jsxs(
10967
10967
  "div",
10968
10968
  {
10969
- className: ue.timePopover,
10969
+ className: ce.timePopover,
10970
10970
  role: "dialog",
10971
10971
  "aria-label": "Select time",
10972
10972
  children: [
10973
- /* @__PURE__ */ l.jsxs("div", { className: ue.timePickerRow, children: [
10973
+ /* @__PURE__ */ l.jsxs("div", { className: ce.timePickerRow, children: [
10974
10974
  /* @__PURE__ */ l.jsx(
10975
10975
  "select",
10976
10976
  {
10977
- className: ue.timePickerSelect,
10977
+ className: ce.timePickerSelect,
10978
10978
  value: d.hour12,
10979
10979
  onChange: (g) => f((y) => ({
10980
10980
  ...y,
@@ -10984,23 +10984,23 @@ function Kl({
10984
10984
  children: Array.from({ length: 12 }, (g, y) => y + 1).map((g) => /* @__PURE__ */ l.jsx("option", { value: g, children: g }, g))
10985
10985
  }
10986
10986
  ),
10987
- /* @__PURE__ */ l.jsx("span", { className: ue.timePickerColon, children: ":" }),
10987
+ /* @__PURE__ */ l.jsx("span", { className: ce.timePickerColon, children: ":" }),
10988
10988
  /* @__PURE__ */ l.jsx(
10989
10989
  "select",
10990
10990
  {
10991
- className: ue.timePickerSelect,
10991
+ className: ce.timePickerSelect,
10992
10992
  value: d.minute,
10993
10993
  onChange: (g) => f((y) => ({ ...y, minute: g.target.value })),
10994
10994
  "aria-label": "Minute",
10995
10995
  children: Array.from({ length: 60 }, (g, y) => Pn(y)).map((g) => /* @__PURE__ */ l.jsx("option", { value: g, children: g }, g))
10996
10996
  }
10997
10997
  ),
10998
- /* @__PURE__ */ l.jsxs("div", { className: ue.meridiemToggle, "aria-label": "AM/PM", children: [
10998
+ /* @__PURE__ */ l.jsxs("div", { className: ce.meridiemToggle, "aria-label": "AM/PM", children: [
10999
10999
  /* @__PURE__ */ l.jsx(
11000
11000
  "button",
11001
11001
  {
11002
11002
  type: "button",
11003
- className: `${ue.meridiemBtn} ${d.meridiem === "AM" ? ue.meridiemActive : ""}`,
11003
+ className: `${ce.meridiemBtn} ${d.meridiem === "AM" ? ce.meridiemActive : ""}`,
11004
11004
  onClick: () => f((g) => ({ ...g, meridiem: "AM" })),
11005
11005
  children: "AM"
11006
11006
  }
@@ -11009,19 +11009,19 @@ function Kl({
11009
11009
  "button",
11010
11010
  {
11011
11011
  type: "button",
11012
- className: `${ue.meridiemBtn} ${d.meridiem === "PM" ? ue.meridiemActive : ""}`,
11012
+ className: `${ce.meridiemBtn} ${d.meridiem === "PM" ? ce.meridiemActive : ""}`,
11013
11013
  onClick: () => f((g) => ({ ...g, meridiem: "PM" })),
11014
11014
  children: "PM"
11015
11015
  }
11016
11016
  )
11017
11017
  ] })
11018
11018
  ] }),
11019
- /* @__PURE__ */ l.jsxs("div", { className: ue.timePopoverActions, children: [
11019
+ /* @__PURE__ */ l.jsxs("div", { className: ce.timePopoverActions, children: [
11020
11020
  /* @__PURE__ */ l.jsx(
11021
11021
  "button",
11022
11022
  {
11023
11023
  type: "button",
11024
- className: ue.timePopoverBtn,
11024
+ className: ce.timePopoverBtn,
11025
11025
  onClick: () => u(!1),
11026
11026
  children: "Cancel"
11027
11027
  }
@@ -11030,7 +11030,7 @@ function Kl({
11030
11030
  "button",
11031
11031
  {
11032
11032
  type: "button",
11033
- className: `${ue.timePopoverBtn} ${ue.timePopoverOk}`,
11033
+ className: `${ce.timePopoverBtn} ${ce.timePopoverOk}`,
11034
11034
  onClick: p,
11035
11035
  "aria-label": "OK",
11036
11036
  children: /* @__PURE__ */ l.jsx(
@@ -11110,8 +11110,8 @@ async function Hl(t, e, r = {}) {
11110
11110
  "x-session-id": n
11111
11111
  });
11112
11112
  }
11113
- let ir = null;
11114
- const Gl = (t, e) => typeof window > "u" || window.google?.maps?.places ? Promise.resolve() : ir || (ir = new Promise((r, s) => {
11113
+ let or = null;
11114
+ const Gl = (t, e) => typeof window > "u" || window.google?.maps?.places ? Promise.resolve() : or || (or = new Promise((r, s) => {
11115
11115
  const n = document.querySelector(
11116
11116
  'script[data-google-maps-places="true"]'
11117
11117
  );
@@ -11156,9 +11156,9 @@ const Gl = (t, e) => typeof window > "u" || window.google?.maps?.places ? Promis
11156
11156
  };
11157
11157
  c();
11158
11158
  }, a.onerror = () => s(new Error("Failed to load Google Maps API")), document.head.appendChild(a);
11159
- }), ir), zl = (t = {}) => {
11160
- const { apiKey: e, language: r = "en", restrictCountry: s } = t, [n, a] = q(!1), [i, o] = q([]), [c, u] = q(!1), [d, f] = q(null), m = de(null), p = de(null), g = de(null);
11161
- xe(() => {
11159
+ }), or), zl = (t = {}) => {
11160
+ const { apiKey: e, language: r = "en", restrictCountry: s } = t, [n, a] = q(!1), [i, o] = q([]), [c, u] = q(!1), [d, f] = q(null), m = ue(null), p = ue(null), g = ue(null);
11161
+ Se(() => {
11162
11162
  if (!e) {
11163
11163
  a(!1), f(null);
11164
11164
  return;
@@ -11223,15 +11223,15 @@ const Gl = (t, e) => typeof window > "u" || window.google?.maps?.places ? Promis
11223
11223
  if (!p.current) return null;
11224
11224
  try {
11225
11225
  const b = await new Promise(
11226
- ($, Ne) => {
11226
+ ($, Oe) => {
11227
11227
  p.current.getDetails(
11228
11228
  {
11229
11229
  placeId: w,
11230
11230
  fields: ["geometry", "address_components", "formatted_address"],
11231
11231
  sessionToken: g.current ?? void 0
11232
11232
  },
11233
- (ne, le) => {
11234
- le === google.maps.places.PlacesServiceStatus.OK && ne ? $(ne) : Ne(new Error(`Place details error: ${le}`));
11233
+ (se, le) => {
11234
+ le === google.maps.places.PlacesServiceStatus.OK && se ? $(se) : Oe(new Error(`Place details error: ${le}`));
11235
11235
  }
11236
11236
  );
11237
11237
  }
@@ -11328,11 +11328,11 @@ const Ls = Wn(
11328
11328
  analytics: f,
11329
11329
  googleMapsApiKey: m
11330
11330
  }, p) {
11331
- const g = (E) => E.replace(/[^a-zA-Z\u0900-\u097F\s]/g, "").replace(/\s{2,}/g, " "), [y, v] = q(s?.name ?? ""), [k, w] = q(s?.gender ?? ""), [b, j] = q(s?.problems ?? []), [x, N] = q(s?.dateOfBirth ?? ""), [D, V] = q(s?.birthTime ?? ""), [$, Ne] = q(s?.birthTimeUnknown ?? !1), [ne, le] = q(s?.birthPlace ?? ""), [H, pe] = q(null), [_, F] = q(!1), [z, L] = q(null), [I, W] = q({}), M = de(!1), Z = de(!1), Ae = de(!1), ge = de(!1), ee = de(!1), _e = de(null), {
11331
+ const g = (E) => E.replace(/[^a-zA-Z\u0900-\u097F\s]/g, "").replace(/\s{2,}/g, " "), [y, v] = q(s?.name ?? ""), [k, w] = q(s?.gender ?? ""), [b, j] = q(s?.problems ?? []), [x, N] = q(s?.dateOfBirth ?? ""), [D, V] = q(s?.birthTime ?? ""), [$, Oe] = q(s?.birthTimeUnknown ?? !1), [se, le] = q(s?.birthPlace ?? ""), [H, fe] = q(null), [_, F] = q(!1), [z, L] = q(null), [I, W] = q({}), M = ue(!1), Z = ue(!1), je = ue(!1), pe = ue(!1), ee = ue(!1), we = ue(null), {
11332
11332
  predictions: Ke,
11333
- isSearching: Me,
11333
+ isSearching: Ue,
11334
11334
  loadError: ze,
11335
- searchPlaces: Ie,
11335
+ searchPlaces: Ne,
11336
11336
  getPlaceDetails: ft,
11337
11337
  clearPredictions: Ve
11338
11338
  } = zl({
@@ -11341,40 +11341,40 @@ const Ls = Wn(
11341
11341
  }), qe = Fe(() => {
11342
11342
  M.current || (M.current = !0, f?.trackFormFillInitiated?.());
11343
11343
  }, [f]);
11344
- xe(() => {
11344
+ Se(() => {
11345
11345
  const E = (U) => {
11346
- _e.current && (_e.current.contains(U.target) || F(!1));
11346
+ we.current && (we.current.contains(U.target) || F(!1));
11347
11347
  };
11348
11348
  return document.addEventListener("mousedown", E), () => document.removeEventListener("mousedown", E);
11349
- }, []), xe(() => {
11349
+ }, []), Se(() => {
11350
11350
  if (!_) return;
11351
- if (ne.length < 2) {
11351
+ if (se.length < 2) {
11352
11352
  Ve();
11353
11353
  return;
11354
11354
  }
11355
11355
  const E = window.setTimeout(async () => {
11356
- await Ie(ne);
11356
+ await Ne(se);
11357
11357
  }, 300);
11358
11358
  return () => window.clearTimeout(E);
11359
- }, [ne, Ve, _, Ie]);
11360
- const mt = y.trim() !== "" && (k === "male" || k === "female") && x !== "" && (D !== "" || $) && ne.trim() !== "";
11361
- xe(() => {
11359
+ }, [se, Ve, _, Ne]);
11360
+ const mt = y.trim() !== "" && (k === "male" || k === "female") && x !== "" && (D !== "" || $) && se.trim() !== "";
11361
+ Se(() => {
11362
11362
  a?.(mt);
11363
- }, [mt, a]), xe(() => {
11364
- n?.({ name: y, gender: k, problems: b, dateOfBirth: x, birthTime: D, birthTimeUnknown: $, birthPlace: ne });
11365
- }, [y, k, b, x, D, $, ne, n]);
11363
+ }, [mt, a]), Se(() => {
11364
+ n?.({ name: y, gender: k, problems: b, dateOfBirth: x, birthTime: D, birthTimeUnknown: $, birthPlace: se });
11365
+ }, [y, k, b, x, D, $, se, n]);
11366
11366
  const We = Fe(async (E, U) => {
11367
11367
  if (!m)
11368
11368
  return "UTC";
11369
11369
  try {
11370
- const he = Math.floor(Date.now() / 1e3), ye = `https://maps.googleapis.com/maps/api/timezone/json?location=${E},${U}&timestamp=${he}&key=${m}`, ce = await (await fetch(ye)).json();
11371
- return ce.status === "OK" && ce.timeZoneId ? ce.timeZoneId : "UTC";
11370
+ const ge = Math.floor(Date.now() / 1e3), ve = `https://maps.googleapis.com/maps/api/timezone/json?location=${E},${U}&timestamp=${ge}&key=${m}`, Me = await (await fetch(ve)).json();
11371
+ return Me.status === "OK" && Me.timeZoneId ? Me.timeZoneId : "UTC";
11372
11372
  } catch {
11373
11373
  return "UTC";
11374
11374
  }
11375
- }, [m]), ke = Fe(async () => {
11376
- const E = (te, ce) => {
11377
- ce && W((De) => ({ ...De, [ce]: te })), L(te), u?.(te);
11375
+ }, [m]), _e = Fe(async () => {
11376
+ const E = (ie, P) => {
11377
+ P && W((J) => ({ ...J, [P]: ie })), L(ie), u?.(ie);
11378
11378
  };
11379
11379
  if (W({}), L(null), !i) {
11380
11380
  E(e("calculationError"));
@@ -11392,8 +11392,17 @@ const Ls = Wn(
11392
11392
  E(e("formDobRequired"), "dateOfBirth");
11393
11393
  return;
11394
11394
  }
11395
- const U = Ql(x);
11396
- if (U > 0 && U < 18 && b.includes("formProblemMarriage")) {
11395
+ const U = Ql(x), ge = /* @__PURE__ */ new Set([
11396
+ "formProblemMarriage",
11397
+ "formProblemMoney",
11398
+ "formProblemCareer",
11399
+ "formProblemBusiness",
11400
+ "marriage",
11401
+ "financial",
11402
+ "career",
11403
+ "business"
11404
+ ]), ve = b.some((ie) => ge.has(ie));
11405
+ if (U < 18 && ve) {
11397
11406
  E(e("formAgeMarriageRestriction"));
11398
11407
  return;
11399
11408
  }
@@ -11401,13 +11410,13 @@ const Ls = Wn(
11401
11410
  E(e("formTimeRequired"), "birthTime");
11402
11411
  return;
11403
11412
  }
11404
- const he = ne.trim();
11405
- if (!he) {
11413
+ const Ie = se.trim();
11414
+ if (!Ie) {
11406
11415
  E(e("formPlaceRequired"), "birthPlace");
11407
11416
  return;
11408
11417
  }
11409
- const ye = g(he).trim();
11410
- if (!ye) {
11418
+ const Me = g(Ie).trim();
11419
+ if (!Me) {
11411
11420
  E(e("formPlaceRequired"), "birthPlace");
11412
11421
  return;
11413
11422
  }
@@ -11417,62 +11426,62 @@ const Ls = Wn(
11417
11426
  }
11418
11427
  d?.(!0);
11419
11428
  try {
11420
- let te, ce, De;
11429
+ let ie, P, J;
11421
11430
  if (H)
11422
- te = H.lat, ce = H.lon, H.tz ? De = H.tz : (De = await We(te, ce), pe({ ...H, tz: De }));
11431
+ ie = H.lat, P = H.lon, H.tz ? J = H.tz : (J = await We(ie, P), fe({ ...H, tz: J }));
11423
11432
  else if (o) {
11424
- const Ee = await o(he);
11425
- if (!Ee) {
11433
+ const Ae = await o(Ie);
11434
+ if (!Ae) {
11426
11435
  E(e("locationError")), d?.(!1);
11427
11436
  return;
11428
11437
  }
11429
- te = Ee.lat, ce = Ee.lon, De = Ee.tz;
11438
+ ie = Ae.lat, P = Ae.lon, J = Ae.tz;
11430
11439
  } else {
11431
11440
  E(e("formPlaceSelectFromDropdown"), "birthPlace"), d?.(!1);
11432
11441
  return;
11433
11442
  }
11434
- const C = {
11443
+ const me = {
11435
11444
  name: y.trim(),
11436
11445
  gender: k === "male" ? "M" : "F",
11437
11446
  date: x,
11438
11447
  time: $ ? "" : D || "12:00",
11439
11448
  unknownTime: $,
11440
- tz: De || "UTC",
11441
- lat: te,
11442
- lon: ce,
11443
- place: ye,
11444
- problemArea: b.length > 0 ? b.map((Ee) => e(Ee)).join(", ") : void 0
11445
- }, Q = Jl(), be = Yl(), Be = b.map((Ee) => e(Ee)), gt = typeof navigator < "u" && navigator.language?.toLowerCase().startsWith("hi") ? "hi" : "en", Je = await Hl(i, C, {
11446
- visitorId: Q,
11447
- sessionId: be,
11449
+ tz: J || "UTC",
11450
+ lat: ie,
11451
+ lon: P,
11452
+ place: Me,
11453
+ problemArea: b.length > 0 ? b.map((Ae) => e(Ae)).join(", ") : void 0
11454
+ }, Be = Jl(), gt = Yl(), yt = b.map((Ae) => e(Ae)), vr = typeof navigator < "u" && navigator.language?.toLowerCase().startsWith("hi") ? "hi" : "en", Nt = await Hl(i, me, {
11455
+ visitorId: Be,
11456
+ sessionId: gt,
11448
11457
  trackProblemStatements: !0,
11449
- problemStatements: Be,
11450
- language: gt
11458
+ problemStatements: yt,
11459
+ language: vr
11451
11460
  });
11452
- if (Je.success) {
11461
+ if (Nt.success) {
11453
11462
  L(null);
11454
- const [Ee, yr, vr] = (C.date || "").split("-").map(Number), br = C.time || "12:00", [wr, _r] = br.split(":").map((Nt) => parseInt(Nt, 10) || 0);
11455
- c?.(Je, {
11456
- day: vr || 1,
11457
- month: yr || 1,
11458
- year: Ee || 2e3,
11459
- hour: wr,
11460
- minute: _r,
11461
- lat: te,
11462
- lon: ce,
11463
+ const [Ae, br, wr] = (me.date || "").split("-").map(Number), _r = me.time || "12:00", [kr, It] = _r.split(":").map((Je) => parseInt(Je, 10) || 0);
11464
+ c?.(Nt, {
11465
+ day: wr || 1,
11466
+ month: br || 1,
11467
+ year: Ae || 2e3,
11468
+ hour: kr,
11469
+ minute: It,
11470
+ lat: ie,
11471
+ lon: P,
11463
11472
  tzone: 5.5
11464
11473
  // Default timezone offset for India
11465
11474
  });
11466
11475
  } else
11467
- E(Je.error ?? e("calculationError"));
11468
- } catch (te) {
11469
- const ce = te instanceof Error ? te.message : String(te);
11470
- E(ce);
11476
+ E(Nt.error ?? e("calculationError"));
11477
+ } catch (ie) {
11478
+ const P = ie instanceof Error ? ie.message : String(ie);
11479
+ E(P);
11471
11480
  } finally {
11472
11481
  d?.(!1);
11473
11482
  }
11474
- }, [i, o, H, ne, y, k, x, D, $, b, e, u, d, f, c, We]);
11475
- Hn(p, () => ({ submit: ke }), [ke]);
11483
+ }, [i, o, H, se, y, k, x, D, $, b, e, u, d, f, c, We]);
11484
+ Hn(p, () => ({ submit: _e }), [_e]);
11476
11485
  const pt = Vl.map((E) => ({
11477
11486
  key: E,
11478
11487
  label: e(E)
@@ -11496,7 +11505,7 @@ const Ls = Wn(
11496
11505
  value: y,
11497
11506
  onChange: (E) => {
11498
11507
  const U = E.target.value;
11499
- U && !Z.current && (Z.current = !0, f?.trackNameSectionFilled?.()), v(U), I.name && W((he) => ({ ...he, name: void 0 })), z && L(null);
11508
+ U && !Z.current && (Z.current = !0, f?.trackNameSectionFilled?.()), v(U), I.name && W((ge) => ({ ...ge, name: void 0 })), z && L(null);
11500
11509
  },
11501
11510
  placeholder: e("formNamePlaceholder"),
11502
11511
  autoComplete: "name"
@@ -11548,7 +11557,7 @@ const Ls = Wn(
11548
11557
  qe(), f?.trackDobClicked?.();
11549
11558
  },
11550
11559
  onChange: (E) => {
11551
- E && !Ae.current && (Ae.current = !0, f?.trackDobFilled?.()), N(E), I.dateOfBirth && W((U) => ({ ...U, dateOfBirth: void 0 })), z && L(null);
11560
+ E && !je.current && (je.current = !0, f?.trackDobFilled?.()), N(E), I.dateOfBirth && W((U) => ({ ...U, dateOfBirth: void 0 })), z && L(null);
11552
11561
  }
11553
11562
  }
11554
11563
  ),
@@ -11574,7 +11583,7 @@ const Ls = Wn(
11574
11583
  qe(), f?.trackTimeClicked?.();
11575
11584
  },
11576
11585
  onChange: (E) => {
11577
- E && !ge.current && (ge.current = !0, f?.trackTimeFilled?.()), V(E), I.birthTime && W((U) => ({ ...U, birthTime: void 0 })), z && L(null);
11586
+ E && !pe.current && (pe.current = !0, f?.trackTimeFilled?.()), V(E), I.birthTime && W((U) => ({ ...U, birthTime: void 0 })), z && L(null);
11578
11587
  },
11579
11588
  disabled: $
11580
11589
  }
@@ -11589,7 +11598,7 @@ const Ls = Wn(
11589
11598
  id: "dosha-time-unknown",
11590
11599
  checked: $,
11591
11600
  onChange: (E) => {
11592
- qe(), f?.trackTimeCheckboxClicked?.(), Ne(E);
11601
+ qe(), f?.trackTimeCheckboxClicked?.(), Oe(E);
11593
11602
  },
11594
11603
  primaryText: e("formTimeUnknown"),
11595
11604
  helpText: e("formTimeUnknownHelp")
@@ -11605,15 +11614,15 @@ const Ls = Wn(
11605
11614
  required: !0,
11606
11615
  infoTooltip: e("formPlaceInfo"),
11607
11616
  infoAriaLabel: e("info"),
11608
- children: /* @__PURE__ */ l.jsxs("div", { ref: _e, style: { position: "relative" }, children: [
11617
+ children: /* @__PURE__ */ l.jsxs("div", { ref: we, style: { position: "relative" }, children: [
11609
11618
  /* @__PURE__ */ l.jsx(
11610
11619
  Zn,
11611
11620
  {
11612
11621
  id: "dosha-place",
11613
- value: ne,
11622
+ value: se,
11614
11623
  onChange: (E) => {
11615
11624
  const U = g(E.target.value);
11616
- le(U), pe(null), F(!0), U && !ee.current && (ee.current = !0, f?.trackPlaceOfBirthChosen?.(U)), I.birthPlace && W((he) => ({ ...he, birthPlace: void 0 })), z && L(null);
11625
+ le(U), fe(null), F(!0), U && !ee.current && (ee.current = !0, f?.trackPlaceOfBirthChosen?.(U)), I.birthPlace && W((ge) => ({ ...ge, birthPlace: void 0 })), z && L(null);
11617
11626
  },
11618
11627
  onFocus: () => F(!0),
11619
11628
  placeholder: e("formPlacePlaceholder")
@@ -11644,10 +11653,10 @@ const Ls = Wn(
11644
11653
  onClick: async () => {
11645
11654
  if (le(g(E.description)), ft) {
11646
11655
  const U = await ft(E.place_id);
11647
- U && (pe({
11656
+ U && (fe({
11648
11657
  lat: U.lat,
11649
11658
  lon: U.lng
11650
- }), I.birthPlace && W((he) => ({ ...he, birthPlace: void 0 })), z && L(null));
11659
+ }), I.birthPlace && W((ge) => ({ ...ge, birthPlace: void 0 })), z && L(null));
11651
11660
  }
11652
11661
  Ve(), F(!1), ee.current || (ee.current = !0, f?.trackPlaceOfBirthChosen?.(E.description));
11653
11662
  },
@@ -11684,7 +11693,7 @@ const Ls = Wn(
11684
11693
  ))
11685
11694
  }
11686
11695
  ),
11687
- _ && m && Me && /* @__PURE__ */ l.jsx(
11696
+ _ && m && Ue && /* @__PURE__ */ l.jsx(
11688
11697
  "div",
11689
11698
  {
11690
11699
  style: {
@@ -11704,7 +11713,7 @@ const Ls = Wn(
11704
11713
  children: "Loading…"
11705
11714
  }
11706
11715
  ),
11707
- _ && m && !Me && ze && /* @__PURE__ */ l.jsx(
11716
+ _ && m && !Ue && ze && /* @__PURE__ */ l.jsx(
11708
11717
  "div",
11709
11718
  {
11710
11719
  style: {
@@ -11736,7 +11745,7 @@ const Ls = Wn(
11736
11745
  z && /* @__PURE__ */ l.jsx("p", { style: { marginTop: "4px", fontSize: "12px", color: "#dc2626" }, children: z })
11737
11746
  ] });
11738
11747
  }
11739
- ), tt = je.forwardRef(({ className: t = "", ...e }, r) => /* @__PURE__ */ l.jsx(
11748
+ ), tt = Te.forwardRef(({ className: t = "", ...e }, r) => /* @__PURE__ */ l.jsx(
11740
11749
  "div",
11741
11750
  {
11742
11751
  ref: r,
@@ -11745,9 +11754,9 @@ const Ls = Wn(
11745
11754
  }
11746
11755
  ));
11747
11756
  tt.displayName = "Card";
11748
- const ct = je.forwardRef(({ className: t = "", ...e }, r) => /* @__PURE__ */ l.jsx("div", { ref: r, className: `flex flex-col space-y-1.5 p-6 ${t}`, ...e }));
11757
+ const ct = Te.forwardRef(({ className: t = "", ...e }, r) => /* @__PURE__ */ l.jsx("div", { ref: r, className: `flex flex-col space-y-1.5 p-6 ${t}`, ...e }));
11749
11758
  ct.displayName = "CardHeader";
11750
- const ut = je.forwardRef(({ className: t = "", ...e }, r) => /* @__PURE__ */ l.jsx(
11759
+ const ut = Te.forwardRef(({ className: t = "", ...e }, r) => /* @__PURE__ */ l.jsx(
11751
11760
  "h3",
11752
11761
  {
11753
11762
  ref: r,
@@ -11756,11 +11765,11 @@ const ut = je.forwardRef(({ className: t = "", ...e }, r) => /* @__PURE__ */ l.j
11756
11765
  }
11757
11766
  ));
11758
11767
  ut.displayName = "CardTitle";
11759
- const lr = je.forwardRef(({ className: t = "", ...e }, r) => /* @__PURE__ */ l.jsx("p", { ref: r, className: `text-sm text-muted-foreground ${t}`, ...e }));
11760
- lr.displayName = "CardDescription";
11761
- const dt = je.forwardRef(({ className: t = "", ...e }, r) => /* @__PURE__ */ l.jsx("div", { ref: r, className: `p-6 pt-0 ${t}`, ...e }));
11768
+ const cr = Te.forwardRef(({ className: t = "", ...e }, r) => /* @__PURE__ */ l.jsx("p", { ref: r, className: `text-sm text-muted-foreground ${t}`, ...e }));
11769
+ cr.displayName = "CardDescription";
11770
+ const dt = Te.forwardRef(({ className: t = "", ...e }, r) => /* @__PURE__ */ l.jsx("div", { ref: r, className: `p-6 pt-0 ${t}`, ...e }));
11762
11771
  dt.displayName = "CardContent";
11763
- const cr = je.forwardRef(
11772
+ const ur = Te.forwardRef(
11764
11773
  ({ className: t = "", variant: e = "default", ...r }, s) => {
11765
11774
  const n = {
11766
11775
  default: "border-transparent bg-primary text-primary-foreground",
@@ -11778,11 +11787,11 @@ const cr = je.forwardRef(
11778
11787
  );
11779
11788
  }
11780
11789
  );
11781
- cr.displayName = "Badge";
11782
- const Oe = (t) => ({ width: t, height: t });
11790
+ ur.displayName = "Badge";
11791
+ const Ce = (t) => ({ width: t, height: t });
11783
11792
  function Us(t) {
11784
11793
  const { size: e = 24, ...r } = t;
11785
- return /* @__PURE__ */ l.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...Oe(e), ...r, children: [
11794
+ return /* @__PURE__ */ l.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...Ce(e), ...r, children: [
11786
11795
  /* @__PURE__ */ l.jsx("path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z" }),
11787
11796
  /* @__PURE__ */ l.jsx("path", { d: "M12 9v4" }),
11788
11797
  /* @__PURE__ */ l.jsx("path", { d: "M12 17h.01" })
@@ -11790,14 +11799,14 @@ function Us(t) {
11790
11799
  }
11791
11800
  function Ms(t) {
11792
11801
  const { size: e = 24, ...r } = t;
11793
- return /* @__PURE__ */ l.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...Oe(e), ...r, children: [
11802
+ return /* @__PURE__ */ l.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...Ce(e), ...r, children: [
11794
11803
  /* @__PURE__ */ l.jsx("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }),
11795
11804
  /* @__PURE__ */ l.jsx("path", { d: "m9 11 3 3L22 4" })
11796
11805
  ] });
11797
11806
  }
11798
11807
  function Bs(t) {
11799
11808
  const { size: e = 24, ...r } = t;
11800
- return /* @__PURE__ */ l.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...Oe(e), ...r, children: [
11809
+ return /* @__PURE__ */ l.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...Ce(e), ...r, children: [
11801
11810
  /* @__PURE__ */ l.jsx("circle", { cx: "12", cy: "12", r: "10" }),
11802
11811
  /* @__PURE__ */ l.jsx("path", { d: "M12 16v-4" }),
11803
11812
  /* @__PURE__ */ l.jsx("path", { d: "M12 8h.01" })
@@ -11805,11 +11814,11 @@ function Bs(t) {
11805
11814
  }
11806
11815
  function Xl(t) {
11807
11816
  const { size: e = 24, ...r } = t;
11808
- return /* @__PURE__ */ l.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...Oe(e), ...r, children: /* @__PURE__ */ l.jsx("path", { d: "M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z" }) });
11817
+ return /* @__PURE__ */ l.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...Ce(e), ...r, children: /* @__PURE__ */ l.jsx("path", { d: "M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z" }) });
11809
11818
  }
11810
11819
  function Zl(t) {
11811
11820
  const { size: e = 24, ...r } = t;
11812
- return /* @__PURE__ */ l.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...Oe(e), ...r, children: [
11821
+ return /* @__PURE__ */ l.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...Ce(e), ...r, children: [
11813
11822
  /* @__PURE__ */ l.jsx("path", { d: "M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1" }),
11814
11823
  /* @__PURE__ */ l.jsx("path", { d: "M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1" }),
11815
11824
  /* @__PURE__ */ l.jsx("path", { d: "M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1" })
@@ -11817,7 +11826,7 @@ function Zl(t) {
11817
11826
  }
11818
11827
  function ec(t) {
11819
11828
  const { size: e = 24, ...r } = t;
11820
- return /* @__PURE__ */ l.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...Oe(e), ...r, children: [
11829
+ return /* @__PURE__ */ l.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...Ce(e), ...r, children: [
11821
11830
  /* @__PURE__ */ l.jsx("path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" }),
11822
11831
  /* @__PURE__ */ l.jsx("circle", { cx: "9", cy: "7", r: "4" }),
11823
11832
  /* @__PURE__ */ l.jsx("path", { d: "M22 21v-2a4 4 0 0 0-3-3.87" }),
@@ -11826,26 +11835,26 @@ function ec(t) {
11826
11835
  }
11827
11836
  function tc(t) {
11828
11837
  const { size: e = 24, ...r } = t;
11829
- return /* @__PURE__ */ l.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...Oe(e), ...r, children: /* @__PURE__ */ l.jsx("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" }) });
11838
+ return /* @__PURE__ */ l.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...Ce(e), ...r, children: /* @__PURE__ */ l.jsx("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" }) });
11830
11839
  }
11831
11840
  function rc(t) {
11832
11841
  const { size: e = 24, ...r } = t;
11833
- return /* @__PURE__ */ l.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...Oe(e), ...r, children: [
11842
+ return /* @__PURE__ */ l.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...Ce(e), ...r, children: [
11834
11843
  /* @__PURE__ */ l.jsx("path", { d: "m5 12 7-7 7 7" }),
11835
11844
  /* @__PURE__ */ l.jsx("path", { d: "M12 19V5" })
11836
11845
  ] });
11837
11846
  }
11838
11847
  function Rn(t) {
11839
11848
  const { size: e = 24, ...r } = t;
11840
- return /* @__PURE__ */ l.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...Oe(e), ...r, children: /* @__PURE__ */ l.jsx("path", { d: "m6 9 6 6 6-6" }) });
11849
+ return /* @__PURE__ */ l.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...Ce(e), ...r, children: /* @__PURE__ */ l.jsx("path", { d: "m6 9 6 6 6-6" }) });
11841
11850
  }
11842
11851
  function sc(t) {
11843
11852
  const { size: e = 24, className: r = "", ...s } = t;
11844
- return /* @__PURE__ */ l.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: `animate-spin ${r}`, style: { animation: "spin 1s linear infinite" }, ...Oe(e), ...s, children: /* @__PURE__ */ l.jsx("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }) });
11853
+ return /* @__PURE__ */ l.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: `animate-spin ${r}`, style: { animation: "spin 1s linear infinite" }, ...Ce(e), ...s, children: /* @__PURE__ */ l.jsx("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }) });
11845
11854
  }
11846
11855
  function nc(t) {
11847
11856
  const { size: e = 24, ...r } = t;
11848
- return /* @__PURE__ */ l.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...Oe(e), ...r, children: [
11857
+ return /* @__PURE__ */ l.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...Ce(e), ...r, children: [
11849
11858
  /* @__PURE__ */ l.jsx("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }),
11850
11859
  /* @__PURE__ */ l.jsx("polyline", { points: "15 3 21 3 21 9" }),
11851
11860
  /* @__PURE__ */ l.jsx("line", { x1: "10", x2: "21", y1: "14", y2: "3" })
@@ -11853,12 +11862,12 @@ function nc(t) {
11853
11862
  }
11854
11863
  function ac(t) {
11855
11864
  const { size: e = 24, ...r } = t;
11856
- return /* @__PURE__ */ l.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...Oe(e), ...r, children: [
11865
+ return /* @__PURE__ */ l.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...Ce(e), ...r, children: [
11857
11866
  /* @__PURE__ */ l.jsx("path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" }),
11858
11867
  /* @__PURE__ */ l.jsx("path", { d: "M3 3v5h5" })
11859
11868
  ] });
11860
11869
  }
11861
- const zr = je.createContext(null);
11870
+ const Jr = Te.createContext(null);
11862
11871
  function Fs({
11863
11872
  type: t = "single",
11864
11873
  collapsible: e = !0,
@@ -11866,7 +11875,7 @@ function Fs({
11866
11875
  children: s,
11867
11876
  onValueChange: n
11868
11877
  }) {
11869
- const [a, i] = je.useState(null), o = je.useCallback(
11878
+ const [a, i] = Te.useState(null), o = Te.useCallback(
11870
11879
  (c) => {
11871
11880
  i((u) => {
11872
11881
  const d = u === c ? e ? null : u : c;
@@ -11875,7 +11884,7 @@ function Fs({
11875
11884
  },
11876
11885
  [e, n]
11877
11886
  );
11878
- return /* @__PURE__ */ l.jsx(zr.Provider, { value: { value: a, onToggle: o }, children: /* @__PURE__ */ l.jsx("div", { className: r, children: s }) });
11887
+ return /* @__PURE__ */ l.jsx(Jr.Provider, { value: { value: a, onToggle: o }, children: /* @__PURE__ */ l.jsx("div", { className: r, children: s }) });
11879
11888
  }
11880
11889
  function Ks({ value: t, className: e = "", children: r }) {
11881
11890
  return /* @__PURE__ */ l.jsx("div", { "data-state": t, className: `border-b border-border ${e}`, children: r });
@@ -11885,7 +11894,7 @@ function qs({
11885
11894
  children: e,
11886
11895
  value: r
11887
11896
  }) {
11888
- const s = je.useContext(zr), n = s?.value === r;
11897
+ const s = Te.useContext(Jr), n = s?.value === r;
11889
11898
  return /* @__PURE__ */ l.jsxs(
11890
11899
  "button",
11891
11900
  {
@@ -11910,9 +11919,9 @@ function Ws({
11910
11919
  children: e,
11911
11920
  value: r
11912
11921
  }) {
11913
- return je.useContext(zr)?.value === r ? /* @__PURE__ */ l.jsx("div", { className: `overflow-hidden text-sm pb-4 pt-0 ${t}`, children: e }) : null;
11922
+ return Te.useContext(Jr)?.value === r ? /* @__PURE__ */ l.jsx("div", { className: `overflow-hidden text-sm pb-4 pt-0 ${t}`, children: e }) : null;
11914
11923
  }
11915
- const Ft = je.forwardRef(
11924
+ const Kt = Te.forwardRef(
11916
11925
  ({ className: t = "", size: e = "default", variant: r = "default", ...s }, n) => {
11917
11926
  const a = {
11918
11927
  default: "h-10 px-4 py-2",
@@ -11937,8 +11946,8 @@ const Ft = je.forwardRef(
11937
11946
  );
11938
11947
  }
11939
11948
  );
11940
- Ft.displayName = "Button";
11941
- const Cn = je.forwardRef(
11949
+ Kt.displayName = "Button";
11950
+ const Cn = Te.forwardRef(
11942
11951
  ({ className: t = "", ...e }, r) => /* @__PURE__ */ l.jsx(
11943
11952
  "div",
11944
11953
  {
@@ -11949,12 +11958,12 @@ const Cn = je.forwardRef(
11949
11958
  )
11950
11959
  );
11951
11960
  Cn.displayName = "Skeleton";
11952
- const Wr = /* @__PURE__ */ new Map(), Hs = 1800 * 1e3;
11961
+ const Gr = /* @__PURE__ */ new Map(), Hs = 1800 * 1e3;
11953
11962
  function ic(t, e, r) {
11954
11963
  return `D1|${e}|svg|${t.day}-${t.month}-${t.year}-${t.hour}-${t.minute}-${t.lat}-${t.lon}-${t.tzone}|${r}`;
11955
11964
  }
11956
11965
  function oc(t) {
11957
- const e = Wr.get(t);
11966
+ const e = Gr.get(t);
11958
11967
  if (e && Date.now() - e.timestamp < Hs)
11959
11968
  return e.svg;
11960
11969
  try {
@@ -11962,7 +11971,7 @@ function oc(t) {
11962
11971
  if (r) {
11963
11972
  const s = JSON.parse(r);
11964
11973
  if (Date.now() - s.timestamp < Hs)
11965
- return Wr.set(t, s), s.svg;
11974
+ return Gr.set(t, s), s.svg;
11966
11975
  sessionStorage.removeItem(`kundali_${t}`);
11967
11976
  }
11968
11977
  } catch {
@@ -11971,7 +11980,7 @@ function oc(t) {
11971
11980
  }
11972
11981
  function lc(t, e) {
11973
11982
  const r = { svg: e, timestamp: Date.now() };
11974
- Wr.set(t, r);
11983
+ Gr.set(t, r);
11975
11984
  try {
11976
11985
  sessionStorage.setItem(`kundali_${t}`, JSON.stringify(r));
11977
11986
  } catch {
@@ -12006,7 +12015,7 @@ async function uc(t, e) {
12006
12015
  return lc(i, d), d;
12007
12016
  }
12008
12017
  function dc({ birthDetails: t, supabase: e, language: r, t: s }) {
12009
- const [n, a] = q("North"), [i, o] = q("idle"), [c, u] = q(""), [d, f] = q(""), m = de(null), p = de(null), y = (r || "").toLowerCase().startsWith("hi") ? "hi" : "en", v = Fe(
12018
+ const [n, a] = q("North"), [i, o] = q("idle"), [c, u] = q(""), [d, f] = q(""), m = ue(null), p = ue(null), y = (r || "").toLowerCase().startsWith("hi") ? "hi" : "en", v = Fe(
12010
12019
  async (b) => {
12011
12020
  m.current && m.current.abort();
12012
12021
  const j = new AbortController();
@@ -12026,7 +12035,7 @@ function dc({ birthDetails: t, supabase: e, language: r, t: s }) {
12026
12035
  },
12027
12036
  [t, e, y]
12028
12037
  );
12029
- xe(() => (v(n), () => {
12038
+ Se(() => (v(n), () => {
12030
12039
  m.current && m.current.abort();
12031
12040
  }), [n, v]);
12032
12041
  const k = (b) => {
@@ -12039,7 +12048,7 @@ function dc({ birthDetails: t, supabase: e, language: r, t: s }) {
12039
12048
  /* @__PURE__ */ l.jsx(ut, { className: "text-xl font-bold", children: s("drYourKundali") }),
12040
12049
  /* @__PURE__ */ l.jsxs("div", { className: "flex gap-2 mt-3", children: [
12041
12050
  /* @__PURE__ */ l.jsx(
12042
- Ft,
12051
+ Kt,
12043
12052
  {
12044
12053
  type: "button",
12045
12054
  size: "sm",
@@ -12050,7 +12059,7 @@ function dc({ birthDetails: t, supabase: e, language: r, t: s }) {
12050
12059
  }
12051
12060
  ),
12052
12061
  /* @__PURE__ */ l.jsx(
12053
- Ft,
12062
+ Kt,
12054
12063
  {
12055
12064
  type: "button",
12056
12065
  size: "sm",
@@ -12074,7 +12083,7 @@ function dc({ birthDetails: t, supabase: e, language: r, t: s }) {
12074
12083
  i === "error" && /* @__PURE__ */ l.jsxs("div", { className: "w-full aspect-square flex flex-col items-center justify-center bg-muted/30 rounded-lg border border-border", children: [
12075
12084
  /* @__PURE__ */ l.jsx("p", { className: "text-sm text-muted-foreground mb-3", children: s("kundaliChartLoadError") }),
12076
12085
  /* @__PURE__ */ l.jsxs(
12077
- Ft,
12086
+ Kt,
12078
12087
  {
12079
12088
  type: "button",
12080
12089
  variant: "outline",
@@ -12168,7 +12177,7 @@ function Qe(t) {
12168
12177
  const e = t.toLowerCase();
12169
12178
  return e === "present" || e === "active" || e === "partial" || e === "suggested";
12170
12179
  }
12171
- function Nr(t) {
12180
+ function Dr(t) {
12172
12181
  return t ? t.toLowerCase().includes("nullified") : !1;
12173
12182
  }
12174
12183
  function zs(t, e) {
@@ -12229,12 +12238,12 @@ function mc({
12229
12238
  inlineEditForm: p,
12230
12239
  analytics: g
12231
12240
  }) {
12232
- const y = !c && u && d, v = t.summary ?? {}, k = t.details ?? {}, w = v.shaniSadeSati ?? v.sadeSati, b = Qe(v.mangal) && !Nr(v.mangal) || Qe(v.kaalSarp) || Qe(v.pitra) || Qe(w), j = [];
12241
+ const y = !c && u && d, v = t.summary ?? {}, k = t.details ?? {}, w = v.shaniSadeSati ?? v.sadeSati, b = Qe(v.mangal) && !Dr(v.mangal) || Qe(v.kaalSarp) || Qe(v.pitra) || Qe(w), j = [];
12233
12242
  for (const _ of Gs) {
12234
12243
  const F = _.summaryKey === "shaniSadeSati" ? w : v[_.summaryKey];
12235
- if (!Qe(F) || _.type === "mangal" && Nr(F)) continue;
12244
+ if (!Qe(F) || _.type === "mangal" && Dr(F)) continue;
12236
12245
  const z = v[_.severityKey], L = _.type === "shani" ? v.shaniPhase ?? v.shaniPhase : void 0, I = zs(k, _.detailKey === "sadeSati" ? "sadeSati" : _.detailKey), W = I?.explanation ?? e("drBasedOnPositions"), Z = (I?.remedies ?? e(_.remediesKey)).split(`
12237
- `).map((ee) => ee.trim()).filter(Boolean), ge = e(_.benefitsKey).split(`
12246
+ `).map((ee) => ee.trim()).filter(Boolean), pe = e(_.benefitsKey).split(`
12238
12247
  `).map((ee) => ee.trim()).filter(Boolean);
12239
12248
  j.push({
12240
12249
  type: _.type,
@@ -12248,7 +12257,7 @@ function mc({
12248
12257
  placements: I?.placements,
12249
12258
  impact: e(_.impactKey),
12250
12259
  remedies: Z,
12251
- benefits: ge
12260
+ benefits: pe
12252
12261
  });
12253
12262
  }
12254
12263
  j.sort((_, F) => Js(F.severity) - Js(_.severity));
@@ -12265,27 +12274,27 @@ function mc({
12265
12274
  { summaryKey: "navagrahaUmbrella", detailKey: "navagraha", labelKey: "drOtherNavagraha" }
12266
12275
  ], D = x.filter(
12267
12276
  (_) => Qe(v[_.summaryKey])
12268
- ).length > 0, [V, $] = q(!1), Ne = /\b(house|lagna|ascendant|moon|mars|saturn|rahu|ketu|sun|jupiter|venus|mercury|sign|degree|H\d+|conjunction|aspect)\b|भाव|लग्न|चंद्र|मंगल|शनि|राहु|केतु|सूर्य|बृहस्पति|शुक्र|बुध/i, ne = k && typeof k == "object" && !Array.isArray(k) ? k : {}, le = [];
12277
+ ).length > 0, [V, $] = q(!1), Oe = /\b(house|lagna|ascendant|moon|mars|saturn|rahu|ketu|sun|jupiter|venus|mercury|sign|degree|H\d+|conjunction|aspect)\b|भाव|लग्न|चंद्र|मंगल|शनि|राहु|केतु|सूर्य|बृहस्पति|शुक्र|बुध/i, se = k && typeof k == "object" && !Array.isArray(k) ? k : {}, le = [];
12269
12278
  j.forEach((_) => {
12270
- const F = ne[_.detailKey === "sadeSati" ? "sadeSati" : _.detailKey] || {}, z = [
12279
+ const F = se[_.detailKey === "sadeSati" ? "sadeSati" : _.detailKey] || {}, z = [
12271
12280
  ...F.placements || [],
12272
12281
  ...F.triggeredBy || [],
12273
12282
  ...F.notes || []
12274
- ].map((M) => String(M || "").trim()).filter(Boolean), L = Array.from(new Set(z)), I = L.filter((M) => Ne.test(M)), W = I.length > 0 ? I : L;
12283
+ ].map((M) => String(M || "").trim()).filter(Boolean), L = Array.from(new Set(z)), I = L.filter((M) => Oe.test(M)), W = I.length > 0 ? I : L;
12275
12284
  W.length > 0 && le.push({ label: _.label, evidence: W });
12276
12285
  }), x.forEach((_) => {
12277
12286
  if (!Qe(v[_.summaryKey])) return;
12278
- const F = ne[_.detailKey] || {}, z = [
12287
+ const F = se[_.detailKey] || {}, z = [
12279
12288
  ...F.placements || [],
12280
12289
  ...F.triggeredBy || [],
12281
12290
  ...F.notes || []
12282
- ].map((M) => String(M || "").trim()).filter(Boolean), L = Array.from(new Set(z)), I = L.filter((M) => Ne.test(M)), W = I.length > 0 ? I : L;
12291
+ ].map((M) => String(M || "").trim()).filter(Boolean), L = Array.from(new Set(z)), I = L.filter((M) => Oe.test(M)), W = I.length > 0 ? I : L;
12283
12292
  if (W.length > 0) {
12284
12293
  const M = e(_.labelKey);
12285
12294
  le.some((Z) => Z.label === M) || le.push({ label: M, evidence: W });
12286
12295
  }
12287
12296
  });
12288
- const H = (_) => _ === 1 ? e("drPhaseRising") : _ === 2 ? e("drPhasePeak") : _ === 3 ? e("drPhaseSetting") : "", pe = [
12297
+ const H = (_) => _ === 1 ? e("drPhaseRising") : _ === 2 ? e("drPhasePeak") : _ === 3 ? e("drPhaseSetting") : "", fe = [
12289
12298
  "bg-orange-50/50 border-l-4 border-l-orange-400",
12290
12299
  "bg-blue-50/50 border-l-4 border-l-blue-400",
12291
12300
  "bg-purple-50/50 border-l-4 border-l-purple-400",
@@ -12358,19 +12367,19 @@ function mc({
12358
12367
  ] }) })
12359
12368
  ] }),
12360
12369
  j.map((_, F) => {
12361
- const z = _.icon, L = _.type === "shani" && _.phase ? H(_.phase) : "", I = pe[F % pe.length], W = e("drDoshaOf").replace("{{index}}", String(F + 1)).replace("{{total}}", String(j.length));
12370
+ const z = _.icon, L = _.type === "shani" && _.phase ? H(_.phase) : "", I = fe[F % fe.length], W = e("drDoshaOf").replace("{{index}}", String(F + 1)).replace("{{total}}", String(j.length));
12362
12371
  return /* @__PURE__ */ l.jsxs(
12363
12372
  tt,
12364
12373
  {
12365
12374
  className: `spiritual-glow border border-primary/10 mx-4 ${I}`,
12366
12375
  children: [
12367
- /* @__PURE__ */ l.jsx("div", { className: "px-4 pt-3", children: /* @__PURE__ */ l.jsx(cr, { variant: "outline", className: "text-xs font-normal text-muted-foreground", children: W }) }),
12376
+ /* @__PURE__ */ l.jsx("div", { className: "px-4 pt-3", children: /* @__PURE__ */ l.jsx(ur, { variant: "outline", className: "text-xs font-normal text-muted-foreground", children: W }) }),
12368
12377
  /* @__PURE__ */ l.jsxs(ct, { className: "pb-3 pt-2", children: [
12369
12378
  /* @__PURE__ */ l.jsxs(ut, { className: "flex items-center gap-3 text-xl", children: [
12370
12379
  /* @__PURE__ */ l.jsx(z, { className: "w-6 h-6 text-primary" }),
12371
12380
  _.label
12372
12381
  ] }),
12373
- /* @__PURE__ */ l.jsxs(lr, { children: [
12382
+ /* @__PURE__ */ l.jsxs(cr, { children: [
12374
12383
  e("drSeverity"),
12375
12384
  ": ",
12376
12385
  Ys(_.severity, e),
@@ -12415,7 +12424,7 @@ function mc({
12415
12424
  const M = fc(
12416
12425
  _.type,
12417
12426
  _.detailKey
12418
- ), Z = M.map((Ae) => i(Ae)).find(Boolean);
12427
+ ), Z = M.map((je) => i(je)).find(Boolean);
12419
12428
  return !Z && typeof window < "u" && console.warn(
12420
12429
  `[DoshaCalculator] renderPujaCard returned null/undefined for dosha type: ${_.type} (tried: ${M.join(", ")})`
12421
12430
  ), Z || /* @__PURE__ */ l.jsx("p", { className: "text-sm text-muted-foreground italic", children: e("drNoPujaAvailable") });
@@ -12452,14 +12461,14 @@ function mc({
12452
12461
  /* @__PURE__ */ l.jsxs(tt, { className: "spiritual-glow mx-4", children: [
12453
12462
  /* @__PURE__ */ l.jsxs(ct, { children: [
12454
12463
  /* @__PURE__ */ l.jsx(ut, { className: "text-2xl font-bold text-center gradient-spiritual bg-clip-text text-transparent", children: e("drDetailedAnalysis") }),
12455
- /* @__PURE__ */ l.jsx(lr, { className: "text-center", children: e("drBasedOnChart") })
12464
+ /* @__PURE__ */ l.jsx(cr, { className: "text-center", children: e("drBasedOnChart") })
12456
12465
  ] }),
12457
12466
  /* @__PURE__ */ l.jsx(dt, { className: "space-y-4", children: /* @__PURE__ */ l.jsx(Fs, { type: "single", collapsible: !0, className: "w-full space-y-4", children: Gs.map((_) => {
12458
12467
  const F = _.detailKey === "sadeSati" ? "sadeSati" : _.detailKey, z = _.summaryKey === "shaniSadeSati" ? w : v[_.summaryKey], L = zs(
12459
12468
  k,
12460
12469
  _.detailKey === "sadeSati" ? "sadeSati" : _.detailKey
12461
- ), I = v[_.severityKey], W = _.type === "shani" ? v.shaniPhase : void 0, M = _.icon, Ae = (L?.remedies ?? e(_.remediesKey)).split(`
12462
- `).map((ge) => ge.trim()).filter(Boolean);
12470
+ ), I = v[_.severityKey], W = _.type === "shani" ? v.shaniPhase : void 0, M = _.icon, je = (L?.remedies ?? e(_.remediesKey)).split(`
12471
+ `).map((pe) => pe.trim()).filter(Boolean);
12463
12472
  return /* @__PURE__ */ l.jsxs(Ks, { value: F, className: "border border-border rounded-lg px-4", children: [
12464
12473
  /* @__PURE__ */ l.jsx(qs, { value: F, className: "hover:no-underline", children: /* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-3", children: [
12465
12474
  /* @__PURE__ */ l.jsx(M, { className: "w-5 h-5 text-destructive" }),
@@ -12469,7 +12478,7 @@ function mc({
12469
12478
  e("drStatus"),
12470
12479
  ": ",
12471
12480
  Vs(z, e),
12472
- I && !Nr(z) && ` • ${e("drSeverity")}: ${Ys(I, e)}`,
12481
+ I && !Dr(z) && ` • ${e("drSeverity")}: ${Ys(I, e)}`,
12473
12482
  _.type === "shani" && W != null && ` • ${e("drPhase")}: ${W}`
12474
12483
  ] })
12475
12484
  ] })
@@ -12482,11 +12491,11 @@ function mc({
12482
12491
  ] }),
12483
12492
  L?.placements && L.placements.length > 0 && /* @__PURE__ */ l.jsxs("div", { className: "p-3 bg-accent/10 rounded-md", children: [
12484
12493
  /* @__PURE__ */ l.jsx("h4", { className: "font-medium mb-2", children: e("drPlanetaryPositions") }),
12485
- /* @__PURE__ */ l.jsx("ul", { className: "list-disc list-inside text-sm text-muted-foreground space-y-1", children: L.placements.map((ge, ee) => /* @__PURE__ */ l.jsx("li", { children: ge }, ee)) })
12494
+ /* @__PURE__ */ l.jsx("ul", { className: "list-disc list-inside text-sm text-muted-foreground space-y-1", children: L.placements.map((pe, ee) => /* @__PURE__ */ l.jsx("li", { children: pe }, ee)) })
12486
12495
  ] }),
12487
12496
  /* @__PURE__ */ l.jsxs("div", { children: [
12488
12497
  /* @__PURE__ */ l.jsx("h4", { className: "font-medium mb-2", children: e("drTraditionalRemedies") }),
12489
- /* @__PURE__ */ l.jsx("ul", { className: "list-disc list-inside text-sm text-muted-foreground space-y-1", children: Ae.map((ge, ee) => /* @__PURE__ */ l.jsx("li", { children: ge }, ee)) })
12498
+ /* @__PURE__ */ l.jsx("ul", { className: "list-disc list-inside text-sm text-muted-foreground space-y-1", children: je.map((pe, ee) => /* @__PURE__ */ l.jsx("li", { children: pe }, ee)) })
12490
12499
  ] })
12491
12500
  ] })
12492
12501
  ] }, F);
@@ -12501,7 +12510,7 @@ function mc({
12501
12510
  children: /* @__PURE__ */ l.jsxs("div", { className: "flex items-center justify-between gap-2", children: [
12502
12511
  /* @__PURE__ */ l.jsxs("div", { className: "text-left flex-1 min-w-0", children: [
12503
12512
  /* @__PURE__ */ l.jsx(ut, { className: "text-xl font-semibold", children: e("drOtherDoshas") }),
12504
- /* @__PURE__ */ l.jsx(lr, { children: e(D ? "drOtherDoshasStatusActive" : "drOtherDoshasStatusNone") })
12513
+ /* @__PURE__ */ l.jsx(cr, { children: e(D ? "drOtherDoshasStatusActive" : "drOtherDoshasStatusNone") })
12505
12514
  ] }),
12506
12515
  /* @__PURE__ */ l.jsx(
12507
12516
  Rn,
@@ -12513,7 +12522,7 @@ function mc({
12513
12522
  }
12514
12523
  ),
12515
12524
  V && /* @__PURE__ */ l.jsx(dt, { children: /* @__PURE__ */ l.jsx(Fs, { type: "single", collapsible: !0, className: "w-full space-y-2", children: x.map((_) => {
12516
- const F = v[_.summaryKey], z = Qe(F), L = ne[_.detailKey] ?? {}, I = L.explanation, W = L.placements;
12525
+ const F = v[_.summaryKey], z = Qe(F), L = se[_.detailKey] ?? {}, I = L.explanation, W = L.placements;
12517
12526
  return /* @__PURE__ */ l.jsxs(
12518
12527
  Ks,
12519
12528
  {
@@ -12522,10 +12531,10 @@ function mc({
12522
12531
  children: [
12523
12532
  /* @__PURE__ */ l.jsx(qs, { value: _.summaryKey, className: "hover:no-underline py-3", children: /* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-2 flex-1 min-w-0 mr-2", children: [
12524
12533
  /* @__PURE__ */ l.jsx("span", { className: "font-semibold text-sm text-left leading-tight", children: e(_.labelKey) }),
12525
- z ? /* @__PURE__ */ l.jsxs(cr, { variant: "destructive", className: "flex-shrink-0 text-xs flex items-center gap-1", children: [
12534
+ z ? /* @__PURE__ */ l.jsxs(ur, { variant: "destructive", className: "flex-shrink-0 text-xs flex items-center gap-1", children: [
12526
12535
  /* @__PURE__ */ l.jsx(Us, { size: 10 }),
12527
12536
  e("drStatusPresent")
12528
- ] }) : /* @__PURE__ */ l.jsxs(cr, { variant: "secondary", className: "flex-shrink-0 text-xs flex items-center gap-1 bg-green-50 text-green-700 border border-green-200", children: [
12537
+ ] }) : /* @__PURE__ */ l.jsxs(ur, { variant: "secondary", className: "flex-shrink-0 text-xs flex items-center gap-1 bg-green-50 text-green-700 border border-green-200", children: [
12529
12538
  /* @__PURE__ */ l.jsx(Ms, { size: 10 }),
12530
12539
  e("drStatusAbsent")
12531
12540
  ] })
@@ -12638,7 +12647,7 @@ function pc({
12638
12647
  t.schedule_date_ist && /* @__PURE__ */ l.jsx("p", { className: "text-sm font-medium text-card-foreground", children: o }),
12639
12648
  t.individual_pack_price_inr > 0 && /* @__PURE__ */ l.jsx("p", { className: "text-base font-bold text-primary", children: n ? `₹${t.individual_pack_price_inr} से शुरू` : `Starting from ₹${t.individual_pack_price_inr}` }),
12640
12649
  /* @__PURE__ */ l.jsxs(
12641
- Ft,
12650
+ Kt,
12642
12651
  {
12643
12652
  size: "lg",
12644
12653
  className: "book-puja-cta w-full h-14 text-lg font-bold",
@@ -12760,7 +12769,7 @@ function en(t) {
12760
12769
  }
12761
12770
  return Array.from(e);
12762
12771
  }
12763
- function or(t) {
12772
+ function lr(t) {
12764
12773
  if (!t) return !1;
12765
12774
  const e = t.toLowerCase();
12766
12775
  return e === "present" || e === "active" || e === "partial" || e === "suggested";
@@ -12786,16 +12795,16 @@ function Cc(t) {
12786
12795
  }
12787
12796
  function rn(t) {
12788
12797
  const e = [];
12789
- return or(t.kaalSarp) && e.push({
12798
+ return lr(t.kaalSarp) && e.push({
12790
12799
  type: "kaal-sarp",
12791
12800
  severity: typeof t.kaalSarpSeverity == "string" ? t.kaalSarpSeverity : void 0
12792
- }), or(t.pitra) && e.push({
12801
+ }), lr(t.pitra) && e.push({
12793
12802
  type: "pitra",
12794
12803
  severity: typeof t.pitraSeverity == "string" ? t.pitraSeverity : void 0
12795
- }), or(t.shaniSadeSati || t.sadeSati) && e.push({
12804
+ }), lr(t.shaniSadeSati || t.sadeSati) && e.push({
12796
12805
  type: "shani",
12797
12806
  severity: typeof t.sadeSatiSeverity == "string" ? t.sadeSatiSeverity : void 0
12798
- }), or(t.mangal) && !t.mangal?.toLowerCase().includes("nullified") && e.push({
12807
+ }), lr(t.mangal) && !t.mangal?.toLowerCase().includes("nullified") && e.push({
12799
12808
  type: "mangal",
12800
12809
  severity: typeof t.mangalSeverity == "string" ? t.mangalSeverity : void 0
12801
12810
  }), e.length === 0 ? null : (e.sort((r, s) => tn(s.severity) - tn(r.severity)), e[0]?.type ?? null);
@@ -12887,108 +12896,108 @@ function ou({
12887
12896
  return null;
12888
12897
  }
12889
12898
  return null;
12890
- }, [c, a, i]), j = yl(), x = j?.t ?? ((C) => C), N = j?.locale ?? "en", D = de(null), V = de(null), [$, Ne] = q(!1), [ne, le] = q(!1), [H, pe] = q(null), [_, F] = q(null), [z, L] = q(void 0), [I, W] = q(!1), [M, Z] = q([]), [Ae, ge] = q(!1), [ee, _e] = q(null), Ke = de(!1);
12891
- xe(() => {
12899
+ }, [c, a, i]), j = yl(), x = j?.t ?? ((P) => P), N = j?.locale ?? "en", D = ue(null), V = ue(null), [$, Oe] = q(!1), [se, le] = q(!1), [H, fe] = q(null), [_, F] = q(null), [z, L] = q(void 0), [I, W] = q(!1), [M, Z] = q([]), [je, pe] = q(!1), [ee, we] = q(null), Ke = ue(!1);
12900
+ Se(() => {
12892
12901
  Ke.current || (Ke.current = !0, v?.trackDoshaCalculatorWebView?.());
12893
12902
  }, []);
12894
- const Me = !m || !k;
12895
- xe(() => {
12896
- if (!Me || !b) return;
12897
- let C = !0;
12898
- return ge(!0), Fo(b).then((Q) => {
12899
- C && Z(Q);
12903
+ const Ue = !m || !k;
12904
+ Se(() => {
12905
+ if (!Ue || !b) return;
12906
+ let P = !0;
12907
+ return pe(!0), Fo(b).then((J) => {
12908
+ P && Z(J);
12900
12909
  }).finally(() => {
12901
- C && ge(!1);
12910
+ P && pe(!1);
12902
12911
  }), () => {
12903
- C = !1;
12912
+ P = !1;
12904
12913
  };
12905
- }, [Me, b]);
12914
+ }, [Ue, b]);
12906
12915
  const ze = Fe(
12907
- (C) => {
12908
- const Q = Ns(M, C);
12909
- return Q ? /* @__PURE__ */ l.jsx(
12916
+ (P) => {
12917
+ const J = Ns(M, P);
12918
+ return J ? /* @__PURE__ */ l.jsx(
12910
12919
  pc,
12911
12920
  {
12912
- puja: Q,
12913
- doshaType: C,
12921
+ puja: J,
12922
+ doshaType: P,
12914
12923
  language: N
12915
12924
  }
12916
12925
  ) : null;
12917
12926
  },
12918
12927
  [M, N]
12919
- ), Ie = Fe(
12920
- (C) => {
12921
- const Q = Ns(M, C);
12922
- return Q ? {
12923
- name: jn(Q, N),
12924
- price: Q.individual_pack_price_inr,
12925
- link: An(Q, N)
12928
+ ), Ne = Fe(
12929
+ (P) => {
12930
+ const J = Ns(M, P);
12931
+ return J ? {
12932
+ name: jn(J, N),
12933
+ price: J.individual_pack_price_inr,
12934
+ link: An(J, N)
12926
12935
  } : null;
12927
12936
  },
12928
12937
  [M, N]
12929
- ), ft = m ?? ze, Ve = k ?? Ie, qe = p || !m && Ae, [mt, We] = q(
12938
+ ), ft = m ?? ze, Ve = k ?? Ne, qe = p || !m && je, [mt, We] = q(
12930
12939
  () => Xs(null, N)
12931
- ), [ke, pt] = q("generic");
12932
- xe(() => {
12933
- const C = Zs(), Q = Xs(C, N);
12934
- We(Q);
12935
- let be = "generic";
12936
- C && C.toLowerCase().includes("marriage") && (be = "marriage"), pt(be);
12940
+ ), [_e, pt] = q("generic");
12941
+ Se(() => {
12942
+ const P = Zs(), J = Xs(P, N);
12943
+ We(J);
12944
+ let me = "generic";
12945
+ P && P.toLowerCase().includes("marriage") && (me = "marriage"), pt(me);
12937
12946
  }, [N]);
12938
12947
  const [E, U] = q(!1);
12939
- xe(() => {
12940
- const C = Zs();
12941
- C && C.toLowerCase().includes("what-you") && U(!0);
12948
+ Se(() => {
12949
+ const P = Zs();
12950
+ P && P.toLowerCase().includes("what-you") && U(!0);
12942
12951
  }, []);
12943
- const he = () => {
12952
+ const ge = () => {
12944
12953
  D.current?.scrollIntoView({ behavior: "smooth" });
12945
- }, ye = Fe(
12946
- (C) => {
12954
+ }, ve = Fe(
12955
+ (P) => {
12947
12956
  v?.trackDoshaSectionImpression?.({
12948
- section: C,
12957
+ section: P,
12949
12958
  timestamp: (/* @__PURE__ */ new Date()).toISOString()
12950
12959
  });
12951
12960
  },
12952
12961
  [v]
12953
- ), te = (C, Q) => {
12954
- if (pe(C), F(Q ?? null), W(!1), C.summary) {
12955
- const be = C.summary, Be = rn(be);
12962
+ ), Ie = (P, J) => {
12963
+ if (fe(P), F(J ?? null), W(!1), P.summary) {
12964
+ const me = P.summary, Be = rn(me);
12956
12965
  if (Be) {
12957
- const gt = en(Be).map((Je) => Ve(Je)).find(Boolean) ?? null;
12958
- _e(gt);
12966
+ const gt = en(Be).map((yt) => Ve(yt)).find(Boolean) ?? null;
12967
+ we(gt);
12959
12968
  } else
12960
- _e(null);
12969
+ we(null);
12961
12970
  } else
12962
- _e(null);
12963
- d?.(C, Q);
12971
+ we(null);
12972
+ d?.(P, J);
12964
12973
  };
12965
- xe(() => {
12974
+ Se(() => {
12966
12975
  if (k || !H?.summary) return;
12967
- const C = rn(H.summary);
12968
- if (!C) {
12969
- _e(null);
12976
+ const P = rn(H.summary);
12977
+ if (!P) {
12978
+ we(null);
12970
12979
  return;
12971
12980
  }
12972
- const Q = en(C).map((be) => Ie(be)).find(Boolean) ?? null;
12973
- _e(Q);
12974
- }, [Ie, k, H]);
12975
- const ce = () => {
12981
+ const J = en(P).map((me) => Ne(me)).find(Boolean) ?? null;
12982
+ we(J);
12983
+ }, [Ne, k, H]);
12984
+ const Me = () => {
12976
12985
  W(!0), window.scrollTo({ top: 0, behavior: "smooth" });
12977
- }, De = () => {
12986
+ }, ie = () => {
12978
12987
  if (H && !I && ee) {
12979
12988
  if (w)
12980
12989
  w();
12981
12990
  else if (ee.link) {
12982
- const C = Cc(ee.link);
12983
- window.open(C, "_blank", "noopener,noreferrer");
12991
+ const P = Cc(ee.link);
12992
+ window.open(P, "_blank", "noopener,noreferrer");
12984
12993
  }
12985
12994
  return;
12986
12995
  }
12987
12996
  console.log("supabase", b), console.log("resolvePlaceProp", u), console.log("isFormComplete", $), console.log("formSubmitRef.current", V.current), b && V.current ? (v?.trackFloatingCtaClicked?.(
12988
- $ ? Tr.all_fields_filled : Tr.fields_not_filled
12989
- ), $ || he(), V.current.submit()) : (v?.trackFloatingCtaClicked?.(
12990
- Tr.fields_not_filled
12991
- ), he());
12997
+ $ ? Ar.all_fields_filled : Ar.fields_not_filled
12998
+ ), $ || ge(), V.current.submit()) : (v?.trackFloatingCtaClicked?.(
12999
+ Ar.fields_not_filled
13000
+ ), ge());
12992
13001
  };
12993
13002
  return /* @__PURE__ */ l.jsxs("div", { className: t, children: [
12994
13003
  /* @__PURE__ */ l.jsx(
@@ -13005,7 +13014,7 @@ function ou({
13005
13014
  Ye,
13006
13015
  {
13007
13016
  section: "banner",
13008
- onImpression: ye,
13017
+ onImpression: ve,
13009
13018
  children: /* @__PURE__ */ l.jsx(ml, { bannerConfig: mt })
13010
13019
  }
13011
13020
  ),
@@ -13013,13 +13022,13 @@ function ou({
13013
13022
  Ye,
13014
13023
  {
13015
13024
  section: "result",
13016
- onImpression: ye,
13025
+ onImpression: ve,
13017
13026
  children: /* @__PURE__ */ l.jsx(
13018
13027
  mc,
13019
13028
  {
13020
13029
  result: H,
13021
13030
  t: x,
13022
- onEdit: I ? void 0 : ce,
13031
+ onEdit: I ? void 0 : Me,
13023
13032
  inlineEditForm: I ? /* @__PURE__ */ l.jsx(
13024
13033
  Ls,
13025
13034
  {
@@ -13027,11 +13036,11 @@ function ou({
13027
13036
  t: x,
13028
13037
  initialValues: z,
13029
13038
  onValuesChange: L,
13030
- onFormValidityChange: Ne,
13039
+ onFormValidityChange: Oe,
13031
13040
  supabase: b ?? void 0,
13032
13041
  resolvePlace: u,
13033
13042
  googleMapsApiKey: o,
13034
- onResult: te,
13043
+ onResult: Ie,
13035
13044
  onError: f,
13036
13045
  onLoadingChange: le,
13037
13046
  analytics: v
@@ -13056,15 +13065,15 @@ function ou({
13056
13065
  Ye,
13057
13066
  {
13058
13067
  section: "what_from_analysis",
13059
- onImpression: ye,
13060
- children: /* @__PURE__ */ l.jsx(Qs, { t: x, bannerType: ke })
13068
+ onImpression: ve,
13069
+ children: /* @__PURE__ */ l.jsx(Qs, { t: x, bannerType: _e })
13061
13070
  }
13062
13071
  ),
13063
13072
  /* @__PURE__ */ l.jsx(
13064
13073
  Ye,
13065
13074
  {
13066
13075
  section: "form",
13067
- onImpression: ye,
13076
+ onImpression: ve,
13068
13077
  children: /* @__PURE__ */ l.jsx("div", { ref: D, children: /* @__PURE__ */ l.jsx(
13069
13078
  Ls,
13070
13079
  {
@@ -13072,11 +13081,11 @@ function ou({
13072
13081
  t: x,
13073
13082
  initialValues: z,
13074
13083
  onValuesChange: L,
13075
- onFormValidityChange: Ne,
13084
+ onFormValidityChange: Oe,
13076
13085
  supabase: b ?? void 0,
13077
13086
  resolvePlace: u,
13078
13087
  googleMapsApiKey: o,
13079
- onResult: te,
13088
+ onResult: Ie,
13080
13089
  onError: f,
13081
13090
  onLoadingChange: le,
13082
13091
  analytics: v
@@ -13088,28 +13097,28 @@ function ou({
13088
13097
  Ye,
13089
13098
  {
13090
13099
  section: "what_from_analysis",
13091
- onImpression: ye,
13092
- children: /* @__PURE__ */ l.jsx(Qs, { t: x, bannerType: ke })
13100
+ onImpression: ve,
13101
+ children: /* @__PURE__ */ l.jsx(Qs, { t: x, bannerType: _e })
13093
13102
  }
13094
13103
  ),
13095
13104
  /* @__PURE__ */ l.jsx(
13096
13105
  Ye,
13097
13106
  {
13098
13107
  section: "user_reviews",
13099
- onImpression: ye,
13108
+ onImpression: ve,
13100
13109
  children: /* @__PURE__ */ l.jsx(
13101
13110
  an,
13102
13111
  {
13103
- t: (C) => {
13104
- if (ke === "marriage") {
13105
- if (C === "feedbackTitle")
13112
+ t: (P) => {
13113
+ if (_e === "marriage") {
13114
+ if (P === "feedbackTitle")
13106
13115
  return x("feedbackTitleMarriage");
13107
- if (C.startsWith("feedbackTestimonial")) {
13108
- const be = `feedbackTestimonialMarriage${C.replace("feedbackTestimonial", "")}`, Be = x(be);
13109
- return Be === be ? x(C) : Be;
13116
+ if (P.startsWith("feedbackTestimonial")) {
13117
+ const me = `feedbackTestimonialMarriage${P.replace("feedbackTestimonial", "")}`, Be = x(me);
13118
+ return Be === me ? x(P) : Be;
13110
13119
  }
13111
13120
  }
13112
- return x(C);
13121
+ return x(P);
13113
13122
  },
13114
13123
  readMoreHref: n,
13115
13124
  onReadMore: v?.trackReadMoreReviewsClicked ? () => v.trackReadMoreReviewsClicked() : void 0
@@ -13121,14 +13130,14 @@ function ou({
13121
13130
  Ye,
13122
13131
  {
13123
13132
  section: "faq",
13124
- onImpression: ye,
13133
+ onImpression: ve,
13125
13134
  children: /* @__PURE__ */ l.jsx(
13126
13135
  on,
13127
13136
  {
13128
13137
  t: x,
13129
- items: ke === "marriage" ? Ic : Nc,
13138
+ items: _e === "marriage" ? Ic : Nc,
13130
13139
  defaultOpenIndex: 0,
13131
- onItemOpen: (C) => v?.trackFaqQuestionClicked?.(C)
13140
+ onItemOpen: (P) => v?.trackFaqQuestionClicked?.(P)
13132
13141
  }
13133
13142
  )
13134
13143
  }
@@ -13137,7 +13146,7 @@ function ou({
13137
13146
  Ye,
13138
13147
  {
13139
13148
  section: "contact",
13140
- onImpression: ye,
13149
+ onImpression: ve,
13141
13150
  children: /* @__PURE__ */ l.jsx(
13142
13151
  ln,
13143
13152
  {
@@ -13157,10 +13166,10 @@ function ou({
13157
13166
  cl,
13158
13167
  {
13159
13168
  isFormComplete: $,
13160
- onPress: De,
13169
+ onPress: ie,
13161
13170
  labelDefault: x("formCta"),
13162
13171
  labelFilled: x("formCtaCalculate"),
13163
- isLoading: ne,
13172
+ isLoading: se,
13164
13173
  mode: H && !I && ee ? "book-puja" : "form",
13165
13174
  firstPuja: ee || void 0,
13166
13175
  showingResults: !!H && !I,
@@ -13170,7 +13179,7 @@ function ou({
13170
13179
  ] })
13171
13180
  ] });
13172
13181
  }
13173
- const Dc = "_section_ji9so_1", $c = "_heading_ji9so_6", Lc = "_headingSuccess_ji9so_13", Uc = "_card_ji9so_17", Mc = "_cardPresent_ji9so_25", Bc = "_cardAbsent_ji9so_29", Fc = "_cardHeader_ji9so_33", Kc = "_doshaName_ji9so_41", qc = "_badge_ji9so_46", Wc = "_badgePresent_ji9so_53", Hc = "_badgeAbsent_ji9so_58", Gc = "_badgeInactive_ji9so_63", zc = "_body_ji9so_68", Vc = "_bodyLabel_ji9so_75", Jc = "_noDoshas_ji9so_81", Yc = "_noDoshasDesc_ji9so_88", Qc = "_editBtn_ji9so_94", Xc = "_accordionContent_ji9so_128", se = {
13182
+ const Dc = "_section_ji9so_1", $c = "_heading_ji9so_6", Lc = "_headingSuccess_ji9so_13", Uc = "_card_ji9so_17", Mc = "_cardPresent_ji9so_25", Bc = "_cardAbsent_ji9so_29", Fc = "_cardHeader_ji9so_33", Kc = "_doshaName_ji9so_41", qc = "_badge_ji9so_46", Wc = "_badgePresent_ji9so_53", Hc = "_badgeAbsent_ji9so_58", Gc = "_badgeInactive_ji9so_63", zc = "_body_ji9so_68", Vc = "_bodyLabel_ji9so_75", Jc = "_noDoshas_ji9so_81", Yc = "_noDoshasDesc_ji9so_88", Qc = "_editBtn_ji9so_94", Xc = "_accordionContent_ji9so_128", re = {
13174
13183
  section: Dc,
13175
13184
  heading: $c,
13176
13185
  headingSuccess: Lc,
@@ -13195,7 +13204,7 @@ const Dc = "_section_ji9so_1", $c = "_heading_ji9so_6", Lc = "_headingSuccess_ji
13195
13204
  { key: "pitra", labelKey: "resultPitra", summaryKey: "pitra" },
13196
13205
  { key: "sadeSati", labelKey: "resultSadeSati", summaryKey: "shaniSadeSati" }
13197
13206
  ];
13198
- function Lt(t) {
13207
+ function Ut(t) {
13199
13208
  if (!t) return !1;
13200
13209
  const e = t.toLowerCase();
13201
13210
  return e === "present" || e === "active" || e === "partial" || e === "suggested";
@@ -13217,45 +13226,45 @@ function tu(t, e) {
13217
13226
  return r.includes("nullified") || r === "present" || r === "active" || r === "partial" || r === "suggested" ? e("resultStatusPresent") : r === "absent" ? e("resultStatusAbsent") : r === "inactive" ? e("resultStatusInactive") : t;
13218
13227
  }
13219
13228
  function lu({ result: t, t: e, onEdit: r, className: s = "" }) {
13220
- const n = t.summary ?? {}, a = t.details ?? {}, i = n.shaniSadeSati ?? n.sadeSati, o = Lt(n.mangal) || Lt(n.kaalSarp) || Lt(n.pitra) || Lt(i);
13221
- return /* @__PURE__ */ l.jsxs("section", { className: `${se.section} ${s}`, "aria-labelledby": "dosha-results-heading", children: [
13222
- /* @__PURE__ */ l.jsx("h2", { id: "dosha-results-heading", className: o ? `${se.heading} ${se.headingSuccess}` : se.heading, children: e(o ? "resultSomeDoshas" : "resultNoDoshas") }),
13229
+ const n = t.summary ?? {}, a = t.details ?? {}, i = n.shaniSadeSati ?? n.sadeSati, o = Ut(n.mangal) || Ut(n.kaalSarp) || Ut(n.pitra) || Ut(i);
13230
+ return /* @__PURE__ */ l.jsxs("section", { className: `${re.section} ${s}`, "aria-labelledby": "dosha-results-heading", children: [
13231
+ /* @__PURE__ */ l.jsx("h2", { id: "dosha-results-heading", className: o ? `${re.heading} ${re.headingSuccess}` : re.heading, children: e(o ? "resultSomeDoshas" : "resultNoDoshas") }),
13223
13232
  o ? /* @__PURE__ */ l.jsx("div", { children: Zc.map(({ key: c, labelKey: u, summaryKey: d }) => {
13224
- const f = d === "shaniSadeSati" ? i : n[d], m = Lt(f), p = eu(a, c === "sadeSati" ? "sadeSati" : c), g = p?.explanation, y = typeof p?.remedies == "string" ? p.remedies : void 0;
13233
+ const f = d === "shaniSadeSati" ? i : n[d], m = Ut(f), p = eu(a, c === "sadeSati" ? "sadeSati" : c), g = p?.explanation, y = typeof p?.remedies == "string" ? p.remedies : void 0;
13225
13234
  return /* @__PURE__ */ l.jsxs(
13226
13235
  "div",
13227
13236
  {
13228
- className: `${se.card} ${m ? se.cardPresent : se.cardAbsent}`,
13237
+ className: `${re.card} ${m ? re.cardPresent : re.cardAbsent}`,
13229
13238
  children: [
13230
- /* @__PURE__ */ l.jsxs("div", { className: se.cardHeader, children: [
13231
- /* @__PURE__ */ l.jsx("span", { className: se.doshaName, children: e(u) }),
13239
+ /* @__PURE__ */ l.jsxs("div", { className: re.cardHeader, children: [
13240
+ /* @__PURE__ */ l.jsx("span", { className: re.doshaName, children: e(u) }),
13232
13241
  /* @__PURE__ */ l.jsx(
13233
13242
  "span",
13234
13243
  {
13235
- className: `${se.badge} ${m ? se.badgePresent : f === "inactive" ? se.badgeInactive : se.badgeAbsent}`,
13244
+ className: `${re.badge} ${m ? re.badgePresent : f === "inactive" ? re.badgeInactive : re.badgeAbsent}`,
13236
13245
  children: tu(f, e)
13237
13246
  }
13238
13247
  )
13239
13248
  ] }),
13240
- (g || y) && /* @__PURE__ */ l.jsxs("div", { className: se.body, children: [
13249
+ (g || y) && /* @__PURE__ */ l.jsxs("div", { className: re.body, children: [
13241
13250
  g && /* @__PURE__ */ l.jsxs("div", { children: [
13242
- /* @__PURE__ */ l.jsx("div", { className: se.bodyLabel, children: e("resultExplanation") }),
13243
- /* @__PURE__ */ l.jsx("p", { className: se.accordionContent, children: g })
13251
+ /* @__PURE__ */ l.jsx("div", { className: re.bodyLabel, children: e("resultExplanation") }),
13252
+ /* @__PURE__ */ l.jsx("p", { className: re.accordionContent, children: g })
13244
13253
  ] }),
13245
13254
  y && /* @__PURE__ */ l.jsxs("div", { style: { marginTop: g ? "0.75rem" : 0 }, children: [
13246
- /* @__PURE__ */ l.jsx("div", { className: se.bodyLabel, children: e("resultRemedies") }),
13247
- /* @__PURE__ */ l.jsx("p", { className: se.accordionContent, children: y })
13255
+ /* @__PURE__ */ l.jsx("div", { className: re.bodyLabel, children: e("resultRemedies") }),
13256
+ /* @__PURE__ */ l.jsx("p", { className: re.accordionContent, children: y })
13248
13257
  ] })
13249
13258
  ] })
13250
13259
  ]
13251
13260
  },
13252
13261
  c
13253
13262
  );
13254
- }) }) : /* @__PURE__ */ l.jsxs("div", { className: se.noDoshas, children: [
13263
+ }) }) : /* @__PURE__ */ l.jsxs("div", { className: re.noDoshas, children: [
13255
13264
  /* @__PURE__ */ l.jsx("p", { children: e("resultNoDoshas") }),
13256
- /* @__PURE__ */ l.jsx("p", { className: se.noDoshasDesc, children: e("resultNoDoshasDesc") })
13265
+ /* @__PURE__ */ l.jsx("p", { className: re.noDoshasDesc, children: e("resultNoDoshasDesc") })
13257
13266
  ] }),
13258
- r && /* @__PURE__ */ l.jsx("button", { type: "button", className: se.editBtn, onClick: r, "aria-label": e("resultEditForm"), children: e("resultEditForm") })
13267
+ r && /* @__PURE__ */ l.jsx("button", { type: "button", className: re.editBtn, onClick: r, "aria-label": e("resultEditForm"), children: e("resultEditForm") })
13259
13268
  ] });
13260
13269
  }
13261
13270
  function cu(t) {
@@ -13286,7 +13295,7 @@ export {
13286
13295
  Ls as DoshaFormSection,
13287
13296
  mc as DoshaResultsFull,
13288
13297
  lu as DoshaResultsView,
13289
- Tr as FLOATING_CTA_STATUS,
13298
+ Ar as FLOATING_CTA_STATUS,
13290
13299
  iu as I18nProvider,
13291
13300
  dc as KundaliCard,
13292
13301
  au as LOCALE_LABELS,