@getopenpay/openpay-js 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { z as i } from "zod";
2
2
  import { v4 as yn } from "uuid";
3
3
  import { connectToChild as mn } from "penpal";
4
- var Qr = { exports: {} }, Nr = { exports: {} }, D = {};
4
+ var Qr = { exports: {} }, Nr = { exports: {} }, M = {};
5
5
  /**
6
6
  * @license React
7
7
  * react.production.min.js
@@ -13,9 +13,9 @@ var Qr = { exports: {} }, Nr = { exports: {} }, D = {};
13
13
  */
14
14
  var Yr;
15
15
  function hn() {
16
- if (Yr) return D;
16
+ if (Yr) return M;
17
17
  Yr = 1;
18
- var c = Symbol.for("react.element"), a = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), j = Symbol.for("react.context"), I = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), q = Symbol.for("react.memo"), V = Symbol.for("react.lazy"), U = Symbol.iterator;
18
+ var c = Symbol.for("react.element"), a = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), I = Symbol.for("react.context"), P = Symbol.for("react.forward_ref"), $ = Symbol.for("react.suspense"), q = Symbol.for("react.memo"), V = Symbol.for("react.lazy"), U = Symbol.iterator;
19
19
  function G(r) {
20
20
  return r === null || typeof r != "object" ? null : (r = U && r[U] || r["@@iterator"], typeof r == "function" ? r : null);
21
21
  }
@@ -42,10 +42,10 @@ function hn() {
42
42
  }
43
43
  var ae = oe.prototype = new ge();
44
44
  ae.constructor = oe, Z(ae, W.prototype), ae.isPureReactComponent = !0;
45
- var K = Array.isArray, F = Object.prototype.hasOwnProperty, z = { current: null }, Q = { key: !0, ref: !0, __self: !0, __source: !0 };
46
- function te(r, s, h) {
47
- var _, E = {}, P = null, k = null;
48
- if (s != null) for (_ in s.ref !== void 0 && (k = s.ref), s.key !== void 0 && (P = "" + s.key), s) F.call(s, _) && !Q.hasOwnProperty(_) && (E[_] = s[_]);
45
+ var B = Array.isArray, F = Object.prototype.hasOwnProperty, z = { current: null }, Q = { key: !0, ref: !0, __self: !0, __source: !0 };
46
+ function re(r, s, h) {
47
+ var _, E = {}, j = null, k = null;
48
+ if (s != null) for (_ in s.ref !== void 0 && (k = s.ref), s.key !== void 0 && (j = "" + s.key), s) F.call(s, _) && !Q.hasOwnProperty(_) && (E[_] = s[_]);
49
49
  var O = arguments.length - 2;
50
50
  if (O === 1) E.children = h;
51
51
  else if (1 < O) {
@@ -53,7 +53,7 @@ function hn() {
53
53
  E.children = C;
54
54
  }
55
55
  if (r && r.defaultProps) for (_ in O = r.defaultProps, O) E[_] === void 0 && (E[_] = O[_]);
56
- return { $$typeof: c, type: r, key: P, ref: k, props: E, _owner: z.current };
56
+ return { $$typeof: c, type: r, key: j, ref: k, props: E, _owner: z.current };
57
57
  }
58
58
  function _e(r, s) {
59
59
  return { $$typeof: c, type: r.type, key: s, ref: r.ref, props: r.props, _owner: r._owner };
@@ -61,7 +61,7 @@ function hn() {
61
61
  function de(r) {
62
62
  return typeof r == "object" && r !== null && r.$$typeof === c;
63
63
  }
64
- function De(r) {
64
+ function Me(r) {
65
65
  var s = { "=": "=0", ":": "=2" };
66
66
  return "$" + r.replace(/[=:]/g, function(h) {
67
67
  return s[h];
@@ -69,14 +69,14 @@ function hn() {
69
69
  }
70
70
  var be = /\/+/g;
71
71
  function pe(r, s) {
72
- return typeof r == "object" && r !== null && r.key != null ? De("" + r.key) : s.toString(36);
72
+ return typeof r == "object" && r !== null && r.key != null ? Me("" + r.key) : s.toString(36);
73
73
  }
74
74
  function ie(r, s, h, _, E) {
75
- var P = typeof r;
76
- (P === "undefined" || P === "boolean") && (r = null);
75
+ var j = typeof r;
76
+ (j === "undefined" || j === "boolean") && (r = null);
77
77
  var k = !1;
78
78
  if (r === null) k = !0;
79
- else switch (P) {
79
+ else switch (j) {
80
80
  case "string":
81
81
  case "number":
82
82
  k = !0;
@@ -88,23 +88,23 @@ function hn() {
88
88
  k = !0;
89
89
  }
90
90
  }
91
- if (k) return k = r, E = E(k), r = _ === "" ? "." + pe(k, 0) : _, K(E) ? (h = "", r != null && (h = r.replace(be, "$&/") + "/"), ie(E, s, h, "", function(L) {
91
+ if (k) return k = r, E = E(k), r = _ === "" ? "." + pe(k, 0) : _, B(E) ? (h = "", r != null && (h = r.replace(be, "$&/") + "/"), ie(E, s, h, "", function(L) {
92
92
  return L;
93
93
  })) : E != null && (de(E) && (E = _e(E, h + (!E.key || k && k.key === E.key ? "" : ("" + E.key).replace(be, "$&/") + "/") + r)), s.push(E)), 1;
94
- if (k = 0, _ = _ === "" ? "." : _ + ":", K(r)) for (var O = 0; O < r.length; O++) {
95
- P = r[O];
96
- var C = _ + pe(P, O);
97
- k += ie(P, s, h, C, E);
94
+ if (k = 0, _ = _ === "" ? "." : _ + ":", B(r)) for (var O = 0; O < r.length; O++) {
95
+ j = r[O];
96
+ var C = _ + pe(j, O);
97
+ k += ie(j, s, h, C, E);
98
98
  }
99
- else if (C = G(r), typeof C == "function") for (r = C.call(r), O = 0; !(P = r.next()).done; ) P = P.value, C = _ + pe(P, O++), k += ie(P, s, h, C, E);
100
- else if (P === "object") throw s = String(r), Error("Objects are not valid as a React child (found: " + (s === "[object Object]" ? "object with keys {" + Object.keys(r).join(", ") + "}" : s) + "). If you meant to render a collection of children, use an array instead.");
99
+ else if (C = G(r), typeof C == "function") for (r = C.call(r), O = 0; !(j = r.next()).done; ) j = j.value, C = _ + pe(j, O++), k += ie(j, s, h, C, E);
100
+ else if (j === "object") throw s = String(r), Error("Objects are not valid as a React child (found: " + (s === "[object Object]" ? "object with keys {" + Object.keys(r).join(", ") + "}" : s) + "). If you meant to render a collection of children, use an array instead.");
101
101
  return k;
102
102
  }
103
103
  function H(r, s, h) {
104
104
  if (r == null) return r;
105
105
  var _ = [], E = 0;
106
- return ie(r, _, "", "", function(P) {
107
- return s.call(h, P, E++);
106
+ return ie(r, _, "", "", function(j) {
107
+ return s.call(h, j, E++);
108
108
  }), _;
109
109
  }
110
110
  function X(r) {
@@ -119,11 +119,11 @@ function hn() {
119
119
  if (r._status === 1) return r._result.default;
120
120
  throw r._result;
121
121
  }
122
- var f = { current: null }, re = { transition: null }, Ee = { ReactCurrentDispatcher: f, ReactCurrentBatchConfig: re, ReactCurrentOwner: z };
122
+ var f = { current: null }, ne = { transition: null }, Ee = { ReactCurrentDispatcher: f, ReactCurrentBatchConfig: ne, ReactCurrentOwner: z };
123
123
  function se() {
124
124
  throw Error("act(...) is not supported in production builds of React.");
125
125
  }
126
- return D.Children = { map: H, forEach: function(r, s, h) {
126
+ return M.Children = { map: H, forEach: function(r, s, h) {
127
127
  H(r, function() {
128
128
  s.apply(this, arguments);
129
129
  }, h);
@@ -139,11 +139,11 @@ function hn() {
139
139
  }, only: function(r) {
140
140
  if (!de(r)) throw Error("React.Children.only expected to receive a single React element child.");
141
141
  return r;
142
- } }, D.Component = W, D.Fragment = p, D.Profiler = g, D.PureComponent = oe, D.StrictMode = m, D.Suspense = x, D.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Ee, D.act = se, D.cloneElement = function(r, s, h) {
142
+ } }, M.Component = W, M.Fragment = p, M.Profiler = g, M.PureComponent = oe, M.StrictMode = m, M.Suspense = $, M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Ee, M.act = se, M.cloneElement = function(r, s, h) {
143
143
  if (r == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + r + ".");
144
- var _ = Z({}, r.props), E = r.key, P = r.ref, k = r._owner;
144
+ var _ = Z({}, r.props), E = r.key, j = r.ref, k = r._owner;
145
145
  if (s != null) {
146
- if (s.ref !== void 0 && (P = s.ref, k = z.current), s.key !== void 0 && (E = "" + s.key), r.type && r.type.defaultProps) var O = r.type.defaultProps;
146
+ if (s.ref !== void 0 && (j = s.ref, k = z.current), s.key !== void 0 && (E = "" + s.key), r.type && r.type.defaultProps) var O = r.type.defaultProps;
147
147
  for (C in s) F.call(s, C) && !Q.hasOwnProperty(C) && (_[C] = s[C] === void 0 && O !== void 0 ? O[C] : s[C]);
148
148
  }
149
149
  var C = arguments.length - 2;
@@ -153,58 +153,58 @@ function hn() {
153
153
  for (var L = 0; L < C; L++) O[L] = arguments[L + 2];
154
154
  _.children = O;
155
155
  }
156
- return { $$typeof: c, type: r.type, key: E, ref: P, props: _, _owner: k };
157
- }, D.createContext = function(r) {
158
- return r = { $$typeof: j, _currentValue: r, _currentValue2: r, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, r.Provider = { $$typeof: b, _context: r }, r.Consumer = r;
159
- }, D.createElement = te, D.createFactory = function(r) {
160
- var s = te.bind(null, r);
156
+ return { $$typeof: c, type: r.type, key: E, ref: j, props: _, _owner: k };
157
+ }, M.createContext = function(r) {
158
+ return r = { $$typeof: I, _currentValue: r, _currentValue2: r, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, r.Provider = { $$typeof: b, _context: r }, r.Consumer = r;
159
+ }, M.createElement = re, M.createFactory = function(r) {
160
+ var s = re.bind(null, r);
161
161
  return s.type = r, s;
162
- }, D.createRef = function() {
162
+ }, M.createRef = function() {
163
163
  return { current: null };
164
- }, D.forwardRef = function(r) {
165
- return { $$typeof: I, render: r };
166
- }, D.isValidElement = de, D.lazy = function(r) {
164
+ }, M.forwardRef = function(r) {
165
+ return { $$typeof: P, render: r };
166
+ }, M.isValidElement = de, M.lazy = function(r) {
167
167
  return { $$typeof: V, _payload: { _status: -1, _result: r }, _init: X };
168
- }, D.memo = function(r, s) {
168
+ }, M.memo = function(r, s) {
169
169
  return { $$typeof: q, type: r, compare: s === void 0 ? null : s };
170
- }, D.startTransition = function(r) {
171
- var s = re.transition;
172
- re.transition = {};
170
+ }, M.startTransition = function(r) {
171
+ var s = ne.transition;
172
+ ne.transition = {};
173
173
  try {
174
174
  r();
175
175
  } finally {
176
- re.transition = s;
176
+ ne.transition = s;
177
177
  }
178
- }, D.unstable_act = se, D.useCallback = function(r, s) {
178
+ }, M.unstable_act = se, M.useCallback = function(r, s) {
179
179
  return f.current.useCallback(r, s);
180
- }, D.useContext = function(r) {
180
+ }, M.useContext = function(r) {
181
181
  return f.current.useContext(r);
182
- }, D.useDebugValue = function() {
183
- }, D.useDeferredValue = function(r) {
182
+ }, M.useDebugValue = function() {
183
+ }, M.useDeferredValue = function(r) {
184
184
  return f.current.useDeferredValue(r);
185
- }, D.useEffect = function(r, s) {
185
+ }, M.useEffect = function(r, s) {
186
186
  return f.current.useEffect(r, s);
187
- }, D.useId = function() {
187
+ }, M.useId = function() {
188
188
  return f.current.useId();
189
- }, D.useImperativeHandle = function(r, s, h) {
189
+ }, M.useImperativeHandle = function(r, s, h) {
190
190
  return f.current.useImperativeHandle(r, s, h);
191
- }, D.useInsertionEffect = function(r, s) {
191
+ }, M.useInsertionEffect = function(r, s) {
192
192
  return f.current.useInsertionEffect(r, s);
193
- }, D.useLayoutEffect = function(r, s) {
193
+ }, M.useLayoutEffect = function(r, s) {
194
194
  return f.current.useLayoutEffect(r, s);
195
- }, D.useMemo = function(r, s) {
195
+ }, M.useMemo = function(r, s) {
196
196
  return f.current.useMemo(r, s);
197
- }, D.useReducer = function(r, s, h) {
197
+ }, M.useReducer = function(r, s, h) {
198
198
  return f.current.useReducer(r, s, h);
199
- }, D.useRef = function(r) {
199
+ }, M.useRef = function(r) {
200
200
  return f.current.useRef(r);
201
- }, D.useState = function(r) {
201
+ }, M.useState = function(r) {
202
202
  return f.current.useState(r);
203
- }, D.useSyncExternalStore = function(r, s, h) {
203
+ }, M.useSyncExternalStore = function(r, s, h) {
204
204
  return f.current.useSyncExternalStore(r, s, h);
205
- }, D.useTransition = function() {
205
+ }, M.useTransition = function() {
206
206
  return f.current.useTransition();
207
- }, D.version = "18.3.1", D;
207
+ }, M.version = "18.3.1", M;
208
208
  }
209
209
  var Pt = { exports: {} };
210
210
  /**
@@ -222,7 +222,7 @@ function vn() {
222
222
  return Hr || (Hr = 1, function(c, a) {
223
223
  process.env.NODE_ENV !== "production" && function() {
224
224
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
225
- var p = "18.3.1", m = Symbol.for("react.element"), g = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), j = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), x = Symbol.for("react.provider"), q = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), U = Symbol.for("react.suspense"), G = Symbol.for("react.suspense_list"), Y = Symbol.for("react.memo"), Z = Symbol.for("react.lazy"), ve = Symbol.for("react.offscreen"), W = Symbol.iterator, ge = "@@iterator";
225
+ var p = "18.3.1", m = Symbol.for("react.element"), g = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), I = Symbol.for("react.strict_mode"), P = Symbol.for("react.profiler"), $ = Symbol.for("react.provider"), q = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), U = Symbol.for("react.suspense"), G = Symbol.for("react.suspense_list"), Y = Symbol.for("react.memo"), Z = Symbol.for("react.lazy"), ve = Symbol.for("react.offscreen"), W = Symbol.iterator, ge = "@@iterator";
226
226
  function oe(e) {
227
227
  if (e === null || typeof e != "object")
228
228
  return null;
@@ -235,7 +235,7 @@ function vn() {
235
235
  * @type {ReactComponent}
236
236
  */
237
237
  current: null
238
- }, K = {
238
+ }, B = {
239
239
  transition: null
240
240
  }, F = {
241
241
  current: null,
@@ -248,21 +248,21 @@ function vn() {
248
248
  * @type {ReactComponent}
249
249
  */
250
250
  current: null
251
- }, Q = {}, te = null;
251
+ }, Q = {}, re = null;
252
252
  function _e(e) {
253
- te = e;
253
+ re = e;
254
254
  }
255
255
  Q.setExtraStackFrame = function(e) {
256
- te = e;
256
+ re = e;
257
257
  }, Q.getCurrentStack = null, Q.getStackAddendum = function() {
258
258
  var e = "";
259
- te && (e += te);
259
+ re && (e += re);
260
260
  var t = Q.getCurrentStack;
261
261
  return t && (e += t() || ""), e;
262
262
  };
263
- var de = !1, De = !1, be = !1, pe = !1, ie = !1, H = {
263
+ var de = !1, Me = !1, be = !1, pe = !1, ie = !1, H = {
264
264
  ReactCurrentDispatcher: ae,
265
- ReactCurrentBatchConfig: K,
265
+ ReactCurrentBatchConfig: B,
266
266
  ReactCurrentOwner: z
267
267
  };
268
268
  H.ReactDebugCurrentFrame = Q, H.ReactCurrentActQueue = F;
@@ -270,17 +270,17 @@ function vn() {
270
270
  {
271
271
  for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++)
272
272
  n[o - 1] = arguments[o];
273
- re("warn", e, n);
273
+ ne("warn", e, n);
274
274
  }
275
275
  }
276
276
  function f(e) {
277
277
  {
278
278
  for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++)
279
279
  n[o - 1] = arguments[o];
280
- re("error", e, n);
280
+ ne("error", e, n);
281
281
  }
282
282
  }
283
- function re(e, t, n) {
283
+ function ne(e, t, n) {
284
284
  {
285
285
  var o = H.ReactDebugCurrentFrame, u = o.getStackAddendum();
286
286
  u !== "" && (t += "%s", n = n.concat([u]));
@@ -375,7 +375,7 @@ function vn() {
375
375
  var E = {
376
376
  isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
377
377
  replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
378
- }, P = function(e, t) {
378
+ }, j = function(e, t) {
379
379
  Object.defineProperty(_.prototype, e, {
380
380
  get: function() {
381
381
  X("%s(...) is deprecated in plain JavaScript React classes. %s", t[0], t[1]);
@@ -383,7 +383,7 @@ function vn() {
383
383
  });
384
384
  };
385
385
  for (var k in E)
386
- E.hasOwnProperty(k) && P(k, E[k]);
386
+ E.hasOwnProperty(k) && j(k, E[k]);
387
387
  }
388
388
  function O() {
389
389
  }
@@ -393,15 +393,15 @@ function vn() {
393
393
  }
394
394
  var L = C.prototype = new O();
395
395
  L.constructor = C, s(L, _.prototype), L.isPureReactComponent = !0;
396
- function Dt() {
396
+ function Mt() {
397
397
  var e = {
398
398
  current: null
399
399
  };
400
400
  return Object.seal(e), e;
401
401
  }
402
- var Mt = Array.isArray;
402
+ var Dt = Array.isArray;
403
403
  function we(e) {
404
- return Mt(e);
404
+ return Dt(e);
405
405
  }
406
406
  function Ft(e) {
407
407
  {
@@ -430,7 +430,7 @@ function vn() {
430
430
  var u = t.displayName || t.name || "";
431
431
  return u !== "" ? n + "(" + u + ")" : n;
432
432
  }
433
- function Ke(e) {
433
+ function Be(e) {
434
434
  return e.displayName || "Context";
435
435
  }
436
436
  function ee(e) {
@@ -445,9 +445,9 @@ function vn() {
445
445
  return "Fragment";
446
446
  case g:
447
447
  return "Portal";
448
- case I:
448
+ case P:
449
449
  return "Profiler";
450
- case j:
450
+ case I:
451
451
  return "StrictMode";
452
452
  case U:
453
453
  return "Suspense";
@@ -458,10 +458,10 @@ function vn() {
458
458
  switch (e.$$typeof) {
459
459
  case q:
460
460
  var t = e;
461
- return Ke(t) + ".Consumer";
462
- case x:
461
+ return Be(t) + ".Consumer";
462
+ case $:
463
463
  var n = e;
464
- return Ke(n._context) + ".Provider";
464
+ return Be(n._context) + ".Provider";
465
465
  case V:
466
466
  return xt(e, e.render, "ForwardRef");
467
467
  case Y:
@@ -478,13 +478,13 @@ function vn() {
478
478
  }
479
479
  return null;
480
480
  }
481
- var ye = Object.prototype.hasOwnProperty, Be = {
481
+ var ye = Object.prototype.hasOwnProperty, Ke = {
482
482
  key: !0,
483
483
  ref: !0,
484
484
  __self: !0,
485
485
  __source: !0
486
- }, Ge, Je, Me;
487
- Me = {};
486
+ }, Ge, Je, De;
487
+ De = {};
488
488
  function Ze(e) {
489
489
  if (ye.call(e, "ref")) {
490
490
  var t = Object.getOwnPropertyDescriptor(e, "ref").get;
@@ -522,7 +522,7 @@ function vn() {
522
522
  function Ut(e) {
523
523
  if (typeof e.ref == "string" && z.current && e.__self && z.current.stateNode !== e.__self) {
524
524
  var t = ee(z.current.type);
525
- Me[t] || (f('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', t, e.ref), Me[t] = !0);
525
+ De[t] || (f('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', t, e.ref), De[t] = !0);
526
526
  }
527
527
  }
528
528
  var Fe = function(e, t, n, o, u, d, l) {
@@ -559,7 +559,7 @@ function vn() {
559
559
  if (t != null) {
560
560
  Ze(t) && (l = t.ref, Ut(t)), Qe(t) && (Ce(t.key), d = "" + t.key), y = t.__self === void 0 ? null : t.__self, v = t.__source === void 0 ? null : t.__source;
561
561
  for (o in t)
562
- ye.call(t, o) && !Be.hasOwnProperty(o) && (u[o] = t[o]);
562
+ ye.call(t, o) && !Ke.hasOwnProperty(o) && (u[o] = t[o]);
563
563
  }
564
564
  var w = arguments.length - 2;
565
565
  if (w === 1)
@@ -593,7 +593,7 @@ function vn() {
593
593
  var R;
594
594
  e.type && e.type.defaultProps && (R = e.type.defaultProps);
595
595
  for (o in t)
596
- ye.call(t, o) && !Be.hasOwnProperty(o) && (t[o] === void 0 && R !== void 0 ? u[o] = R[o] : u[o] = t[o]);
596
+ ye.call(t, o) && !Ke.hasOwnProperty(o) && (t[o] === void 0 && R !== void 0 ? u[o] = R[o] : u[o] = t[o]);
597
597
  }
598
598
  var S = arguments.length - 2;
599
599
  if (S === 1)
@@ -664,17 +664,17 @@ function vn() {
664
664
  )), t.push(v));
665
665
  return 1;
666
666
  }
667
- var S, T, A = 0, $ = o === "" ? Xe : o + Yt;
667
+ var S, T, A = 0, x = o === "" ? Xe : o + Yt;
668
668
  if (we(e))
669
669
  for (var Ae = 0; Ae < e.length; Ae++)
670
- S = e[Ae], T = $ + $e(S, Ae), A += Re(S, t, n, T, u);
670
+ S = e[Ae], T = x + $e(S, Ae), A += Re(S, t, n, T, u);
671
671
  else {
672
672
  var He = oe(e);
673
673
  if (typeof He == "function") {
674
674
  var kt = e;
675
675
  He === kt.entries && (et || X("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), et = !0);
676
676
  for (var $r = He.call(kt), Ot, xr = 0; !(Ot = $r.next()).done; )
677
- S = Ot.value, T = $ + $e(S, xr++), A += Re(S, t, n, T, u);
677
+ S = Ot.value, T = x + $e(S, xr++), A += Re(S, t, n, T, u);
678
678
  } else if (d === "object") {
679
679
  var Tt = String(e);
680
680
  throw new Error("Objects are not valid as a React child (found: " + (Tt === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : Tt) + "). If you meant to render a collection of children, use an array instead.");
@@ -690,13 +690,13 @@ function vn() {
690
690
  return t.call(n, d, u++);
691
691
  }), o;
692
692
  }
693
- function Kt(e) {
693
+ function Bt(e) {
694
694
  var t = 0;
695
695
  return Se(e, function() {
696
696
  t++;
697
697
  }), t;
698
698
  }
699
- function Bt(e, t, n) {
699
+ function Kt(e, t, n) {
700
700
  Se(e, function() {
701
701
  t.apply(this, arguments);
702
702
  }, n);
@@ -732,7 +732,7 @@ function vn() {
732
732
  _globalName: null
733
733
  };
734
734
  t.Provider = {
735
- $$typeof: x,
735
+ $$typeof: $,
736
736
  _context: t
737
737
  };
738
738
  var n = !1, o = !1, u = !1;
@@ -887,7 +887,7 @@ Your code should look like:
887
887
  var nt;
888
888
  nt = Symbol.for("react.module.reference");
889
889
  function ot(e) {
890
- return !!(typeof e == "string" || typeof e == "function" || e === b || e === I || ie || e === j || e === U || e === G || pe || e === ve || de || De || be || typeof e == "object" && e !== null && (e.$$typeof === Z || e.$$typeof === Y || e.$$typeof === x || e.$$typeof === q || e.$$typeof === V || // This needs to include all possible module reference object
890
+ return !!(typeof e == "string" || typeof e == "function" || e === b || e === P || ie || e === I || e === U || e === G || pe || e === ve || de || Me || be || typeof e == "object" && e !== null && (e.$$typeof === Z || e.$$typeof === Y || e.$$typeof === $ || e.$$typeof === q || e.$$typeof === V || // This needs to include all possible module reference object
891
891
  // types supported by any Flight configuration anywhere since
892
892
  // we don't know which Flight build this will end up being used
893
893
  // with.
@@ -1096,29 +1096,29 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
1096
1096
  }), typeof Reflect == "object" && Reflect.construct) {
1097
1097
  try {
1098
1098
  Reflect.construct(l, []);
1099
- } catch ($) {
1100
- o = $;
1099
+ } catch (x) {
1100
+ o = x;
1101
1101
  }
1102
1102
  Reflect.construct(e, [], l);
1103
1103
  } else {
1104
1104
  try {
1105
1105
  l.call();
1106
- } catch ($) {
1107
- o = $;
1106
+ } catch (x) {
1107
+ o = x;
1108
1108
  }
1109
1109
  e.call(l.prototype);
1110
1110
  }
1111
1111
  } else {
1112
1112
  try {
1113
1113
  throw Error();
1114
- } catch ($) {
1115
- o = $;
1114
+ } catch (x) {
1115
+ o = x;
1116
1116
  }
1117
1117
  e();
1118
1118
  }
1119
- } catch ($) {
1120
- if ($ && o && typeof $.stack == "string") {
1121
- for (var y = $.stack.split(`
1119
+ } catch (x) {
1120
+ if (x && o && typeof x.stack == "string") {
1121
+ for (var y = x.stack.split(`
1122
1122
  `), v = o.stack.split(`
1123
1123
  `), w = y.length - 1, R = v.length - 1; w >= 1 && R >= 0 && y[w] !== v[R]; )
1124
1124
  R--;
@@ -1347,14 +1347,14 @@ Check the top-level render call using <` + n + ">.");
1347
1347
  return bt(o), o;
1348
1348
  }
1349
1349
  function Ir(e, t) {
1350
- var n = K.transition;
1351
- K.transition = {};
1352
- var o = K.transition;
1353
- K.transition._updatedFibers = /* @__PURE__ */ new Set();
1350
+ var n = B.transition;
1351
+ B.transition = {};
1352
+ var o = B.transition;
1353
+ B.transition._updatedFibers = /* @__PURE__ */ new Set();
1354
1354
  try {
1355
1355
  e();
1356
1356
  } finally {
1357
- if (K.transition = n, n === null && o._updatedFibers) {
1357
+ if (B.transition = n, n === null && o._updatedFibers) {
1358
1358
  var u = o._updatedFibers.size;
1359
1359
  u > 10 && X("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."), o._updatedFibers.clear();
1360
1360
  }
@@ -1394,10 +1394,10 @@ Check the top-level render call using <` + n + ">.");
1394
1394
  if (o !== null && typeof o == "object" && typeof o.then == "function") {
1395
1395
  var d = o, l = !1, y = {
1396
1396
  then: function(T, A) {
1397
- l = !0, d.then(function($) {
1398
- je(t), le === 0 ? ze($, T, A) : T($);
1399
- }, function($) {
1400
- je(t), A($);
1397
+ l = !0, d.then(function(x) {
1398
+ je(t), le === 0 ? ze(x, T, A) : T(x);
1399
+ }, function(x) {
1400
+ je(t), A(x);
1401
1401
  });
1402
1402
  }
1403
1403
  };
@@ -1465,14 +1465,14 @@ Check the top-level render call using <` + n + ">.");
1465
1465
  }
1466
1466
  }
1467
1467
  }
1468
- var Ar = Et, Dr = Pr, Mr = Tr, Fr = {
1468
+ var Ar = Et, Mr = Pr, Dr = Tr, Fr = {
1469
1469
  map: Se,
1470
- forEach: Bt,
1471
- count: Kt,
1470
+ forEach: Kt,
1471
+ count: Bt,
1472
1472
  toArray: Gt,
1473
1473
  only: Jt
1474
1474
  };
1475
- a.Children = Fr, a.Component = _, a.Fragment = b, a.Profiler = I, a.PureComponent = C, a.StrictMode = j, a.Suspense = U, a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = H, a.act = St, a.cloneElement = Dr, a.createContext = Zt, a.createElement = Ar, a.createFactory = Mr, a.createRef = Dt, a.forwardRef = tr, a.isValidElement = ue, a.lazy = er, a.memo = rr, a.startTransition = Ir, a.unstable_act = St, a.useCallback = lr, a.useContext = nr, a.useDebugValue = pr, a.useDeferredValue = mr, a.useEffect = sr, a.useId = hr, a.useImperativeHandle = dr, a.useInsertionEffect = ur, a.useLayoutEffect = cr, a.useMemo = fr, a.useReducer = ar, a.useRef = ir, a.useState = or, a.useSyncExternalStore = vr, a.useTransition = yr, a.version = p, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
1475
+ a.Children = Fr, a.Component = _, a.Fragment = b, a.Profiler = P, a.PureComponent = C, a.StrictMode = I, a.Suspense = U, a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = H, a.act = St, a.cloneElement = Mr, a.createContext = Zt, a.createElement = Ar, a.createFactory = Dr, a.createRef = Mt, a.forwardRef = tr, a.isValidElement = ue, a.lazy = er, a.memo = rr, a.startTransition = Ir, a.unstable_act = St, a.useCallback = lr, a.useContext = nr, a.useDebugValue = pr, a.useDeferredValue = mr, a.useEffect = sr, a.useId = hr, a.useImperativeHandle = dr, a.useInsertionEffect = ur, a.useLayoutEffect = cr, a.useMemo = fr, a.useReducer = ar, a.useRef = ir, a.useState = or, a.useSyncExternalStore = vr, a.useTransition = yr, a.version = p, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
1476
1476
  }();
1477
1477
  }(Pt, Pt.exports)), Pt.exports;
1478
1478
  }
@@ -1481,11 +1481,11 @@ var gn = Nr.exports, _n = gn;
1481
1481
  function Xr(c, a, p) {
1482
1482
  var m = typeof a == "function";
1483
1483
  _n.useEffect(function() {
1484
- var g, b = !0, j = c(function() {
1484
+ var g, b = !0, I = c(function() {
1485
1485
  return b;
1486
1486
  });
1487
- return Promise.resolve(j).then(function(I) {
1488
- g = I;
1487
+ return Promise.resolve(I).then(function(P) {
1488
+ g = P;
1489
1489
  }), function() {
1490
1490
  b = !1, m && a(g);
1491
1491
  };
@@ -1532,7 +1532,7 @@ ${c.map((a) => `- ${a.path.join("/")}: ${a.message}`).join(`
1532
1532
  }
1533
1533
  else
1534
1534
  return c + "";
1535
- }, fe = i.string().trim().min(1, { message: "Cannot be blank" }), ne = i.string().trim().optional(), Vr = (c) => i.nullable(c.optional());
1535
+ }, fe = i.string().trim().min(1, { message: "Cannot be blank" }), te = i.string().trim().optional(), Vr = (c) => i.nullable(c.optional());
1536
1536
  var It = /* @__PURE__ */ ((c) => (c.FIRST_NAME = "firstName", c.LAST_NAME = "lastName", c.EMAIL = "email", c.ZIP_CODE = "zipCode", c.CITY = "city", c.STATE = "state", c.COUNTRY = "country", c.ADDRESS = "address", c.PHONE = "phone", c.PROMOTION_CODE = "promotionCode", c))(It || {});
1537
1537
  const tn = i.nativeEnum(It);
1538
1538
  var rn = /* @__PURE__ */ ((c) => (c.CARD_NUMBER = "cardNumber", c.CARD_EXPIRY = "cardExpiry", c.CARD_CVC = "cardCvc", c))(rn || {});
@@ -1544,18 +1544,20 @@ const nn = i.nativeEnum(rn), Tn = i.union([tn, nn]), on = i.object({
1544
1544
  id: i.string()
1545
1545
  });
1546
1546
  i.object({
1547
- cardNumber: ne,
1548
- expiry: ne,
1549
- cvc: ne
1547
+ cardNumber: te,
1548
+ expiry: te,
1549
+ cvc: te
1550
1550
  });
1551
1551
  i.object({
1552
- backgroundColor: ne,
1553
- color: ne,
1554
- fontFamily: ne,
1555
- fontSize: ne,
1556
- fontWeight: ne,
1557
- margin: ne,
1558
- padding: ne
1552
+ backgroundColor: te,
1553
+ color: te,
1554
+ fontFamily: te,
1555
+ fontSize: te,
1556
+ fontWeight: te,
1557
+ margin: te,
1558
+ padding: te,
1559
+ letterSpacing: te,
1560
+ lineHeight: te
1559
1561
  });
1560
1562
  const J = i.enum([
1561
1563
  // Element -> Form
@@ -1578,11 +1580,11 @@ const J = i.enum([
1578
1580
  "TOKENIZE",
1579
1581
  "CHECKOUT",
1580
1582
  "START_PAYMENT_FLOW"
1581
- ]), In = J.extract(["TOKENIZE_STARTED", "CHECKOUT_STARTED"]), jn = i.object({ type: In }), An = J.extract(["BLUR", "FOCUS", "CHANGE"]), Dn = i.object({
1583
+ ]), In = J.extract(["TOKENIZE_STARTED", "CHECKOUT_STARTED"]), jn = i.object({ type: In }), An = J.extract(["BLUR", "FOCUS", "CHANGE"]), Mn = i.object({
1582
1584
  type: An,
1583
1585
  elementType: nn
1584
- }), Mn = J.extract(["LOAD_ERROR", "TOKENIZE_ERROR", "CHECKOUT_ERROR"]), Fn = i.object({
1585
- type: Mn,
1586
+ }), Dn = J.extract(["LOAD_ERROR", "TOKENIZE_ERROR", "CHECKOUT_ERROR"]), Fn = i.object({
1587
+ type: Dn,
1586
1588
  message: fe
1587
1589
  }), $n = J.extract(["VALIDATION_ERROR"]), xn = i.object({
1588
1590
  type: $n,
@@ -1595,7 +1597,7 @@ const J = i.enum([
1595
1597
  type: i.literal(J.enum.LOADED),
1596
1598
  sessionId: fe,
1597
1599
  totalAmountAtoms: i.number(),
1598
- currency: ne,
1600
+ currency: te,
1599
1601
  checkoutPaymentMethods: i.array(on)
1600
1602
  }), Un = i.object({
1601
1603
  type: i.literal(J.enum.PAYMENT_FLOW_STARTED),
@@ -1611,14 +1613,14 @@ const J = i.enum([
1611
1613
  email: fe,
1612
1614
  zipCode: fe,
1613
1615
  country: fe,
1614
- promotionCode: ne
1616
+ promotionCode: te
1615
1617
  }), qn = J.extract(["TOKENIZE", "CHECKOUT", "START_PAYMENT_FLOW"]), an = i.object({
1616
1618
  type: qn,
1617
1619
  sessionId: fe,
1618
1620
  checkoutPaymentMethod: on,
1619
1621
  paymentFlowMetadata: i.any().optional(),
1620
1622
  doNotUseLegacyCCFlow: i.boolean().optional(),
1621
- existingCCPMId: ne
1623
+ existingCCPMId: te
1622
1624
  }).extend(zn.shape), Yn = i.object({
1623
1625
  type: i.literal(J.enum.TOKENIZE_SUCCESS),
1624
1626
  isReadyForCheckout: i.boolean()
@@ -1629,7 +1631,7 @@ const J = i.enum([
1629
1631
  customerId: i.string()
1630
1632
  }), Wn = i.discriminatedUnion("type", [
1631
1633
  jn,
1632
- Dn,
1634
+ Mn,
1633
1635
  Fn,
1634
1636
  xn,
1635
1637
  Ln,
@@ -1639,7 +1641,7 @@ const J = i.enum([
1639
1641
  Hn,
1640
1642
  Un,
1641
1643
  Vn
1642
- ]), Kn = i.object({
1644
+ ]), Bn = i.object({
1643
1645
  payload: Wn,
1644
1646
  nonce: fe,
1645
1647
  formId: fe,
@@ -1657,7 +1659,7 @@ i.object({
1657
1659
  secure_token: i.string(),
1658
1660
  existing_cc_pm_id: Vr(i.string())
1659
1661
  });
1660
- const Bn = i.object({
1662
+ const Kn = i.object({
1661
1663
  payment_methods: i.array(Pn)
1662
1664
  }), Gn = (c) => {
1663
1665
  const a = {};
@@ -1725,41 +1727,41 @@ const Bn = i.object({
1725
1727
  a.complete("success");
1726
1728
  }, to = async (c) => {
1727
1729
  var a, p, m, g;
1728
- const b = c.nextActionMetadata, j = await (await zr(b.stripe_pk)).confirmCardSetup(b.client_secret, {
1730
+ const b = c.nextActionMetadata, I = await (await zr(b.stripe_pk)).confirmCardSetup(b.client_secret, {
1729
1731
  payment_method: b.stripe_pm_id
1730
- }), I = (a = j.setupIntent) == null ? void 0 : a.status;
1731
- if (I !== "succeeded")
1732
- throw I === "canceled" ? new Error("Payment cancelled, please click Submit again to pay") : new Error(
1733
- `${((p = j.error) == null ? void 0 : p.message) ?? ((g = (m = j.setupIntent) == null ? void 0 : m.last_setup_error) == null ? void 0 : g.message) ?? "Payment failed, please click submit again to pay."}`
1732
+ }), P = (a = I.setupIntent) == null ? void 0 : a.status;
1733
+ if (P !== "succeeded")
1734
+ throw P === "canceled" ? new Error("Payment cancelled, please click Submit again to pay") : new Error(
1735
+ `${((p = I.error) == null ? void 0 : p.message) ?? ((g = (m = I.setupIntent) == null ? void 0 : m.last_setup_error) == null ? void 0 : g.message) ?? "Payment failed, please click submit again to pay."}`
1734
1736
  );
1735
1737
  }, ro = (c) => JSON.stringify(c), un = (c, a) => Array.from(c.querySelectorAll("[data-opid]") ?? []).reduce((p, m) => {
1736
1738
  const g = m.getAttribute("data-opid");
1737
1739
  return g ? { ...p, [g]: m.value } : p;
1738
- }, a), At = (c, a, p, m, g, b, j) => {
1739
- const I = un(p, {
1740
+ }, a), At = (c, a, p, m, g, b, I) => {
1741
+ const P = un(p, {
1740
1742
  type: c,
1741
1743
  sessionId: a,
1742
1744
  checkoutPaymentMethod: g,
1743
- paymentFlowMetadata: j,
1745
+ paymentFlowMetadata: I,
1744
1746
  doNotUseLegacyCCFlow: b
1745
1747
  });
1746
- (g.provider === "apple_pay" || g.provider === "google_pay" || g.provider === "stripe_link") && (I[It.ZIP_CODE] || (I[It.ZIP_CODE] = "00000"));
1747
- const x = an.safeParse(I);
1748
- if (x.success)
1749
- return x.data;
1748
+ (g.provider === "apple_pay" || g.provider === "google_pay" || g.provider === "stripe_link") && (P[It.ZIP_CODE] || (P[It.ZIP_CODE] = "00000"));
1749
+ const $ = an.safeParse(P);
1750
+ if ($.success)
1751
+ return $.data;
1750
1752
  {
1751
- const q = x.error.format(), V = Gn(q);
1753
+ const q = $.error.format(), V = Gn(q);
1752
1754
  for (const [U, G] of Object.entries(V))
1753
1755
  m(U, G, U);
1754
1756
  return null;
1755
1757
  }
1756
1758
  }, no = (c) => {
1757
1759
  try {
1758
- return Kn.parse(c);
1760
+ return Bn.parse(c);
1759
1761
  } catch (a) {
1760
1762
  throw a;
1761
1763
  }
1762
- }, Kr = (c, a, p, m, g) => {
1764
+ }, Br = (c, a, p, m, g) => {
1763
1765
  const b = {
1764
1766
  payload: m,
1765
1767
  nonce: yn(),
@@ -1768,7 +1770,7 @@ const Bn = i.object({
1768
1770
  };
1769
1771
  c.postMessage(JSON.stringify(b), g);
1770
1772
  };
1771
- var M = {};
1773
+ var D = {};
1772
1774
  /**
1773
1775
  * @license React
1774
1776
  * react.production.min.js
@@ -1778,11 +1780,11 @@ var M = {};
1778
1780
  * This source code is licensed under the MIT license found in the
1779
1781
  * LICENSE file in the root directory of this source tree.
1780
1782
  */
1781
- var Br;
1783
+ var Kr;
1782
1784
  function oo() {
1783
- if (Br) return M;
1784
- Br = 1;
1785
- var c = Symbol.for("react.element"), a = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), j = Symbol.for("react.context"), I = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), q = Symbol.for("react.memo"), V = Symbol.for("react.lazy"), U = Symbol.iterator;
1785
+ if (Kr) return D;
1786
+ Kr = 1;
1787
+ var c = Symbol.for("react.element"), a = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), I = Symbol.for("react.context"), P = Symbol.for("react.forward_ref"), $ = Symbol.for("react.suspense"), q = Symbol.for("react.memo"), V = Symbol.for("react.lazy"), U = Symbol.iterator;
1786
1788
  function G(r) {
1787
1789
  return r === null || typeof r != "object" ? null : (r = U && r[U] || r["@@iterator"], typeof r == "function" ? r : null);
1788
1790
  }
@@ -1809,10 +1811,10 @@ function oo() {
1809
1811
  }
1810
1812
  var ae = oe.prototype = new ge();
1811
1813
  ae.constructor = oe, Z(ae, W.prototype), ae.isPureReactComponent = !0;
1812
- var K = Array.isArray, F = Object.prototype.hasOwnProperty, z = { current: null }, Q = { key: !0, ref: !0, __self: !0, __source: !0 };
1813
- function te(r, s, h) {
1814
- var _, E = {}, P = null, k = null;
1815
- if (s != null) for (_ in s.ref !== void 0 && (k = s.ref), s.key !== void 0 && (P = "" + s.key), s) F.call(s, _) && !Q.hasOwnProperty(_) && (E[_] = s[_]);
1814
+ var B = Array.isArray, F = Object.prototype.hasOwnProperty, z = { current: null }, Q = { key: !0, ref: !0, __self: !0, __source: !0 };
1815
+ function re(r, s, h) {
1816
+ var _, E = {}, j = null, k = null;
1817
+ if (s != null) for (_ in s.ref !== void 0 && (k = s.ref), s.key !== void 0 && (j = "" + s.key), s) F.call(s, _) && !Q.hasOwnProperty(_) && (E[_] = s[_]);
1816
1818
  var O = arguments.length - 2;
1817
1819
  if (O === 1) E.children = h;
1818
1820
  else if (1 < O) {
@@ -1820,7 +1822,7 @@ function oo() {
1820
1822
  E.children = C;
1821
1823
  }
1822
1824
  if (r && r.defaultProps) for (_ in O = r.defaultProps, O) E[_] === void 0 && (E[_] = O[_]);
1823
- return { $$typeof: c, type: r, key: P, ref: k, props: E, _owner: z.current };
1825
+ return { $$typeof: c, type: r, key: j, ref: k, props: E, _owner: z.current };
1824
1826
  }
1825
1827
  function _e(r, s) {
1826
1828
  return { $$typeof: c, type: r.type, key: s, ref: r.ref, props: r.props, _owner: r._owner };
@@ -1828,7 +1830,7 @@ function oo() {
1828
1830
  function de(r) {
1829
1831
  return typeof r == "object" && r !== null && r.$$typeof === c;
1830
1832
  }
1831
- function De(r) {
1833
+ function Me(r) {
1832
1834
  var s = { "=": "=0", ":": "=2" };
1833
1835
  return "$" + r.replace(/[=:]/g, function(h) {
1834
1836
  return s[h];
@@ -1836,14 +1838,14 @@ function oo() {
1836
1838
  }
1837
1839
  var be = /\/+/g;
1838
1840
  function pe(r, s) {
1839
- return typeof r == "object" && r !== null && r.key != null ? De("" + r.key) : s.toString(36);
1841
+ return typeof r == "object" && r !== null && r.key != null ? Me("" + r.key) : s.toString(36);
1840
1842
  }
1841
1843
  function ie(r, s, h, _, E) {
1842
- var P = typeof r;
1843
- (P === "undefined" || P === "boolean") && (r = null);
1844
+ var j = typeof r;
1845
+ (j === "undefined" || j === "boolean") && (r = null);
1844
1846
  var k = !1;
1845
1847
  if (r === null) k = !0;
1846
- else switch (P) {
1848
+ else switch (j) {
1847
1849
  case "string":
1848
1850
  case "number":
1849
1851
  k = !0;
@@ -1855,23 +1857,23 @@ function oo() {
1855
1857
  k = !0;
1856
1858
  }
1857
1859
  }
1858
- if (k) return k = r, E = E(k), r = _ === "" ? "." + pe(k, 0) : _, K(E) ? (h = "", r != null && (h = r.replace(be, "$&/") + "/"), ie(E, s, h, "", function(L) {
1860
+ if (k) return k = r, E = E(k), r = _ === "" ? "." + pe(k, 0) : _, B(E) ? (h = "", r != null && (h = r.replace(be, "$&/") + "/"), ie(E, s, h, "", function(L) {
1859
1861
  return L;
1860
1862
  })) : E != null && (de(E) && (E = _e(E, h + (!E.key || k && k.key === E.key ? "" : ("" + E.key).replace(be, "$&/") + "/") + r)), s.push(E)), 1;
1861
- if (k = 0, _ = _ === "" ? "." : _ + ":", K(r)) for (var O = 0; O < r.length; O++) {
1862
- P = r[O];
1863
- var C = _ + pe(P, O);
1864
- k += ie(P, s, h, C, E);
1863
+ if (k = 0, _ = _ === "" ? "." : _ + ":", B(r)) for (var O = 0; O < r.length; O++) {
1864
+ j = r[O];
1865
+ var C = _ + pe(j, O);
1866
+ k += ie(j, s, h, C, E);
1865
1867
  }
1866
- else if (C = G(r), typeof C == "function") for (r = C.call(r), O = 0; !(P = r.next()).done; ) P = P.value, C = _ + pe(P, O++), k += ie(P, s, h, C, E);
1867
- else if (P === "object") throw s = String(r), Error("Objects are not valid as a React child (found: " + (s === "[object Object]" ? "object with keys {" + Object.keys(r).join(", ") + "}" : s) + "). If you meant to render a collection of children, use an array instead.");
1868
+ else if (C = G(r), typeof C == "function") for (r = C.call(r), O = 0; !(j = r.next()).done; ) j = j.value, C = _ + pe(j, O++), k += ie(j, s, h, C, E);
1869
+ else if (j === "object") throw s = String(r), Error("Objects are not valid as a React child (found: " + (s === "[object Object]" ? "object with keys {" + Object.keys(r).join(", ") + "}" : s) + "). If you meant to render a collection of children, use an array instead.");
1868
1870
  return k;
1869
1871
  }
1870
1872
  function H(r, s, h) {
1871
1873
  if (r == null) return r;
1872
1874
  var _ = [], E = 0;
1873
- return ie(r, _, "", "", function(P) {
1874
- return s.call(h, P, E++);
1875
+ return ie(r, _, "", "", function(j) {
1876
+ return s.call(h, j, E++);
1875
1877
  }), _;
1876
1878
  }
1877
1879
  function X(r) {
@@ -1886,11 +1888,11 @@ function oo() {
1886
1888
  if (r._status === 1) return r._result.default;
1887
1889
  throw r._result;
1888
1890
  }
1889
- var f = { current: null }, re = { transition: null }, Ee = { ReactCurrentDispatcher: f, ReactCurrentBatchConfig: re, ReactCurrentOwner: z };
1891
+ var f = { current: null }, ne = { transition: null }, Ee = { ReactCurrentDispatcher: f, ReactCurrentBatchConfig: ne, ReactCurrentOwner: z };
1890
1892
  function se() {
1891
1893
  throw Error("act(...) is not supported in production builds of React.");
1892
1894
  }
1893
- return M.Children = { map: H, forEach: function(r, s, h) {
1895
+ return D.Children = { map: H, forEach: function(r, s, h) {
1894
1896
  H(r, function() {
1895
1897
  s.apply(this, arguments);
1896
1898
  }, h);
@@ -1906,11 +1908,11 @@ function oo() {
1906
1908
  }, only: function(r) {
1907
1909
  if (!de(r)) throw Error("React.Children.only expected to receive a single React element child.");
1908
1910
  return r;
1909
- } }, M.Component = W, M.Fragment = p, M.Profiler = g, M.PureComponent = oe, M.StrictMode = m, M.Suspense = x, M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Ee, M.act = se, M.cloneElement = function(r, s, h) {
1911
+ } }, D.Component = W, D.Fragment = p, D.Profiler = g, D.PureComponent = oe, D.StrictMode = m, D.Suspense = $, D.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Ee, D.act = se, D.cloneElement = function(r, s, h) {
1910
1912
  if (r == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + r + ".");
1911
- var _ = Z({}, r.props), E = r.key, P = r.ref, k = r._owner;
1913
+ var _ = Z({}, r.props), E = r.key, j = r.ref, k = r._owner;
1912
1914
  if (s != null) {
1913
- if (s.ref !== void 0 && (P = s.ref, k = z.current), s.key !== void 0 && (E = "" + s.key), r.type && r.type.defaultProps) var O = r.type.defaultProps;
1915
+ if (s.ref !== void 0 && (j = s.ref, k = z.current), s.key !== void 0 && (E = "" + s.key), r.type && r.type.defaultProps) var O = r.type.defaultProps;
1914
1916
  for (C in s) F.call(s, C) && !Q.hasOwnProperty(C) && (_[C] = s[C] === void 0 && O !== void 0 ? O[C] : s[C]);
1915
1917
  }
1916
1918
  var C = arguments.length - 2;
@@ -1920,58 +1922,58 @@ function oo() {
1920
1922
  for (var L = 0; L < C; L++) O[L] = arguments[L + 2];
1921
1923
  _.children = O;
1922
1924
  }
1923
- return { $$typeof: c, type: r.type, key: E, ref: P, props: _, _owner: k };
1924
- }, M.createContext = function(r) {
1925
- return r = { $$typeof: j, _currentValue: r, _currentValue2: r, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, r.Provider = { $$typeof: b, _context: r }, r.Consumer = r;
1926
- }, M.createElement = te, M.createFactory = function(r) {
1927
- var s = te.bind(null, r);
1925
+ return { $$typeof: c, type: r.type, key: E, ref: j, props: _, _owner: k };
1926
+ }, D.createContext = function(r) {
1927
+ return r = { $$typeof: I, _currentValue: r, _currentValue2: r, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, r.Provider = { $$typeof: b, _context: r }, r.Consumer = r;
1928
+ }, D.createElement = re, D.createFactory = function(r) {
1929
+ var s = re.bind(null, r);
1928
1930
  return s.type = r, s;
1929
- }, M.createRef = function() {
1931
+ }, D.createRef = function() {
1930
1932
  return { current: null };
1931
- }, M.forwardRef = function(r) {
1932
- return { $$typeof: I, render: r };
1933
- }, M.isValidElement = de, M.lazy = function(r) {
1933
+ }, D.forwardRef = function(r) {
1934
+ return { $$typeof: P, render: r };
1935
+ }, D.isValidElement = de, D.lazy = function(r) {
1934
1936
  return { $$typeof: V, _payload: { _status: -1, _result: r }, _init: X };
1935
- }, M.memo = function(r, s) {
1937
+ }, D.memo = function(r, s) {
1936
1938
  return { $$typeof: q, type: r, compare: s === void 0 ? null : s };
1937
- }, M.startTransition = function(r) {
1938
- var s = re.transition;
1939
- re.transition = {};
1939
+ }, D.startTransition = function(r) {
1940
+ var s = ne.transition;
1941
+ ne.transition = {};
1940
1942
  try {
1941
1943
  r();
1942
1944
  } finally {
1943
- re.transition = s;
1945
+ ne.transition = s;
1944
1946
  }
1945
- }, M.unstable_act = se, M.useCallback = function(r, s) {
1947
+ }, D.unstable_act = se, D.useCallback = function(r, s) {
1946
1948
  return f.current.useCallback(r, s);
1947
- }, M.useContext = function(r) {
1949
+ }, D.useContext = function(r) {
1948
1950
  return f.current.useContext(r);
1949
- }, M.useDebugValue = function() {
1950
- }, M.useDeferredValue = function(r) {
1951
+ }, D.useDebugValue = function() {
1952
+ }, D.useDeferredValue = function(r) {
1951
1953
  return f.current.useDeferredValue(r);
1952
- }, M.useEffect = function(r, s) {
1954
+ }, D.useEffect = function(r, s) {
1953
1955
  return f.current.useEffect(r, s);
1954
- }, M.useId = function() {
1956
+ }, D.useId = function() {
1955
1957
  return f.current.useId();
1956
- }, M.useImperativeHandle = function(r, s, h) {
1958
+ }, D.useImperativeHandle = function(r, s, h) {
1957
1959
  return f.current.useImperativeHandle(r, s, h);
1958
- }, M.useInsertionEffect = function(r, s) {
1960
+ }, D.useInsertionEffect = function(r, s) {
1959
1961
  return f.current.useInsertionEffect(r, s);
1960
- }, M.useLayoutEffect = function(r, s) {
1962
+ }, D.useLayoutEffect = function(r, s) {
1961
1963
  return f.current.useLayoutEffect(r, s);
1962
- }, M.useMemo = function(r, s) {
1964
+ }, D.useMemo = function(r, s) {
1963
1965
  return f.current.useMemo(r, s);
1964
- }, M.useReducer = function(r, s, h) {
1966
+ }, D.useReducer = function(r, s, h) {
1965
1967
  return f.current.useReducer(r, s, h);
1966
- }, M.useRef = function(r) {
1968
+ }, D.useRef = function(r) {
1967
1969
  return f.current.useRef(r);
1968
- }, M.useState = function(r) {
1970
+ }, D.useState = function(r) {
1969
1971
  return f.current.useState(r);
1970
- }, M.useSyncExternalStore = function(r, s, h) {
1972
+ }, D.useSyncExternalStore = function(r, s, h) {
1971
1973
  return f.current.useSyncExternalStore(r, s, h);
1972
- }, M.useTransition = function() {
1974
+ }, D.useTransition = function() {
1973
1975
  return f.current.useTransition();
1974
- }, M.version = "18.3.1", M;
1976
+ }, D.version = "18.3.1", D;
1975
1977
  }
1976
1978
  var jt = { exports: {} };
1977
1979
  /**
@@ -1989,7 +1991,7 @@ function ao() {
1989
1991
  return Gr || (Gr = 1, function(c, a) {
1990
1992
  process.env.NODE_ENV !== "production" && function() {
1991
1993
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
1992
- var p = "18.3.1", m = Symbol.for("react.element"), g = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), j = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), x = Symbol.for("react.provider"), q = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), U = Symbol.for("react.suspense"), G = Symbol.for("react.suspense_list"), Y = Symbol.for("react.memo"), Z = Symbol.for("react.lazy"), ve = Symbol.for("react.offscreen"), W = Symbol.iterator, ge = "@@iterator";
1994
+ var p = "18.3.1", m = Symbol.for("react.element"), g = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), I = Symbol.for("react.strict_mode"), P = Symbol.for("react.profiler"), $ = Symbol.for("react.provider"), q = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), U = Symbol.for("react.suspense"), G = Symbol.for("react.suspense_list"), Y = Symbol.for("react.memo"), Z = Symbol.for("react.lazy"), ve = Symbol.for("react.offscreen"), W = Symbol.iterator, ge = "@@iterator";
1993
1995
  function oe(e) {
1994
1996
  if (e === null || typeof e != "object")
1995
1997
  return null;
@@ -2002,7 +2004,7 @@ function ao() {
2002
2004
  * @type {ReactComponent}
2003
2005
  */
2004
2006
  current: null
2005
- }, K = {
2007
+ }, B = {
2006
2008
  transition: null
2007
2009
  }, F = {
2008
2010
  current: null,
@@ -2015,21 +2017,21 @@ function ao() {
2015
2017
  * @type {ReactComponent}
2016
2018
  */
2017
2019
  current: null
2018
- }, Q = {}, te = null;
2020
+ }, Q = {}, re = null;
2019
2021
  function _e(e) {
2020
- te = e;
2022
+ re = e;
2021
2023
  }
2022
2024
  Q.setExtraStackFrame = function(e) {
2023
- te = e;
2025
+ re = e;
2024
2026
  }, Q.getCurrentStack = null, Q.getStackAddendum = function() {
2025
2027
  var e = "";
2026
- te && (e += te);
2028
+ re && (e += re);
2027
2029
  var t = Q.getCurrentStack;
2028
2030
  return t && (e += t() || ""), e;
2029
2031
  };
2030
- var de = !1, De = !1, be = !1, pe = !1, ie = !1, H = {
2032
+ var de = !1, Me = !1, be = !1, pe = !1, ie = !1, H = {
2031
2033
  ReactCurrentDispatcher: ae,
2032
- ReactCurrentBatchConfig: K,
2034
+ ReactCurrentBatchConfig: B,
2033
2035
  ReactCurrentOwner: z
2034
2036
  };
2035
2037
  H.ReactDebugCurrentFrame = Q, H.ReactCurrentActQueue = F;
@@ -2037,17 +2039,17 @@ function ao() {
2037
2039
  {
2038
2040
  for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++)
2039
2041
  n[o - 1] = arguments[o];
2040
- re("warn", e, n);
2042
+ ne("warn", e, n);
2041
2043
  }
2042
2044
  }
2043
2045
  function f(e) {
2044
2046
  {
2045
2047
  for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++)
2046
2048
  n[o - 1] = arguments[o];
2047
- re("error", e, n);
2049
+ ne("error", e, n);
2048
2050
  }
2049
2051
  }
2050
- function re(e, t, n) {
2052
+ function ne(e, t, n) {
2051
2053
  {
2052
2054
  var o = H.ReactDebugCurrentFrame, u = o.getStackAddendum();
2053
2055
  u !== "" && (t += "%s", n = n.concat([u]));
@@ -2142,7 +2144,7 @@ function ao() {
2142
2144
  var E = {
2143
2145
  isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
2144
2146
  replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
2145
- }, P = function(e, t) {
2147
+ }, j = function(e, t) {
2146
2148
  Object.defineProperty(_.prototype, e, {
2147
2149
  get: function() {
2148
2150
  X("%s(...) is deprecated in plain JavaScript React classes. %s", t[0], t[1]);
@@ -2150,7 +2152,7 @@ function ao() {
2150
2152
  });
2151
2153
  };
2152
2154
  for (var k in E)
2153
- E.hasOwnProperty(k) && P(k, E[k]);
2155
+ E.hasOwnProperty(k) && j(k, E[k]);
2154
2156
  }
2155
2157
  function O() {
2156
2158
  }
@@ -2160,15 +2162,15 @@ function ao() {
2160
2162
  }
2161
2163
  var L = C.prototype = new O();
2162
2164
  L.constructor = C, s(L, _.prototype), L.isPureReactComponent = !0;
2163
- function Dt() {
2165
+ function Mt() {
2164
2166
  var e = {
2165
2167
  current: null
2166
2168
  };
2167
2169
  return Object.seal(e), e;
2168
2170
  }
2169
- var Mt = Array.isArray;
2171
+ var Dt = Array.isArray;
2170
2172
  function we(e) {
2171
- return Mt(e);
2173
+ return Dt(e);
2172
2174
  }
2173
2175
  function Ft(e) {
2174
2176
  {
@@ -2197,7 +2199,7 @@ function ao() {
2197
2199
  var u = t.displayName || t.name || "";
2198
2200
  return u !== "" ? n + "(" + u + ")" : n;
2199
2201
  }
2200
- function Ke(e) {
2202
+ function Be(e) {
2201
2203
  return e.displayName || "Context";
2202
2204
  }
2203
2205
  function ee(e) {
@@ -2212,9 +2214,9 @@ function ao() {
2212
2214
  return "Fragment";
2213
2215
  case g:
2214
2216
  return "Portal";
2215
- case I:
2217
+ case P:
2216
2218
  return "Profiler";
2217
- case j:
2219
+ case I:
2218
2220
  return "StrictMode";
2219
2221
  case U:
2220
2222
  return "Suspense";
@@ -2225,10 +2227,10 @@ function ao() {
2225
2227
  switch (e.$$typeof) {
2226
2228
  case q:
2227
2229
  var t = e;
2228
- return Ke(t) + ".Consumer";
2229
- case x:
2230
+ return Be(t) + ".Consumer";
2231
+ case $:
2230
2232
  var n = e;
2231
- return Ke(n._context) + ".Provider";
2233
+ return Be(n._context) + ".Provider";
2232
2234
  case V:
2233
2235
  return xt(e, e.render, "ForwardRef");
2234
2236
  case Y:
@@ -2245,13 +2247,13 @@ function ao() {
2245
2247
  }
2246
2248
  return null;
2247
2249
  }
2248
- var ye = Object.prototype.hasOwnProperty, Be = {
2250
+ var ye = Object.prototype.hasOwnProperty, Ke = {
2249
2251
  key: !0,
2250
2252
  ref: !0,
2251
2253
  __self: !0,
2252
2254
  __source: !0
2253
- }, Ge, Je, Me;
2254
- Me = {};
2255
+ }, Ge, Je, De;
2256
+ De = {};
2255
2257
  function Ze(e) {
2256
2258
  if (ye.call(e, "ref")) {
2257
2259
  var t = Object.getOwnPropertyDescriptor(e, "ref").get;
@@ -2289,7 +2291,7 @@ function ao() {
2289
2291
  function Ut(e) {
2290
2292
  if (typeof e.ref == "string" && z.current && e.__self && z.current.stateNode !== e.__self) {
2291
2293
  var t = ee(z.current.type);
2292
- Me[t] || (f('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', t, e.ref), Me[t] = !0);
2294
+ De[t] || (f('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', t, e.ref), De[t] = !0);
2293
2295
  }
2294
2296
  }
2295
2297
  var Fe = function(e, t, n, o, u, d, l) {
@@ -2326,7 +2328,7 @@ function ao() {
2326
2328
  if (t != null) {
2327
2329
  Ze(t) && (l = t.ref, Ut(t)), Qe(t) && (Ce(t.key), d = "" + t.key), y = t.__self === void 0 ? null : t.__self, v = t.__source === void 0 ? null : t.__source;
2328
2330
  for (o in t)
2329
- ye.call(t, o) && !Be.hasOwnProperty(o) && (u[o] = t[o]);
2331
+ ye.call(t, o) && !Ke.hasOwnProperty(o) && (u[o] = t[o]);
2330
2332
  }
2331
2333
  var w = arguments.length - 2;
2332
2334
  if (w === 1)
@@ -2360,7 +2362,7 @@ function ao() {
2360
2362
  var R;
2361
2363
  e.type && e.type.defaultProps && (R = e.type.defaultProps);
2362
2364
  for (o in t)
2363
- ye.call(t, o) && !Be.hasOwnProperty(o) && (t[o] === void 0 && R !== void 0 ? u[o] = R[o] : u[o] = t[o]);
2365
+ ye.call(t, o) && !Ke.hasOwnProperty(o) && (t[o] === void 0 && R !== void 0 ? u[o] = R[o] : u[o] = t[o]);
2364
2366
  }
2365
2367
  var S = arguments.length - 2;
2366
2368
  if (S === 1)
@@ -2431,17 +2433,17 @@ function ao() {
2431
2433
  )), t.push(v));
2432
2434
  return 1;
2433
2435
  }
2434
- var S, T, A = 0, $ = o === "" ? Xe : o + Yt;
2436
+ var S, T, A = 0, x = o === "" ? Xe : o + Yt;
2435
2437
  if (we(e))
2436
2438
  for (var Ae = 0; Ae < e.length; Ae++)
2437
- S = e[Ae], T = $ + $e(S, Ae), A += Re(S, t, n, T, u);
2439
+ S = e[Ae], T = x + $e(S, Ae), A += Re(S, t, n, T, u);
2438
2440
  else {
2439
2441
  var He = oe(e);
2440
2442
  if (typeof He == "function") {
2441
2443
  var kt = e;
2442
2444
  He === kt.entries && (et || X("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), et = !0);
2443
2445
  for (var $r = He.call(kt), Ot, xr = 0; !(Ot = $r.next()).done; )
2444
- S = Ot.value, T = $ + $e(S, xr++), A += Re(S, t, n, T, u);
2446
+ S = Ot.value, T = x + $e(S, xr++), A += Re(S, t, n, T, u);
2445
2447
  } else if (d === "object") {
2446
2448
  var Tt = String(e);
2447
2449
  throw new Error("Objects are not valid as a React child (found: " + (Tt === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : Tt) + "). If you meant to render a collection of children, use an array instead.");
@@ -2457,13 +2459,13 @@ function ao() {
2457
2459
  return t.call(n, d, u++);
2458
2460
  }), o;
2459
2461
  }
2460
- function Kt(e) {
2462
+ function Bt(e) {
2461
2463
  var t = 0;
2462
2464
  return Se(e, function() {
2463
2465
  t++;
2464
2466
  }), t;
2465
2467
  }
2466
- function Bt(e, t, n) {
2468
+ function Kt(e, t, n) {
2467
2469
  Se(e, function() {
2468
2470
  t.apply(this, arguments);
2469
2471
  }, n);
@@ -2499,7 +2501,7 @@ function ao() {
2499
2501
  _globalName: null
2500
2502
  };
2501
2503
  t.Provider = {
2502
- $$typeof: x,
2504
+ $$typeof: $,
2503
2505
  _context: t
2504
2506
  };
2505
2507
  var n = !1, o = !1, u = !1;
@@ -2654,7 +2656,7 @@ Your code should look like:
2654
2656
  var nt;
2655
2657
  nt = Symbol.for("react.module.reference");
2656
2658
  function ot(e) {
2657
- return !!(typeof e == "string" || typeof e == "function" || e === b || e === I || ie || e === j || e === U || e === G || pe || e === ve || de || De || be || typeof e == "object" && e !== null && (e.$$typeof === Z || e.$$typeof === Y || e.$$typeof === x || e.$$typeof === q || e.$$typeof === V || // This needs to include all possible module reference object
2659
+ return !!(typeof e == "string" || typeof e == "function" || e === b || e === P || ie || e === I || e === U || e === G || pe || e === ve || de || Me || be || typeof e == "object" && e !== null && (e.$$typeof === Z || e.$$typeof === Y || e.$$typeof === $ || e.$$typeof === q || e.$$typeof === V || // This needs to include all possible module reference object
2658
2660
  // types supported by any Flight configuration anywhere since
2659
2661
  // we don't know which Flight build this will end up being used
2660
2662
  // with.
@@ -2863,29 +2865,29 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
2863
2865
  }), typeof Reflect == "object" && Reflect.construct) {
2864
2866
  try {
2865
2867
  Reflect.construct(l, []);
2866
- } catch ($) {
2867
- o = $;
2868
+ } catch (x) {
2869
+ o = x;
2868
2870
  }
2869
2871
  Reflect.construct(e, [], l);
2870
2872
  } else {
2871
2873
  try {
2872
2874
  l.call();
2873
- } catch ($) {
2874
- o = $;
2875
+ } catch (x) {
2876
+ o = x;
2875
2877
  }
2876
2878
  e.call(l.prototype);
2877
2879
  }
2878
2880
  } else {
2879
2881
  try {
2880
2882
  throw Error();
2881
- } catch ($) {
2882
- o = $;
2883
+ } catch (x) {
2884
+ o = x;
2883
2885
  }
2884
2886
  e();
2885
2887
  }
2886
- } catch ($) {
2887
- if ($ && o && typeof $.stack == "string") {
2888
- for (var y = $.stack.split(`
2888
+ } catch (x) {
2889
+ if (x && o && typeof x.stack == "string") {
2890
+ for (var y = x.stack.split(`
2889
2891
  `), v = o.stack.split(`
2890
2892
  `), w = y.length - 1, R = v.length - 1; w >= 1 && R >= 0 && y[w] !== v[R]; )
2891
2893
  R--;
@@ -3114,14 +3116,14 @@ Check the top-level render call using <` + n + ">.");
3114
3116
  return bt(o), o;
3115
3117
  }
3116
3118
  function Ir(e, t) {
3117
- var n = K.transition;
3118
- K.transition = {};
3119
- var o = K.transition;
3120
- K.transition._updatedFibers = /* @__PURE__ */ new Set();
3119
+ var n = B.transition;
3120
+ B.transition = {};
3121
+ var o = B.transition;
3122
+ B.transition._updatedFibers = /* @__PURE__ */ new Set();
3121
3123
  try {
3122
3124
  e();
3123
3125
  } finally {
3124
- if (K.transition = n, n === null && o._updatedFibers) {
3126
+ if (B.transition = n, n === null && o._updatedFibers) {
3125
3127
  var u = o._updatedFibers.size;
3126
3128
  u > 10 && X("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."), o._updatedFibers.clear();
3127
3129
  }
@@ -3161,10 +3163,10 @@ Check the top-level render call using <` + n + ">.");
3161
3163
  if (o !== null && typeof o == "object" && typeof o.then == "function") {
3162
3164
  var d = o, l = !1, y = {
3163
3165
  then: function(T, A) {
3164
- l = !0, d.then(function($) {
3165
- je(t), le === 0 ? ze($, T, A) : T($);
3166
- }, function($) {
3167
- je(t), A($);
3166
+ l = !0, d.then(function(x) {
3167
+ je(t), le === 0 ? ze(x, T, A) : T(x);
3168
+ }, function(x) {
3169
+ je(t), A(x);
3168
3170
  });
3169
3171
  }
3170
3172
  };
@@ -3232,14 +3234,14 @@ Check the top-level render call using <` + n + ">.");
3232
3234
  }
3233
3235
  }
3234
3236
  }
3235
- var Ar = Et, Dr = Pr, Mr = Tr, Fr = {
3237
+ var Ar = Et, Mr = Pr, Dr = Tr, Fr = {
3236
3238
  map: Se,
3237
- forEach: Bt,
3238
- count: Kt,
3239
+ forEach: Kt,
3240
+ count: Bt,
3239
3241
  toArray: Gt,
3240
3242
  only: Jt
3241
3243
  };
3242
- a.Children = Fr, a.Component = _, a.Fragment = b, a.Profiler = I, a.PureComponent = C, a.StrictMode = j, a.Suspense = U, a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = H, a.act = St, a.cloneElement = Dr, a.createContext = Zt, a.createElement = Ar, a.createFactory = Mr, a.createRef = Dt, a.forwardRef = tr, a.isValidElement = ue, a.lazy = er, a.memo = rr, a.startTransition = Ir, a.unstable_act = St, a.useCallback = lr, a.useContext = nr, a.useDebugValue = pr, a.useDeferredValue = mr, a.useEffect = sr, a.useId = hr, a.useImperativeHandle = dr, a.useInsertionEffect = ur, a.useLayoutEffect = cr, a.useMemo = fr, a.useReducer = ar, a.useRef = ir, a.useState = or, a.useSyncExternalStore = vr, a.useTransition = yr, a.version = p, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
3244
+ a.Children = Fr, a.Component = _, a.Fragment = b, a.Profiler = P, a.PureComponent = C, a.StrictMode = I, a.Suspense = U, a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = H, a.act = St, a.cloneElement = Mr, a.createContext = Zt, a.createElement = Ar, a.createFactory = Dr, a.createRef = Mt, a.forwardRef = tr, a.isValidElement = ue, a.lazy = er, a.memo = rr, a.startTransition = Ir, a.unstable_act = St, a.useCallback = lr, a.useContext = nr, a.useDebugValue = pr, a.useDeferredValue = mr, a.useEffect = sr, a.useId = hr, a.useImperativeHandle = dr, a.useInsertionEffect = ur, a.useLayoutEffect = cr, a.useMemo = fr, a.useReducer = ar, a.useRef = ir, a.useState = or, a.useSyncExternalStore = vr, a.useTransition = yr, a.version = p, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
3243
3245
  }();
3244
3246
  }(jt, jt.exports)), jt.exports;
3245
3247
  }
@@ -3254,43 +3256,43 @@ const io = async (c) => {
3254
3256
  } catch {
3255
3257
  return !1;
3256
3258
  }
3257
- }, so = (c, a) => !!c && a, B = (c) => i.nullable(c.optional());
3259
+ }, so = (c, a) => !!c && a, K = (c) => i.nullable(c.optional());
3258
3260
  i.string().trim().min(1, { message: "Cannot be blank" });
3259
3261
  const uo = i.object({
3260
3262
  cde_response_type: i.literal("error"),
3261
3263
  message: i.string()
3262
3264
  }), co = i.enum(["usd", "brl"]), cn = i.object({
3263
3265
  name: i.string(),
3264
- amount_atom_off: B(i.number()),
3265
- percent_off: B(i.number()),
3266
- currency: B(i.string()),
3266
+ amount_atom_off: K(i.number()),
3267
+ percent_off: K(i.number()),
3268
+ currency: K(i.string()),
3267
3269
  duration: i.string(),
3268
- duration_in_months: B(i.number())
3270
+ duration_in_months: K(i.number())
3269
3271
  }), lo = i.object({
3270
3272
  amount_subtotal_atom: i.number().int(),
3271
3273
  amount_total_atom: i.number().int(),
3272
3274
  currency: i.string(),
3273
- description: B(i.string()),
3275
+ description: K(i.string()),
3274
3276
  price_id: i.string(),
3275
- billing_interval: B(i.string()),
3276
- billing_interval_count: B(i.number().int()),
3277
+ billing_interval: K(i.string()),
3278
+ billing_interval_count: K(i.number().int()),
3277
3279
  quantity: i.number().int()
3278
3280
  }), fo = i.record(i.string(), i.any()), po = i.object({
3279
3281
  name: i.string(),
3280
- settings: B(fo)
3282
+ settings: K(fo)
3281
3283
  }), yo = i.object({
3282
3284
  provider: i.string(),
3283
- processor_name: B(i.string()),
3284
- metadata: B(i.record(i.string(), i.any()))
3285
+ processor_name: K(i.string()),
3286
+ metadata: K(i.record(i.string(), i.any()))
3285
3287
  }), mo = i.object({
3286
3288
  quantity: i.number()
3287
3289
  }), ho = i.object({
3288
- id: B(i.string()),
3289
- billing_interval: B(i.string()),
3290
- billing_interval_count: B(i.number().int()),
3290
+ id: K(i.string()),
3291
+ billing_interval: K(i.string()),
3292
+ billing_interval_count: K(i.number().int()),
3291
3293
  subscription_items: i.array(mo),
3292
- trial_start: B(i.string()),
3293
- trial_end: B(i.string())
3294
+ trial_start: K(i.string()),
3295
+ trial_end: K(i.string())
3294
3296
  }), ln = i.object({
3295
3297
  amount_atom: i.number()
3296
3298
  }), vo = i.object({
@@ -3304,7 +3306,7 @@ const uo = i.object({
3304
3306
  }), _o = i.object({
3305
3307
  currency: i.string(),
3306
3308
  discounts: i.array(go),
3307
- hosted_invoice_url: B(i.string()),
3309
+ hosted_invoice_url: K(i.string()),
3308
3310
  lines: i.array(vo),
3309
3311
  remaining_amount_atom: i.number(),
3310
3312
  tax_amount_atom: i.number(),
@@ -3315,17 +3317,17 @@ const uo = i.object({
3315
3317
  invoices: i.array(_o)
3316
3318
  }), fn = i.object({
3317
3319
  preview: Jr,
3318
- preview_post_trial: B(Jr),
3320
+ preview_post_trial: K(Jr),
3319
3321
  coupons: i.array(cn)
3320
3322
  }), Zr = i.object({
3321
3323
  status: i.literal("open"),
3322
3324
  token: i.string(),
3323
- email: B(i.string()),
3325
+ email: K(i.string()),
3324
3326
  line_items: i.array(lo),
3325
3327
  amount_subtotal_atom: i.number().int(),
3326
3328
  amount_total_atom: i.number().int(),
3327
3329
  brand: po,
3328
- subs_preview: B(fn),
3330
+ subs_preview: K(fn),
3329
3331
  // Null in setup mode
3330
3332
  methods_available: i.array(yo)
3331
3333
  }), dn = i.discriminatedUnion("mode", [
@@ -3384,7 +3386,7 @@ const qr = async (c, a, p) => {
3384
3386
  throw g.success ? new Error("Invalid state") : g.error;
3385
3387
  }
3386
3388
  return m;
3387
- }, Co = (c, a) => a.safeParse(c).success, Ro = (c) => uo.safeParse(c).success, So = async (c, a) => await qr(c, { type: "get_checkout_preview", payload: a }, fn), pn = async (c) => await qr(c, { type: "get_prefill", payload: {} }, dn), ko = async (c, a) => await qr(c, { type: "confirm_payment_flow", payload: a }, Bn);
3389
+ }, Co = (c, a) => a.safeParse(c).success, Ro = (c) => uo.safeParse(c).success, So = async (c, a) => await qr(c, { type: "get_checkout_preview", payload: a }, fn), pn = async (c) => await qr(c, { type: "get_prefill", payload: {} }, dn), ko = async (c, a) => await qr(c, { type: "confirm_payment_flow", payload: a }, Kn);
3388
3390
  class Oo {
3389
3391
  constructor(a) {
3390
3392
  this.formInstance = a, this.config = a.config, this.formId = a.formId, this.eventTargets = {}, this.nonces = /* @__PURE__ */ new Set(), this.tokenizedData = null, this.tokenized = 0, this.connectionManager = a.getConnectionManager();
@@ -3393,7 +3395,11 @@ class Oo {
3393
3395
  this.tokenizedData = a;
3394
3396
  }
3395
3397
  handleMessage(a) {
3396
- if (a.origin !== this.formInstance.config.baseUrl || !a.source) return;
3398
+ var P;
3399
+ if (!a.source)
3400
+ throw new Error("No source found");
3401
+ if (a.origin !== ((P = this.formInstance.config._frameUrl) == null ? void 0 : P.origin))
3402
+ return;
3397
3403
  const p = no(JSON.parse(a.data));
3398
3404
  if (!this.validateEvent(p)) return;
3399
3405
  const { elementId: g, payload: b } = p;
@@ -3468,24 +3474,24 @@ class Oo {
3468
3474
  this.formInstance.config.onCheckoutStarted && this.formInstance.config.onCheckoutStarted();
3469
3475
  }
3470
3476
  async handlePaymentFlowStartedEvent(a, p, m) {
3471
- var j;
3477
+ var I;
3472
3478
  if (!this.tokenizedData)
3473
3479
  throw new Error("tokenizedData not populated");
3474
3480
  const g = this.connectionManager.getConnection(), b = async () => {
3475
3481
  var q;
3476
- const I = a.nextActionMetadata.type;
3477
- if (I !== void 0) if (I === "stripe_3ds")
3482
+ const P = a.nextActionMetadata.type;
3483
+ if (P !== void 0) if (P === "stripe_3ds")
3478
3484
  await to(a);
3479
- else if (I === "stripe_payment_request") {
3485
+ else if (P === "stripe_payment_request") {
3480
3486
  if (!this.formInstance.getStripePm())
3481
3487
  throw new Error("Stripe PM not set");
3482
3488
  await eo(a, this.formInstance.getStripePm());
3483
3489
  } else
3484
- throw new Error(`Unknown next action type: ${I}`);
3485
- const x = await pn(g);
3486
- if (x.mode === "setup") {
3490
+ throw new Error(`Unknown next action type: ${P}`);
3491
+ const $ = await pn(g);
3492
+ if ($.mode === "setup") {
3487
3493
  const { payment_methods: V } = await ko(g, {
3488
- secure_token: x.token,
3494
+ secure_token: $.token,
3489
3495
  existing_cc_pm_id: (q = this.tokenizedData) == null ? void 0 : q.existingCCPMId
3490
3496
  });
3491
3497
  if (V.length !== 1)
@@ -3499,22 +3505,22 @@ class Oo {
3499
3505
  };
3500
3506
  };
3501
3507
  try {
3502
- const { proceedToCheckout: I } = await b();
3503
- if (!I)
3508
+ const { proceedToCheckout: P } = await b();
3509
+ if (!P)
3504
3510
  return;
3505
- let x;
3506
- if (this.tokenizedData.checkoutPaymentMethod.provider === "credit_card" && (x = (j = a.startPFMetadata) == null ? void 0 : j.cc_pm_id, !x))
3511
+ let $;
3512
+ if (this.tokenizedData.checkoutPaymentMethod.provider === "credit_card" && ($ = (I = a.startPFMetadata) == null ? void 0 : I.cc_pm_id, !$))
3507
3513
  throw new Error("CC PM ID not found");
3508
- Kr(
3514
+ Br(
3509
3515
  p,
3510
3516
  this.formInstance.formId,
3511
3517
  m,
3512
- { ...this.tokenizedData, type: "CHECKOUT", doNotUseLegacyCCFlow: !0, existingCCPMId: x },
3518
+ { ...this.tokenizedData, type: "CHECKOUT", doNotUseLegacyCCFlow: !0, existingCCPMId: $ },
3513
3519
  this.formInstance.config.baseUrl
3514
3520
  ), this.formInstance.checkoutFired = !0, this.tokenizedData = null, this.formInstance.config.onCheckoutStarted && this.formInstance.config.onCheckoutStarted();
3515
- } catch (I) {
3516
- const x = en(I);
3517
- this.formInstance.checkoutFired = !1, this.formInstance.config.onCheckoutError && this.formInstance.config.onCheckoutError(x);
3521
+ } catch (P) {
3522
+ const $ = en(P);
3523
+ this.formInstance.checkoutFired = !1, this.formInstance.config.onCheckoutError && this.formInstance.config.onCheckoutError($);
3518
3524
  }
3519
3525
  }
3520
3526
  handleTokenizeSuccessEvent(a, p, m) {
@@ -3543,7 +3549,7 @@ class Oo {
3543
3549
  return;
3544
3550
  for (const [g, b] of Object.entries(this.eventTargets)) {
3545
3551
  if (!b) continue;
3546
- const j = At(
3552
+ const I = At(
3547
3553
  J.enum.START_PAYMENT_FLOW,
3548
3554
  this.formInstance.sessionId,
3549
3555
  document.querySelector(this.formInstance.formTarget) ?? document.body,
@@ -3551,8 +3557,8 @@ class Oo {
3551
3557
  { ...m, processor_name: "stripe" },
3552
3558
  !1
3553
3559
  );
3554
- if (j) {
3555
- this.formInstance.checkoutFired = !0, this.tokenizedData = j, this.postEventToFrame(b, g, j);
3560
+ if (I) {
3561
+ this.formInstance.checkoutFired = !0, this.tokenizedData = I, this.postEventToFrame(b, g, I);
3556
3562
  break;
3557
3563
  }
3558
3564
  }
@@ -3581,7 +3587,7 @@ class Oo {
3581
3587
  this.tokenizedData = p;
3582
3588
  }
3583
3589
  postEventToFrame(a, p, m) {
3584
- Kr(a, this.formId, p, m, this.config.baseUrl);
3590
+ Br(a, this.formId, p, m, this.config.baseUrl);
3585
3591
  }
3586
3592
  }
3587
3593
  async function To(c) {
@@ -3608,28 +3614,28 @@ class Po {
3608
3614
  }
3609
3615
  }
3610
3616
  async function Io(c, a, p, m, g, b) {
3611
- const j = {
3617
+ const I = {
3612
3618
  apple_pay: { isLoading: !0, isAvailable: !1, startFlow: async () => {
3613
3619
  } },
3614
3620
  google_pay: { isLoading: !0, isAvailable: !1, startFlow: async () => {
3615
3621
  } }
3616
3622
  };
3617
- for (const I of ["apple_pay", "google_pay"])
3623
+ for (const P of ["apple_pay", "google_pay"])
3618
3624
  try {
3619
- const x = a.find(
3620
- (U) => U.provider === I && U.processor_name === "stripe"
3625
+ const $ = a.find(
3626
+ (U) => U.provider === P && U.processor_name === "stripe"
3621
3627
  );
3622
- if (!x)
3623
- throw new Error(`${I} is not available as a checkout method`);
3624
- const q = Xn(x.metadata), V = await jo(q, I);
3625
- j[I] = {
3628
+ if (!$)
3629
+ throw new Error(`${P} is not available as a checkout method`);
3630
+ const q = Xn($.metadata), V = await jo(q, P);
3631
+ I[P] = {
3626
3632
  isLoading: !1,
3627
3633
  isAvailable: V,
3628
3634
  startFlow: (U) => Ao(
3629
3635
  p,
3630
3636
  c.checkoutSecureToken,
3631
3637
  document.querySelector(c.formTarget),
3632
- x,
3638
+ $,
3633
3639
  q,
3634
3640
  m,
3635
3641
  g,
@@ -3638,14 +3644,14 @@ async function Io(c, a, p, m, g, b) {
3638
3644
  )
3639
3645
  };
3640
3646
  } catch {
3641
- j[I] = {
3647
+ I[P] = {
3642
3648
  isLoading: !1,
3643
3649
  isAvailable: !1,
3644
3650
  startFlow: async () => {
3645
3651
  }
3646
3652
  };
3647
3653
  }
3648
- return j;
3654
+ return I;
3649
3655
  }
3650
3656
  async function jo(c, a) {
3651
3657
  const m = await sn(c, 1e3, "usd"), g = await m.canMakePayment();
@@ -3653,12 +3659,12 @@ async function jo(c, a) {
3653
3659
  throw new Error(`Cannot make payment with ${a} for this session`);
3654
3660
  return g[a === "apple_pay" ? "applePay" : "googlePay"];
3655
3661
  }
3656
- async function Ao(c, a, p, m, g, b, j, I, x) {
3662
+ async function Ao(c, a, p, m, g, b, I, P, $) {
3657
3663
  try {
3658
3664
  const q = un(p, {});
3659
- if (!Do(p, j, m))
3665
+ if (!Mo(p, I, m))
3660
3666
  return;
3661
- const U = (await pn(c)).mode === "setup", G = await Mo(U, x, q, c, a), Y = await sn(
3667
+ const U = (await pn(c)).mode === "setup", G = await Do(U, $, q, c, a), Y = await sn(
3662
3668
  g,
3663
3669
  G.amountAtom,
3664
3670
  G.currency,
@@ -3668,10 +3674,10 @@ async function Ao(c, a, p, m, g, b, j, I, x) {
3668
3674
  const Z = await Qn(Y);
3669
3675
  b(Z, m);
3670
3676
  } catch (q) {
3671
- I(en(q));
3677
+ P(en(q));
3672
3678
  }
3673
3679
  }
3674
- function Do(c, a, p) {
3680
+ function Mo(c, a, p) {
3675
3681
  return !!At(
3676
3682
  J.enum.START_PAYMENT_FLOW,
3677
3683
  "dummy",
@@ -3682,26 +3688,28 @@ function Do(c, a, p) {
3682
3688
  !1
3683
3689
  );
3684
3690
  }
3685
- async function Mo(c, a, p, m, g) {
3691
+ async function Do(c, a, p, m, g) {
3686
3692
  var V;
3687
3693
  if (c)
3688
3694
  return ((V = a == null ? void 0 : a.overridePaymentRequest) == null ? void 0 : V.amount) ?? { amountAtom: 0, currency: "usd" };
3689
3695
  a != null && a.overridePaymentRequest;
3690
- const b = ne.safeParse(p[It.PROMOTION_CODE]);
3696
+ const b = te.safeParse(p[It.PROMOTION_CODE]);
3691
3697
  if (!b.success)
3692
3698
  throw new Error(`Unknown promo code type: ${b.error.message}`);
3693
- const j = await So(m, {
3699
+ const I = await So(m, {
3694
3700
  secure_token: g,
3695
3701
  promotion_code: b.data
3696
- }), I = new Set(j.preview.invoices.map((U) => U.currency));
3697
- if (I.size !== 1)
3698
- throw new Error(`Expected exactly one currency, got ${I.size}`);
3699
- const x = I.values().next().value;
3700
- return { amountAtom: j.preview.invoices.reduce((U, G) => U + G.remaining_amount_atom, 0), currency: x };
3702
+ }), P = new Set(I.preview.invoices.map((U) => U.currency));
3703
+ if (P.size !== 1)
3704
+ throw new Error(`Expected exactly one currency, got ${P.size}`);
3705
+ const $ = P.values().next().value;
3706
+ return { amountAtom: I.preview.invoices.reduce((U, G) => U + G.remaining_amount_atom, 0), currency: $ };
3701
3707
  }
3702
3708
  class Lo {
3703
3709
  constructor(a) {
3704
- this.config = { ...a, baseUrl: a.baseUrl ?? "https://cde.getopenpay.com" }, this.elements = null, this.formId = `opjs-form-${window.crypto.randomUUID()}`, this.referer = window.location.origin, this.formTarget = a.formTarget ?? "body", this.formProperties = { height: "1px" }, this.sessionId = null, this.checkoutPaymentMethods = [], this.checkoutFired = !1, this.stripePm = void 0, this.paymentRequests = this.initPaymentRequests(), this.connectionManager = new Po(), this.eventHandler = new Oo(this), window.addEventListener("message", this.eventHandler.handleMessage.bind(this.eventHandler));
3710
+ this.config = { ...a, baseUrl: a.baseUrl ?? "https://cde.getopenpay.com" }, this.elements = null, this.formId = `opjs-form-${window.crypto.randomUUID()}`, this.referer = window.location.origin, this.formTarget = a.formTarget ?? "body", this.formProperties = { height: "1px" }, this.sessionId = null, this.checkoutPaymentMethods = [], this.checkoutFired = !1, this.stripePm = void 0, this.paymentRequests = this.initPaymentRequests(), this.connectionManager = new Po(), this.eventHandler = new Oo(this);
3711
+ const p = { version: "0.1.3" };
3712
+ window.ojs_version = p, window.addEventListener("message", this.eventHandler.handleMessage.bind(this.eventHandler));
3705
3713
  }
3706
3714
  getStripePm() {
3707
3715
  return this.stripePm;
@@ -3725,16 +3733,18 @@ class Lo {
3725
3733
  createElement(a, p = {}) {
3726
3734
  if (!this.config) throw new Error("OpenPay form not initialized");
3727
3735
  const m = document.createElement("iframe"), g = this.buildQueryString(p);
3728
- m.name = `${a}-element`, m.src = `${this.config.baseUrl}/app/v1/${a}-element/?${g.toString()}`, m.style.border = "none", m.style.width = "100%";
3729
- const b = {
3736
+ m.name = `${a}-element`;
3737
+ const b = new URL(`/app/v1/${m.name}`, this.config.baseUrl);
3738
+ b.search = g.toString(), m.src = b.href, this.config._frameUrl = b, m.style.border = "none", m.style.width = "100%";
3739
+ const I = {
3730
3740
  type: a,
3731
3741
  node: m,
3732
- mount: (j) => {
3733
- var I;
3734
- return (I = document.querySelector(j)) == null ? void 0 : I.appendChild(m);
3742
+ mount: (P) => {
3743
+ var $;
3744
+ return ($ = document.querySelector(P)) == null ? void 0 : $.appendChild(m);
3735
3745
  }
3736
3746
  };
3737
- return this.elements ? this.elements[a] = b : (this.elements = { [a]: b }, this.connectToElement(b)), b;
3747
+ return this.elements ? this.elements[a] = I : (this.elements = { [a]: I }, this.connectToElement(I)), I;
3738
3748
  }
3739
3749
  buildQueryString(a) {
3740
3750
  const p = new URLSearchParams();
@@ -3752,7 +3762,7 @@ class Lo {
3752
3762
  async onUserCompletePaymentRequestUI(a, p) {
3753
3763
  if (!(!this.config.onValidationError || !this.sessionId || !this.checkoutPaymentMethods))
3754
3764
  for (const [m, g] of Object.entries(this.eventHandler.eventTargets ?? {})) {
3755
- const b = { stripePmId: a.paymentMethod.id }, j = At(
3765
+ const b = { stripePmId: a.paymentMethod.id }, I = At(
3756
3766
  J.enum.START_PAYMENT_FLOW,
3757
3767
  this.sessionId,
3758
3768
  document.querySelector(this.formTarget) ?? document.body,
@@ -3761,8 +3771,8 @@ class Lo {
3761
3771
  !1,
3762
3772
  b
3763
3773
  );
3764
- if (j) {
3765
- this.stripePm = a, this.checkoutFired = !0, this.eventHandler.setTokenizedData(j), this.eventHandler.postEventToFrame(g, m, j);
3774
+ if (I) {
3775
+ this.stripePm = a, this.checkoutFired = !0, this.eventHandler.setTokenizedData(I), this.eventHandler.postEventToFrame(g, m, I);
3766
3776
  break;
3767
3777
  }
3768
3778
  }