@aaravpos/appointment-barber-booking 2.0.1 → 2.0.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.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import F, { Component as Sl, PureComponent as Pl, createContext as wl, createElement as Mn, forwardRef as Zo, useCallback as We, useContext as _l, useEffect as fe, useMemo as Ce, useRef as Fe, useState as Z } from "react";
2
2
  import { Provider as Ol, useDispatch as qe, useSelector as X } from "react-redux";
3
3
  import { applyMiddleware as El, combineReducers as Xo, compose as gr, createStore as Il, isAction as Wr, isPlainObject as Jo } from "redux";
4
- import { FLUSH as Tl, PAUSE as Al, PERSIST as xl, PURGE as Ml, REGISTER as Dl, REHYDRATE as kl, persistReducer as Rl, persistStore as Fl } from "redux-persist";
4
+ import { FLUSH as Tl, PAUSE as Al, PERSIST as xl, PURGE as Ml, REGISTER as kl, REHYDRATE as Dl, persistReducer as Rl, persistStore as Fl } from "redux-persist";
5
5
  import { Fragment as we, jsx as u, jsxs as g } from "react/jsx-runtime";
6
6
  import { DateTime as be } from "luxon";
7
7
  import { ToastContainer as jl, toast as re } from "react-toastify";
@@ -16,7 +16,7 @@ var Bl = Object.create, Nr = Object.defineProperty, Ul = Object.getOwnPropertyDe
16
16
  enumerable: !0
17
17
  });
18
18
  return t || Nr(r, Symbol.toStringTag, { value: "Module" }), r;
19
- }, Dn = (e, t, r, n) => {
19
+ }, kn = (e, t, r, n) => {
20
20
  if (t && typeof t == "object" || typeof t == "function")
21
21
  for (var a = Vl(t), i = 0, o = a.length, s; i < o; i++)
22
22
  s = a[i], !Wl.call(e, s) && s !== r && Nr(e, s, {
@@ -24,7 +24,7 @@ var Bl = Object.create, Nr = Object.defineProperty, Ul = Object.getOwnPropertyDe
24
24
  enumerable: !(n = Ul(t, s)) || n.enumerable
25
25
  });
26
26
  return e;
27
- }, Hl = (e, t, r) => (Dn(e, t, "default"), r && Dn(r, t, "default")), ma = (e, t, r) => (r = e != null ? Bl(Gl(e)) : {}, Dn(t || !e || !e.__esModule ? Nr(r, "default", {
27
+ }, Hl = (e, t, r) => (kn(e, t, "default"), r && kn(r, t, "default")), ma = (e, t, r) => (r = e != null ? Bl(Gl(e)) : {}, kn(t || !e || !e.__esModule ? Nr(r, "default", {
28
28
  value: e,
29
29
  enumerable: !0
30
30
  }) : r, e));
@@ -50,10 +50,10 @@ function Kl(e, t, r) {
50
50
  function Yl(e, t) {
51
51
  return t && (cr(t) === "object" || typeof t == "function") ? t : ur(e);
52
52
  }
53
- function kn(e) {
54
- return kn = Object.setPrototypeOf ? Object.getPrototypeOf : function(r) {
53
+ function Dn(e) {
54
+ return Dn = Object.setPrototypeOf ? Object.getPrototypeOf : function(r) {
55
55
  return r.__proto__ || Object.getPrototypeOf(r);
56
- }, kn(e);
56
+ }, Dn(e);
57
57
  }
58
58
  function ur(e) {
59
59
  if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
@@ -86,7 +86,7 @@ var Qo = /* @__PURE__ */ (function(e) {
86
86
  var r, n;
87
87
  ql(this, t);
88
88
  for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++) i[o] = arguments[o];
89
- return n = Yl(this, (r = kn(t)).call.apply(r, [this].concat(i))), fr(ur(n), "state", { bootstrapped: !1 }), fr(ur(n), "_unsubscribe", void 0), fr(ur(n), "handlePersistorState", function() {
89
+ return n = Yl(this, (r = Dn(t)).call.apply(r, [this].concat(i))), fr(ur(n), "state", { bootstrapped: !1 }), fr(ur(n), "_unsubscribe", void 0), fr(ur(n), "handlePersistorState", function() {
90
90
  n.props.persistor.getState().bootstrapped && (n.props.onBeforeLift ? Promise.resolve(n.props.onBeforeLift()).finally(function() {
91
91
  return n.setState({ bootstrapped: !0 });
92
92
  }) : n.setState({ bootstrapped: !0 }), n._unsubscribe && n._unsubscribe());
@@ -801,8 +801,8 @@ function va(e, ...t) {
801
801
  o++;
802
802
  const N = pi($, arguments);
803
803
  if (s = S.apply(null, N), process.env.NODE_ENV !== "production") {
804
- const { devModeChecks: T = {} } = c, { identityFunctionCheck: D, inputStabilityCheck: H } = $c(b, T);
805
- if (D.shouldRun && D.run(l, N, s), H.shouldRun) {
804
+ const { devModeChecks: T = {} } = c, { identityFunctionCheck: k, inputStabilityCheck: H } = $c(b, T);
805
+ if (k.shouldRun && k.run(l, N, s), H.shouldRun) {
806
806
  const J = pi($, arguments);
807
807
  H.run({
808
808
  inputSelectorResults: N,
@@ -851,7 +851,7 @@ var Tc = cs(), Ac = cs, zn = /* @__PURE__ */ zl({
851
851
  clearAllListeners: () => Ks,
852
852
  combineSlices: () => Eu,
853
853
  configureStore: () => ws,
854
- createAction: () => De,
854
+ createAction: () => ke,
855
855
  createActionCreatorInvariantMiddleware: () => ys,
856
856
  createAsyncThunk: () => nn,
857
857
  createDraftSafeSelector: () => fs,
@@ -888,7 +888,7 @@ var Tc = cs(), Ac = cs, zn = /* @__PURE__ */ zl({
888
888
  original: () => Ql,
889
889
  prepareAutoBatched: () => jc,
890
890
  removeListener: () => Pa,
891
- unwrapResult: () => Ds,
891
+ unwrapResult: () => ks,
892
892
  weakMapMemoize: () => tn
893
893
  });
894
894
  Hl(zn, xc);
@@ -904,7 +904,7 @@ var us = (...e) => {
904
904
  };
905
905
  typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;
906
906
  var ps = (e) => e && typeof e.match == "function";
907
- function De(e, t) {
907
+ function ke(e, t) {
908
908
  function r(...n) {
909
909
  if (t) {
910
910
  let a = t(...n);
@@ -927,9 +927,9 @@ function ms(e) {
927
927
  return typeof e == "function" && "type" in e && ps(e);
928
928
  }
929
929
  function hs(e) {
930
- return Wr(e) && Object.keys(e).every(Dc);
930
+ return Wr(e) && Object.keys(e).every(kc);
931
931
  }
932
- function Dc(e) {
932
+ function kc(e) {
933
933
  return [
934
934
  "type",
935
935
  "payload",
@@ -937,7 +937,7 @@ function Dc(e) {
937
937
  "meta"
938
938
  ].indexOf(e) > -1;
939
939
  }
940
- function kc(e) {
940
+ function Dc(e) {
941
941
  const t = e ? `${e}`.split("/") : [], r = t[t.length - 1] || "actionCreator";
942
942
  return `Detected an action creator with type "${e || "unknown"}" being dispatched.
943
943
  Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${r}())\` instead of \`dispatch(${r})\`. This is necessary even if the action has no payload.`;
@@ -945,7 +945,7 @@ Make sure you're calling the action creator before dispatching, i.e. \`dispatch(
945
945
  function ys(e = {}) {
946
946
  if (process.env.NODE_ENV === "production") return () => (r) => (n) => r(n);
947
947
  const { isActionCreator: t = ms } = e;
948
- return () => (r) => (n) => (t(n) && console.warn(kc(n.type)), r(n));
948
+ return () => (r) => (n) => (t(n) && console.warn(Dc(n.type)), r(n));
949
949
  }
950
950
  function vs(e, t) {
951
951
  let r = 0;
@@ -1349,7 +1349,7 @@ var Uc = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Kt
1349
1349
  return { message: String(e) };
1350
1350
  }, bi = "External signal was aborted", nn = /* @__PURE__ */ (() => {
1351
1351
  function e(t, r, n) {
1352
- const a = De(t + "/fulfilled", (d, l, c, f) => ({
1352
+ const a = ke(t + "/fulfilled", (d, l, c, f) => ({
1353
1353
  payload: d,
1354
1354
  meta: {
1355
1355
  ...f || {},
@@ -1357,7 +1357,7 @@ var Uc = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Kt
1357
1357
  requestId: l,
1358
1358
  requestStatus: "fulfilled"
1359
1359
  }
1360
- })), i = De(t + "/pending", (d, l, c) => ({
1360
+ })), i = ke(t + "/pending", (d, l, c) => ({
1361
1361
  payload: void 0,
1362
1362
  meta: {
1363
1363
  ...c || {},
@@ -1365,7 +1365,7 @@ var Uc = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Kt
1365
1365
  requestId: d,
1366
1366
  requestStatus: "pending"
1367
1367
  }
1368
- })), o = De(t + "/rejected", (d, l, c, f, m) => ({
1368
+ })), o = ke(t + "/rejected", (d, l, c, f, m) => ({
1369
1369
  payload: f,
1370
1370
  error: (n && n.serializeError || Ms)(d || "Rejected"),
1371
1371
  meta: {
@@ -1436,7 +1436,7 @@ var Uc = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Kt
1436
1436
  requestId: p,
1437
1437
  arg: d,
1438
1438
  unwrap() {
1439
- return S.then(Ds);
1439
+ return S.then(ks);
1440
1440
  }
1441
1441
  });
1442
1442
  };
@@ -1451,7 +1451,7 @@ var Uc = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Kt
1451
1451
  }
1452
1452
  return e.withTypes = () => e, e;
1453
1453
  })();
1454
- function Ds(e) {
1454
+ function ks(e) {
1455
1455
  if (e.meta && e.meta.rejectedWithValue) throw e.payload;
1456
1456
  if (e.error) throw e.error;
1457
1457
  return e.payload;
@@ -1459,12 +1459,12 @@ function Ds(e) {
1459
1459
  function Gc(e) {
1460
1460
  return e !== null && typeof e == "object" && typeof e.then == "function";
1461
1461
  }
1462
- var ks = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk"), Wc = { [ks]: nn }, Rs = /* @__PURE__ */ ((e) => (e.reducer = "reducer", e.reducerWithPrepare = "reducerWithPrepare", e.asyncThunk = "asyncThunk", e))(Rs || {});
1462
+ var Ds = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk"), Wc = { [Ds]: nn }, Rs = /* @__PURE__ */ ((e) => (e.reducer = "reducer", e.reducerWithPrepare = "reducerWithPrepare", e.asyncThunk = "asyncThunk", e))(Rs || {});
1463
1463
  function zc(e, t) {
1464
1464
  return `${e}/${t}`;
1465
1465
  }
1466
1466
  function Fs({ creators: e } = {}) {
1467
- const t = e?.asyncThunk?.[ks];
1467
+ const t = e?.asyncThunk?.[Ds];
1468
1468
  return function(n) {
1469
1469
  const { name: a, reducerPath: i = a } = n;
1470
1470
  if (!a) throw new Error(process.env.NODE_ENV === "production" ? Y(11) : "`name` is a required option for createSlice");
@@ -1510,9 +1510,9 @@ function Fs({ creators: e } = {}) {
1510
1510
  ...d.sliceCaseReducersByType
1511
1511
  };
1512
1512
  return Os(n.initialState, (T) => {
1513
- for (let D in N) T.addCase(D, N[D]);
1514
- for (let D of d.sliceMatchers) T.addMatcher(D.matcher, D.reducer);
1515
- for (let D of P) T.addMatcher(D.matcher, D.reducer);
1513
+ for (let k in N) T.addCase(k, N[k]);
1514
+ for (let k of d.sliceMatchers) T.addMatcher(k.matcher, k.reducer);
1515
+ for (let k of P) T.addMatcher(k.matcher, k.reducer);
1516
1516
  _ && T.addDefaultCase(_);
1517
1517
  });
1518
1518
  }
@@ -1526,18 +1526,18 @@ function Fs({ creators: e } = {}) {
1526
1526
  }
1527
1527
  function $(b, P = !1) {
1528
1528
  function _(T) {
1529
- let D = T[b];
1530
- if (typeof D > "u") {
1531
- if (P) D = tt(p, _, y);
1529
+ let k = T[b];
1530
+ if (typeof k > "u") {
1531
+ if (P) k = tt(p, _, y);
1532
1532
  else if (process.env.NODE_ENV !== "production") throw new Error(process.env.NODE_ENV === "production" ? Y(15) : "selectSlice returned undefined for an uninjected slice reducer");
1533
1533
  }
1534
- return D;
1534
+ return k;
1535
1535
  }
1536
1536
  function N(T = f) {
1537
1537
  return tt(tt(m, P, () => /* @__PURE__ */ new WeakMap()), T, () => {
1538
- const D = {};
1539
- for (const [H, J] of Object.entries(n.selectors ?? {})) D[H] = Hc(J, T, () => tt(p, T, y), P);
1540
- return D;
1538
+ const k = {};
1539
+ for (const [H, J] of Object.entries(n.selectors ?? {})) k[H] = Hc(J, T, () => tt(p, T, y), P);
1540
+ return k;
1541
1541
  });
1542
1542
  }
1543
1543
  return {
@@ -1612,7 +1612,7 @@ function Kc({ type: e, reducerName: t, createNotation: r }, n, a) {
1612
1612
  if (r && !Zc(n)) throw new Error(process.env.NODE_ENV === "production" ? Y(17) : "Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");
1613
1613
  i = n.reducer, o = n.prepare;
1614
1614
  } else i = n;
1615
- a.addCase(e, i).exposeCaseReducer(t, i).exposeAction(t, o ? De(e, o) : De(e));
1615
+ a.addCase(e, i).exposeCaseReducer(t, i).exposeAction(t, o ? ke(e, o) : ke(e));
1616
1616
  }
1617
1617
  function Yc(e) {
1618
1618
  return e._reducerDefinitionType === "asyncThunk";
@@ -1809,8 +1809,8 @@ function iu(e, t) {
1809
1809
  function o(y, $, S) {
1810
1810
  y = Ye(y);
1811
1811
  const b = new Set(S ?? hr($.ids)), P = /* @__PURE__ */ new Set(), _ = y.filter((N) => {
1812
- const T = ut(N, e), D = !P.has(T);
1813
- return D && P.add(T), !b.has(T) && D;
1812
+ const T = ut(N, e), k = !P.has(T);
1813
+ return k && P.add(T), !b.has(T) && k;
1814
1814
  });
1815
1815
  _.length !== 0 && v($, _);
1816
1816
  }
@@ -1866,16 +1866,16 @@ function iu(e, t) {
1866
1866
  const P = hr(y.entities), _ = hr(y.ids), N = y.entities;
1867
1867
  let T = _;
1868
1868
  b && (T = new Set(_));
1869
- let D = [];
1869
+ let k = [];
1870
1870
  for (const ne of T) {
1871
1871
  const ue = P[ne];
1872
- ue && D.push(ue);
1872
+ ue && k.push(ue);
1873
1873
  }
1874
- const H = D.length === 0;
1874
+ const H = k.length === 0;
1875
1875
  for (const ne of $)
1876
- N[e(ne)] = ne, H || au(D, ne, t);
1877
- H ? D = $.slice().sort(t) : S && D.sort(t);
1878
- const J = D.map(e);
1876
+ N[e(ne)] = ne, H || au(k, ne, t);
1877
+ H ? k = $.slice().sort(t) : S && k.sort(t);
1878
+ const J = k.map(e);
1879
1879
  h(_, J) || (y.ids = J);
1880
1880
  };
1881
1881
  return {
@@ -2002,7 +2002,7 @@ var uu = async (e, t) => {
2002
2002
  return (n, a) => Vs(r(n, a));
2003
2003
  }, Hs = (e) => {
2004
2004
  let { type: t, actionCreator: r, matcher: n, predicate: a, effect: i } = e;
2005
- if (t) a = De(t).match;
2005
+ if (t) a = ke(t).match;
2006
2006
  else if (r)
2007
2007
  t = r.type, a = r.match;
2008
2008
  else if (n) a = n;
@@ -2043,7 +2043,7 @@ var uu = async (e, t) => {
2043
2043
  throw n;
2044
2044
  }, 0);
2045
2045
  }
2046
- }, Sa = /* @__PURE__ */ pt(/* @__PURE__ */ De(`${Zt}/add`), { withTypes: () => Sa }), Ks = /* @__PURE__ */ De(`${Zt}/removeAll`), Pa = /* @__PURE__ */ pt(/* @__PURE__ */ De(`${Zt}/remove`), { withTypes: () => Pa }), hu = (...e) => {
2046
+ }, Sa = /* @__PURE__ */ pt(/* @__PURE__ */ ke(`${Zt}/add`), { withTypes: () => Sa }), Ks = /* @__PURE__ */ ke(`${Zt}/removeAll`), Pa = /* @__PURE__ */ pt(/* @__PURE__ */ ke(`${Zt}/remove`), { withTypes: () => Pa }), hu = (...e) => {
2047
2047
  console.error(`${Zt}/error`, ...e);
2048
2048
  }, yu = (e = {}) => {
2049
2049
  const t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), n = (p) => {
@@ -2138,7 +2138,7 @@ var uu = async (e, t) => {
2138
2138
  middleware: e,
2139
2139
  applied: /* @__PURE__ */ new Map()
2140
2140
  }), bu = (e) => (t) => t?.meta?.instanceId === e, $u = () => {
2141
- const e = Kt(), t = /* @__PURE__ */ new Map(), r = Object.assign(De("dynamicMiddleware/add", (...s) => ({
2141
+ const e = Kt(), t = /* @__PURE__ */ new Map(), r = Object.assign(ke("dynamicMiddleware/add", (...s) => ({
2142
2142
  payload: s,
2143
2143
  meta: { instanceId: e }
2144
2144
  })), { withTypes: () => r }), n = Object.assign(function(...d) {
@@ -2235,7 +2235,7 @@ var Be = [
2235
2235
  e.completedSteps = e.completedSteps.filter((a) => Be.indexOf(a) <= n);
2236
2236
  }
2237
2237
  }
2238
- }), { goToStep: Tu, completeStep: Ey, nextStep: Ge, prevStep: Iy, clearSteps: Ty, resetStepsAfter: Au } = Ys.actions, xu = Ys.reducer, Ci = {
2238
+ }), { goToStep: Tu, completeStep: Ay, nextStep: Ge, prevStep: xy, clearSteps: My, resetStepsAfter: Au } = Ys.actions, xu = Ys.reducer, Ci = {
2239
2239
  id: "",
2240
2240
  outletName: "",
2241
2241
  timeZone: "",
@@ -2262,7 +2262,7 @@ var Be = [
2262
2262
  e.token = t.payload;
2263
2263
  }
2264
2264
  }
2265
- }), { clearBooking: Mu, setOutletData: Du, setOutletToken: ku } = Zs.actions, Ru = Zs.reducer, Si = {
2265
+ }), { clearBooking: Mu, setOutletData: ku, setOutletToken: Du } = Zs.actions, Ru = Zs.reducer, Si = {
2266
2266
  superCategories: [],
2267
2267
  staff: [],
2268
2268
  selectedCategory: null,
@@ -2298,7 +2298,7 @@ var Be = [
2298
2298
  },
2299
2299
  clearServices: () => Si
2300
2300
  }
2301
- }), { setServicePayload: Fu, setCategory: Ay, toggleService: Pi, clearServices: xy, incrementService: ju, decrementService: wi, toggleProfessional: Lu } = Xs.actions, Bu = Xs.reducer, Ke = "https://prod.aaravpos.com/api/v1", Xe = () => ({
2301
+ }), { setServicePayload: Fu, setCategory: ky, toggleService: Pi, clearServices: Dy, incrementService: ju, decrementService: wi, toggleProfessional: Lu } = Xs.actions, Bu = Xs.reducer, Ke = "https://prod.aaravpos.com/api/v1", Xe = () => ({
2302
2302
  "Content-Type": "application/json",
2303
2303
  Authorization: `Bearer ${an.getState()?.barber?.outletDetails?.token}`
2304
2304
  }), Uu = async (e, t, r) => {
@@ -2494,7 +2494,7 @@ var Be = [
2494
2494
  t.loading = !1, t.error = r.payload || "Appointment failed";
2495
2495
  });
2496
2496
  }
2497
- }), { resetAppointment: My, setBookingMode: Dy, setUserDetails: xi, setTips: Xu, setAppointmentId: ir, clearUserDetails: td } = ed.actions, Ju = ed.reducer, rd = Ze({
2497
+ }), { resetAppointment: Ry, setBookingMode: Fy, setUserDetails: xi, setTips: Xu, setAppointmentId: ir, clearUserDetails: td } = ed.actions, Ju = ed.reducer, rd = Ze({
2498
2498
  name: "outletList",
2499
2499
  initialState: { outlets: [] },
2500
2500
  reducers: {
@@ -2505,7 +2505,7 @@ var Be = [
2505
2505
  e.outlets = [];
2506
2506
  }
2507
2507
  }
2508
- }), { setOutletList: Qu, clearOutletList: ky } = rd.actions, ef = rd.reducer, nd = Ze({
2508
+ }), { setOutletList: Qu, clearOutletList: jy } = rd.actions, ef = rd.reducer, nd = Ze({
2509
2509
  name: "theme",
2510
2510
  initialState: {
2511
2511
  button: {
@@ -2606,13 +2606,13 @@ var df = (0, zn.combineReducers)({ barber: (0, zn.combineReducers)({
2606
2606
  devTools: process.env.NODE_ENV !== "production",
2607
2607
  middleware: (e) => e({ serializableCheck: { ignoredActions: [
2608
2608
  Tl,
2609
- kl,
2609
+ Dl,
2610
2610
  Al,
2611
2611
  xl,
2612
2612
  Ml,
2613
- Dl
2613
+ kl
2614
2614
  ] } })
2615
- }), _a = Fl(an), Ry = an.getState;
2615
+ }), _a = Fl(an), Ly = an.getState;
2616
2616
  function ff({ children: e }) {
2617
2617
  return /* @__PURE__ */ u(Ol, {
2618
2618
  store: an,
@@ -2743,7 +2743,7 @@ var pf = (e) => {
2743
2743
  }]], id = te("chevron-down", wf), _f = [["path", {
2744
2744
  d: "m15 18-6-6 6-6",
2745
2745
  key: "1wnfg3"
2746
- }]], Dr = te("chevron-left", _f), Of = [["path", {
2746
+ }]], kr = te("chevron-left", _f), Of = [["path", {
2747
2747
  d: "m9 18 6-6-6-6",
2748
2748
  key: "mthhwq"
2749
2749
  }]], on = te("chevron-right", Of), Ef = [["circle", {
@@ -2784,7 +2784,7 @@ var pf = (e) => {
2784
2784
  }], ["path", {
2785
2785
  d: "M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",
2786
2786
  key: "1b0p4s"
2787
- }]], sd = te("dollar-sign", Mf), Df = [
2787
+ }]], sd = te("dollar-sign", Mf), kf = [
2788
2788
  ["path", {
2789
2789
  d: "M4 10h12",
2790
2790
  key: "1y6xl8"
@@ -2797,7 +2797,7 @@ var pf = (e) => {
2797
2797
  d: "M19 6a7.7 7.7 0 0 0-5.2-2A7.9 7.9 0 0 0 6 12c0 4.4 3.5 8 7.8 8 2 0 3.8-.8 5.2-2",
2798
2798
  key: "1j6lzo"
2799
2799
  }]
2800
- ], kf = te("euro", Df), Rf = [
2800
+ ], Df = te("euro", kf), Rf = [
2801
2801
  ["path", {
2802
2802
  d: "M6 3h12",
2803
2803
  key: "ggurg9"
@@ -2830,7 +2830,7 @@ var pf = (e) => {
2830
2830
  }], ["path", {
2831
2831
  d: "M2 12H22",
2832
2832
  key: "1m8cig"
2833
- }]], Di = te("move-left", Vf), Gf = [["path", {
2833
+ }]], ki = te("move-left", Vf), Gf = [["path", {
2834
2834
  d: "M18 8L22 12L18 16",
2835
2835
  key: "1r0oui"
2836
2836
  }], ["path", {
@@ -3022,7 +3022,7 @@ var pf = (e) => {
3022
3022
  }]], sn = te("x", c1), u1 = {
3023
3023
  USD: sd,
3024
3024
  INR: Ff,
3025
- EUR: kf,
3025
+ EUR: Df,
3026
3026
  GBP: Yf
3027
3027
  }, Ne = ({ size: e = 20 }) => {
3028
3028
  const t = X((r) => r.barber.outletDetails?.currency);
@@ -3030,7 +3030,7 @@ var pf = (e) => {
3030
3030
  }, dn = (e = "") => {
3031
3031
  const t = e.trim().split(" ").filter(Boolean);
3032
3032
  return t.length === 0 ? "" : ((t[0]?.[0] ?? "") + (t.length > 1 ? t[t.length - 1]?.[0] ?? "" : "")).toUpperCase();
3033
- }, f1 = (e) => Number(e.price || e.min_price || 0), ki = (e, { perUnit: t = !1 } = {}) => {
3033
+ }, f1 = (e) => Number(e.price || e.min_price || 0), Di = (e, { perUnit: t = !1 } = {}) => {
3034
3034
  const r = f1(e), n = t ? 1 : e.qty || 1;
3035
3035
  return !e.taxRows || !e.taxRows.length ? 0 : e.taxRows.reduce((a, i) => i.isActive ? i.taxType === "FIXED" ? a + (i.taxRate || 0) * n : i.taxType === "PERCENTAGE" ? a + r * n * (i.taxRate || 0) / 100 : a : a, 0);
3036
3036
  };
@@ -3149,7 +3149,7 @@ var st = [
3149
3149
  icon: /* @__PURE__ */ u(od, { size: 16 })
3150
3150
  },
3151
3151
  {
3152
- label: "Done",
3152
+ label: "Confirm",
3153
3153
  page: "confirm",
3154
3154
  icon: /* @__PURE__ */ u(If, { size: 16 })
3155
3155
  }
@@ -3177,7 +3177,7 @@ function Ea() {
3177
3177
  children: [/* @__PURE__ */ u("button", {
3178
3178
  onClick: l,
3179
3179
  className: "aaravpos-barber-mobile-back-btn",
3180
- children: /* @__PURE__ */ u(Dr, { size: 20 })
3180
+ children: /* @__PURE__ */ u(kr, { size: 20 })
3181
3181
  }), /* @__PURE__ */ u("span", {
3182
3182
  className: "aaravpos-barber-mobile-step-label",
3183
3183
  children: c?.label
@@ -3188,7 +3188,7 @@ function Ea() {
3188
3188
  /* @__PURE__ */ u("button", {
3189
3189
  onClick: l,
3190
3190
  className: "aaravpos-barber-desktop-back-btn",
3191
- children: /* @__PURE__ */ u(Dr, { size: 20 })
3191
+ children: /* @__PURE__ */ u(kr, { size: 20 })
3192
3192
  }),
3193
3193
  /* @__PURE__ */ u("nav", {
3194
3194
  className: "aaravpos-barber-step-nav",
@@ -3272,7 +3272,7 @@ var y1 = (e) => Number(e.price || e.min_price || 0), or = (e, { perUnit: t = !1
3272
3272
  "Dec"
3273
3273
  ];
3274
3274
  function Ta({ goToStep: e, buttonText: t, onButtonClick: r, showTaxesOnlyIfTime: n = !1, showTip: a = !1, tipPct: i = 0, onTipChange: o, consentRequired: s = !1, consentCompleted: d = 0, totalConsents: l = 0, checkingConsent: c = !1, loading: f = !1, isBookingDisabled: m = !1, showFooterButton: p = !1, showBookingSection: h = !0 }) {
3275
- const v = qe(), { outletName: y, timeZone: $ } = X((B) => B.barber.outletDetails), { selectedSlotIndexes: S, slots: b, selectedDate: P } = X((B) => B.barber.slots), { staff: _, selectedServices: N, selectedProfessional: T } = X((B) => B.barber.service), D = be.now().setZone($ ?? "UTC"), [H, J] = Z(""), [ne, ue] = Z(!1), ae = Fe(null), se = Fe(null), [pe, he] = Z(0), ye = [
3275
+ const v = qe(), { outletName: y, timeZone: $ } = X((B) => B.barber.outletDetails), { selectedSlotIndexes: S, slots: b, selectedDate: P } = X((B) => B.barber.slots), { staff: _, selectedServices: N, selectedProfessional: T } = X((B) => B.barber.service), k = be.now().setZone($ ?? "UTC"), [H, J] = Z(""), [ne, ue] = Z(!1), ae = Fe(null), se = Fe(null), [pe, he] = Z(0), ye = [
3276
3276
  0,
3277
3277
  5,
3278
3278
  10,
@@ -3309,11 +3309,11 @@ function Ta({ goToStep: e, buttonText: t, onButtonClick: r, showTaxesOnlyIfTime:
3309
3309
  if (!Q.length) return "";
3310
3310
  const W = Q[B]?.start_time, Pe = Q[B + E - 1];
3311
3311
  return !W || !Pe ? "" : `${W} - ${Pe.end_time || Pe.start_time}`;
3312
- }, k = P || {
3313
- day: D.day,
3314
- month: D.month,
3315
- year: D.year
3316
- }, j = S?.[0], L = j !== void 0 ? M(j) : null, U = k.month ?? 0, V = L ? `${v1[U - 1]} ${k.day} at ${L}` : null, q = ge.reduce((B, W) => B + W.tax, 0), G = Number(i) || 0, K = a ? A * G / 100 : 0, x = A + q + K;
3312
+ }, D = P || {
3313
+ day: k.day,
3314
+ month: k.month,
3315
+ year: k.year
3316
+ }, j = S?.[0], L = j !== void 0 ? M(j) : null, U = D.month ?? 0, V = L ? `${v1[U - 1]} ${D.day} at ${L}` : null, q = ge.reduce((B, W) => B + W.tax, 0), G = Number(i) || 0, K = a ? A * G / 100 : 0, x = A + q + K;
3317
3317
  fe(() => {
3318
3318
  a && i == null && o?.(0);
3319
3319
  }, [
@@ -3867,7 +3867,7 @@ function N1({ isOpen: e, onClose: t }) {
3867
3867
  disabled: s === 0,
3868
3868
  onClick: () => d((m) => Math.max(m - 1, 0)),
3869
3869
  className: "aaravpos-barber-date-nav-btn",
3870
- children: /* @__PURE__ */ u(Dr, {})
3870
+ children: /* @__PURE__ */ u(kr, {})
3871
3871
  }),
3872
3872
  /* @__PURE__ */ u("div", {
3873
3873
  className: "aaravpos-barber-date-month-label",
@@ -3927,6 +3927,18 @@ function N1({ isOpen: e, onClose: t }) {
3927
3927
  })
3928
3928
  });
3929
3929
  }
3930
+ function C1() {
3931
+ return /* @__PURE__ */ u("div", {
3932
+ className: "aaravpos-barber-scroll-area",
3933
+ children: Array.from({ length: 3 }).map((e, t) => /* @__PURE__ */ u("div", {
3934
+ className: "aaravpos-barber-slot-section",
3935
+ children: /* @__PURE__ */ g("div", {
3936
+ className: "aaravpos-barber-slot-section-header",
3937
+ children: [/* @__PURE__ */ u("div", { className: "aaravpos-barber-slot-skeleton-title shimmer" }), /* @__PURE__ */ u("div", { className: "aaravpos-barber-slot-skeleton-arrow shimmer" })]
3938
+ })
3939
+ }, t))
3940
+ });
3941
+ }
3930
3942
  var Fi = [
3931
3943
  "Jan",
3932
3944
  "Feb",
@@ -3940,7 +3952,7 @@ var Fi = [
3940
3952
  "Oct",
3941
3953
  "Nov",
3942
3954
  "Dec"
3943
- ], C1 = [
3955
+ ], S1 = [
3944
3956
  "Sun",
3945
3957
  "Mon",
3946
3958
  "Tue",
@@ -3949,7 +3961,7 @@ var Fi = [
3949
3961
  "Fri",
3950
3962
  "Sat"
3951
3963
  ];
3952
- function S1() {
3964
+ function P1() {
3953
3965
  const e = qe(), [t, r] = Z(11), { staff: n, selectedServices: a, selectedProfessional: i } = X((A) => A.barber.service), { tenantId: o, timeZone: s } = X((A) => A?.barber?.outletDetails), { selectedSlotIndexes: d, selectedDate: l, selectedTime: c, slots: f, loading: m } = X((A) => A.barber.slots), [p, h] = Z(!1), [v, y] = Z(0), $ = 15, S = Ce(() => [
3954
3966
  f.morning,
3955
3967
  f.afternoon,
@@ -3958,12 +3970,12 @@ function S1() {
3958
3970
  try {
3959
3971
  if (!A.isValid) throw new Error("Invalid timezone or start date");
3960
3972
  return Array.from({ length: 180 }, (E, M) => {
3961
- const k = A.plus({ days: M });
3962
- return k.isValid ? {
3963
- day: k.day,
3964
- month: k.month,
3965
- year: k.year,
3966
- fullDate: k.toISODate()
3973
+ const D = A.plus({ days: M });
3974
+ return D.isValid ? {
3975
+ day: D.day,
3976
+ month: D.month,
3977
+ year: D.year,
3978
+ fullDate: D.toISODate()
3967
3979
  } : null;
3968
3980
  }).filter(Boolean);
3969
3981
  } catch (C) {
@@ -3985,7 +3997,7 @@ function S1() {
3985
3997
  i,
3986
3998
  n,
3987
3999
  a
3988
- ]), T = N.reduce((A, C) => A + Number(C.duration) * (C.qty || 1), 0), D = Math.ceil(T / $), H = l ? be.fromObject(l).toFormat("yyyy-MM-dd") : null;
4000
+ ]), T = N.reduce((A, C) => A + Number(C.duration) * (C.qty || 1), 0), k = Math.ceil(T / $), H = l ? be.fromObject(l).toFormat("yyyy-MM-dd") : null;
3989
4001
  fe(() => {
3990
4002
  !i?.id || !H || e(yr({
3991
4003
  tenantId: o,
@@ -4032,8 +4044,8 @@ function S1() {
4032
4044
  })), e(Ti(null));
4033
4045
  }, ue = (A) => {
4034
4046
  if (!S.length) return;
4035
- const C = S.slice(A, A + D);
4036
- if (C.length < D) {
4047
+ const C = S.slice(A, A + k);
4048
+ if (C.length < k) {
4037
4049
  re.warning("You don't have sufficient time for selected service");
4038
4050
  return;
4039
4051
  }
@@ -4042,7 +4054,7 @@ function S1() {
4042
4054
  return;
4043
4055
  }
4044
4056
  e(Ti(S[A].start_time));
4045
- const E = Array.from({ length: D }, (M, k) => A + k);
4057
+ const E = Array.from({ length: k }, (M, D) => A + D);
4046
4058
  e(Ii({
4047
4059
  indexes: E,
4048
4060
  ids: E.map((M) => S[M]?.id)
@@ -4054,7 +4066,7 @@ function S1() {
4054
4066
  if (!c || !S.length) return;
4055
4067
  const A = S.findIndex((E) => E.start_time === c);
4056
4068
  if (A === -1) return;
4057
- const C = Array.from({ length: D }, (E, M) => A + M);
4069
+ const C = Array.from({ length: k }, (E, M) => A + M);
4058
4070
  C.length === d.length && C.every((E, M) => E === d[M]) || e(Ii({
4059
4071
  indexes: C,
4060
4072
  ids: C.map((E) => S[E]?.id)
@@ -4062,7 +4074,7 @@ function S1() {
4062
4074
  }, [
4063
4075
  c,
4064
4076
  S,
4065
- D,
4077
+ k,
4066
4078
  d
4067
4079
  ]), fe(() => {
4068
4080
  const A = () => {
@@ -4143,10 +4155,10 @@ function S1() {
4143
4155
  children: [
4144
4156
  /* @__PURE__ */ u(ji, {
4145
4157
  onClick: () => J(-1),
4146
- children: /* @__PURE__ */ u(Dr, { size: 20 })
4158
+ children: /* @__PURE__ */ u(kr, { size: 20 })
4147
4159
  }),
4148
4160
  _.slice(v, v + t).map((A) => {
4149
- const C = be.fromISO(A.fullDate || ""), E = C.weekday % 7, M = be.now().setZone(s).startOf("day"), k = C.hasSame(M, "day"), j = l?.day === A.day && l?.month === A.month && l?.year === A.year, L = Et({
4161
+ const C = be.fromISO(A.fullDate || ""), E = C.weekday % 7, M = be.now().setZone(s).startOf("day"), D = C.hasSame(M, "day"), j = l?.day === A.day && l?.month === A.month && l?.year === A.year, L = Et({
4150
4162
  dateObj: A,
4151
4163
  selectedProfessional: i,
4152
4164
  outletTimeZone: s || "UTC"
@@ -4160,13 +4172,13 @@ function S1() {
4160
4172
  L && /* @__PURE__ */ u("div", { className: "aaravpos-barber-date-disabled-slash" }),
4161
4173
  /* @__PURE__ */ u("span", {
4162
4174
  className: "aaravpos-barber-date-week",
4163
- children: C1[E]
4175
+ children: S1[E]
4164
4176
  }),
4165
4177
  /* @__PURE__ */ u("span", {
4166
4178
  className: "aaravpos-barber-date-day",
4167
4179
  children: A.day
4168
4180
  }),
4169
- k && !j && !L && /* @__PURE__ */ u("span", {
4181
+ D && !j && !L && /* @__PURE__ */ u("span", {
4170
4182
  className: "aaravpos-barber-date-today",
4171
4183
  children: "TODAY"
4172
4184
  }),
@@ -4218,10 +4230,7 @@ function S1() {
4218
4230
  /* @__PURE__ */ g("div", {
4219
4231
  className: "aaravpos-barber-scroll-area",
4220
4232
  style: m ? { height: 300 } : {},
4221
- children: [m ? /* @__PURE__ */ u("div", {
4222
- className: "aaravpos-barber-loader-wrapper",
4223
- children: /* @__PURE__ */ u("div", { className: "aaravpos-barber-loader" })
4224
- }) : /* @__PURE__ */ g(we, { children: [
4233
+ children: [m ? /* @__PURE__ */ u(C1, {}) : /* @__PURE__ */ g(we, { children: [
4225
4234
  /* @__PURE__ */ u(En, {
4226
4235
  label: "Morning",
4227
4236
  icon: /* @__PURE__ */ u(l1, {
@@ -4313,11 +4322,11 @@ function En({ icon: e, label: t, slots: r, allSlots: n, selectedSlotIndexes: a,
4313
4322
  })]
4314
4323
  });
4315
4324
  }
4316
- var P1 = (e) => e.replace(/\D/g, "").slice(0, 16).replace(/(.{4})/g, "$1 ").trim(), w1 = (e) => {
4325
+ var w1 = (e) => e.replace(/\D/g, "").slice(0, 16).replace(/(.{4})/g, "$1 ").trim(), _1 = (e) => {
4317
4326
  const t = e.replace(/\D/g, "").slice(0, 4);
4318
4327
  return t.length >= 3 ? `${t.slice(0, 2)}/${t.slice(2)}` : t;
4319
- }, _1 = (e) => e.replace(/\D/g, "").slice(0, 3);
4320
- function O1({ onClose: e, onPay: t, amount: r }) {
4328
+ }, O1 = (e) => e.replace(/\D/g, "").slice(0, 3);
4329
+ function E1({ onClose: e, onPay: t, amount: r }) {
4321
4330
  const { timeZone: n } = X((c) => c?.barber?.outletDetails), { control: a, handleSubmit: i, reset: o, formState: { errors: s, isSubmitting: d } } = pa({ defaultValues: {
4322
4331
  name: "",
4323
4332
  number: "",
@@ -4414,7 +4423,7 @@ function O1({ onClose: e, onPay: t, amount: r }) {
4414
4423
  id: "number",
4415
4424
  placeholder: "4242 4242 4242 4242",
4416
4425
  onChange: (f) => {
4417
- c.onChange(P1(f.target.value));
4426
+ c.onChange(w1(f.target.value));
4418
4427
  },
4419
4428
  className: "aaravpos-barber-custom-input"
4420
4429
  })
@@ -4456,7 +4465,7 @@ function O1({ onClose: e, onPay: t, amount: r }) {
4456
4465
  id: "expiry",
4457
4466
  placeholder: "MM/YY",
4458
4467
  onChange: (f) => {
4459
- c.onChange(w1(f.target.value));
4468
+ c.onChange(_1(f.target.value));
4460
4469
  },
4461
4470
  className: "aaravpos-barber-custom-input"
4462
4471
  })
@@ -4492,7 +4501,7 @@ function O1({ onClose: e, onPay: t, amount: r }) {
4492
4501
  id: "cvv",
4493
4502
  placeholder: "CVV",
4494
4503
  onChange: (f) => {
4495
- c.onChange(_1(f.target.value));
4504
+ c.onChange(O1(f.target.value));
4496
4505
  },
4497
4506
  className: "aaravpos-barber-custom-input"
4498
4507
  })
@@ -4536,7 +4545,7 @@ function Kn() {
4536
4545
  return e;
4537
4546
  }, Kn.apply(null, arguments);
4538
4547
  }
4539
- function E1(e, t) {
4548
+ function I1(e, t) {
4540
4549
  if (e == null) return {};
4541
4550
  var r = {};
4542
4551
  for (var n in e) if ({}.hasOwnProperty.call(e, n)) {
@@ -4545,9 +4554,9 @@ function E1(e, t) {
4545
4554
  }
4546
4555
  return r;
4547
4556
  }
4548
- function I1(e, t) {
4557
+ function T1(e, t) {
4549
4558
  if (e == null) return {};
4550
- var r, n, a = E1(e, t);
4559
+ var r, n, a = I1(e, t);
4551
4560
  if (Object.getOwnPropertySymbols) {
4552
4561
  var i = Object.getOwnPropertySymbols(e);
4553
4562
  for (n = 0; n < i.length; n++) r = i[n], t.indexOf(r) === -1 && {}.propertyIsEnumerable.call(e, r) && (a[r] = e[r]);
@@ -4562,7 +4571,7 @@ function vt(e) {
4562
4571
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
4563
4572
  }, vt(e);
4564
4573
  }
4565
- function T1(e, t) {
4574
+ function A1(e, t) {
4566
4575
  if (vt(e) != "object" || !e) return e;
4567
4576
  var r = e[Symbol.toPrimitive];
4568
4577
  if (r !== void 0) {
@@ -4572,20 +4581,20 @@ function T1(e, t) {
4572
4581
  }
4573
4582
  return (t === "string" ? String : Number)(e);
4574
4583
  }
4575
- function A1(e) {
4576
- var t = T1(e, "string");
4584
+ function x1(e) {
4585
+ var t = A1(e, "string");
4577
4586
  return vt(t) == "symbol" ? t : t + "";
4578
4587
  }
4579
4588
  function Li(e, t) {
4580
4589
  for (var r = 0; r < t.length; r++) {
4581
4590
  var n = t[r];
4582
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, A1(n.key), n);
4591
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, x1(n.key), n);
4583
4592
  }
4584
4593
  }
4585
- function x1(e, t, r) {
4594
+ function M1(e, t, r) {
4586
4595
  return t && Li(e.prototype, t), r && Li(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
4587
4596
  }
4588
- function M1(e, t) {
4597
+ function k1(e, t) {
4589
4598
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
4590
4599
  }
4591
4600
  function Yn(e, t) {
@@ -4601,10 +4610,10 @@ function D1(e, t) {
4601
4610
  configurable: !0
4602
4611
  } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && Yn(e, t);
4603
4612
  }
4604
- function kr(e) {
4605
- return kr = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
4613
+ function Dr(e) {
4614
+ return Dr = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
4606
4615
  return t.__proto__ || Object.getPrototypeOf(t);
4607
- }, kr(e);
4616
+ }, Dr(e);
4608
4617
  }
4609
4618
  function ld() {
4610
4619
  try {
@@ -4616,27 +4625,27 @@ function ld() {
4616
4625
  return !!e;
4617
4626
  })();
4618
4627
  }
4619
- function k1(e) {
4628
+ function R1(e) {
4620
4629
  if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4621
4630
  return e;
4622
4631
  }
4623
- function R1(e, t) {
4632
+ function F1(e, t) {
4624
4633
  if (t && (vt(t) == "object" || typeof t == "function")) return t;
4625
4634
  if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
4626
- return k1(e);
4635
+ return R1(e);
4627
4636
  }
4628
- function F1(e) {
4637
+ function j1(e) {
4629
4638
  var t = ld();
4630
4639
  return function() {
4631
- var r, n = kr(e);
4640
+ var r, n = Dr(e);
4632
4641
  if (t) {
4633
- var a = kr(this).constructor;
4642
+ var a = Dr(this).constructor;
4634
4643
  r = Reflect.construct(n, arguments, a);
4635
4644
  } else r = n.apply(this, arguments);
4636
- return R1(this, r);
4645
+ return F1(this, r);
4637
4646
  };
4638
4647
  }
4639
- var j1 = /* @__PURE__ */ Ae(((e) => {
4648
+ var L1 = /* @__PURE__ */ Ae(((e) => {
4640
4649
  var t = typeof Symbol == "function" && Symbol.for, r = t ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = t ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, a = t ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = t ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = t ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, s = t ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = t ? /* @__PURE__ */ Symbol.for("react.context") : 60110, l = t ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, c = t ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, f = t ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, m = t ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, p = t ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, h = t ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, v = t ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, y = t ? /* @__PURE__ */ Symbol.for("react.block") : 60121, $ = t ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, S = t ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, b = t ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
4641
4650
  function P(N) {
4642
4651
  if (typeof N == "object" && N !== null) {
@@ -4698,7 +4707,7 @@ var j1 = /* @__PURE__ */ Ae(((e) => {
4698
4707
  }, e.isValidElementType = function(N) {
4699
4708
  return typeof N == "string" || typeof N == "function" || N === a || N === c || N === o || N === i || N === m || N === p || typeof N == "object" && N !== null && (N.$$typeof === v || N.$$typeof === h || N.$$typeof === s || N.$$typeof === d || N.$$typeof === f || N.$$typeof === $ || N.$$typeof === S || N.$$typeof === b || N.$$typeof === y);
4700
4709
  }, e.typeOf = P;
4701
- })), L1 = /* @__PURE__ */ Ae(((e) => {
4710
+ })), B1 = /* @__PURE__ */ Ae(((e) => {
4702
4711
  process.env.NODE_ENV !== "production" && (function() {
4703
4712
  "use strict";
4704
4713
  var t = typeof Symbol == "function" && Symbol.for, r = t ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = t ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, a = t ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = t ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = t ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, s = t ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = t ? /* @__PURE__ */ Symbol.for("react.context") : 60110, l = t ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, c = t ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, f = t ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, m = t ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, p = t ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, h = t ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, v = t ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, y = t ? /* @__PURE__ */ Symbol.for("react.block") : 60121, $ = t ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, S = t ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, b = t ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
@@ -4737,7 +4746,7 @@ var j1 = /* @__PURE__ */ Ae(((e) => {
4737
4746
  }
4738
4747
  }
4739
4748
  }
4740
- var N = l, T = c, D = d, H = s, J = r, ne = f, ue = a, ae = v, se = h, pe = n, he = o, ye = i, Q = m, ie = !1;
4749
+ var N = l, T = c, k = d, H = s, J = r, ne = f, ue = a, ae = v, se = h, pe = n, he = o, ye = i, Q = m, ie = !1;
4741
4750
  function ge(x) {
4742
4751
  return ie || (ie = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), A(x) || _(x) === l;
4743
4752
  }
@@ -4753,7 +4762,7 @@ var j1 = /* @__PURE__ */ Ae(((e) => {
4753
4762
  function M(x) {
4754
4763
  return typeof x == "object" && x !== null && x.$$typeof === r;
4755
4764
  }
4756
- function k(x) {
4765
+ function D(x) {
4757
4766
  return _(x) === f;
4758
4767
  }
4759
4768
  function j(x) {
@@ -4777,11 +4786,11 @@ var j1 = /* @__PURE__ */ Ae(((e) => {
4777
4786
  function K(x) {
4778
4787
  return _(x) === m;
4779
4788
  }
4780
- e.AsyncMode = N, e.ConcurrentMode = T, e.ContextConsumer = D, e.ContextProvider = H, e.Element = J, e.ForwardRef = ne, e.Fragment = ue, e.Lazy = ae, e.Memo = se, e.Portal = pe, e.Profiler = he, e.StrictMode = ye, e.Suspense = Q, e.isAsyncMode = ge, e.isConcurrentMode = A, e.isContextConsumer = C, e.isContextProvider = E, e.isElement = M, e.isForwardRef = k, e.isFragment = j, e.isLazy = L, e.isMemo = U, e.isPortal = V, e.isProfiler = q, e.isStrictMode = G, e.isSuspense = K, e.isValidElementType = P, e.typeOf = _;
4789
+ e.AsyncMode = N, e.ConcurrentMode = T, e.ContextConsumer = k, e.ContextProvider = H, e.Element = J, e.ForwardRef = ne, e.Fragment = ue, e.Lazy = ae, e.Memo = se, e.Portal = pe, e.Profiler = he, e.StrictMode = ye, e.Suspense = Q, e.isAsyncMode = ge, e.isConcurrentMode = A, e.isContextConsumer = C, e.isContextProvider = E, e.isElement = M, e.isForwardRef = D, e.isFragment = j, e.isLazy = L, e.isMemo = U, e.isPortal = V, e.isProfiler = q, e.isStrictMode = G, e.isSuspense = K, e.isValidElementType = P, e.typeOf = _;
4781
4790
  })();
4782
4791
  })), cd = /* @__PURE__ */ Ae(((e, t) => {
4783
- process.env.NODE_ENV === "production" ? t.exports = j1() : t.exports = L1();
4784
- })), B1 = /* @__PURE__ */ Ae(((e, t) => {
4792
+ process.env.NODE_ENV === "production" ? t.exports = L1() : t.exports = B1();
4793
+ })), U1 = /* @__PURE__ */ Ae(((e, t) => {
4785
4794
  var r = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, a = Object.prototype.propertyIsEnumerable;
4786
4795
  function i(s) {
4787
4796
  if (s == null) throw new TypeError("Object.assign cannot be called with null or undefined");
@@ -4820,7 +4829,7 @@ var j1 = /* @__PURE__ */ Ae(((e) => {
4820
4829
  t.exports = r;
4821
4830
  })), ud = /* @__PURE__ */ Ae(((e, t) => {
4822
4831
  t.exports = Function.call.bind(Object.prototype.hasOwnProperty);
4823
- })), U1 = /* @__PURE__ */ Ae(((e, t) => {
4832
+ })), V1 = /* @__PURE__ */ Ae(((e, t) => {
4824
4833
  var r = function() {
4825
4834
  };
4826
4835
  if (process.env.NODE_ENV !== "production") {
@@ -4858,8 +4867,8 @@ var j1 = /* @__PURE__ */ Ae(((e) => {
4858
4867
  o.resetWarningCache = function() {
4859
4868
  process.env.NODE_ENV !== "production" && (a = {});
4860
4869
  }, t.exports = o;
4861
- })), V1 = /* @__PURE__ */ Ae(((e, t) => {
4862
- var r = cd(), n = B1(), a = Aa(), i = ud(), o = U1(), s = function() {
4870
+ })), G1 = /* @__PURE__ */ Ae(((e, t) => {
4871
+ var r = cd(), n = U1(), a = Aa(), i = ud(), o = V1(), s = function() {
4863
4872
  };
4864
4873
  process.env.NODE_ENV !== "production" && (s = function(l) {
4865
4874
  var c = "Warning: " + l;
@@ -4891,7 +4900,7 @@ var j1 = /* @__PURE__ */ Ae(((e) => {
4891
4900
  arrayOf: _,
4892
4901
  element: N(),
4893
4902
  elementType: T(),
4894
- instanceOf: D,
4903
+ instanceOf: k,
4895
4904
  node: ue(),
4896
4905
  objectOf: J,
4897
4906
  oneOf: H,
@@ -4909,7 +4918,7 @@ var j1 = /* @__PURE__ */ Ae(((e) => {
4909
4918
  function S(C) {
4910
4919
  if (process.env.NODE_ENV !== "production")
4911
4920
  var E = {}, M = 0;
4912
- function k(L, U, V, q, G, K, x) {
4921
+ function D(L, U, V, q, G, K, x) {
4913
4922
  if (q = q || h, K = K || V, x !== a) {
4914
4923
  if (c) {
4915
4924
  var oe = /* @__PURE__ */ new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");
@@ -4921,12 +4930,12 @@ var j1 = /* @__PURE__ */ Ae(((e) => {
4921
4930
  }
4922
4931
  return U[V] == null ? L ? U[V] === null ? new $("The " + G + " `" + K + "` is marked as required " + ("in `" + q + "`, but its value is `null`.")) : new $("The " + G + " `" + K + "` is marked as required in " + ("`" + q + "`, but its value is `undefined`.")) : null : C(U, V, q, G, K);
4923
4932
  }
4924
- var j = k.bind(null, !1);
4925
- return j.isRequired = k.bind(null, !0), j;
4933
+ var j = D.bind(null, !1);
4934
+ return j.isRequired = D.bind(null, !0), j;
4926
4935
  }
4927
4936
  function b(C) {
4928
- function E(M, k, j, L, U, V) {
4929
- var q = M[k];
4937
+ function E(M, D, j, L, U, V) {
4938
+ var q = M[D];
4930
4939
  if (Q(q) !== C) {
4931
4940
  var G = ie(q);
4932
4941
  return new $("Invalid " + L + " `" + U + "` of type " + ("`" + G + "` supplied to `" + j + "`, expected ") + ("`" + C + "`."), { expectedType: C });
@@ -4939,9 +4948,9 @@ var j1 = /* @__PURE__ */ Ae(((e) => {
4939
4948
  return S(d);
4940
4949
  }
4941
4950
  function _(C) {
4942
- function E(M, k, j, L, U) {
4951
+ function E(M, D, j, L, U) {
4943
4952
  if (typeof C != "function") return new $("Property `" + U + "` of component `" + j + "` has invalid PropType notation inside arrayOf.");
4944
- var V = M[k];
4953
+ var V = M[D];
4945
4954
  if (!Array.isArray(V)) {
4946
4955
  var q = Q(V);
4947
4956
  return new $("Invalid " + L + " `" + U + "` of type " + ("`" + q + "` supplied to `" + j + "`, expected an array."));
@@ -4955,31 +4964,31 @@ var j1 = /* @__PURE__ */ Ae(((e) => {
4955
4964
  return S(E);
4956
4965
  }
4957
4966
  function N() {
4958
- function C(E, M, k, j, L) {
4967
+ function C(E, M, D, j, L) {
4959
4968
  var U = E[M];
4960
4969
  if (!l(U)) {
4961
4970
  var V = Q(U);
4962
- return new $("Invalid " + j + " `" + L + "` of type " + ("`" + V + "` supplied to `" + k + "`, expected a single ReactElement."));
4971
+ return new $("Invalid " + j + " `" + L + "` of type " + ("`" + V + "` supplied to `" + D + "`, expected a single ReactElement."));
4963
4972
  }
4964
4973
  return null;
4965
4974
  }
4966
4975
  return S(C);
4967
4976
  }
4968
4977
  function T() {
4969
- function C(E, M, k, j, L) {
4978
+ function C(E, M, D, j, L) {
4970
4979
  var U = E[M];
4971
4980
  if (!r.isValidElementType(U)) {
4972
4981
  var V = Q(U);
4973
- return new $("Invalid " + j + " `" + L + "` of type " + ("`" + V + "` supplied to `" + k + "`, expected a single ReactElement type."));
4982
+ return new $("Invalid " + j + " `" + L + "` of type " + ("`" + V + "` supplied to `" + D + "`, expected a single ReactElement type."));
4974
4983
  }
4975
4984
  return null;
4976
4985
  }
4977
4986
  return S(C);
4978
4987
  }
4979
- function D(C) {
4980
- function E(M, k, j, L, U) {
4981
- if (!(M[k] instanceof C)) {
4982
- var V = C.name || h, q = A(M[k]);
4988
+ function k(C) {
4989
+ function E(M, D, j, L, U) {
4990
+ if (!(M[D] instanceof C)) {
4991
+ var V = C.name || h, q = A(M[D]);
4983
4992
  return new $("Invalid " + L + " `" + U + "` of type " + ("`" + q + "` supplied to `" + j + "`, expected ") + ("instance of `" + V + "`."));
4984
4993
  }
4985
4994
  return null;
@@ -4989,8 +4998,8 @@ var j1 = /* @__PURE__ */ Ae(((e) => {
4989
4998
  function H(C) {
4990
4999
  if (!Array.isArray(C))
4991
5000
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s("Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).") : s("Invalid argument supplied to oneOf, expected an array.")), d;
4992
- function E(M, k, j, L, U) {
4993
- for (var V = M[k], q = 0; q < C.length; q++) if (y(V, C[q])) return null;
5001
+ function E(M, D, j, L, U) {
5002
+ for (var V = M[D], q = 0; q < C.length; q++) if (y(V, C[q])) return null;
4994
5003
  var G = JSON.stringify(C, function(x, oe) {
4995
5004
  return ie(oe) === "symbol" ? String(oe) : oe;
4996
5005
  });
@@ -4999,9 +5008,9 @@ var j1 = /* @__PURE__ */ Ae(((e) => {
4999
5008
  return S(E);
5000
5009
  }
5001
5010
  function J(C) {
5002
- function E(M, k, j, L, U) {
5011
+ function E(M, D, j, L, U) {
5003
5012
  if (typeof C != "function") return new $("Property `" + U + "` of component `" + j + "` has invalid PropType notation inside objectOf.");
5004
- var V = M[k], q = Q(V);
5013
+ var V = M[D], q = Q(V);
5005
5014
  if (q !== "object") return new $("Invalid " + L + " `" + U + "` of type " + ("`" + q + "` supplied to `" + j + "`, expected an object."));
5006
5015
  for (var G in V) if (i(V, G)) {
5007
5016
  var K = C(V, G, j, L, U + "." + G, a);
@@ -5019,7 +5028,7 @@ var j1 = /* @__PURE__ */ Ae(((e) => {
5019
5028
  if (typeof M != "function")
5020
5029
  return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ge(M) + " at index " + E + "."), d;
5021
5030
  }
5022
- function k(j, L, U, V, q) {
5031
+ function D(j, L, U, V, q) {
5023
5032
  for (var G = [], K = 0; K < C.length; K++) {
5024
5033
  var x = C[K], oe = x(j, L, U, V, q, a);
5025
5034
  if (oe == null) return null;
@@ -5028,20 +5037,20 @@ var j1 = /* @__PURE__ */ Ae(((e) => {
5028
5037
  var ve = G.length > 0 ? ", expected one of type [" + G.join(", ") + "]" : "";
5029
5038
  return new $("Invalid " + V + " `" + q + "` supplied to " + ("`" + U + "`" + ve + "."));
5030
5039
  }
5031
- return S(k);
5040
+ return S(D);
5032
5041
  }
5033
5042
  function ue() {
5034
- function C(E, M, k, j, L) {
5035
- return he(E[M]) ? null : new $("Invalid " + j + " `" + L + "` supplied to " + ("`" + k + "`, expected a ReactNode."));
5043
+ function C(E, M, D, j, L) {
5044
+ return he(E[M]) ? null : new $("Invalid " + j + " `" + L + "` supplied to " + ("`" + D + "`, expected a ReactNode."));
5036
5045
  }
5037
5046
  return S(C);
5038
5047
  }
5039
- function ae(C, E, M, k, j) {
5040
- return new $((C || "React class") + ": " + E + " type `" + M + "." + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + j + "`.");
5048
+ function ae(C, E, M, D, j) {
5049
+ return new $((C || "React class") + ": " + E + " type `" + M + "." + D + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + j + "`.");
5041
5050
  }
5042
5051
  function se(C) {
5043
- function E(M, k, j, L, U) {
5044
- var V = M[k], q = Q(V);
5052
+ function E(M, D, j, L, U) {
5053
+ var V = M[D], q = Q(V);
5045
5054
  if (q !== "object") return new $("Invalid " + L + " `" + U + "` of type `" + q + "` " + ("supplied to `" + j + "`, expected `object`."));
5046
5055
  for (var G in C) {
5047
5056
  var K = C[G];
@@ -5054,13 +5063,13 @@ var j1 = /* @__PURE__ */ Ae(((e) => {
5054
5063
  return S(E);
5055
5064
  }
5056
5065
  function pe(C) {
5057
- function E(M, k, j, L, U) {
5058
- var V = M[k], q = Q(V);
5066
+ function E(M, D, j, L, U) {
5067
+ var V = M[D], q = Q(V);
5059
5068
  if (q !== "object") return new $("Invalid " + L + " `" + U + "` of type `" + q + "` " + ("supplied to `" + j + "`, expected `object`."));
5060
- for (var G in n({}, M[k], C)) {
5069
+ for (var G in n({}, M[D], C)) {
5061
5070
  var K = C[G];
5062
5071
  if (i(C, G) && typeof K != "function") return ae(j, L, U, G, ie(K));
5063
- if (!K) return new $("Invalid " + L + " `" + U + "` key `" + G + "` supplied to `" + j + "`.\nBad object: " + JSON.stringify(M[k], null, " ") + `
5072
+ if (!K) return new $("Invalid " + L + " `" + U + "` key `" + G + "` supplied to `" + j + "`.\nBad object: " + JSON.stringify(M[D], null, " ") + `
5064
5073
  Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
5065
5074
  var x = K(V, G, j, L, U + "." + G, a);
5066
5075
  if (x) return x;
@@ -5082,11 +5091,11 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
5082
5091
  if (C === null || l(C)) return !0;
5083
5092
  var E = p(C);
5084
5093
  if (E) {
5085
- var M = E.call(C), k;
5094
+ var M = E.call(C), D;
5086
5095
  if (E !== C.entries) {
5087
- for (; !(k = M.next()).done; ) if (!he(k.value)) return !1;
5088
- } else for (; !(k = M.next()).done; ) {
5089
- var j = k.value;
5096
+ for (; !(D = M.next()).done; ) if (!he(D.value)) return !1;
5097
+ } else for (; !(D = M.next()).done; ) {
5098
+ var j = D.value;
5090
5099
  if (j && !he(j[1]))
5091
5100
  return !1;
5092
5101
  }
@@ -5131,7 +5140,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
5131
5140
  }
5132
5141
  return v.checkPropTypes = o, v.resetWarningCache = o.resetWarningCache, v.PropTypes = v, v;
5133
5142
  };
5134
- })), G1 = /* @__PURE__ */ Ae(((e, t) => {
5143
+ })), W1 = /* @__PURE__ */ Ae(((e, t) => {
5135
5144
  var r = Aa();
5136
5145
  function n() {
5137
5146
  }
@@ -5173,12 +5182,12 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
5173
5182
  };
5174
5183
  return s.PropTypes = s, s;
5175
5184
  };
5176
- })), W1 = /* @__PURE__ */ Ae(((e, t) => {
5185
+ })), z1 = /* @__PURE__ */ Ae(((e, t) => {
5177
5186
  if (process.env.NODE_ENV !== "production") {
5178
5187
  var r = cd(), n = !0;
5179
- t.exports = V1()(r.isElement, n);
5180
- } else t.exports = G1()();
5181
- })), O = /* @__PURE__ */ ma(W1(), 1);
5188
+ t.exports = G1()(r.isElement, n);
5189
+ } else t.exports = W1()();
5190
+ })), O = /* @__PURE__ */ ma(z1(), 1);
5182
5191
  function it(e, t, r) {
5183
5192
  this.x = e, this.y = t, this.time = r || (/* @__PURE__ */ new Date()).getTime();
5184
5193
  }
@@ -5208,7 +5217,7 @@ xa.prototype.length = function() {
5208
5217
  xa.prototype._point = function(e, t, r, n, a) {
5209
5218
  return t * (1 - e) * (1 - e) * (1 - e) + 3 * r * (1 - e) * (1 - e) * e + 3 * n * (1 - e) * e * e + a * e * e * e;
5210
5219
  };
5211
- function z1(e, t, r) {
5220
+ function H1(e, t, r) {
5212
5221
  var n, a, i, o = null, s = 0;
5213
5222
  r || (r = {});
5214
5223
  var d = function() {
@@ -5223,7 +5232,7 @@ function z1(e, t, r) {
5223
5232
  }
5224
5233
  function ee(e, t) {
5225
5234
  var r = this, n = t || {};
5226
- this.velocityFilterWeight = n.velocityFilterWeight || 0.7, this.minWidth = n.minWidth || 0.5, this.maxWidth = n.maxWidth || 2.5, this.throttle = "throttle" in n ? n.throttle : 16, this.minDistance = "minDistance" in n ? n.minDistance : 5, this.throttle ? this._strokeMoveUpdate = z1(ee.prototype._strokeUpdate, this.throttle) : this._strokeMoveUpdate = ee.prototype._strokeUpdate, this.dotSize = n.dotSize || function() {
5235
+ this.velocityFilterWeight = n.velocityFilterWeight || 0.7, this.minWidth = n.minWidth || 0.5, this.maxWidth = n.maxWidth || 2.5, this.throttle = "throttle" in n ? n.throttle : 16, this.minDistance = "minDistance" in n ? n.minDistance : 5, this.throttle ? this._strokeMoveUpdate = H1(ee.prototype._strokeUpdate, this.throttle) : this._strokeMoveUpdate = ee.prototype._strokeUpdate, this.dotSize = n.dotSize || function() {
5227
5236
  return (this.minWidth + this.maxWidth) / 2;
5228
5237
  }, this.penColor = n.penColor || "black", this.backgroundColor = n.backgroundColor || "rgba(0,0,0,0)", this.onBegin = n.onBegin, this.onEnd = n.onEnd, this._canvas = e, this._ctx = e.getContext("2d"), this.clear(), this._handleMouseDown = function(a) {
5229
5238
  a.which === 1 && (r._mouseButtonDown = !0, r._strokeBegin(a));
@@ -5427,7 +5436,7 @@ ee.prototype.fromData = function(e) {
5427
5436
  ee.prototype.toData = function() {
5428
5437
  return this._data;
5429
5438
  };
5430
- var H1 = /* @__PURE__ */ Ae(((e, t) => {
5439
+ var q1 = /* @__PURE__ */ Ae(((e, t) => {
5431
5440
  (function(r, n) {
5432
5441
  typeof e == "object" && typeof t == "object" ? t.exports = n() : typeof define == "function" && define.amd ? define([], n) : typeof e == "object" ? e.trimCanvas = n() : r.trimCanvas = n();
5433
5442
  })(e, function() {
@@ -5471,18 +5480,18 @@ var H1 = /* @__PURE__ */ Ae(((e, t) => {
5471
5480
  Object.defineProperty(n, "__esModule", { value: !0 }), n.default = a;
5472
5481
  }]);
5473
5482
  });
5474
- })), q1 = /* @__PURE__ */ ma(H1(), 1), K1 = ["canvasProps", "clearOnResize"], ln = /* @__PURE__ */ (function(e) {
5483
+ })), K1 = /* @__PURE__ */ ma(q1(), 1), Y1 = ["canvasProps", "clearOnResize"], ln = /* @__PURE__ */ (function(e) {
5475
5484
  D1(r, e);
5476
- var t = F1(r);
5485
+ var t = j1(r);
5477
5486
  function r() {
5478
5487
  var n;
5479
- M1(this, r);
5488
+ k1(this, r);
5480
5489
  for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++) i[o] = arguments[o];
5481
5490
  return n = t.call.apply(t, [this].concat(i)), n.staticThis = n.constructor, n._sigPad = null, n._canvas = null, n.setRef = function(s) {
5482
5491
  n._canvas = s, n._canvas === null && (n._sigPad = null);
5483
5492
  }, n._excludeOurProps = function() {
5484
5493
  var s = n.props;
5485
- return s.canvasProps, s.clearOnResize, I1(s, K1);
5494
+ return s.canvasProps, s.clearOnResize, T1(s, Y1);
5486
5495
  }, n.componentDidMount = function() {
5487
5496
  var s = n.getCanvas();
5488
5497
  n._sigPad = new ee(s, n._excludeOurProps()), n._resizeCanvas(), n.on();
@@ -5495,7 +5504,7 @@ var H1 = /* @__PURE__ */ Ae(((e, t) => {
5495
5504
  return n._canvas;
5496
5505
  }, n.getTrimmedCanvas = function() {
5497
5506
  var s = n.getCanvas(), d = document.createElement("canvas");
5498
- return d.width = s.width, d.height = s.height, d.getContext("2d").drawImage(s, 0, 0), (0, q1.default)(d);
5507
+ return d.width = s.width, d.height = s.height, d.getContext("2d").drawImage(s, 0, 0), (0, K1.default)(d);
5499
5508
  }, n.getSignaturePad = function() {
5500
5509
  if (n._sigPad === null) throw n.staticThis.refNullError;
5501
5510
  return n._sigPad;
@@ -5528,7 +5537,7 @@ var H1 = /* @__PURE__ */ Ae(((e, t) => {
5528
5537
  return n.getSignaturePad().toData();
5529
5538
  }, n;
5530
5539
  }
5531
- return x1(r);
5540
+ return M1(r);
5532
5541
  })(Sl);
5533
5542
  ln.propTypes = {
5534
5543
  velocityFilterWeight: O.default.number,
@@ -5545,7 +5554,7 @@ ln.propTypes = {
5545
5554
  };
5546
5555
  ln.defaultProps = { clearOnResize: !0 };
5547
5556
  ln.refNullError = /* @__PURE__ */ new Error("react-signature-canvas is currently mounting or unmounting: React refs are null during this phase.");
5548
- var Y1 = ({ onClose: e, onConfirm: t, enforcement: r, heading: n, consent: a }) => {
5557
+ var Z1 = ({ onClose: e, onConfirm: t, enforcement: r, heading: n, consent: a }) => {
5549
5558
  const i = Fe(null), { register: o, handleSubmit: s, control: d, reset: l, watch: c, setValue: f, formState: { errors: m, isSubmitting: p } } = pa({
5550
5559
  defaultValues: {
5551
5560
  accepted: !1,
@@ -5563,8 +5572,8 @@ var Y1 = ({ onClose: e, onConfirm: t, enforcement: r, heading: n, consent: a })
5563
5572
  }, P = (N) => {
5564
5573
  let T = "";
5565
5574
  if (r === "DRAW_SIGNATURE") {
5566
- const D = i.current;
5567
- if (D && !D.isEmpty()) T = D.getCanvas().toDataURL("image/png");
5575
+ const k = i.current;
5576
+ if (k && !k.isEmpty()) T = k.getCanvas().toDataURL("image/png");
5568
5577
  else return;
5569
5578
  }
5570
5579
  t({
@@ -5659,8 +5668,8 @@ var Y1 = ({ onClose: e, onConfirm: t, enforcement: r, heading: n, consent: a })
5659
5668
  onEnd: () => {
5660
5669
  const T = i.current;
5661
5670
  if (!T) return;
5662
- const D = T.getCanvas().toDataURL("image/png");
5663
- N.onChange(D);
5671
+ const k = T.getCanvas().toDataURL("image/png");
5672
+ N.onChange(k);
5664
5673
  }
5665
5674
  }),
5666
5675
  m.signatureDataUrl && /* @__PURE__ */ u("p", {
@@ -13156,7 +13165,7 @@ var Y1 = ({ onClose: e, onConfirm: t, enforcement: r, heading: n, consent: a })
13156
13165
  ]
13157
13166
  ]
13158
13167
  }
13159
- }, Z1 = /* @__PURE__ */ Ae(((e, t) => {
13168
+ }, X1 = /* @__PURE__ */ Ae(((e, t) => {
13160
13169
  (function() {
13161
13170
  "use strict";
13162
13171
  var r = {}.hasOwnProperty;
@@ -13184,7 +13193,7 @@ var Y1 = ({ onClose: e, onConfirm: t, enforcement: r, heading: n, consent: a })
13184
13193
  }) : window.classNames = n;
13185
13194
  })();
13186
13195
  }));
13187
- function X1(e, t, r) {
13196
+ function J1(e, t, r) {
13188
13197
  switch (r) {
13189
13198
  case "Backspace":
13190
13199
  t > 0 && (e = e.slice(0, t - 1) + e.slice(t), t--);
@@ -13198,7 +13207,7 @@ function X1(e, t, r) {
13198
13207
  caret: t
13199
13208
  };
13200
13209
  }
13201
- function J1(e, t, r) {
13210
+ function Q1(e, t, r) {
13202
13211
  for (var n = {}, a = "", i = 0, o = 0; o < e.length; ) {
13203
13212
  var s = r(e[o], a, n);
13204
13213
  s !== void 0 && (a += s, t !== void 0 && (t === o ? i = a.length - 1 : t > o && (i = a.length))), o++;
@@ -13208,10 +13217,10 @@ function J1(e, t, r) {
13208
13217
  caret: i
13209
13218
  };
13210
13219
  }
13211
- function Q1(e, t) {
13220
+ function e0(e, t) {
13212
13221
  var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
13213
13222
  if (r) return (r = r.call(e)).next.bind(r);
13214
- if (Array.isArray(e) || (r = e0(e)) || t && e && typeof e.length == "number") {
13223
+ if (Array.isArray(e) || (r = t0(e)) || t && e && typeof e.length == "number") {
13215
13224
  r && (e = r);
13216
13225
  var n = 0;
13217
13226
  return function() {
@@ -13224,7 +13233,7 @@ function Q1(e, t) {
13224
13233
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
13225
13234
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
13226
13235
  }
13227
- function e0(e, t) {
13236
+ function t0(e, t) {
13228
13237
  if (e) {
13229
13238
  if (typeof e == "string") return Bi(e, t);
13230
13239
  var r = Object.prototype.toString.call(e).slice(8, -1);
@@ -13238,18 +13247,18 @@ function Bi(e, t) {
13238
13247
  return n;
13239
13248
  }
13240
13249
  function Zn(e, t) {
13241
- for (var r = 0, n = Q1(t.split("")), a; !(a = n()).done; ) a.value === e && r++;
13250
+ for (var r = 0, n = e0(t.split("")), a; !(a = n()).done; ) a.value === e && r++;
13242
13251
  return r;
13243
13252
  }
13244
- function t0(e, t) {
13253
+ function r0(e, t) {
13245
13254
  for (var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "x", n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : " ", a = e.length, i = Zn("(", e) - Zn(")", e); i > 0 && a < t.length; )
13246
13255
  e += t[a].replace(r, n), t[a] === ")" && i--, a++;
13247
13256
  return e;
13248
13257
  }
13249
- function r0(e, t) {
13258
+ function n0(e, t) {
13250
13259
  var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
13251
13260
  if (r) return (r = r.call(e)).next.bind(r);
13252
- if (Array.isArray(e) || (r = n0(e)) || t && e && typeof e.length == "number") {
13261
+ if (Array.isArray(e) || (r = a0(e)) || t && e && typeof e.length == "number") {
13253
13262
  r && (e = r);
13254
13263
  var n = 0;
13255
13264
  return function() {
@@ -13262,7 +13271,7 @@ function r0(e, t) {
13262
13271
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
13263
13272
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
13264
13273
  }
13265
- function n0(e, t) {
13274
+ function a0(e, t) {
13266
13275
  if (e) {
13267
13276
  if (typeof e == "string") return Ui(e, t);
13268
13277
  var r = Object.prototype.toString.call(e).slice(8, -1);
@@ -13275,7 +13284,7 @@ function Ui(e, t) {
13275
13284
  for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r];
13276
13285
  return n;
13277
13286
  }
13278
- function a0(e) {
13287
+ function i0(e) {
13279
13288
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "x", r = arguments.length > 2 ? arguments[2] : void 0;
13280
13289
  if (!e) return function(a) {
13281
13290
  return { text: a };
@@ -13286,7 +13295,7 @@ function a0(e) {
13286
13295
  text: "",
13287
13296
  template: e
13288
13297
  };
13289
- for (var i = 0, o = "", s = r0(e.split("")), d; !(d = s()).done; ) {
13298
+ for (var i = 0, o = "", s = n0(e.split("")), d; !(d = s()).done; ) {
13290
13299
  var l = d.value;
13291
13300
  if (l !== t) {
13292
13301
  o += l;
@@ -13295,14 +13304,14 @@ function a0(e) {
13295
13304
  if (o += a[i], i++, i === a.length && a.length < n)
13296
13305
  break;
13297
13306
  }
13298
- return r && (o = t0(o, e)), {
13307
+ return r && (o = r0(o, e)), {
13299
13308
  text: o,
13300
13309
  template: e
13301
13310
  };
13302
13311
  };
13303
13312
  }
13304
- function i0(e, t, r) {
13305
- typeof r == "string" && (r = a0(r));
13313
+ function o0(e, t, r) {
13314
+ typeof r == "string" && (r = i0(r));
13306
13315
  var n = r(e) || {}, a = n.text, i = n.template;
13307
13316
  if (a === void 0 && (a = e), i) if (t === void 0) t = a.length;
13308
13317
  else {
@@ -13323,10 +13332,10 @@ function i0(e, t, r) {
13323
13332
  caret: t
13324
13333
  };
13325
13334
  }
13326
- function o0(e) {
13335
+ function s0(e) {
13327
13336
  return e.hasAttribute("readonly");
13328
13337
  }
13329
- function s0(e) {
13338
+ function d0(e) {
13330
13339
  if (e.selectionStart !== e.selectionEnd)
13331
13340
  return {
13332
13341
  start: e.selectionStart,
@@ -13337,7 +13346,7 @@ var Vi = {
13337
13346
  Backspace: 8,
13338
13347
  Delete: 46
13339
13348
  };
13340
- function d0(e) {
13349
+ function l0(e) {
13341
13350
  switch (e.keyCode) {
13342
13351
  case Vi.Backspace:
13343
13352
  return "Backspace";
@@ -13345,48 +13354,48 @@ function d0(e) {
13345
13354
  return "Delete";
13346
13355
  }
13347
13356
  }
13348
- function l0(e) {
13357
+ function c0(e) {
13349
13358
  return e.selectionStart;
13350
13359
  }
13351
13360
  function pd(e, t) {
13352
- t !== void 0 && (c0() ? setTimeout(function() {
13361
+ t !== void 0 && (u0() ? setTimeout(function() {
13353
13362
  return e.setSelectionRange(t, t);
13354
13363
  }, 0) : e.setSelectionRange(t, t));
13355
13364
  }
13356
- function c0() {
13357
- if (typeof navigator < "u") return u0.test(navigator.userAgent);
13365
+ function u0() {
13366
+ if (typeof navigator < "u") return f0.test(navigator.userAgent);
13358
13367
  }
13359
- var u0 = /Android/i;
13360
- function f0(e, t, r, n, a) {
13368
+ var f0 = /Android/i;
13369
+ function p0(e, t, r, n, a) {
13361
13370
  Xn(t, r, n, void 0, a);
13362
13371
  }
13363
- function p0(e, t, r, n, a) {
13364
- if (!o0(t)) {
13365
- var i = d0(e);
13372
+ function m0(e, t, r, n, a) {
13373
+ if (!s0(t)) {
13374
+ var i = l0(e);
13366
13375
  switch (i) {
13367
13376
  case "Delete":
13368
13377
  case "Backspace":
13369
13378
  e.preventDefault();
13370
- var o = s0(t);
13371
- return o ? (m0(t, o), Xn(t, r, n, void 0, a)) : Xn(t, r, n, i, a);
13379
+ var o = d0(t);
13380
+ return o ? (h0(t, o), Xn(t, r, n, void 0, a)) : Xn(t, r, n, i, a);
13372
13381
  default:
13373
13382
  }
13374
13383
  }
13375
13384
  }
13376
- function m0(e, t) {
13385
+ function h0(e, t) {
13377
13386
  var r = e.value;
13378
13387
  r = r.slice(0, t.start) + r.slice(t.end), e.value = r, pd(e, t.start);
13379
13388
  }
13380
13389
  function Xn(e, t, r, n, a) {
13381
- var i = J1(e.value, l0(e), t), o = i.value, s = i.caret;
13390
+ var i = Q1(e.value, c0(e), t), o = i.value, s = i.caret;
13382
13391
  if (n) {
13383
- var d = X1(o, s, n);
13392
+ var d = J1(o, s, n);
13384
13393
  o = d.value, s = d.caret;
13385
13394
  }
13386
- var l = i0(o, s, r), c = l.text;
13395
+ var l = o0(o, s, r), c = l.text;
13387
13396
  s = l.caret, e.value = c, pd(e, s), a && a(o);
13388
13397
  }
13389
- var h0 = [
13398
+ var y0 = [
13390
13399
  "ref",
13391
13400
  "parse",
13392
13401
  "format",
@@ -13410,14 +13419,14 @@ function dt(e) {
13410
13419
  for (var t = 1; t < arguments.length; t++) {
13411
13420
  var r = arguments[t] != null ? arguments[t] : {};
13412
13421
  t % 2 ? Gi(Object(r), !0).forEach(function(n) {
13413
- y0(e, n, r[n]);
13422
+ v0(e, n, r[n]);
13414
13423
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Gi(Object(r)).forEach(function(n) {
13415
13424
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
13416
13425
  });
13417
13426
  }
13418
13427
  return e;
13419
13428
  }
13420
- function y0(e, t, r) {
13429
+ function v0(e, t, r) {
13421
13430
  return t in e ? Object.defineProperty(e, t, {
13422
13431
  value: r,
13423
13432
  enumerable: !0,
@@ -13425,9 +13434,9 @@ function y0(e, t, r) {
13425
13434
  writable: !0
13426
13435
  }) : e[t] = r, e;
13427
13436
  }
13428
- function v0(e, t) {
13437
+ function b0(e, t) {
13429
13438
  if (e == null) return {};
13430
- var r = b0(e, t), n, a;
13439
+ var r = $0(e, t), n, a;
13431
13440
  if (Object.getOwnPropertySymbols) {
13432
13441
  var i = Object.getOwnPropertySymbols(e);
13433
13442
  for (a = 0; a < i.length; a++)
@@ -13435,18 +13444,18 @@ function v0(e, t) {
13435
13444
  }
13436
13445
  return r;
13437
13446
  }
13438
- function b0(e, t) {
13447
+ function $0(e, t) {
13439
13448
  if (e == null) return {};
13440
13449
  var r = {}, n = Object.keys(e), a, i;
13441
13450
  for (i = 0; i < n.length; i++)
13442
13451
  a = n[i], !(t.indexOf(a) >= 0) && (r[a] = e[a]);
13443
13452
  return r;
13444
13453
  }
13445
- function $0(e) {
13446
- var t = e.ref, r = e.parse, n = e.format, a = e.value, i = e.defaultValue, o = e.controlled, s = o === void 0 ? !0 : o, d = e.onChange, l = e.onKeyDown, c = v0(e, h0), f = Fe(), m = We(function(y) {
13454
+ function g0(e) {
13455
+ var t = e.ref, r = e.parse, n = e.format, a = e.value, i = e.defaultValue, o = e.controlled, s = o === void 0 ? !0 : o, d = e.onChange, l = e.onKeyDown, c = b0(e, y0), f = Fe(), m = We(function(y) {
13447
13456
  f.current = y, t && (typeof t == "function" ? t(y) : t.current = y);
13448
13457
  }, [t]), p = We(function(y) {
13449
- return f0(y, f.current, r, n, d);
13458
+ return p0(y, f.current, r, n, d);
13450
13459
  }, [
13451
13460
  f,
13452
13461
  r,
@@ -13454,7 +13463,7 @@ function $0(e) {
13454
13463
  d
13455
13464
  ]), h = We(function(y) {
13456
13465
  if (l && l(y), !y.defaultPrevented)
13457
- return p0(y, f.current, r, n, d);
13466
+ return m0(y, f.current, r, n, d);
13458
13467
  }, [
13459
13468
  f,
13460
13469
  r,
@@ -13471,7 +13480,7 @@ function $0(e) {
13471
13480
  function Wi(e) {
13472
13481
  return e == null;
13473
13482
  }
13474
- var g0 = [
13483
+ var N0 = [
13475
13484
  "inputComponent",
13476
13485
  "parse",
13477
13486
  "format",
@@ -13492,18 +13501,18 @@ function zi(e, t) {
13492
13501
  }
13493
13502
  return r;
13494
13503
  }
13495
- function N0(e) {
13504
+ function C0(e) {
13496
13505
  for (var t = 1; t < arguments.length; t++) {
13497
13506
  var r = arguments[t] != null ? arguments[t] : {};
13498
13507
  t % 2 ? zi(Object(r), !0).forEach(function(n) {
13499
- C0(e, n, r[n]);
13508
+ S0(e, n, r[n]);
13500
13509
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : zi(Object(r)).forEach(function(n) {
13501
13510
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
13502
13511
  });
13503
13512
  }
13504
13513
  return e;
13505
13514
  }
13506
- function C0(e, t, r) {
13515
+ function S0(e, t, r) {
13507
13516
  return t in e ? Object.defineProperty(e, t, {
13508
13517
  value: r,
13509
13518
  enumerable: !0,
@@ -13511,9 +13520,9 @@ function C0(e, t, r) {
13511
13520
  writable: !0
13512
13521
  }) : e[t] = r, e;
13513
13522
  }
13514
- function S0(e, t) {
13523
+ function P0(e, t) {
13515
13524
  if (e == null) return {};
13516
- var r = P0(e, t), n, a;
13525
+ var r = w0(e, t), n, a;
13517
13526
  if (Object.getOwnPropertySymbols) {
13518
13527
  var i = Object.getOwnPropertySymbols(e);
13519
13528
  for (a = 0; a < i.length; a++)
@@ -13521,7 +13530,7 @@ function S0(e, t) {
13521
13530
  }
13522
13531
  return r;
13523
13532
  }
13524
- function P0(e, t) {
13533
+ function w0(e, t) {
13525
13534
  if (e == null) return {};
13526
13535
  var r = {}, n = Object.keys(e), a, i;
13527
13536
  for (i = 0; i < n.length; i++)
@@ -13529,7 +13538,7 @@ function P0(e, t) {
13529
13538
  return r;
13530
13539
  }
13531
13540
  function Rr(e, t) {
13532
- var r = e.inputComponent, n = r === void 0 ? "input" : r, a = e.parse, i = e.format, o = e.value, s = e.defaultValue, d = e.onChange, l = e.controlled, c = e.onKeyDown, f = e.type, m = f === void 0 ? "text" : f, p = S0(e, g0), h = $0(N0({
13541
+ var r = e.inputComponent, n = r === void 0 ? "input" : r, a = e.parse, i = e.format, o = e.value, s = e.defaultValue, d = e.onChange, l = e.controlled, c = e.onKeyDown, f = e.type, m = f === void 0 ? "text" : f, p = P0(e, N0), h = g0(C0({
13533
13542
  ref: t,
13534
13543
  parse: a,
13535
13544
  format: i,
@@ -13556,7 +13565,7 @@ Rr.propTypes = {
13556
13565
  onCut: O.default.func,
13557
13566
  onPaste: O.default.func
13558
13567
  };
13559
- var w0 = Rr;
13568
+ var _0 = Rr;
13560
13569
  function Hi(e, t) {
13561
13570
  e = e.split("-"), t = t.split("-");
13562
13571
  for (var r = e[0].split("."), n = t[0].split("."), a = 0; a < 3; a++) {
@@ -13568,9 +13577,9 @@ function Hi(e, t) {
13568
13577
  }
13569
13578
  return e[1] && t[1] ? e[1] > t[1] ? 1 : e[1] < t[1] ? -1 : 0 : !e[1] && t[1] ? 1 : e[1] && !t[1] ? -1 : 0;
13570
13579
  }
13571
- var _0 = {}.constructor;
13580
+ var O0 = {}.constructor;
13572
13581
  function nt(e) {
13573
- return e != null && e.constructor === _0;
13582
+ return e != null && e.constructor === O0;
13574
13583
  }
13575
13584
  function bt(e) {
13576
13585
  "@babel/helpers - typeof";
@@ -13586,17 +13595,17 @@ function cn(e, t) {
13586
13595
  function qi(e, t) {
13587
13596
  for (var r = 0; r < t.length; r++) {
13588
13597
  var n = t[r];
13589
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, O0(n.key), n);
13598
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, E0(n.key), n);
13590
13599
  }
13591
13600
  }
13592
13601
  function un(e, t, r) {
13593
13602
  return t && qi(e.prototype, t), r && qi(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
13594
13603
  }
13595
- function O0(e) {
13596
- var t = E0(e, "string");
13604
+ function E0(e) {
13605
+ var t = I0(e, "string");
13597
13606
  return bt(t) == "symbol" ? t : t + "";
13598
13607
  }
13599
- function E0(e, t) {
13608
+ function I0(e, t) {
13600
13609
  if (bt(e) != "object" || !e) return e;
13601
13610
  var r = e[Symbol.toPrimitive];
13602
13611
  if (r !== void 0) {
@@ -13606,7 +13615,7 @@ function E0(e, t) {
13606
13615
  }
13607
13616
  return (t === "string" ? String : Number)(e);
13608
13617
  }
13609
- var I0 = "1.2.0", T0 = "1.7.35", Ki = " ext. ", A0 = /^\d+$/, ce = /* @__PURE__ */ (function() {
13618
+ var T0 = "1.2.0", A0 = "1.7.35", Ki = " ext. ", x0 = /^\d+$/, ce = /* @__PURE__ */ (function() {
13610
13619
  function e(t) {
13611
13620
  cn(this, e), md(t), this.metadata = t, yd.call(this, t);
13612
13621
  }
@@ -13665,7 +13674,7 @@ var I0 = "1.2.0", T0 = "1.7.35", Ki = " ext. ", A0 = /^\d+$/, ce = /* @__PURE__
13665
13674
  {
13666
13675
  key: "selectNumberingPlan",
13667
13676
  value: function(r, n) {
13668
- if (r && A0.test(r) && (n = r, r = null), r && r !== "001") {
13677
+ if (r && x0.test(r) && (n = r, r = null), r && r !== "001") {
13669
13678
  if (!this.hasCountry(r)) throw new Error("Unknown country: ".concat(r));
13670
13679
  this.numberingPlan = new Yi(this.getCountryMetadata(r), this);
13671
13680
  } else if (n) {
@@ -13850,7 +13859,7 @@ var I0 = "1.2.0", T0 = "1.7.35", Ki = " ext. ", A0 = /^\d+$/, ce = /* @__PURE__
13850
13859
  value: function() {
13851
13860
  var r = this;
13852
13861
  return (this._getFormats(this.metadata) || this._getFormats(this.getDefaultCountryMetadataForRegion()) || []).map(function(n) {
13853
- return new x0(n, r);
13862
+ return new M0(n, r);
13854
13863
  });
13855
13864
  }
13856
13865
  },
@@ -13933,7 +13942,7 @@ var I0 = "1.2.0", T0 = "1.7.35", Ki = " ext. ", A0 = /^\d+$/, ce = /* @__PURE__
13933
13942
  }
13934
13943
  }
13935
13944
  ]);
13936
- })(), x0 = /* @__PURE__ */ (function() {
13945
+ })(), M0 = /* @__PURE__ */ (function() {
13937
13946
  function e(t, r) {
13938
13947
  cn(this, e), this._format = t, this.metadata = r;
13939
13948
  }
@@ -13977,7 +13986,7 @@ var I0 = "1.2.0", T0 = "1.7.35", Ki = " ext. ", A0 = /^\d+$/, ce = /* @__PURE__
13977
13986
  {
13978
13987
  key: "usesNationalPrefix",
13979
13988
  value: function() {
13980
- return !!(this.nationalPrefixFormattingRule() && !M0.test(this.nationalPrefixFormattingRule()));
13989
+ return !!(this.nationalPrefixFormattingRule() && !k0.test(this.nationalPrefixFormattingRule()));
13981
13990
  }
13982
13991
  },
13983
13992
  {
@@ -13987,7 +13996,7 @@ var I0 = "1.2.0", T0 = "1.7.35", Ki = " ext. ", A0 = /^\d+$/, ce = /* @__PURE__
13987
13996
  }
13988
13997
  }
13989
13998
  ]);
13990
- })(), M0 = /^\(?\$1\)?$/, D0 = /* @__PURE__ */ (function() {
13999
+ })(), k0 = /^\(?\$1\)?$/, D0 = /* @__PURE__ */ (function() {
13991
14000
  function e(t, r) {
13992
14001
  cn(this, e), this.type = t, this.metadata = r;
13993
14002
  }
@@ -14030,9 +14039,9 @@ function Zi(e, t) {
14030
14039
  }
14031
14040
  function md(e) {
14032
14041
  if (!e) throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");
14033
- if (!nt(e) || !nt(e.countries)) throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(nt(e) ? "an object of shape: { " + Object.keys(e).join(", ") + " }" : "a " + k0(e) + ": " + e, "."));
14042
+ if (!nt(e) || !nt(e.countries)) throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(nt(e) ? "an object of shape: { " + Object.keys(e).join(", ") + " }" : "a " + R0(e) + ": " + e, "."));
14034
14043
  }
14035
- var k0 = function(t) {
14044
+ var R0 = function(t) {
14036
14045
  return bt(t);
14037
14046
  };
14038
14047
  function Je(e, t) {
@@ -14044,12 +14053,12 @@ function hd(e, t) {
14044
14053
  }
14045
14054
  function yd(e) {
14046
14055
  var t = e.version;
14047
- typeof t == "number" ? (this.v1 = t === 1, this.v2 = t === 2, this.v3 = t === 3, this.v4 = t === 4) : t ? Hi(t, I0) === -1 ? this.v2 = !0 : Hi(t, T0) === -1 ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0;
14056
+ typeof t == "number" ? (this.v1 = t === 1, this.v2 = t === 2, this.v3 = t === 3, this.v4 = t === 4) : t ? Hi(t, T0) === -1 ? this.v2 = !0 : Hi(t, A0) === -1 ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0;
14048
14057
  }
14049
- function R0(e, t) {
14058
+ function F0(e, t) {
14050
14059
  var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
14051
14060
  if (r) return (r = r.call(e)).next.bind(r);
14052
- if (Array.isArray(e) || (r = F0(e)) || t && e && typeof e.length == "number") {
14061
+ if (Array.isArray(e) || (r = j0(e)) || t && e && typeof e.length == "number") {
14053
14062
  r && (e = r);
14054
14063
  var n = 0;
14055
14064
  return function() {
@@ -14062,7 +14071,7 @@ function R0(e, t) {
14062
14071
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
14063
14072
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
14064
14073
  }
14065
- function F0(e, t) {
14074
+ function j0(e, t) {
14066
14075
  if (e) {
14067
14076
  if (typeof e == "string") return Xi(e, t);
14068
14077
  var r = {}.toString.call(e).slice(8, -1);
@@ -14074,8 +14083,8 @@ function Xi(e, t) {
14074
14083
  for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
14075
14084
  return n;
14076
14085
  }
14077
- function j0(e, t) {
14078
- for (var r = e.slice(), n = R0(t), a; !(a = n()).done; ) {
14086
+ function L0(e, t) {
14087
+ for (var r = e.slice(), n = F0(t), a; !(a = n()).done; ) {
14079
14088
  var i = a.value;
14080
14089
  e.indexOf(i) < 0 && r.push(i);
14081
14090
  }
@@ -14093,12 +14102,12 @@ function vd(e, t, r, n) {
14093
14102
  if (r === "FIXED_LINE_OR_MOBILE") {
14094
14103
  if (!n.type("FIXED_LINE")) return vd(e, t, "MOBILE", n);
14095
14104
  var o = n.type("MOBILE");
14096
- o && (i = j0(i, o.possibleLengths()));
14105
+ o && (i = L0(i, o.possibleLengths()));
14097
14106
  } else if (r && !a) return "INVALID_LENGTH";
14098
14107
  var s = e.length, d = i[0];
14099
14108
  return d === s ? "IS_POSSIBLE" : d > s ? "TOO_SHORT" : i[i.length - 1] < s ? "TOO_LONG" : i.indexOf(s, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
14100
14109
  }
14101
- function L0(e, t, r) {
14110
+ function B0(e, t, r) {
14102
14111
  if (t === void 0 && (t = {}), r = new ce(r), t.v2) {
14103
14112
  if (!e.countryCallingCode) throw new Error("Invalid phone number object passed");
14104
14113
  r.selectNumberingPlan(e.countryCallingCode);
@@ -14122,10 +14131,10 @@ function bd(e, t, r) {
14122
14131
  function He(e, t) {
14123
14132
  return e = e || "", new RegExp("^(?:" + t + ")$").test(e);
14124
14133
  }
14125
- function B0(e, t) {
14134
+ function U0(e, t) {
14126
14135
  var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
14127
14136
  if (r) return (r = r.call(e)).next.bind(r);
14128
- if (Array.isArray(e) || (r = U0(e)) || t && e && typeof e.length == "number") {
14137
+ if (Array.isArray(e) || (r = V0(e)) || t && e && typeof e.length == "number") {
14129
14138
  r && (e = r);
14130
14139
  var n = 0;
14131
14140
  return function() {
@@ -14138,7 +14147,7 @@ function B0(e, t) {
14138
14147
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
14139
14148
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
14140
14149
  }
14141
- function U0(e, t) {
14150
+ function V0(e, t) {
14142
14151
  if (e) {
14143
14152
  if (typeof e == "string") return Ji(e, t);
14144
14153
  var r = {}.toString.call(e).slice(8, -1);
@@ -14150,7 +14159,7 @@ function Ji(e, t) {
14150
14159
  for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
14151
14160
  return n;
14152
14161
  }
14153
- var V0 = [
14162
+ var G0 = [
14154
14163
  "MOBILE",
14155
14164
  "PREMIUM_RATE",
14156
14165
  "TOLL_FREE",
@@ -14168,7 +14177,7 @@ function Ma(e, t, r) {
14168
14177
  if (He(n, r.nationalNumberPattern())) {
14169
14178
  if (In(n, "FIXED_LINE", r))
14170
14179
  return r.type("MOBILE") && r.type("MOBILE").pattern() === "" || !r.type("MOBILE") || In(n, "MOBILE", r) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
14171
- for (var a = B0(V0), i; !(i = a()).done; ) {
14180
+ for (var a = U0(G0), i; !(i = a()).done; ) {
14172
14181
  var o = i.value;
14173
14182
  if (In(n, o, r)) return o;
14174
14183
  }
@@ -14179,20 +14188,20 @@ function In(e, t, r) {
14179
14188
  var n = r.type(t);
14180
14189
  return !n || !n.pattern() || n.possibleLengths() && n.possibleLengths().indexOf(e.length) < 0 ? !1 : He(e, n.pattern());
14181
14190
  }
14182
- function G0(e, t, r) {
14191
+ function W0(e, t, r) {
14183
14192
  return t = t || {}, r = new ce(r), r.selectNumberingPlan(e.country, e.countryCallingCode), r.hasTypes() ? Ma(e, t, r.metadata) !== void 0 : He(t.v2 ? e.nationalNumber : e.phone, r.nationalNumberPattern());
14184
14193
  }
14185
- function W0(e, t, r) {
14194
+ function z0(e, t, r) {
14186
14195
  var n = new ce(r).getCountryCodesForCallingCode(e);
14187
14196
  return n ? n.filter(function(a) {
14188
- return z0(t, a, r);
14197
+ return H0(t, a, r);
14189
14198
  }) : [];
14190
14199
  }
14191
- function z0(e, t, r) {
14200
+ function H0(e, t, r) {
14192
14201
  var n = new ce(r);
14193
14202
  return n.selectNumberingPlan(t), n.numberingPlan.possibleLengths().indexOf(e.length) >= 0;
14194
14203
  }
14195
- var Se = "0-90-9٠-٩۰-۹", H0 = "-‐-―−ー-", q0 = "//", K0 = "..", Y0 = "  ­​⁠ ", Z0 = "()()[]\\[\\]", X0 = "~⁓∼~", ke = "".concat(H0).concat(q0).concat(K0).concat(Y0).concat(Z0).concat(X0), pn = "++", J0 = new RegExp("([" + Se + "])");
14204
+ var Se = "0-90-9٠-٩۰-۹", q0 = "-‐-―−ー-", K0 = "//", Y0 = "..", Z0 = "  ­​⁠ ", X0 = "()()[]\\[\\]", J0 = "~⁓∼~", De = "".concat(q0).concat(K0).concat(Y0).concat(Z0).concat(X0).concat(J0), pn = "++", Q0 = new RegExp("([" + Se + "])");
14196
14205
  function $d(e, t, r, n) {
14197
14206
  if (t) {
14198
14207
  var a = new ce(n);
@@ -14200,7 +14209,7 @@ function $d(e, t, r, n) {
14200
14209
  var i = new RegExp(a.IDDPrefix());
14201
14210
  if (e.search(i) === 0) {
14202
14211
  e = e.slice(e.match(i)[0].length);
14203
- var o = e.match(J0);
14212
+ var o = e.match(Q0);
14204
14213
  if (!(o && o[1] != null && o[1].length > 0 && o[1] === "0"))
14205
14214
  return e;
14206
14215
  }
@@ -14231,10 +14240,10 @@ function Jn(e, t) {
14231
14240
  }
14232
14241
  return { nationalNumber: e };
14233
14242
  }
14234
- function Q0(e, t) {
14243
+ function ep(e, t) {
14235
14244
  var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
14236
14245
  if (r) return (r = r.call(e)).next.bind(r);
14237
- if (Array.isArray(e) || (r = ep(e)) || t && e && typeof e.length == "number") {
14246
+ if (Array.isArray(e) || (r = tp(e)) || t && e && typeof e.length == "number") {
14238
14247
  r && (e = r);
14239
14248
  var n = 0;
14240
14249
  return function() {
@@ -14247,7 +14256,7 @@ function Q0(e, t) {
14247
14256
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
14248
14257
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
14249
14258
  }
14250
- function ep(e, t) {
14259
+ function tp(e, t) {
14251
14260
  if (e) {
14252
14261
  if (typeof e == "string") return Qi(e, t);
14253
14262
  var r = {}.toString.call(e).slice(8, -1);
@@ -14262,7 +14271,7 @@ function Qi(e, t) {
14262
14271
  function gd(e, t) {
14263
14272
  var r = t.countries, n = t.metadata;
14264
14273
  n = new ce(n);
14265
- for (var a = Q0(r), i; !(i = a()).done; ) {
14274
+ for (var a = ep(r), i; !(i = a()).done; ) {
14266
14275
  var o = i.value;
14267
14276
  if (n.selectNumberingPlan(o), n.leadingDigits()) {
14268
14277
  if (e && e.search(n.leadingDigits()) === 0) return o;
@@ -14272,10 +14281,10 @@ function gd(e, t) {
14272
14281
  }, void 0, n.metadata)) return o;
14273
14282
  }
14274
14283
  }
14275
- var tp = !1;
14276
- function Da(e, t) {
14284
+ var rp = !1;
14285
+ function ka(e, t) {
14277
14286
  var r = t.nationalNumber, n = t.metadata;
14278
- if (tp && n.isNonGeographicCallingCode(e))
14287
+ if (rp && n.isNonGeographicCallingCode(e))
14279
14288
  return "001";
14280
14289
  var a = n.getCountryCodesForCallingCode(e);
14281
14290
  if (a)
@@ -14287,11 +14296,11 @@ function Da(e, t) {
14287
14296
  function Qn(e, t, r) {
14288
14297
  var n = Jn(e, r), a = n.carrierCode, i = n.nationalNumber;
14289
14298
  if (i !== e) {
14290
- if (!rp(e, i, r)) return { nationalNumber: e };
14291
- if (r.numberingPlan.possibleLengths() && (t || (t = Da(r.numberingPlan.callingCode(), {
14299
+ if (!np(e, i, r)) return { nationalNumber: e };
14300
+ if (r.numberingPlan.possibleLengths() && (t || (t = ka(r.numberingPlan.callingCode(), {
14292
14301
  nationalNumber: i,
14293
14302
  metadata: r
14294
- })), !np(i, t, r)))
14303
+ })), !ap(i, t, r)))
14295
14304
  return { nationalNumber: e };
14296
14305
  }
14297
14306
  return {
@@ -14299,10 +14308,10 @@ function Qn(e, t, r) {
14299
14308
  carrierCode: a
14300
14309
  };
14301
14310
  }
14302
- function rp(e, t, r) {
14311
+ function np(e, t, r) {
14303
14312
  return !(He(e, r.nationalNumberPattern()) && !He(t, r.nationalNumberPattern()));
14304
14313
  }
14305
- function np(e, t, r) {
14314
+ function ap(e, t, r) {
14306
14315
  switch (fn(e, t, r)) {
14307
14316
  case "TOO_SHORT":
14308
14317
  case "INVALID_LENGTH":
@@ -14323,7 +14332,7 @@ function Nd(e, t, r, n, a) {
14323
14332
  }
14324
14333
  return { number: e };
14325
14334
  }
14326
- function ka(e, t, r, n, a) {
14335
+ function Da(e, t, r, n, a) {
14327
14336
  if (!e) return {};
14328
14337
  var i;
14329
14338
  if (e[0] !== "+") {
@@ -14357,7 +14366,7 @@ function ka(e, t, r, n, a) {
14357
14366
  return {};
14358
14367
  }
14359
14368
  function Cd(e) {
14360
- return e.replace(new RegExp("[".concat(ke, "]+"), "g"), " ").trim();
14369
+ return e.replace(new RegExp("[".concat(De, "]+"), "g"), " ").trim();
14361
14370
  }
14362
14371
  var Sd = /(\$\d)/;
14363
14372
  function Pd(e, t, r) {
@@ -14366,27 +14375,27 @@ function Pd(e, t, r) {
14366
14375
  var i = e.replace(new RegExp(t.pattern()), n ? t.internationalFormat() : a && t.nationalPrefixFormattingRule() ? t.format().replace(Sd, t.nationalPrefixFormattingRule()) : t.format());
14367
14376
  return n ? Cd(i) : i;
14368
14377
  }
14369
- var ap = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
14370
- function ip(e, t, r) {
14378
+ var ip = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
14379
+ function op(e, t, r) {
14371
14380
  var n = new ce(r);
14372
14381
  if (n.selectNumberingPlan(e, t), n.defaultIDDPrefix()) return n.defaultIDDPrefix();
14373
- if (ap.test(n.IDDPrefix())) return n.IDDPrefix();
14382
+ if (ip.test(n.IDDPrefix())) return n.IDDPrefix();
14374
14383
  }
14375
- var op = ";ext=", lt = function(t) {
14384
+ var sp = ";ext=", lt = function(t) {
14376
14385
  return "([".concat(Se, "]{1,").concat(t, "})");
14377
14386
  };
14378
14387
  function wd(e) {
14379
- var t = "20", r = "15", n = "9", a = "6", i = "[  \\t,]*", o = "[:\\..]?[  \\t,-]*", s = "#?", d = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", l = "(?:[xx##~~]|int|int)", c = "[- ]+", f = "[  \\t]*", m = "(?:,{2}|;)", p = op + lt(t), h = i + d + o + lt(t) + s, v = i + l + o + lt(n) + s, y = c + lt(a) + "#", $ = f + m + o + lt(r) + s, S = f + "(?:,)+" + o + lt(n) + s;
14388
+ var t = "20", r = "15", n = "9", a = "6", i = "[  \\t,]*", o = "[:\\..]?[  \\t,-]*", s = "#?", d = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", l = "(?:[xx##~~]|int|int)", c = "[- ]+", f = "[  \\t]*", m = "(?:,{2}|;)", p = sp + lt(t), h = i + d + o + lt(t) + s, v = i + l + o + lt(n) + s, y = c + lt(a) + "#", $ = f + m + o + lt(r) + s, S = f + "(?:,)+" + o + lt(n) + s;
14380
14389
  return p + "|" + h + "|" + v + "|" + y + "|" + $ + "|" + S;
14381
14390
  }
14382
- var sp = "[" + Se + "]{2}", dp = "[" + pn + "]{0,1}(?:[" + ke + "]*[" + Se + "]){3,}[" + ke + Se + "]*", lp = new RegExp("^[" + pn + "]{0,1}(?:[" + ke + "]*[" + Se + "]){1,2}$", "i"), cp = dp + "(?:" + wd() + ")?", up = new RegExp("^" + sp + "$|^" + cp + "$", "i");
14383
- function fp(e) {
14384
- return e.length >= 2 && up.test(e);
14385
- }
14391
+ var dp = "[" + Se + "]{2}", lp = "[" + pn + "]{0,1}(?:[" + De + "]*[" + Se + "]){3,}[" + De + Se + "]*", cp = new RegExp("^[" + pn + "]{0,1}(?:[" + De + "]*[" + Se + "]){1,2}$", "i"), up = lp + "(?:" + wd() + ")?", fp = new RegExp("^" + dp + "$|^" + up + "$", "i");
14386
14392
  function pp(e) {
14387
- return lp.test(e);
14393
+ return e.length >= 2 && fp.test(e);
14388
14394
  }
14389
14395
  function mp(e) {
14396
+ return cp.test(e);
14397
+ }
14398
+ function hp(e) {
14390
14399
  var t = e.number, r = e.ext;
14391
14400
  if (!t) return "";
14392
14401
  if (t[0] !== "+") throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');
@@ -14395,8 +14404,8 @@ function mp(e) {
14395
14404
  var eo = { formatExtension: function(t, r, n) {
14396
14405
  return "".concat(t).concat(n.ext()).concat(r);
14397
14406
  } };
14398
- function hp(e, t, r, n) {
14399
- if (r ? r = bp({}, eo, r) : r = eo, n = new ce(n), e.country && e.country !== "001") {
14407
+ function yp(e, t, r, n) {
14408
+ if (r ? r = $p({}, eo, r) : r = eo, n = new ce(n), e.country && e.country !== "001") {
14400
14409
  if (!n.hasCountry(e.country)) throw new Error("Unknown country: ".concat(e.country));
14401
14410
  n.selectNumberingPlan(e.country);
14402
14411
  } else if (e.countryCallingCode) n.selectNumberingPlan(e.countryCallingCode);
@@ -14410,20 +14419,20 @@ function hp(e, t, r, n) {
14410
14419
  case "E.164":
14411
14420
  return "+".concat(a).concat(i);
14412
14421
  case "RFC3966":
14413
- return mp({
14422
+ return hp({
14414
14423
  number: "+".concat(a).concat(i),
14415
14424
  ext: e.ext
14416
14425
  });
14417
14426
  case "IDD":
14418
14427
  if (!r.fromCountry) return;
14419
- var s = vp(i, e.carrierCode, a, r.fromCountry, n);
14428
+ var s = bp(i, e.carrierCode, a, r.fromCountry, n);
14420
14429
  return s ? Tn(s, e.ext, n, r.formatExtension) : void 0;
14421
14430
  default:
14422
14431
  throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t, '"'));
14423
14432
  }
14424
14433
  }
14425
14434
  function Fr(e, t, r, n, a) {
14426
- var i = yp(n.formats(), e);
14435
+ var i = vp(n.formats(), e);
14427
14436
  return i ? Pd(e, i, {
14428
14437
  useInternationalFormat: r === "INTERNATIONAL",
14429
14438
  withNationalPrefix: !(i.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && a && a.nationalPrefix === !1),
@@ -14431,8 +14440,8 @@ function Fr(e, t, r, n, a) {
14431
14440
  metadata: n
14432
14441
  }) : e;
14433
14442
  }
14434
- function yp(e, t) {
14435
- return $p(e, function(r) {
14443
+ function vp(e, t) {
14444
+ return gp(e, function(r) {
14436
14445
  if (r.leadingDigitsPatterns().length > 0) {
14437
14446
  var n = r.leadingDigitsPatterns()[r.leadingDigitsPatterns().length - 1];
14438
14447
  if (t.search(n) !== 0) return !1;
@@ -14443,15 +14452,15 @@ function yp(e, t) {
14443
14452
  function Tn(e, t, r, n) {
14444
14453
  return t ? n(e, t, r) : e;
14445
14454
  }
14446
- function vp(e, t, r, n, a) {
14455
+ function bp(e, t, r, n, a) {
14447
14456
  if (Je(n, a.metadata) === r) {
14448
14457
  var i = Fr(e, t, "NATIONAL", a);
14449
14458
  return r === "1" ? r + " " + i : i;
14450
14459
  }
14451
- var o = ip(n, void 0, a.metadata);
14460
+ var o = op(n, void 0, a.metadata);
14452
14461
  if (o) return "".concat(o, " ").concat(r, " ").concat(Fr(e, null, "INTERNATIONAL", a));
14453
14462
  }
14454
- function bp() {
14463
+ function $p() {
14455
14464
  for (var e = 1, t = arguments.length, r = new Array(t), n = 0; n < t; n++) r[n] = arguments[n];
14456
14465
  for (; e < r.length; ) {
14457
14466
  if (r[e]) for (var a in r[e]) r[0][a] = r[e][a];
@@ -14459,7 +14468,7 @@ function bp() {
14459
14468
  }
14460
14469
  return r[0];
14461
14470
  }
14462
- function $p(e, t) {
14471
+ function gp(e, t) {
14463
14472
  for (var r = 0; r < e.length; ) {
14464
14473
  if (t(e[r])) return e[r];
14465
14474
  r++;
@@ -14487,14 +14496,14 @@ function ro(e) {
14487
14496
  for (var t = 1; t < arguments.length; t++) {
14488
14497
  var r = arguments[t] != null ? arguments[t] : {};
14489
14498
  t % 2 ? to(Object(r), !0).forEach(function(n) {
14490
- gp(e, n, r[n]);
14499
+ Np(e, n, r[n]);
14491
14500
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : to(Object(r)).forEach(function(n) {
14492
14501
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
14493
14502
  });
14494
14503
  }
14495
14504
  return e;
14496
14505
  }
14497
- function gp(e, t, r) {
14506
+ function Np(e, t, r) {
14498
14507
  return (t = _d(t)) in e ? Object.defineProperty(e, t, {
14499
14508
  value: r,
14500
14509
  enumerable: !0,
@@ -14502,7 +14511,7 @@ function gp(e, t, r) {
14502
14511
  writable: !0
14503
14512
  }) : e[t] = r, e;
14504
14513
  }
14505
- function Np(e, t) {
14514
+ function Cp(e, t) {
14506
14515
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
14507
14516
  }
14508
14517
  function no(e, t) {
@@ -14511,14 +14520,14 @@ function no(e, t) {
14511
14520
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, _d(n.key), n);
14512
14521
  }
14513
14522
  }
14514
- function Cp(e, t, r) {
14523
+ function Sp(e, t, r) {
14515
14524
  return t && no(e.prototype, t), r && no(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
14516
14525
  }
14517
14526
  function _d(e) {
14518
- var t = Sp(e, "string");
14527
+ var t = Pp(e, "string");
14519
14528
  return xt(t) == "symbol" ? t : t + "";
14520
14529
  }
14521
- function Sp(e, t) {
14530
+ function Pp(e, t) {
14522
14531
  if (xt(e) != "object" || !e) return e;
14523
14532
  var r = e[Symbol.toPrimitive];
14524
14533
  if (r !== void 0) {
@@ -14528,27 +14537,27 @@ function Sp(e, t) {
14528
14537
  }
14529
14538
  return (t === "string" ? String : Number)(e);
14530
14539
  }
14531
- var Pp = !1, Od = /* @__PURE__ */ (function() {
14540
+ var wp = !1, Od = /* @__PURE__ */ (function() {
14532
14541
  function e(t, r, n) {
14533
- if (Np(this, e), !t) throw new TypeError("First argument is required");
14542
+ if (Cp(this, e), !t) throw new TypeError("First argument is required");
14534
14543
  if (typeof t != "string") throw new TypeError("First argument must be a string");
14535
14544
  if (t[0] === "+" && !r) throw new TypeError("`metadata` argument not passed");
14536
14545
  if (nt(r) && nt(r.countries)) {
14537
14546
  n = r;
14538
14547
  var a = t;
14539
- if (!Op.test(a)) throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');
14540
- var i = ka(a, void 0, void 0, void 0, n), o = i.countryCallingCode;
14548
+ if (!Ep.test(a)) throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');
14549
+ var i = Da(a, void 0, void 0, void 0, n), o = i.countryCallingCode;
14541
14550
  if (r = i.number, t = o, !r) throw new Error("Invalid `number` argument passed: too short");
14542
14551
  }
14543
14552
  if (!r) throw new TypeError("`nationalNumber` argument is required");
14544
14553
  if (typeof r != "string") throw new TypeError("`nationalNumber` argument must be a string");
14545
14554
  md(n);
14546
- var s = _p(t, n), d = s.country, l = s.countryCallingCode;
14555
+ var s = Op(t, n), d = s.country, l = s.countryCallingCode;
14547
14556
  this.country = d, this.countryCallingCode = l, this.nationalNumber = r, this.number = "+" + this.countryCallingCode + this.nationalNumber, this.getMetadata = function() {
14548
14557
  return n;
14549
14558
  };
14550
14559
  }
14551
- return Cp(e, [
14560
+ return Sp(e, [
14552
14561
  {
14553
14562
  key: "setExt",
14554
14563
  value: function(r) {
@@ -14558,19 +14567,19 @@ var Pp = !1, Od = /* @__PURE__ */ (function() {
14558
14567
  {
14559
14568
  key: "getPossibleCountries",
14560
14569
  value: function() {
14561
- return this.country ? [this.country] : W0(this.countryCallingCode, this.nationalNumber, this.getMetadata());
14570
+ return this.country ? [this.country] : z0(this.countryCallingCode, this.nationalNumber, this.getMetadata());
14562
14571
  }
14563
14572
  },
14564
14573
  {
14565
14574
  key: "isPossible",
14566
14575
  value: function() {
14567
- return L0(this, { v2: !0 }, this.getMetadata());
14576
+ return B0(this, { v2: !0 }, this.getMetadata());
14568
14577
  }
14569
14578
  },
14570
14579
  {
14571
14580
  key: "isValid",
14572
14581
  value: function() {
14573
- return G0(this, { v2: !0 }, this.getMetadata());
14582
+ return W0(this, { v2: !0 }, this.getMetadata());
14574
14583
  }
14575
14584
  },
14576
14585
  {
@@ -14594,7 +14603,7 @@ var Pp = !1, Od = /* @__PURE__ */ (function() {
14594
14603
  {
14595
14604
  key: "format",
14596
14605
  value: function(r, n) {
14597
- return hp(this, r, n ? ro(ro({}, n), {}, { v2: !0 }) : { v2: !0 }, this.getMetadata());
14606
+ return yp(this, r, n ? ro(ro({}, n), {}, { v2: !0 }) : { v2: !0 }, this.getMetadata());
14598
14607
  }
14599
14608
  },
14600
14609
  {
@@ -14616,17 +14625,17 @@ var Pp = !1, Od = /* @__PURE__ */ (function() {
14616
14625
  }
14617
14626
  }
14618
14627
  ]);
14619
- })(), wp = function(t) {
14628
+ })(), _p = function(t) {
14620
14629
  return /^[A-Z]{2}$/.test(t);
14621
14630
  };
14622
- function _p(e, t) {
14631
+ function Op(e, t) {
14623
14632
  var r, n, a = new ce(t);
14624
- return wp(e) ? (r = e, a.selectNumberingPlan(r), n = a.countryCallingCode()) : (n = e, Pp && a.isNonGeographicCallingCode(n) && (r = "001")), {
14633
+ return _p(e) ? (r = e, a.selectNumberingPlan(r), n = a.countryCallingCode()) : (n = e, wp && a.isNonGeographicCallingCode(n) && (r = "001")), {
14625
14634
  country: r,
14626
14635
  countryCallingCode: n
14627
14636
  };
14628
14637
  }
14629
- var Op = /^\+\d+$/;
14638
+ var Ep = /^\+\d+$/;
14630
14639
  function $t(e) {
14631
14640
  "@babel/helpers - typeof";
14632
14641
  return $t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
@@ -14638,17 +14647,17 @@ function $t(e) {
14638
14647
  function ao(e, t) {
14639
14648
  for (var r = 0; r < t.length; r++) {
14640
14649
  var n = t[r];
14641
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Ip(n.key), n);
14650
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Tp(n.key), n);
14642
14651
  }
14643
14652
  }
14644
- function Ep(e, t, r) {
14653
+ function Ip(e, t, r) {
14645
14654
  return t && ao(e.prototype, t), r && ao(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
14646
14655
  }
14647
- function Ip(e) {
14648
- var t = Tp(e, "string");
14656
+ function Tp(e) {
14657
+ var t = Ap(e, "string");
14649
14658
  return $t(t) == "symbol" ? t : t + "";
14650
14659
  }
14651
- function Tp(e, t) {
14660
+ function Ap(e, t) {
14652
14661
  if ($t(e) != "object" || !e) return e;
14653
14662
  var r = e[Symbol.toPrimitive];
14654
14663
  if (r !== void 0) {
@@ -14658,13 +14667,13 @@ function Tp(e, t) {
14658
14667
  }
14659
14668
  return (t === "string" ? String : Number)(e);
14660
14669
  }
14661
- function Ap(e, t) {
14670
+ function xp(e, t) {
14662
14671
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
14663
14672
  }
14664
- function xp(e, t, r) {
14665
- return t = Dt(t), Mp(e, Ra() ? Reflect.construct(t, r || [], Dt(e).constructor) : t.apply(e, r));
14673
+ function Mp(e, t, r) {
14674
+ return t = kt(t), kp(e, Ra() ? Reflect.construct(t, r || [], kt(e).constructor) : t.apply(e, r));
14666
14675
  }
14667
- function Mp(e, t) {
14676
+ function kp(e, t) {
14668
14677
  if (t && ($t(t) == "object" || typeof t == "function")) return t;
14669
14678
  if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
14670
14679
  return Dp(e);
@@ -14673,7 +14682,7 @@ function Dp(e) {
14673
14682
  if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
14674
14683
  return e;
14675
14684
  }
14676
- function kp(e, t) {
14685
+ function Rp(e, t) {
14677
14686
  if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
14678
14687
  e.prototype = Object.create(t && t.prototype, { constructor: {
14679
14688
  value: e,
@@ -14684,14 +14693,14 @@ function kp(e, t) {
14684
14693
  function ea(e) {
14685
14694
  var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
14686
14695
  return ea = function(n) {
14687
- if (n === null || !Fp(n)) return n;
14696
+ if (n === null || !jp(n)) return n;
14688
14697
  if (typeof n != "function") throw new TypeError("Super expression must either be null or a function");
14689
14698
  if (t !== void 0) {
14690
14699
  if (t.has(n)) return t.get(n);
14691
14700
  t.set(n, a);
14692
14701
  }
14693
14702
  function a() {
14694
- return Rp(n, arguments, Dt(this).constructor);
14703
+ return Fp(n, arguments, kt(this).constructor);
14695
14704
  }
14696
14705
  return a.prototype = Object.create(n.prototype, { constructor: {
14697
14706
  value: a,
@@ -14701,7 +14710,7 @@ function ea(e) {
14701
14710
  } }), Mt(a, n);
14702
14711
  }, ea(e);
14703
14712
  }
14704
- function Rp(e, t, r) {
14713
+ function Fp(e, t, r) {
14705
14714
  if (Ra()) return Reflect.construct.apply(null, arguments);
14706
14715
  var n = [null];
14707
14716
  n.push.apply(n, t);
@@ -14718,7 +14727,7 @@ function Ra() {
14718
14727
  return !!e;
14719
14728
  })();
14720
14729
  }
14721
- function Fp(e) {
14730
+ function jp(e) {
14722
14731
  try {
14723
14732
  return Function.toString.call(e).indexOf("[native code]") !== -1;
14724
14733
  } catch {
@@ -14730,19 +14739,19 @@ function Mt(e, t) {
14730
14739
  return r.__proto__ = n, r;
14731
14740
  }, Mt(e, t);
14732
14741
  }
14733
- function Dt(e) {
14734
- return Dt = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
14742
+ function kt(e) {
14743
+ return kt = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
14735
14744
  return t.__proto__ || Object.getPrototypeOf(t);
14736
- }, Dt(e);
14745
+ }, kt(e);
14737
14746
  }
14738
14747
  var Ve = /* @__PURE__ */ (function(e) {
14739
14748
  function t(r) {
14740
14749
  var n;
14741
- return Ap(this, t), n = xp(this, t, [r]), Object.setPrototypeOf(n, t.prototype), n.name = n.constructor.name, n;
14750
+ return xp(this, t), n = Mp(this, t, [r]), Object.setPrototypeOf(n, t.prototype), n.name = n.constructor.name, n;
14742
14751
  }
14743
- return kp(t, e), Ep(t);
14752
+ return Rp(t, e), Ip(t);
14744
14753
  })(/* @__PURE__ */ ea(Error)), io = new RegExp("(?:" + wd() + ")$", "i");
14745
- function jp(e) {
14754
+ function Lp(e) {
14746
14755
  var t = e.search(io);
14747
14756
  if (t < 0) return {};
14748
14757
  for (var r = e.slice(0, t), n = e.match(io), a = 1; a < n.length; ) {
@@ -14753,10 +14762,10 @@ function jp(e) {
14753
14762
  a++;
14754
14763
  }
14755
14764
  }
14756
- function Lp(e, t) {
14765
+ function Bp(e, t) {
14757
14766
  var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
14758
14767
  if (r) return (r = r.call(e)).next.bind(r);
14759
- if (Array.isArray(e) || (r = Bp(e)) || t && e && typeof e.length == "number") {
14768
+ if (Array.isArray(e) || (r = Up(e)) || t && e && typeof e.length == "number") {
14760
14769
  r && (e = r);
14761
14770
  var n = 0;
14762
14771
  return function() {
@@ -14769,7 +14778,7 @@ function Lp(e, t) {
14769
14778
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
14770
14779
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
14771
14780
  }
14772
- function Bp(e, t) {
14781
+ function Up(e, t) {
14773
14782
  if (e) {
14774
14783
  if (typeof e == "string") return oo(e, t);
14775
14784
  var r = {}.toString.call(e).slice(8, -1);
@@ -14781,7 +14790,7 @@ function oo(e, t) {
14781
14790
  for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
14782
14791
  return n;
14783
14792
  }
14784
- var Up = {
14793
+ var Vp = {
14785
14794
  0: "0",
14786
14795
  1: "1",
14787
14796
  2: "2",
@@ -14824,19 +14833,19 @@ var Up = {
14824
14833
  "۹": "9"
14825
14834
  };
14826
14835
  function Ed(e) {
14827
- return Up[e];
14836
+ return Vp[e];
14828
14837
  }
14829
14838
  function jr(e) {
14830
- for (var t = "", r = Lp(e.split("")), n; !(n = r()).done; ) {
14839
+ for (var t = "", r = Bp(e.split("")), n; !(n = r()).done; ) {
14831
14840
  var a = n.value, i = Ed(a);
14832
14841
  i && (t += i);
14833
14842
  }
14834
14843
  return t;
14835
14844
  }
14836
- function Vp(e, t) {
14845
+ function Gp(e, t) {
14837
14846
  var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
14838
14847
  if (r) return (r = r.call(e)).next.bind(r);
14839
- if (Array.isArray(e) || (r = Gp(e)) || t && e && typeof e.length == "number") {
14848
+ if (Array.isArray(e) || (r = Wp(e)) || t && e && typeof e.length == "number") {
14840
14849
  r && (e = r);
14841
14850
  var n = 0;
14842
14851
  return function() {
@@ -14849,7 +14858,7 @@ function Vp(e, t) {
14849
14858
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
14850
14859
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
14851
14860
  }
14852
- function Gp(e, t) {
14861
+ function Wp(e, t) {
14853
14862
  if (e) {
14854
14863
  if (typeof e == "string") return so(e, t);
14855
14864
  var r = {}.toString.call(e).slice(8, -1);
@@ -14862,7 +14871,7 @@ function so(e, t) {
14862
14871
  return n;
14863
14872
  }
14864
14873
  function ta(e) {
14865
- for (var t = "", r = Vp(e.split("")), n; !(n = r()).done; ) {
14874
+ for (var t = "", r = Gp(e.split("")), n; !(n = r()).done; ) {
14866
14875
  var a = n.value;
14867
14876
  t += Id(a, t) || "";
14868
14877
  }
@@ -14878,8 +14887,8 @@ function Id(e, t, r) {
14878
14887
  }
14879
14888
  return Ed(e);
14880
14889
  }
14881
- var lo = "([" + Se + "]|[\\-\\.\\(\\)]?)", Wp = "^\\+" + lo + "*[" + Se + "]" + lo + "*$", zp = new RegExp(Wp, "g"), ra = Se, Hp = "[" + ra + "]+((\\-)*[" + ra + "])*", qp = "[a-zA-Z]+((\\-)*[" + ra + "])*", Kp = "^(" + Hp + "\\.)*" + qp + "\\.?$", Yp = new RegExp(Kp, "g"), co = "tel:", na = ";phone-context=", Zp = ";isub=";
14882
- function Xp(e) {
14890
+ var lo = "([" + Se + "]|[\\-\\.\\(\\)]?)", zp = "^\\+" + lo + "*[" + Se + "]" + lo + "*$", Hp = new RegExp(zp, "g"), ra = Se, qp = "[" + ra + "]+((\\-)*[" + ra + "])*", Kp = "[a-zA-Z]+((\\-)*[" + ra + "])*", Yp = "^(" + qp + "\\.)*" + Kp + "\\.?$", Zp = new RegExp(Yp, "g"), co = "tel:", na = ";phone-context=", Xp = ";isub=";
14891
+ function Jp(e) {
14883
14892
  var t = e.indexOf(na);
14884
14893
  if (t < 0) return null;
14885
14894
  var r = t + na.length;
@@ -14887,12 +14896,12 @@ function Xp(e) {
14887
14896
  var n = e.indexOf(";", r);
14888
14897
  return n >= 0 ? e.substring(r, n) : e.substring(r);
14889
14898
  }
14890
- function Jp(e) {
14891
- return e === null ? !0 : e.length === 0 ? !1 : zp.test(e) || Yp.test(e);
14899
+ function Qp(e) {
14900
+ return e === null ? !0 : e.length === 0 ? !1 : Hp.test(e) || Zp.test(e);
14892
14901
  }
14893
- function Qp(e, t) {
14894
- var r = t.extractFormattedPhoneNumber, n = Xp(e);
14895
- if (!Jp(n)) throw new Ve("NOT_A_NUMBER");
14902
+ function e2(e, t) {
14903
+ var r = t.extractFormattedPhoneNumber, n = Jp(e);
14904
+ if (!Qp(n)) throw new Ve("NOT_A_NUMBER");
14896
14905
  var a;
14897
14906
  if (n === null) a = r(e) || "";
14898
14907
  else {
@@ -14902,20 +14911,20 @@ function Qp(e, t) {
14902
14911
  var s = e.indexOf(na);
14903
14912
  a += e.substring(o, s);
14904
14913
  }
14905
- var d = a.indexOf(Zp);
14914
+ var d = a.indexOf(Xp);
14906
14915
  if (d > 0 && (a = a.substring(0, d)), a !== "") return a;
14907
14916
  }
14908
- var e2 = 250, t2 = new RegExp("[" + pn + Se + "]"), r2 = new RegExp("[^" + Se + "#]+$"), n2 = !1;
14909
- function a2(e, t, r) {
14917
+ var t2 = 250, r2 = new RegExp("[" + pn + Se + "]"), n2 = new RegExp("[^" + Se + "#]+$"), a2 = !1;
14918
+ function i2(e, t, r) {
14910
14919
  if (t = t || {}, r = new ce(r), t.defaultCountry && !r.hasCountry(t.defaultCountry))
14911
14920
  throw t.v2 ? new Ve("INVALID_COUNTRY") : new Error("Unknown country: ".concat(t.defaultCountry));
14912
- var n = o2(e, t.v2, t.extract), a = n.number, i = n.ext, o = n.error;
14921
+ var n = s2(e, t.v2, t.extract), a = n.number, i = n.ext, o = n.error;
14913
14922
  if (!a) {
14914
14923
  if (t.v2)
14915
14924
  throw o === "TOO_SHORT" ? new Ve("TOO_SHORT") : new Ve("NOT_A_NUMBER");
14916
14925
  return {};
14917
14926
  }
14918
- var s = d2(a, t.defaultCountry, t.defaultCallingCode, r), d = s.country, l = s.nationalNumber, c = s.countryCallingCode, f = s.countryCallingCodeSource, m = s.carrierCode;
14927
+ var s = l2(a, t.defaultCountry, t.defaultCallingCode, r), d = s.country, l = s.nationalNumber, c = s.countryCallingCode, f = s.countryCallingCodeSource, m = s.carrierCode;
14919
14928
  if (!r.hasSelectedNumberingPlan()) {
14920
14929
  if (t.v2) throw new Ve("INVALID_COUNTRY");
14921
14930
  return {};
@@ -14941,48 +14950,48 @@ function a2(e, t, r) {
14941
14950
  possible: h ? !0 : !!(t.extended === !0 && r.possibleLengths() && bd(l, d, r)),
14942
14951
  phone: l,
14943
14952
  ext: i
14944
- } : h ? s2(d, l, i) : {};
14953
+ } : h ? d2(d, l, i) : {};
14945
14954
  }
14946
- function i2(e, t, r) {
14955
+ function o2(e, t, r) {
14947
14956
  if (e) {
14948
- if (e.length > e2) {
14957
+ if (e.length > t2) {
14949
14958
  if (r) throw new Ve("TOO_LONG");
14950
14959
  return;
14951
14960
  }
14952
14961
  if (t === !1) return e;
14953
- var n = e.search(t2);
14962
+ var n = e.search(r2);
14954
14963
  if (!(n < 0))
14955
- return e.slice(n).replace(r2, "");
14964
+ return e.slice(n).replace(n2, "");
14956
14965
  }
14957
14966
  }
14958
- function o2(e, t, r) {
14959
- var n = Qp(e, { extractFormattedPhoneNumber: function(o) {
14960
- return i2(o, r, t);
14967
+ function s2(e, t, r) {
14968
+ var n = e2(e, { extractFormattedPhoneNumber: function(o) {
14969
+ return o2(o, r, t);
14961
14970
  } });
14962
14971
  if (!n) return {};
14963
- if (!fp(n))
14964
- return pp(n) ? { error: "TOO_SHORT" } : {};
14965
- var a = jp(n);
14972
+ if (!pp(n))
14973
+ return mp(n) ? { error: "TOO_SHORT" } : {};
14974
+ var a = Lp(n);
14966
14975
  return a.ext ? a : { number: n };
14967
14976
  }
14968
- function s2(e, t, r) {
14977
+ function d2(e, t, r) {
14969
14978
  var n = {
14970
14979
  country: e,
14971
14980
  phone: t
14972
14981
  };
14973
14982
  return r && (n.ext = r), n;
14974
14983
  }
14975
- function d2(e, t, r, n) {
14976
- var a = ka(ta(e), void 0, t, r, n.metadata), i = a.countryCallingCodeSource, o = a.countryCallingCode, s = a.number, d;
14984
+ function l2(e, t, r, n) {
14985
+ var a = Da(ta(e), void 0, t, r, n.metadata), i = a.countryCallingCodeSource, o = a.countryCallingCode, s = a.number, d;
14977
14986
  if (o) n.selectNumberingPlan(o);
14978
14987
  else if (s && (t || r))
14979
- n.selectNumberingPlan(t, r), t ? d = t : n2 && n.isNonGeographicCallingCode(r) && (d = "001"), o = r || Je(t, n.metadata);
14988
+ n.selectNumberingPlan(t, r), t ? d = t : a2 && n.isNonGeographicCallingCode(r) && (d = "001"), o = r || Je(t, n.metadata);
14980
14989
  else return {};
14981
14990
  if (!s) return {
14982
14991
  countryCallingCodeSource: i,
14983
14992
  countryCallingCode: o
14984
14993
  };
14985
- var l = Qn(ta(s), d, n), c = l.nationalNumber, f = l.carrierCode, m = Da(o, {
14994
+ var l = Qn(ta(s), d, n), c = l.nationalNumber, f = l.carrierCode, m = ka(o, {
14986
14995
  nationalNumber: c,
14987
14996
  metadata: n
14988
14997
  });
@@ -14994,13 +15003,13 @@ function d2(e, t, r, n) {
14994
15003
  carrierCode: f
14995
15004
  };
14996
15005
  }
14997
- function kt(e) {
15006
+ function Dt(e) {
14998
15007
  "@babel/helpers - typeof";
14999
- return kt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
15008
+ return Dt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
15000
15009
  return typeof t;
15001
15010
  } : function(t) {
15002
15011
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
15003
- }, kt(e);
15012
+ }, Dt(e);
15004
15013
  }
15005
15014
  function uo(e, t) {
15006
15015
  var r = Object.keys(e);
@@ -15016,37 +15025,37 @@ function fo(e) {
15016
15025
  for (var t = 1; t < arguments.length; t++) {
15017
15026
  var r = arguments[t] != null ? arguments[t] : {};
15018
15027
  t % 2 ? uo(Object(r), !0).forEach(function(n) {
15019
- l2(e, n, r[n]);
15028
+ c2(e, n, r[n]);
15020
15029
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : uo(Object(r)).forEach(function(n) {
15021
15030
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
15022
15031
  });
15023
15032
  }
15024
15033
  return e;
15025
15034
  }
15026
- function l2(e, t, r) {
15027
- return (t = c2(t)) in e ? Object.defineProperty(e, t, {
15035
+ function c2(e, t, r) {
15036
+ return (t = u2(t)) in e ? Object.defineProperty(e, t, {
15028
15037
  value: r,
15029
15038
  enumerable: !0,
15030
15039
  configurable: !0,
15031
15040
  writable: !0
15032
15041
  }) : e[t] = r, e;
15033
15042
  }
15034
- function c2(e) {
15035
- var t = u2(e, "string");
15036
- return kt(t) == "symbol" ? t : t + "";
15043
+ function u2(e) {
15044
+ var t = f2(e, "string");
15045
+ return Dt(t) == "symbol" ? t : t + "";
15037
15046
  }
15038
- function u2(e, t) {
15039
- if (kt(e) != "object" || !e) return e;
15047
+ function f2(e, t) {
15048
+ if (Dt(e) != "object" || !e) return e;
15040
15049
  var r = e[Symbol.toPrimitive];
15041
15050
  if (r !== void 0) {
15042
15051
  var n = r.call(e, t || "default");
15043
- if (kt(n) != "object") return n;
15052
+ if (Dt(n) != "object") return n;
15044
15053
  throw new TypeError("@@toPrimitive must return a primitive value.");
15045
15054
  }
15046
15055
  return (t === "string" ? String : Number)(e);
15047
15056
  }
15048
- function f2(e, t, r) {
15049
- return a2(e, fo(fo({}, t), {}, { v2: !0 }), r);
15057
+ function p2(e, t, r) {
15058
+ return i2(e, fo(fo({}, t), {}, { v2: !0 }), r);
15050
15059
  }
15051
15060
  function Rt(e) {
15052
15061
  "@babel/helpers - typeof";
@@ -15066,30 +15075,30 @@ function po(e, t) {
15066
15075
  }
15067
15076
  return r;
15068
15077
  }
15069
- function p2(e) {
15078
+ function m2(e) {
15070
15079
  for (var t = 1; t < arguments.length; t++) {
15071
15080
  var r = arguments[t] != null ? arguments[t] : {};
15072
15081
  t % 2 ? po(Object(r), !0).forEach(function(n) {
15073
- m2(e, n, r[n]);
15082
+ h2(e, n, r[n]);
15074
15083
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : po(Object(r)).forEach(function(n) {
15075
15084
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
15076
15085
  });
15077
15086
  }
15078
15087
  return e;
15079
15088
  }
15080
- function m2(e, t, r) {
15081
- return (t = h2(t)) in e ? Object.defineProperty(e, t, {
15089
+ function h2(e, t, r) {
15090
+ return (t = y2(t)) in e ? Object.defineProperty(e, t, {
15082
15091
  value: r,
15083
15092
  enumerable: !0,
15084
15093
  configurable: !0,
15085
15094
  writable: !0
15086
15095
  }) : e[t] = r, e;
15087
15096
  }
15088
- function h2(e) {
15089
- var t = y2(e, "string");
15097
+ function y2(e) {
15098
+ var t = v2(e, "string");
15090
15099
  return Rt(t) == "symbol" ? t : t + "";
15091
15100
  }
15092
- function y2(e, t) {
15101
+ function v2(e, t) {
15093
15102
  if (Rt(e) != "object" || !e) return e;
15094
15103
  var r = e[Symbol.toPrimitive];
15095
15104
  if (r !== void 0) {
@@ -15099,14 +15108,14 @@ function y2(e, t) {
15099
15108
  }
15100
15109
  return (t === "string" ? String : Number)(e);
15101
15110
  }
15102
- function v2(e, t) {
15103
- return N2(e) || g2(e, t) || $2(e, t) || b2();
15111
+ function b2(e, t) {
15112
+ return C2(e) || N2(e, t) || g2(e, t) || $2();
15104
15113
  }
15105
- function b2() {
15114
+ function $2() {
15106
15115
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
15107
15116
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
15108
15117
  }
15109
- function $2(e, t) {
15118
+ function g2(e, t) {
15110
15119
  if (e) {
15111
15120
  if (typeof e == "string") return mo(e, t);
15112
15121
  var r = {}.toString.call(e).slice(8, -1);
@@ -15118,7 +15127,7 @@ function mo(e, t) {
15118
15127
  for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
15119
15128
  return n;
15120
15129
  }
15121
- function g2(e, t) {
15130
+ function N2(e, t) {
15122
15131
  var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
15123
15132
  if (r != null) {
15124
15133
  var n, a, i, o, s = [], d = !0, l = !1;
@@ -15139,15 +15148,15 @@ function g2(e, t) {
15139
15148
  return s;
15140
15149
  }
15141
15150
  }
15142
- function N2(e) {
15151
+ function C2(e) {
15143
15152
  if (Array.isArray(e)) return e;
15144
15153
  }
15145
15154
  function Td(e) {
15146
- var t = v2(Array.prototype.slice.call(e), 4), r = t[0], n = t[1], a = t[2], i = t[3], o, s, d;
15155
+ var t = b2(Array.prototype.slice.call(e), 4), r = t[0], n = t[1], a = t[2], i = t[3], o, s, d;
15147
15156
  if (typeof r == "string") o = r;
15148
15157
  else throw new TypeError("A text for parsing must be a string.");
15149
15158
  if (!n || typeof n == "string")
15150
- i ? (s = a, d = i) : (s = void 0, d = a), n && (s = p2({ defaultCountry: n }, s));
15159
+ i ? (s = a, d = i) : (s = void 0, d = a), n && (s = m2({ defaultCountry: n }, s));
15151
15160
  else if (nt(n)) a ? (s = n, d = a) : d = n;
15152
15161
  else throw new Error("Invalid second argument: ".concat(n));
15153
15162
  return {
@@ -15178,26 +15187,26 @@ function yo(e) {
15178
15187
  for (var t = 1; t < arguments.length; t++) {
15179
15188
  var r = arguments[t] != null ? arguments[t] : {};
15180
15189
  t % 2 ? ho(Object(r), !0).forEach(function(n) {
15181
- C2(e, n, r[n]);
15190
+ S2(e, n, r[n]);
15182
15191
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : ho(Object(r)).forEach(function(n) {
15183
15192
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
15184
15193
  });
15185
15194
  }
15186
15195
  return e;
15187
15196
  }
15188
- function C2(e, t, r) {
15189
- return (t = S2(t)) in e ? Object.defineProperty(e, t, {
15197
+ function S2(e, t, r) {
15198
+ return (t = P2(t)) in e ? Object.defineProperty(e, t, {
15190
15199
  value: r,
15191
15200
  enumerable: !0,
15192
15201
  configurable: !0,
15193
15202
  writable: !0
15194
15203
  }) : e[t] = r, e;
15195
15204
  }
15196
- function S2(e) {
15197
- var t = P2(e, "string");
15205
+ function P2(e) {
15206
+ var t = w2(e, "string");
15198
15207
  return Ft(t) == "symbol" ? t : t + "";
15199
15208
  }
15200
- function P2(e, t) {
15209
+ function w2(e, t) {
15201
15210
  if (Ft(e) != "object" || !e) return e;
15202
15211
  var r = e[Symbol.toPrimitive];
15203
15212
  if (r !== void 0) {
@@ -15210,13 +15219,13 @@ function P2(e, t) {
15210
15219
  function Ad(e, t, r) {
15211
15220
  t && t.defaultCountry && !hd(t.defaultCountry, r) && (t = yo(yo({}, t), {}, { defaultCountry: void 0 }));
15212
15221
  try {
15213
- return f2(e, t, r);
15222
+ return p2(e, t, r);
15214
15223
  } catch (n) {
15215
15224
  if (!(n instanceof Ve))
15216
15225
  throw n;
15217
15226
  }
15218
15227
  }
15219
- function w2() {
15228
+ function _2() {
15220
15229
  var e = Td(arguments), t = e.text, r = e.options, n = e.metadata;
15221
15230
  return Ad(t, r, n);
15222
15231
  }
@@ -15242,26 +15251,26 @@ function bo(e) {
15242
15251
  for (var t = 1; t < arguments.length; t++) {
15243
15252
  var r = arguments[t] != null ? arguments[t] : {};
15244
15253
  t % 2 ? vo(Object(r), !0).forEach(function(n) {
15245
- _2(e, n, r[n]);
15254
+ O2(e, n, r[n]);
15246
15255
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : vo(Object(r)).forEach(function(n) {
15247
15256
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
15248
15257
  });
15249
15258
  }
15250
15259
  return e;
15251
15260
  }
15252
- function _2(e, t, r) {
15253
- return (t = O2(t)) in e ? Object.defineProperty(e, t, {
15261
+ function O2(e, t, r) {
15262
+ return (t = E2(t)) in e ? Object.defineProperty(e, t, {
15254
15263
  value: r,
15255
15264
  enumerable: !0,
15256
15265
  configurable: !0,
15257
15266
  writable: !0
15258
15267
  }) : e[t] = r, e;
15259
15268
  }
15260
- function O2(e) {
15261
- var t = E2(e, "string");
15269
+ function E2(e) {
15270
+ var t = I2(e, "string");
15262
15271
  return jt(t) == "symbol" ? t : t + "";
15263
15272
  }
15264
- function E2(e, t) {
15273
+ function I2(e, t) {
15265
15274
  if (jt(e) != "object" || !e) return e;
15266
15275
  var r = e[Symbol.toPrimitive];
15267
15276
  if (r !== void 0) {
@@ -15271,7 +15280,7 @@ function E2(e, t) {
15271
15280
  }
15272
15281
  return (t === "string" ? String : Number)(e);
15273
15282
  }
15274
- function I2() {
15283
+ function T2() {
15275
15284
  var e = Td(arguments), t = e.text, r = e.options, n = e.metadata;
15276
15285
  r = bo(bo({}, r), {}, { extract: !1 });
15277
15286
  var a = Ad(t, r, n);
@@ -15285,23 +15294,23 @@ function Lt(e) {
15285
15294
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
15286
15295
  }, Lt(e);
15287
15296
  }
15288
- function T2(e, t) {
15297
+ function A2(e, t) {
15289
15298
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
15290
15299
  }
15291
15300
  function $o(e, t) {
15292
15301
  for (var r = 0; r < t.length; r++) {
15293
15302
  var n = t[r];
15294
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, x2(n.key), n);
15303
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, M2(n.key), n);
15295
15304
  }
15296
15305
  }
15297
- function A2(e, t, r) {
15306
+ function x2(e, t, r) {
15298
15307
  return t && $o(e.prototype, t), r && $o(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
15299
15308
  }
15300
- function x2(e) {
15301
- var t = M2(e, "string");
15309
+ function M2(e) {
15310
+ var t = k2(e, "string");
15302
15311
  return Lt(t) == "symbol" ? t : t + "";
15303
15312
  }
15304
- function M2(e, t) {
15313
+ function k2(e, t) {
15305
15314
  if (Lt(e) != "object" || !e) return e;
15306
15315
  var r = e[Symbol.toPrimitive];
15307
15316
  if (r !== void 0) {
@@ -15314,9 +15323,9 @@ function M2(e, t) {
15314
15323
  var D2 = /* @__PURE__ */ (function() {
15315
15324
  function e(t) {
15316
15325
  var r = t.onCountryChange, n = t.onCallingCodeChange;
15317
- T2(this, e), this.onCountryChange = r, this.onCallingCodeChange = n;
15326
+ A2(this, e), this.onCountryChange = r, this.onCallingCodeChange = n;
15318
15327
  }
15319
- return A2(e, [
15328
+ return x2(e, [
15320
15329
  {
15321
15330
  key: "reset",
15322
15331
  value: function(r) {
@@ -15389,10 +15398,10 @@ var D2 = /* @__PURE__ */ (function() {
15389
15398
  }
15390
15399
  ]);
15391
15400
  })();
15392
- function k2(e, t) {
15401
+ function R2(e, t) {
15393
15402
  var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
15394
15403
  if (r) return (r = r.call(e)).next.bind(r);
15395
- if (Array.isArray(e) || (r = R2(e)) || t && e && typeof e.length == "number") {
15404
+ if (Array.isArray(e) || (r = F2(e)) || t && e && typeof e.length == "number") {
15396
15405
  r && (e = r);
15397
15406
  var n = 0;
15398
15407
  return function() {
@@ -15405,7 +15414,7 @@ function k2(e, t) {
15405
15414
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
15406
15415
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
15407
15416
  }
15408
- function R2(e, t) {
15417
+ function F2(e, t) {
15409
15418
  if (e) {
15410
15419
  if (typeof e == "string") return go(e, t);
15411
15420
  var r = {}.toString.call(e).slice(8, -1);
@@ -15425,9 +15434,9 @@ function $r(e, t) {
15425
15434
  return r + e;
15426
15435
  }
15427
15436
  function No(e, t) {
15428
- return e[t] === ")" && t++, F2(e.slice(0, t));
15437
+ return e[t] === ")" && t++, j2(e.slice(0, t));
15429
15438
  }
15430
- function F2(e) {
15439
+ function j2(e) {
15431
15440
  for (var t = [], r = 0; r < e.length; )
15432
15441
  e[r] === "(" ? t.push(r) : e[r] === ")" && t.pop(), r++;
15433
15442
  var n = 0, a = "";
@@ -15438,26 +15447,26 @@ function F2(e) {
15438
15447
  }
15439
15448
  return a;
15440
15449
  }
15441
- function j2(e, t, r) {
15442
- for (var n = k2(r.split("")), a; !(a = n()).done; ) {
15450
+ function L2(e, t, r) {
15451
+ for (var n = R2(r.split("")), a; !(a = n()).done; ) {
15443
15452
  var i = a.value;
15444
15453
  if (e.slice(t + 1).search(An) < 0) return;
15445
15454
  t = e.search(An), e = e.replace(An, i);
15446
15455
  }
15447
15456
  return [e, t];
15448
15457
  }
15449
- function L2(e, t, r) {
15458
+ function B2(e, t, r) {
15450
15459
  var n = r.metadata, a = r.shouldTryNationalPrefixFormattingRule, i = r.getSeparatorAfterNationalPrefix;
15451
- if (new RegExp("^(?:".concat(t.pattern(), ")$")).test(e.nationalSignificantNumber)) return U2(e, t, {
15460
+ if (new RegExp("^(?:".concat(t.pattern(), ")$")).test(e.nationalSignificantNumber)) return V2(e, t, {
15452
15461
  metadata: n,
15453
15462
  shouldTryNationalPrefixFormattingRule: a,
15454
15463
  getSeparatorAfterNationalPrefix: i
15455
15464
  });
15456
15465
  }
15457
- function B2(e, t, r) {
15466
+ function U2(e, t, r) {
15458
15467
  return fn(e, t, r) === "IS_POSSIBLE";
15459
15468
  }
15460
- function U2(e, t, r) {
15469
+ function V2(e, t, r) {
15461
15470
  var n = r.metadata, a = r.shouldTryNationalPrefixFormattingRule, i = r.getSeparatorAfterNationalPrefix;
15462
15471
  if (e.nationalSignificantNumber, e.international, e.nationalPrefix, e.carrierCode, a(t)) {
15463
15472
  var o = Co(e, t, {
@@ -15480,9 +15489,9 @@ function Co(e, t, r) {
15480
15489
  withNationalPrefix: a,
15481
15490
  metadata: n
15482
15491
  });
15483
- if (a || (e.nationalPrefix ? o = e.nationalPrefix + i(t) + o : e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix && (o = e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix + " " + o)), V2(o, e)) return o;
15492
+ if (a || (e.nationalPrefix ? o = e.nationalPrefix + i(t) + o : e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix && (o = e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix + " " + o)), G2(o, e)) return o;
15484
15493
  }
15485
- function V2(e, t) {
15494
+ function G2(e, t) {
15486
15495
  return jr(e) === t.getNationalDigits();
15487
15496
  }
15488
15497
  function Bt(e) {
@@ -15493,23 +15502,23 @@ function Bt(e) {
15493
15502
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
15494
15503
  }, Bt(e);
15495
15504
  }
15496
- function G2(e, t) {
15505
+ function W2(e, t) {
15497
15506
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
15498
15507
  }
15499
15508
  function So(e, t) {
15500
15509
  for (var r = 0; r < t.length; r++) {
15501
15510
  var n = t[r];
15502
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, z2(n.key), n);
15511
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, H2(n.key), n);
15503
15512
  }
15504
15513
  }
15505
- function W2(e, t, r) {
15514
+ function z2(e, t, r) {
15506
15515
  return t && So(e.prototype, t), r && So(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
15507
15516
  }
15508
- function z2(e) {
15509
- var t = H2(e, "string");
15517
+ function H2(e) {
15518
+ var t = q2(e, "string");
15510
15519
  return Bt(t) == "symbol" ? t : t + "";
15511
15520
  }
15512
- function H2(e, t) {
15521
+ function q2(e, t) {
15513
15522
  if (Bt(e) != "object" || !e) return e;
15514
15523
  var r = e[Symbol.toPrimitive];
15515
15524
  if (r !== void 0) {
@@ -15519,11 +15528,11 @@ function H2(e, t) {
15519
15528
  }
15520
15529
  return (t === "string" ? String : Number)(e);
15521
15530
  }
15522
- var q2 = /* @__PURE__ */ (function() {
15531
+ var K2 = /* @__PURE__ */ (function() {
15523
15532
  function e() {
15524
- G2(this, e);
15533
+ W2(this, e);
15525
15534
  }
15526
- return W2(e, [
15535
+ return z2(e, [
15527
15536
  {
15528
15537
  key: "parse",
15529
15538
  value: function(r) {
@@ -15562,9 +15571,9 @@ var q2 = /* @__PURE__ */ (function() {
15562
15571
  key: "parsePattern",
15563
15572
  value: function(r) {
15564
15573
  if (!r) throw new Error("Pattern is required");
15565
- var n = r.match(Z2);
15574
+ var n = r.match(X2);
15566
15575
  if (!n) {
15567
- if (Y2.test(r)) throw new Error("Illegal characters found in a pattern: ".concat(r));
15576
+ if (Z2.test(r)) throw new Error("Illegal characters found in a pattern: ".concat(r));
15568
15577
  this.getContext().instructions = this.getContext().instructions.concat(r.split(""));
15569
15578
  return;
15570
15579
  }
@@ -15600,7 +15609,7 @@ var q2 = /* @__PURE__ */ (function() {
15600
15609
  if (!this.getContext().oneOfSet) throw new Error('"]" operator must be preceded by "[" operator');
15601
15610
  this.endContext(), this.getContext().instructions.push({
15602
15611
  op: "[]",
15603
- args: K2(i)
15612
+ args: Y2(i)
15604
15613
  });
15605
15614
  break;
15606
15615
  /* istanbul ignore next */
@@ -15612,7 +15621,7 @@ var q2 = /* @__PURE__ */ (function() {
15612
15621
  }
15613
15622
  ]);
15614
15623
  })();
15615
- function K2(e) {
15624
+ function Y2(e) {
15616
15625
  for (var t = [], r = 0; r < e.length; ) {
15617
15626
  if (e[r] === "-") {
15618
15627
  if (r === 0 || r === e.length - 1) throw new Error("Couldn't parse a one-of set pattern: ".concat(e));
@@ -15623,14 +15632,14 @@ function K2(e) {
15623
15632
  }
15624
15633
  return t;
15625
15634
  }
15626
- var Y2 = /[\(\)\[\]\?\:\|]/, Z2 = new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");
15635
+ var Z2 = /[\(\)\[\]\?\:\|]/, X2 = new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");
15627
15636
  function xn(e) {
15628
15637
  return e.length === 1 ? e[0] : e;
15629
15638
  }
15630
15639
  function Po(e, t) {
15631
15640
  var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
15632
15641
  if (r) return (r = r.call(e)).next.bind(r);
15633
- if (Array.isArray(e) || (r = X2(e)) || t && e && typeof e.length == "number") {
15642
+ if (Array.isArray(e) || (r = J2(e)) || t && e && typeof e.length == "number") {
15634
15643
  r && (e = r);
15635
15644
  var n = 0;
15636
15645
  return function() {
@@ -15643,7 +15652,7 @@ function Po(e, t) {
15643
15652
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
15644
15653
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
15645
15654
  }
15646
- function X2(e, t) {
15655
+ function J2(e, t) {
15647
15656
  if (e) {
15648
15657
  if (typeof e == "string") return wo(e, t);
15649
15658
  var r = {}.toString.call(e).slice(8, -1);
@@ -15663,23 +15672,23 @@ function Ut(e) {
15663
15672
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
15664
15673
  }, Ut(e);
15665
15674
  }
15666
- function J2(e, t) {
15675
+ function Q2(e, t) {
15667
15676
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
15668
15677
  }
15669
15678
  function _o(e, t) {
15670
15679
  for (var r = 0; r < t.length; r++) {
15671
15680
  var n = t[r];
15672
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, em(n.key), n);
15681
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, tm(n.key), n);
15673
15682
  }
15674
15683
  }
15675
- function Q2(e, t, r) {
15684
+ function em(e, t, r) {
15676
15685
  return t && _o(e.prototype, t), r && _o(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
15677
15686
  }
15678
- function em(e) {
15679
- var t = tm(e, "string");
15687
+ function tm(e) {
15688
+ var t = rm(e, "string");
15680
15689
  return Ut(t) == "symbol" ? t : t + "";
15681
15690
  }
15682
- function tm(e, t) {
15691
+ function rm(e, t) {
15683
15692
  if (Ut(e) != "object" || !e) return e;
15684
15693
  var r = e[Symbol.toPrimitive];
15685
15694
  if (r !== void 0) {
@@ -15689,11 +15698,11 @@ function tm(e, t) {
15689
15698
  }
15690
15699
  return (t === "string" ? String : Number)(e);
15691
15700
  }
15692
- var rm = /* @__PURE__ */ (function() {
15701
+ var nm = /* @__PURE__ */ (function() {
15693
15702
  function e(t) {
15694
- J2(this, e), this.matchTree = new q2().parse(t);
15703
+ Q2(this, e), this.matchTree = new K2().parse(t);
15695
15704
  }
15696
- return Q2(e, [{
15705
+ return em(e, [{
15697
15706
  key: "match",
15698
15707
  value: function(r) {
15699
15708
  var n = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}).allowOverflow;
@@ -15783,7 +15792,7 @@ function Vt(e) {
15783
15792
  function Oo(e, t) {
15784
15793
  var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
15785
15794
  if (r) return (r = r.call(e)).next.bind(r);
15786
- if (Array.isArray(e) || (r = nm(e)) || t && e && typeof e.length == "number") {
15795
+ if (Array.isArray(e) || (r = am(e)) || t && e && typeof e.length == "number") {
15787
15796
  r && (e = r);
15788
15797
  var n = 0;
15789
15798
  return function() {
@@ -15796,7 +15805,7 @@ function Oo(e, t) {
15796
15805
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
15797
15806
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
15798
15807
  }
15799
- function nm(e, t) {
15808
+ function am(e, t) {
15800
15809
  if (e) {
15801
15810
  if (typeof e == "string") return Eo(e, t);
15802
15811
  var r = {}.toString.call(e).slice(8, -1);
@@ -15808,23 +15817,23 @@ function Eo(e, t) {
15808
15817
  for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
15809
15818
  return n;
15810
15819
  }
15811
- function am(e, t) {
15820
+ function im(e, t) {
15812
15821
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
15813
15822
  }
15814
15823
  function Io(e, t) {
15815
15824
  for (var r = 0; r < t.length; r++) {
15816
15825
  var n = t[r];
15817
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, om(n.key), n);
15826
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, sm(n.key), n);
15818
15827
  }
15819
15828
  }
15820
- function im(e, t, r) {
15829
+ function om(e, t, r) {
15821
15830
  return t && Io(e.prototype, t), r && Io(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
15822
15831
  }
15823
- function om(e) {
15824
- var t = sm(e, "string");
15832
+ function sm(e) {
15833
+ var t = dm(e, "string");
15825
15834
  return Vt(t) == "symbol" ? t : t + "";
15826
15835
  }
15827
- function sm(e, t) {
15836
+ function dm(e, t) {
15828
15837
  if (Vt(e) != "object" || !e) return e;
15829
15838
  var r = e[Symbol.toPrimitive];
15830
15839
  if (r !== void 0) {
@@ -15834,17 +15843,17 @@ function sm(e, t) {
15834
15843
  }
15835
15844
  return (t === "string" ? String : Number)(e);
15836
15845
  }
15837
- var ia = "9", dm = $r(ia, 15), lm = /[- ]/, Lr = !0, cm = Lr && function() {
15846
+ var ia = "9", lm = $r(ia, 15), cm = /[- ]/, Lr = !0, um = Lr && function() {
15838
15847
  return /\[([^\[\]])*\]/g;
15839
- }, um = Lr && function() {
15848
+ }, fm = Lr && function() {
15840
15849
  return /\d(?=[^,}][^,}])/g;
15841
- }, fm = new RegExp("[" + ke + "]*\\$1[" + ke + "]*(\\$\\d[" + ke + "]*)*$"), To = 3, pm = /* @__PURE__ */ (function() {
15850
+ }, pm = new RegExp("[" + De + "]*\\$1[" + De + "]*(\\$\\d[" + De + "]*)*$"), To = 3, mm = /* @__PURE__ */ (function() {
15842
15851
  function e(t) {
15843
15852
  t.state;
15844
15853
  var r = t.metadata;
15845
- am(this, e), this.metadata = r, this.resetFormat();
15854
+ im(this, e), this.metadata = r, this.resetFormat();
15846
15855
  }
15847
- return im(e, [
15856
+ return om(e, [
15848
15857
  {
15849
15858
  key: "resetFormat",
15850
15859
  value: function() {
@@ -15861,8 +15870,8 @@ var ia = "9", dm = $r(ia, 15), lm = /[- ]/, Lr = !0, cm = Lr && function() {
15861
15870
  key: "format",
15862
15871
  value: function(r, n) {
15863
15872
  var a = this;
15864
- if (B2(n.nationalSignificantNumber, n.country, this.metadata)) for (var i = Oo(this.matchingFormats), o; !(o = i()).done; ) {
15865
- var s = o.value, d = L2(n, s, {
15873
+ if (U2(n.nationalSignificantNumber, n.country, this.metadata)) for (var i = Oo(this.matchingFormats), o; !(o = i()).done; ) {
15874
+ var s = o.value, d = B2(n, s, {
15866
15875
  metadata: this.metadata,
15867
15876
  shouldTryNationalPrefixFormattingRule: function(c) {
15868
15877
  return a.shouldTryNationalPrefixFormattingRule(c, {
@@ -15910,7 +15919,7 @@ var ia = "9", dm = $r(ia, 15), lm = /[- ]/, Lr = !0, cm = Lr && function() {
15910
15919
  a = Math.min(a, i - 1);
15911
15920
  var o = r.leadingDigitsPatterns()[a];
15912
15921
  if (n.length < To) try {
15913
- return new rm(o).match(n, { allowOverflow: !0 }) !== void 0;
15922
+ return new nm(o).match(n, { allowOverflow: !0 }) !== void 0;
15914
15923
  } catch (s) {
15915
15924
  return console.error(s), !0;
15916
15925
  }
@@ -15928,7 +15937,7 @@ var ia = "9", dm = $r(ia, 15), lm = /[- ]/, Lr = !0, cm = Lr && function() {
15928
15937
  value: function(r) {
15929
15938
  for (var n = this, a = function() {
15930
15939
  var l = s.value;
15931
- return n.chosenFormat === l ? 0 : fm.test(n.getFormatFormat(l, r.international)) ? n.createTemplateForFormat(l, r) ? (n.chosenFormat = l, 0) : (n.matchingFormats = n.matchingFormats.filter(function(c) {
15940
+ return n.chosenFormat === l ? 0 : pm.test(n.getFormatFormat(l, r.international)) ? n.createTemplateForFormat(l, r) ? (n.chosenFormat = l, 0) : (n.matchingFormats = n.matchingFormats.filter(function(c) {
15932
15941
  return c !== l;
15933
15942
  }), 1) : 1;
15934
15943
  }, i, o = Oo(this.matchingFormats.slice()), s; !(s = o()).done && (i = a(), i !== 0); )
@@ -15949,7 +15958,7 @@ var ia = "9", dm = $r(ia, 15), lm = /[- ]/, Lr = !0, cm = Lr && function() {
15949
15958
  {
15950
15959
  key: "getSeparatorAfterNationalPrefix",
15951
15960
  value: function(r) {
15952
- return this.isNANP || r && r.nationalPrefixFormattingRule() && lm.test(r.nationalPrefixFormattingRule()) ? " " : "";
15961
+ return this.isNANP || r && r.nationalPrefixFormattingRule() && cm.test(r.nationalPrefixFormattingRule()) ? " " : "";
15953
15962
  }
15954
15963
  },
15955
15964
  {
@@ -15979,8 +15988,8 @@ var ia = "9", dm = $r(ia, 15), lm = /[- ]/, Lr = !0, cm = Lr && function() {
15979
15988
  key: "getTemplateForFormat",
15980
15989
  value: function(r, n) {
15981
15990
  var a = n.nationalSignificantNumber, i = n.international, o = n.nationalPrefix, s = n.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix, d = r.pattern();
15982
- Lr && (d = d.replace(cm(), "\\d").replace(um(), "\\d"));
15983
- var l = dm.match(d)[0];
15991
+ Lr && (d = d.replace(um(), "\\d").replace(fm(), "\\d"));
15992
+ var l = lm.match(d)[0];
15984
15993
  if (!(a.length > l.length)) {
15985
15994
  var c = new RegExp("^" + d + "$"), f = a.replace(/\d/g, ia);
15986
15995
  c.test(f) && (l = f);
@@ -16002,7 +16011,7 @@ var ia = "9", dm = $r(ia, 15), lm = /[- ]/, Lr = !0, cm = Lr && function() {
16002
16011
  {
16003
16012
  key: "formatNextNationalNumberDigits",
16004
16013
  value: function(r) {
16005
- var n = j2(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition, r);
16014
+ var n = L2(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition, r);
16006
16015
  if (!n) {
16007
16016
  this.resetFormat();
16008
16017
  return;
@@ -16031,13 +16040,13 @@ function Gt(e) {
16031
16040
  }, Gt(e);
16032
16041
  }
16033
16042
  function xd(e, t) {
16034
- return vm(e) || ym(e, t) || hm(e, t) || mm();
16043
+ return bm(e) || vm(e, t) || ym(e, t) || hm();
16035
16044
  }
16036
- function mm() {
16045
+ function hm() {
16037
16046
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
16038
16047
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
16039
16048
  }
16040
- function hm(e, t) {
16049
+ function ym(e, t) {
16041
16050
  if (e) {
16042
16051
  if (typeof e == "string") return Ao(e, t);
16043
16052
  var r = {}.toString.call(e).slice(8, -1);
@@ -16049,7 +16058,7 @@ function Ao(e, t) {
16049
16058
  for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
16050
16059
  return n;
16051
16060
  }
16052
- function ym(e, t) {
16061
+ function vm(e, t) {
16053
16062
  var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
16054
16063
  if (r != null) {
16055
16064
  var n, a, i, o, s = [], d = !0, l = !1;
@@ -16070,26 +16079,26 @@ function ym(e, t) {
16070
16079
  return s;
16071
16080
  }
16072
16081
  }
16073
- function vm(e) {
16082
+ function bm(e) {
16074
16083
  if (Array.isArray(e)) return e;
16075
16084
  }
16076
- function bm(e, t) {
16085
+ function $m(e, t) {
16077
16086
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
16078
16087
  }
16079
16088
  function xo(e, t) {
16080
16089
  for (var r = 0; r < t.length; r++) {
16081
16090
  var n = t[r];
16082
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, gm(n.key), n);
16091
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Nm(n.key), n);
16083
16092
  }
16084
16093
  }
16085
- function $m(e, t, r) {
16094
+ function gm(e, t, r) {
16086
16095
  return t && xo(e.prototype, t), r && xo(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
16087
16096
  }
16088
- function gm(e) {
16089
- var t = Nm(e, "string");
16097
+ function Nm(e) {
16098
+ var t = Cm(e, "string");
16090
16099
  return Gt(t) == "symbol" ? t : t + "";
16091
16100
  }
16092
- function Nm(e, t) {
16101
+ function Cm(e, t) {
16093
16102
  if (Gt(e) != "object" || !e) return e;
16094
16103
  var r = e[Symbol.toPrimitive];
16095
16104
  if (r !== void 0) {
@@ -16099,16 +16108,16 @@ function Nm(e, t) {
16099
16108
  }
16100
16109
  return (t === "string" ? String : Number)(e);
16101
16110
  }
16102
- var Cm = "[" + ke + Se + "]+", Sm = new RegExp("^" + Cm + "$", "i"), Pm = "(?:[" + pn + "][" + ke + Se + "]*|[" + ke + Se + "]+)", wm = new RegExp("[^" + ke + Se + "]+.*$"), _m = /[^\d\[\]]/, Om = /* @__PURE__ */ (function() {
16111
+ var Sm = "[" + De + Se + "]+", Pm = new RegExp("^" + Sm + "$", "i"), wm = "(?:[" + pn + "][" + De + Se + "]*|[" + De + Se + "]+)", _m = new RegExp("[^" + De + Se + "]+.*$"), Om = /[^\d\[\]]/, Em = /* @__PURE__ */ (function() {
16103
16112
  function e(t) {
16104
16113
  var r = t.defaultCountry, n = t.defaultCallingCode, a = t.metadata, i = t.onNationalSignificantNumberChange;
16105
- bm(this, e), this.defaultCountry = r, this.defaultCallingCode = n, this.metadata = a, this.onNationalSignificantNumberChange = i;
16114
+ $m(this, e), this.defaultCountry = r, this.defaultCallingCode = n, this.metadata = a, this.onNationalSignificantNumberChange = i;
16106
16115
  }
16107
- return $m(e, [
16116
+ return gm(e, [
16108
16117
  {
16109
16118
  key: "input",
16110
16119
  value: function(r, n) {
16111
- var a = xd(Tm(r), 2), i = a[0], o = a[1], s = jr(i), d;
16120
+ var a = xd(Am(r), 2), i = a[0], o = a[1], s = jr(i), d;
16112
16121
  return o && (n.digits || (n.startInternationalNumber(void 0, void 0), s || (d = !0))), s && this.inputDigits(s, n), {
16113
16122
  digits: s,
16114
16123
  justLeadingPlus: d
@@ -16137,7 +16146,7 @@ var Cm = "[" + ke + Se + "]+", Sm = new RegExp("^" + Cm + "$", "i"), Pm = "(?:["
16137
16146
  {
16138
16147
  key: "extractCountryCallingCode",
16139
16148
  value: function(r) {
16140
- var n = ka("+" + r.getDigitsWithoutInternationalPrefix(), r.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), a = n.countryCallingCode, i = n.number;
16149
+ var n = Da("+" + r.getDigitsWithoutInternationalPrefix(), r.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), a = n.countryCallingCode, i = n.number;
16141
16150
  if (a)
16142
16151
  return r.setCallingCode(a), r.update({ nationalSignificantNumber: i }), !0;
16143
16152
  }
@@ -16148,7 +16157,7 @@ var Cm = "[" + ke + Se + "]+", Sm = new RegExp("^" + Cm + "$", "i"), Pm = "(?:["
16148
16157
  if (r) {
16149
16158
  this.hasSelectedNumberingPlan = !0;
16150
16159
  var n = r._nationalPrefixForParsing();
16151
- this.couldPossiblyExtractAnotherNationalSignificantNumber = n && _m.test(n);
16160
+ this.couldPossiblyExtractAnotherNationalSignificantNumber = n && Om.test(n);
16152
16161
  } else
16153
16162
  this.hasSelectedNumberingPlan = void 0, this.couldPossiblyExtractAnotherNationalSignificantNumber = void 0;
16154
16163
  }
@@ -16248,21 +16257,21 @@ var Cm = "[" + ke + Se + "]+", Sm = new RegExp("^" + Cm + "$", "i"), Pm = "(?:["
16248
16257
  }
16249
16258
  ]);
16250
16259
  })();
16251
- function Em(e) {
16252
- var t = e.search(Pm);
16260
+ function Im(e) {
16261
+ var t = e.search(wm);
16253
16262
  if (!(t < 0)) {
16254
16263
  e = e.slice(t);
16255
16264
  var r;
16256
- return e[0] === "+" && (r = !0, e = e.slice(1)), e = e.replace(wm, ""), r && (e = "+" + e), e;
16265
+ return e[0] === "+" && (r = !0, e = e.slice(1)), e = e.replace(_m, ""), r && (e = "+" + e), e;
16257
16266
  }
16258
16267
  }
16259
- function Im(e) {
16260
- var t = Em(e) || "";
16268
+ function Tm(e) {
16269
+ var t = Im(e) || "";
16261
16270
  return t[0] === "+" ? [t.slice(1), !0] : [t];
16262
16271
  }
16263
- function Tm(e) {
16264
- var t = xd(Im(e), 2), r = t[0], n = t[1];
16265
- return Sm.test(r) || (r = ""), [r, n];
16272
+ function Am(e) {
16273
+ var t = xd(Tm(e), 2), r = t[0], n = t[1];
16274
+ return Pm.test(r) || (r = ""), [r, n];
16266
16275
  }
16267
16276
  function Wt(e) {
16268
16277
  "@babel/helpers - typeof";
@@ -16272,14 +16281,14 @@ function Wt(e) {
16272
16281
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
16273
16282
  }, Wt(e);
16274
16283
  }
16275
- function Am(e, t) {
16276
- return km(e) || Dm(e, t) || Mm(e, t) || xm();
16284
+ function xm(e, t) {
16285
+ return Rm(e) || Dm(e, t) || km(e, t) || Mm();
16277
16286
  }
16278
- function xm() {
16287
+ function Mm() {
16279
16288
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
16280
16289
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
16281
16290
  }
16282
- function Mm(e, t) {
16291
+ function km(e, t) {
16283
16292
  if (e) {
16284
16293
  if (typeof e == "string") return Mo(e, t);
16285
16294
  var r = {}.toString.call(e).slice(8, -1);
@@ -16312,26 +16321,26 @@ function Dm(e, t) {
16312
16321
  return s;
16313
16322
  }
16314
16323
  }
16315
- function km(e) {
16324
+ function Rm(e) {
16316
16325
  if (Array.isArray(e)) return e;
16317
16326
  }
16318
- function Rm(e, t) {
16327
+ function Fm(e, t) {
16319
16328
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
16320
16329
  }
16321
- function Do(e, t) {
16330
+ function ko(e, t) {
16322
16331
  for (var r = 0; r < t.length; r++) {
16323
16332
  var n = t[r];
16324
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, jm(n.key), n);
16333
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Lm(n.key), n);
16325
16334
  }
16326
16335
  }
16327
- function Fm(e, t, r) {
16328
- return t && Do(e.prototype, t), r && Do(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
16336
+ function jm(e, t, r) {
16337
+ return t && ko(e.prototype, t), r && ko(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
16329
16338
  }
16330
- function jm(e) {
16331
- var t = Lm(e, "string");
16339
+ function Lm(e) {
16340
+ var t = Bm(e, "string");
16332
16341
  return Wt(t) == "symbol" ? t : t + "";
16333
16342
  }
16334
- function Lm(e, t) {
16343
+ function Bm(e, t) {
16335
16344
  if (Wt(e) != "object" || !e) return e;
16336
16345
  var r = e[Symbol.toPrimitive];
16337
16346
  if (r !== void 0) {
@@ -16341,18 +16350,18 @@ function Lm(e, t) {
16341
16350
  }
16342
16351
  return (t === "string" ? String : Number)(e);
16343
16352
  }
16344
- var ko = !1, Ct = /* @__PURE__ */ (function() {
16353
+ var Do = !1, Ct = /* @__PURE__ */ (function() {
16345
16354
  function e(t, r) {
16346
- Rm(this, e), this.metadata = new ce(r);
16347
- var n = Am(this.getCountryAndCallingCode(t), 2), a = n[0], i = n[1];
16355
+ Fm(this, e), this.metadata = new ce(r);
16356
+ var n = xm(this.getCountryAndCallingCode(t), 2), a = n[0], i = n[1];
16348
16357
  this.defaultCountry = a, this.defaultCallingCode = i, this.reset();
16349
16358
  }
16350
- return Fm(e, [
16359
+ return jm(e, [
16351
16360
  {
16352
16361
  key: "getCountryAndCallingCode",
16353
16362
  value: function(r) {
16354
16363
  var n, a;
16355
- return r && (nt(r) ? (n = r.defaultCountry, a = r.defaultCallingCode) : n = r), n && !this.metadata.hasCountry(n) && (n = void 0), a && ko && this.metadata.isNonGeographicCallingCode(a) && (n = "001"), [n, a];
16364
+ return r && (nt(r) ? (n = r.defaultCountry, a = r.defaultCallingCode) : n = r), n && !this.metadata.hasCountry(n) && (n = void 0), a && Do && this.metadata.isNonGeographicCallingCode(a) && (n = "001"), [n, a];
16356
16365
  }
16357
16366
  },
16358
16367
  {
@@ -16384,10 +16393,10 @@ var ko = !1, Ct = /* @__PURE__ */ (function() {
16384
16393
  onCallingCodeChange: function(a, i) {
16385
16394
  r.metadata.selectNumberingPlan(i, a), r.formatter.reset(r.metadata.numberingPlan, r.state), r.parser.reset(r.metadata.numberingPlan);
16386
16395
  }
16387
- }), this.formatter = new pm({
16396
+ }), this.formatter = new mm({
16388
16397
  state: this.state,
16389
16398
  metadata: this.metadata
16390
- }), this.parser = new Om({
16399
+ }), this.parser = new Em({
16391
16400
  defaultCountry: this.defaultCountry,
16392
16401
  defaultCallingCode: this.defaultCallingCode,
16393
16402
  metadata: this.metadata,
@@ -16429,7 +16438,7 @@ var ko = !1, Ct = /* @__PURE__ */ (function() {
16429
16438
  key: "_getCountry",
16430
16439
  value: function() {
16431
16440
  var r = this.state.country;
16432
- if (!(ko && r === "001"))
16441
+ if (!(Do && r === "001"))
16433
16442
  return r;
16434
16443
  }
16435
16444
  },
@@ -16483,7 +16492,7 @@ var ko = !1, Ct = /* @__PURE__ */ (function() {
16483
16492
  {
16484
16493
  key: "determineTheCountry",
16485
16494
  value: function() {
16486
- this.state.setCountry(Da(this.isInternational() ? this.state.callingCode : this.defaultCallingCode, {
16495
+ this.state.setCountry(ka(this.isInternational() ? this.state.callingCode : this.defaultCallingCode, {
16487
16496
  nationalNumber: this.state.nationalSignificantNumber,
16488
16497
  metadata: this.metadata
16489
16498
  }));
@@ -16558,10 +16567,10 @@ var ko = !1, Ct = /* @__PURE__ */ (function() {
16558
16567
  function Ro(e) {
16559
16568
  return new ce(e).getCountries();
16560
16569
  }
16561
- function Bm(e, t, r) {
16570
+ function Um(e, t, r) {
16562
16571
  return r || (r = t, t = void 0), new Ct(t, r).input(e);
16563
16572
  }
16564
- var Br = /* @__PURE__ */ ma(Z1(), 1);
16573
+ var Br = /* @__PURE__ */ ma(X1(), 1);
16565
16574
  function Md(e) {
16566
16575
  var t = e.inputFormat, r = e.country, n = e.metadata;
16567
16576
  return t === "NATIONAL_PART_OF_INTERNATIONAL" ? "+".concat(Je(r, n)) : "";
@@ -16569,26 +16578,26 @@ function Md(e) {
16569
16578
  function oa(e, t) {
16570
16579
  return t && (e = e.slice(t.length), e[0] === " " && (e = e.slice(1))), e;
16571
16580
  }
16572
- function Um(e, t, r) {
16581
+ function Vm(e, t, r) {
16573
16582
  if (!(r && r.ignoreRest))
16574
16583
  return Id(e, t, function(a) {
16575
16584
  r && a === "end" && (r.ignoreRest = !0);
16576
16585
  });
16577
16586
  }
16578
- function Dd(e) {
16587
+ function kd(e) {
16579
16588
  var t = e.onKeyDown, r = e.inputFormat;
16580
16589
  return We(function(n) {
16581
- if (n.keyCode === Gm && r === "INTERNATIONAL" && n.target instanceof HTMLInputElement && Vm(n.target) === Wm.length) {
16590
+ if (n.keyCode === Wm && r === "INTERNATIONAL" && n.target instanceof HTMLInputElement && Gm(n.target) === zm.length) {
16582
16591
  n.preventDefault();
16583
16592
  return;
16584
16593
  }
16585
16594
  t && t(n);
16586
16595
  }, [t, r]);
16587
16596
  }
16588
- function Vm(e) {
16597
+ function Gm(e) {
16589
16598
  return e.selectionStart;
16590
16599
  }
16591
- var Gm = 8, Wm = "+", zm = [
16600
+ var Wm = 8, zm = "+", Hm = [
16592
16601
  "onKeyDown",
16593
16602
  "country",
16594
16603
  "inputFormat",
@@ -16605,9 +16614,9 @@ function sa() {
16605
16614
  return e;
16606
16615
  }, sa.apply(this, arguments);
16607
16616
  }
16608
- function Hm(e, t) {
16617
+ function qm(e, t) {
16609
16618
  if (e == null) return {};
16610
- var r = qm(e, t), n, a;
16619
+ var r = Km(e, t), n, a;
16611
16620
  if (Object.getOwnPropertySymbols) {
16612
16621
  var i = Object.getOwnPropertySymbols(e);
16613
16622
  for (a = 0; a < i.length; a++)
@@ -16615,18 +16624,18 @@ function Hm(e, t) {
16615
16624
  }
16616
16625
  return r;
16617
16626
  }
16618
- function qm(e, t) {
16627
+ function Km(e, t) {
16619
16628
  if (e == null) return {};
16620
16629
  var r = {}, n = Object.keys(e), a, i;
16621
16630
  for (i = 0; i < n.length; i++)
16622
16631
  a = n[i], !(t.indexOf(a) >= 0) && (r[a] = e[a]);
16623
16632
  return r;
16624
16633
  }
16625
- function Km(e) {
16634
+ function Ym(e) {
16626
16635
  function t(r, n) {
16627
16636
  var a = r.onKeyDown, i = r.country, o = r.inputFormat, s = r.metadata, d = s === void 0 ? e : s;
16628
16637
  r.international, r.withCountryCallingCode;
16629
- var l = Hm(r, zm), c = We(function(m) {
16638
+ var l = qm(r, Hm), c = We(function(m) {
16630
16639
  var p = new Ct(i, d), h = Md({
16631
16640
  inputFormat: o,
16632
16641
  country: i,
@@ -16636,13 +16645,13 @@ function Km(e) {
16636
16645
  text: v,
16637
16646
  template: y
16638
16647
  };
16639
- }, [i, d]), f = Dd({
16648
+ }, [i, d]), f = kd({
16640
16649
  onKeyDown: a,
16641
16650
  inputFormat: o
16642
16651
  });
16643
- return /* @__PURE__ */ F.createElement(w0, sa({}, l, {
16652
+ return /* @__PURE__ */ F.createElement(_0, sa({}, l, {
16644
16653
  ref: n,
16645
- parse: Um,
16654
+ parse: Vm,
16646
16655
  format: c,
16647
16656
  onKeyDown: f
16648
16657
  }));
@@ -16661,7 +16670,7 @@ function Km(e) {
16661
16670
  metadata: O.default.object
16662
16671
  }, t;
16663
16672
  }
16664
- var Ym = Km(), Zm = [
16673
+ var Zm = Ym(), Xm = [
16665
16674
  "value",
16666
16675
  "onChange",
16667
16676
  "onKeyDown",
@@ -16681,9 +16690,9 @@ function da() {
16681
16690
  return e;
16682
16691
  }, da.apply(this, arguments);
16683
16692
  }
16684
- function Xm(e, t) {
16693
+ function Jm(e, t) {
16685
16694
  if (e == null) return {};
16686
- var r = Jm(e, t), n, a;
16695
+ var r = Qm(e, t), n, a;
16687
16696
  if (Object.getOwnPropertySymbols) {
16688
16697
  var i = Object.getOwnPropertySymbols(e);
16689
16698
  for (a = 0; a < i.length; a++)
@@ -16691,18 +16700,18 @@ function Xm(e, t) {
16691
16700
  }
16692
16701
  return r;
16693
16702
  }
16694
- function Jm(e, t) {
16703
+ function Qm(e, t) {
16695
16704
  if (e == null) return {};
16696
16705
  var r = {}, n = Object.keys(e), a, i;
16697
16706
  for (i = 0; i < n.length; i++)
16698
16707
  a = n[i], !(t.indexOf(a) >= 0) && (r[a] = e[a]);
16699
16708
  return r;
16700
16709
  }
16701
- function Qm(e) {
16710
+ function eh(e) {
16702
16711
  function t(r, n) {
16703
16712
  var a = r.value, i = r.onChange, o = r.onKeyDown, s = r.country, d = r.inputFormat, l = r.metadata, c = l === void 0 ? e : l, f = r.inputComponent, m = f === void 0 ? "input" : f;
16704
16713
  r.international, r.withCountryCallingCode;
16705
- var p = Xm(r, Zm), h = Md({
16714
+ var p = Jm(r, Xm), h = Md({
16706
16715
  inputFormat: d,
16707
16716
  country: s,
16708
16717
  metadata: c
@@ -16715,7 +16724,7 @@ function Qm(e) {
16715
16724
  i,
16716
16725
  s,
16717
16726
  c
16718
- ]), y = Dd({
16727
+ ]), y = kd({
16719
16728
  onKeyDown: o,
16720
16729
  inputFormat: d
16721
16730
  });
@@ -16741,23 +16750,23 @@ function Qm(e) {
16741
16750
  inputComponent: O.default.elementType
16742
16751
  }, t;
16743
16752
  }
16744
- var eh = Qm();
16753
+ var th = eh();
16745
16754
  function Fo(e, t, r, n) {
16746
- return oa(Bm(e + t, r, n), e);
16755
+ return oa(Um(e + t, r, n), e);
16747
16756
  }
16748
- function th(e) {
16757
+ function rh(e) {
16749
16758
  return jo(e[0]) + jo(e[1]);
16750
16759
  }
16751
16760
  function jo(e) {
16752
16761
  return String.fromCodePoint(127397 + e.toUpperCase().charCodeAt(0));
16753
16762
  }
16754
- var rh = [
16763
+ var nh = [
16755
16764
  "value",
16756
16765
  "onChange",
16757
16766
  "options",
16758
16767
  "disabled",
16759
16768
  "readOnly"
16760
- ], nh = [
16769
+ ], ah = [
16761
16770
  "value",
16762
16771
  "options",
16763
16772
  "className",
@@ -16766,10 +16775,10 @@ var rh = [
16766
16775
  "arrowComponent",
16767
16776
  "unicodeFlags"
16768
16777
  ];
16769
- function ah(e, t) {
16778
+ function ih(e, t) {
16770
16779
  var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
16771
16780
  if (r) return (r = r.call(e)).next.bind(r);
16772
- if (Array.isArray(e) || (r = ih(e)) || t && e && typeof e.length == "number") {
16781
+ if (Array.isArray(e) || (r = oh(e)) || t && e && typeof e.length == "number") {
16773
16782
  r && (e = r);
16774
16783
  var n = 0;
16775
16784
  return function() {
@@ -16782,7 +16791,7 @@ function ah(e, t) {
16782
16791
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
16783
16792
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
16784
16793
  }
16785
- function ih(e, t) {
16794
+ function oh(e, t) {
16786
16795
  if (e) {
16787
16796
  if (typeof e == "string") return Lo(e, t);
16788
16797
  var r = Object.prototype.toString.call(e).slice(8, -1);
@@ -16804,9 +16813,9 @@ function Ur() {
16804
16813
  return e;
16805
16814
  }, Ur.apply(this, arguments);
16806
16815
  }
16807
- function kd(e, t) {
16816
+ function Dd(e, t) {
16808
16817
  if (e == null) return {};
16809
- var r = oh(e, t), n, a;
16818
+ var r = sh(e, t), n, a;
16810
16819
  if (Object.getOwnPropertySymbols) {
16811
16820
  var i = Object.getOwnPropertySymbols(e);
16812
16821
  for (a = 0; a < i.length; a++)
@@ -16814,7 +16823,7 @@ function kd(e, t) {
16814
16823
  }
16815
16824
  return r;
16816
16825
  }
16817
- function oh(e, t) {
16826
+ function sh(e, t) {
16818
16827
  if (e == null) return {};
16819
16828
  var r = {}, n = Object.keys(e), a, i;
16820
16829
  for (i = 0; i < n.length; i++)
@@ -16822,7 +16831,7 @@ function oh(e, t) {
16822
16831
  return r;
16823
16832
  }
16824
16833
  function Rd(e) {
16825
- var t = e.value, r = e.onChange, n = e.options, a = e.disabled, i = e.readOnly, o = kd(e, rh), s = We(function(d) {
16834
+ var t = e.value, r = e.onChange, n = e.options, a = e.disabled, i = e.readOnly, o = Dd(e, nh), s = We(function(d) {
16826
16835
  var l = d.target.value;
16827
16836
  r(l === "ZZ" ? void 0 : l);
16828
16837
  }, [r]);
@@ -16839,7 +16848,7 @@ function Rd(e) {
16839
16848
  key: f ? "|" : l || "ZZ",
16840
16849
  value: f ? "|" : l || "ZZ",
16841
16850
  disabled: !!f,
16842
- style: f ? sh : void 0
16851
+ style: f ? dh : void 0
16843
16852
  }, c);
16844
16853
  }));
16845
16854
  }
@@ -16854,7 +16863,7 @@ Rd.propTypes = {
16854
16863
  disabled: O.default.bool,
16855
16864
  readOnly: O.default.bool
16856
16865
  };
16857
- var sh = {
16866
+ var dh = {
16858
16867
  fontSize: "1px",
16859
16868
  backgroundColor: "currentColor",
16860
16869
  color: "inherit"
@@ -16862,14 +16871,14 @@ var sh = {
16862
16871
  function Fd(e) {
16863
16872
  var t = e.value, r = e.options, n = e.className, a = e.iconComponent;
16864
16873
  e.getIconAspectRatio;
16865
- var i = e.arrowComponent, o = i === void 0 ? dh : i, s = e.unicodeFlags, d = kd(e, nh), l = Ce(function() {
16874
+ var i = e.arrowComponent, o = i === void 0 ? lh : i, s = e.unicodeFlags, d = Dd(e, ah), l = Ce(function() {
16866
16875
  return jd(r, t);
16867
16876
  }, [r, t]);
16868
16877
  return /* @__PURE__ */ F.createElement("div", { className: "PhoneInputCountry" }, /* @__PURE__ */ F.createElement(Rd, Ur({}, d, {
16869
16878
  value: t,
16870
16879
  options: r,
16871
16880
  className: (0, Br.default)("PhoneInputCountrySelect", n)
16872
- })), l && (s && t ? /* @__PURE__ */ F.createElement("div", { className: "PhoneInputCountryIconUnicode" }, th(t)) : /* @__PURE__ */ F.createElement(a, {
16881
+ })), l && (s && t ? /* @__PURE__ */ F.createElement("div", { className: "PhoneInputCountryIconUnicode" }, rh(t)) : /* @__PURE__ */ F.createElement(a, {
16873
16882
  "aria-hidden": !0,
16874
16883
  country: t,
16875
16884
  label: l.label,
@@ -16881,20 +16890,20 @@ Fd.propTypes = {
16881
16890
  arrowComponent: O.default.elementType,
16882
16891
  unicodeFlags: O.default.bool
16883
16892
  };
16884
- function dh() {
16893
+ function lh() {
16885
16894
  return /* @__PURE__ */ F.createElement("div", { className: "PhoneInputCountrySelectArrow" });
16886
16895
  }
16887
16896
  function jd(e, t) {
16888
- for (var r = ah(e), n; !(n = r()).done; ) {
16897
+ for (var r = ih(e), n; !(n = r()).done; ) {
16889
16898
  var a = n.value;
16890
- if (!a.divider && lh(a.value, t))
16899
+ if (!a.divider && ch(a.value, t))
16891
16900
  return a;
16892
16901
  }
16893
16902
  }
16894
- function lh(e, t) {
16903
+ function ch(e, t) {
16895
16904
  return e == null ? t == null : e === t;
16896
16905
  }
16897
- var ch = [
16906
+ var uh = [
16898
16907
  "country",
16899
16908
  "countryName",
16900
16909
  "flags",
@@ -16909,9 +16918,9 @@ function la() {
16909
16918
  return e;
16910
16919
  }, la.apply(this, arguments);
16911
16920
  }
16912
- function uh(e, t) {
16921
+ function fh(e, t) {
16913
16922
  if (e == null) return {};
16914
- var r = fh(e, t), n, a;
16923
+ var r = ph(e, t), n, a;
16915
16924
  if (Object.getOwnPropertySymbols) {
16916
16925
  var i = Object.getOwnPropertySymbols(e);
16917
16926
  for (a = 0; a < i.length; a++)
@@ -16919,7 +16928,7 @@ function uh(e, t) {
16919
16928
  }
16920
16929
  return r;
16921
16930
  }
16922
- function fh(e, t) {
16931
+ function ph(e, t) {
16923
16932
  if (e == null) return {};
16924
16933
  var r = {}, n = Object.keys(e), a, i;
16925
16934
  for (i = 0; i < n.length; i++)
@@ -16927,7 +16936,7 @@ function fh(e, t) {
16927
16936
  return r;
16928
16937
  }
16929
16938
  function Fa(e) {
16930
- var t = e.country, r = e.countryName, n = e.flags, a = e.flagUrl, i = uh(e, ch);
16939
+ var t = e.country, r = e.countryName, n = e.flags, a = e.flagUrl, i = fh(e, uh);
16931
16940
  return n && n[t] ? n[t]({ title: r }) : /* @__PURE__ */ F.createElement("img", la({}, i, {
16932
16941
  alt: r,
16933
16942
  role: r ? void 0 : "presentation",
@@ -16940,7 +16949,7 @@ Fa.propTypes = {
16940
16949
  flags: O.default.objectOf(O.default.elementType),
16941
16950
  flagUrl: O.default.string.isRequired
16942
16951
  };
16943
- var ph = ["aspectRatio"], mh = ["title"], hh = ["title"];
16952
+ var mh = ["aspectRatio"], hh = ["title"], yh = ["title"];
16944
16953
  function Vr() {
16945
16954
  return Vr = Object.assign ? Object.assign.bind() : function(e) {
16946
16955
  for (var t = 1; t < arguments.length; t++) {
@@ -16952,7 +16961,7 @@ function Vr() {
16952
16961
  }
16953
16962
  function ja(e, t) {
16954
16963
  if (e == null) return {};
16955
- var r = yh(e, t), n, a;
16964
+ var r = vh(e, t), n, a;
16956
16965
  if (Object.getOwnPropertySymbols) {
16957
16966
  var i = Object.getOwnPropertySymbols(e);
16958
16967
  for (a = 0; a < i.length; a++)
@@ -16960,7 +16969,7 @@ function ja(e, t) {
16960
16969
  }
16961
16970
  return r;
16962
16971
  }
16963
- function yh(e, t) {
16972
+ function vh(e, t) {
16964
16973
  if (e == null) return {};
16965
16974
  var r = {}, n = Object.keys(e), a, i;
16966
16975
  for (i = 0; i < n.length; i++)
@@ -16968,7 +16977,7 @@ function yh(e, t) {
16968
16977
  return r;
16969
16978
  }
16970
16979
  function mn(e) {
16971
- var t = e.aspectRatio, r = ja(e, ph);
16980
+ var t = e.aspectRatio, r = ja(e, mh);
16972
16981
  return t === 1 ? /* @__PURE__ */ F.createElement(Bd, r) : /* @__PURE__ */ F.createElement(Ld, r);
16973
16982
  }
16974
16983
  mn.propTypes = {
@@ -16976,7 +16985,7 @@ mn.propTypes = {
16976
16985
  aspectRatio: O.default.number
16977
16986
  };
16978
16987
  function Ld(e) {
16979
- var t = e.title, r = ja(e, mh);
16988
+ var t = e.title, r = ja(e, hh);
16980
16989
  return /* @__PURE__ */ F.createElement("svg", Vr({}, r, {
16981
16990
  xmlns: "http://www.w3.org/2000/svg",
16982
16991
  viewBox: "0 0 75 50"
@@ -17014,7 +17023,7 @@ function Ld(e) {
17014
17023
  }
17015
17024
  Ld.propTypes = { title: O.default.string.isRequired };
17016
17025
  function Bd(e) {
17017
- var t = e.title, r = ja(e, hh);
17026
+ var t = e.title, r = ja(e, yh);
17018
17027
  return /* @__PURE__ */ F.createElement("svg", Vr({}, r, {
17019
17028
  xmlns: "http://www.w3.org/2000/svg",
17020
17029
  viewBox: "0 0 50 50"
@@ -17042,7 +17051,7 @@ function Bd(e) {
17042
17051
  }));
17043
17052
  }
17044
17053
  Bd.propTypes = { title: O.default.string.isRequired };
17045
- function vh(e) {
17054
+ function bh(e) {
17046
17055
  if (e.length < 2 || e[0] !== "+") return !1;
17047
17056
  for (var t = 1; t < e.length; ) {
17048
17057
  var r = e.charCodeAt(t);
@@ -17053,12 +17062,12 @@ function vh(e) {
17053
17062
  return !0;
17054
17063
  }
17055
17064
  function Ud(e) {
17056
- vh(e) || console.error("[react-phone-number-input] Expected the initial `value` to be a E.164 phone number. Got", e);
17065
+ bh(e) || console.error("[react-phone-number-input] Expected the initial `value` to be a E.164 phone number. Got", e);
17057
17066
  }
17058
- function bh(e, t) {
17067
+ function $h(e, t) {
17059
17068
  var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
17060
17069
  if (r) return (r = r.call(e)).next.bind(r);
17061
- if (Array.isArray(e) || (r = $h(e)) || t && e && typeof e.length == "number") {
17070
+ if (Array.isArray(e) || (r = gh(e)) || t && e && typeof e.length == "number") {
17062
17071
  r && (e = r);
17063
17072
  var n = 0;
17064
17073
  return function() {
@@ -17071,7 +17080,7 @@ function bh(e, t) {
17071
17080
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
17072
17081
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
17073
17082
  }
17074
- function $h(e, t) {
17083
+ function gh(e, t) {
17075
17084
  if (e) {
17076
17085
  if (typeof e == "string") return Bo(e, t);
17077
17086
  var r = Object.prototype.toString.call(e).slice(8, -1);
@@ -17084,7 +17093,7 @@ function Bo(e, t) {
17084
17093
  for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r];
17085
17094
  return n;
17086
17095
  }
17087
- function gh(e, t) {
17096
+ function Nh(e, t) {
17088
17097
  if (!t) return e;
17089
17098
  for (var r = [], n = [], a = r, i = function() {
17090
17099
  var l = s.value;
@@ -17098,10 +17107,10 @@ function gh(e, t) {
17098
17107
  })[0]), m = e[f];
17099
17108
  e.splice(f, 1), a.push(m);
17100
17109
  }
17101
- }, o = bh(t), s; !(s = o()).done; ) i();
17110
+ }, o = $h(t), s; !(s = o()).done; ) i();
17102
17111
  return r.concat(e).concat(n);
17103
17112
  }
17104
- function Nh(e, t) {
17113
+ function Ch(e, t) {
17105
17114
  if (e && (e = e.filter(function(r) {
17106
17115
  switch (r) {
17107
17116
  case "🌐":
@@ -17123,7 +17132,7 @@ function Vd(e, t) {
17123
17132
  return hn(r, t);
17124
17133
  }), e.length === 0 && (e = void 0)), e;
17125
17134
  }
17126
- var Ch = [
17135
+ var Sh = [
17127
17136
  "country",
17128
17137
  "label",
17129
17138
  "aspectRatio"
@@ -17137,9 +17146,9 @@ function ca() {
17137
17146
  return e;
17138
17147
  }, ca.apply(this, arguments);
17139
17148
  }
17140
- function Sh(e, t) {
17149
+ function Ph(e, t) {
17141
17150
  if (e == null) return {};
17142
- var r = Ph(e, t), n, a;
17151
+ var r = wh(e, t), n, a;
17143
17152
  if (Object.getOwnPropertySymbols) {
17144
17153
  var i = Object.getOwnPropertySymbols(e);
17145
17154
  for (a = 0; a < i.length; a++)
@@ -17147,7 +17156,7 @@ function Sh(e, t) {
17147
17156
  }
17148
17157
  return r;
17149
17158
  }
17150
- function Ph(e, t) {
17159
+ function wh(e, t) {
17151
17160
  if (e == null) return {};
17152
17161
  var r = {}, n = Object.keys(e), a, i;
17153
17162
  for (i = 0; i < n.length; i++)
@@ -17157,7 +17166,7 @@ function Ph(e, t) {
17157
17166
  function Gd(e) {
17158
17167
  var t = e.flags, r = e.flagUrl, n = e.flagComponent, a = e.internationalIcon;
17159
17168
  function i(o) {
17160
- var s = o.country, d = o.label, l = o.aspectRatio, c = Sh(o, Ch), f = a === mn ? l : void 0;
17169
+ var s = o.country, d = o.label, l = o.aspectRatio, c = Ph(o, Sh), f = a === mn ? l : void 0;
17161
17170
  return /* @__PURE__ */ F.createElement("div", ca({}, c, { className: (0, Br.default)("PhoneInputCountryIcon", {
17162
17171
  "PhoneInputCountryIcon--square": f === 1,
17163
17172
  "PhoneInputCountryIcon--border": s
@@ -17179,15 +17188,15 @@ function Gd(e) {
17179
17188
  aspectRatio: O.default.number
17180
17189
  }, i;
17181
17190
  }
17182
- var Fy = Gd({
17191
+ var By = Gd({
17183
17192
  flagUrl: "https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",
17184
17193
  flagComponent: Fa,
17185
17194
  internationalIcon: mn
17186
17195
  });
17187
- function wh(e, t) {
17196
+ function _h(e, t) {
17188
17197
  var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
17189
17198
  if (r) return (r = r.call(e)).next.bind(r);
17190
- if (Array.isArray(e) || (r = _h(e)) || t && e && typeof e.length == "number") {
17199
+ if (Array.isArray(e) || (r = Oh(e)) || t && e && typeof e.length == "number") {
17191
17200
  r && (e = r);
17192
17201
  var n = 0;
17193
17202
  return function() {
@@ -17200,7 +17209,7 @@ function wh(e, t) {
17200
17209
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
17201
17210
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
17202
17211
  }
17203
- function _h(e, t) {
17212
+ function Oh(e, t) {
17204
17213
  if (e) {
17205
17214
  if (typeof e == "string") return Uo(e, t);
17206
17215
  var r = Object.prototype.toString.call(e).slice(8, -1);
@@ -17213,13 +17222,13 @@ function Uo(e, t) {
17213
17222
  for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r];
17214
17223
  return n;
17215
17224
  }
17216
- function Oh(e, t) {
17217
- for (var r = wh(e), n; !(n = r()).done; ) {
17225
+ function Eh(e, t) {
17226
+ for (var r = _h(e), n; !(n = r()).done; ) {
17218
17227
  var a = n.value;
17219
- a && Eh(a, t);
17228
+ a && Ih(a, t);
17220
17229
  }
17221
17230
  }
17222
- function Eh(e, t) {
17231
+ function Ih(e, t) {
17223
17232
  typeof e == "function" ? e(t) : e.current = t;
17224
17233
  }
17225
17234
  var Wd = O.default.shape({
@@ -17229,13 +17238,13 @@ var Wd = O.default.shape({
17229
17238
  function ze(e, t) {
17230
17239
  return "+" + Je(e, t);
17231
17240
  }
17232
- function Ih(e) {
17241
+ function Th(e) {
17233
17242
  var t = e.value, r = e.phoneNumber, n = e.defaultCountry, a = e.getAnyCountry, i = e.countries, o = e.required, s = e.metadata, d;
17234
17243
  return r && r.country ? d = r.country : n && (!t || mt(t, n, s)) && (d = n), i && i.indexOf(d) < 0 && (d = void 0), !d && o && i && i.length > 0 && (d = a()), d;
17235
17244
  }
17236
- function Th(e) {
17245
+ function Ah(e) {
17237
17246
  var t = e.countries, r = e.countryNames, n = e.addInternationalOption, a = e.compareStringsLocales, i = e.compareStrings;
17238
- i || (i = Fh);
17247
+ i || (i = jh);
17239
17248
  var o = t.map(function(s) {
17240
17249
  return {
17241
17250
  value: s,
@@ -17247,19 +17256,19 @@ function Th(e) {
17247
17256
  }), n && o.unshift({ label: r.ZZ }), o;
17248
17257
  }
17249
17258
  function Hd(e, t) {
17250
- return w2(e || "", t);
17259
+ return _2(e || "", t);
17251
17260
  }
17252
- function Ah(e) {
17261
+ function xh(e) {
17253
17262
  return e.formatNational().replace(/\D/g, "");
17254
17263
  }
17255
- function xh(e, t) {
17264
+ function Mh(e, t) {
17256
17265
  var r = t.prevCountry, n = t.newCountry, a = t.metadata, i = t.useNationalFormat;
17257
17266
  if (r === n) return e;
17258
17267
  if (!e) return i ? "" : n ? ze(n, a) : "";
17259
17268
  if (n) {
17260
17269
  if (e[0] === "+") {
17261
17270
  if (i)
17262
- return e.indexOf("+" + Je(n, a)) === 0 ? jh(e, n, a) : "";
17271
+ return e.indexOf("+" + Je(n, a)) === 0 ? Lh(e, n, a) : "";
17263
17272
  if (r) {
17264
17273
  var o = ze(n, a);
17265
17274
  return e.indexOf(o) === 0 ? e : o;
@@ -17285,7 +17294,7 @@ function ft(e, t, r) {
17285
17294
  }
17286
17295
  }
17287
17296
  }
17288
- function Mh(e, t, r) {
17297
+ function kh(e, t, r) {
17289
17298
  var n = Kd(e, t, r);
17290
17299
  if (n) {
17291
17300
  var a = n.length - Dh(t, r);
@@ -17299,7 +17308,7 @@ function Dh(e, t) {
17299
17308
  function qd(e, t) {
17300
17309
  var r = t.country, n = t.countries, a = t.defaultCountry, i = t.latestCountrySelectedByUser, o = t.required, s = t.metadata;
17301
17310
  if (e === "+") return r;
17302
- var d = Rh(e, s);
17311
+ var d = Fh(e, s);
17303
17312
  if (d) return !n || n.indexOf(d) >= 0 ? d : void 0;
17304
17313
  if (r) {
17305
17314
  if (mt(e, r, s)) {
@@ -17310,7 +17319,7 @@ function qd(e, t) {
17310
17319
  }
17311
17320
  return r;
17312
17321
  }
17313
- function kh(e, t) {
17322
+ function Rh(e, t) {
17314
17323
  var r = t.prevPhoneDigits, n = t.country, a = t.defaultCountry, i = t.latestCountrySelectedByUser, o = t.countryRequired, s = t.getAnyCountry, d = t.countries, l = t.international, c = t.limitMaxLength, f = t.countryCallingCodeEditable, m = t.metadata;
17315
17324
  if (l && f === !1 && n) {
17316
17325
  var p = ze(n, m);
@@ -17323,7 +17332,7 @@ function kh(e, t) {
17323
17332
  };
17324
17333
  }
17325
17334
  }
17326
- l === !1 && n && e && e[0] === "+" && (e = Vo(e, n, m)), e && n && c && (e = Mh(e, n, m)), e && e[0] !== "+" && (!n || l) && (e = "+" + e), !e && r && r[0] === "+" && (l ? n = void 0 : n = a), e === "+" && r && r[0] === "+" && r.length > 1 && (n = void 0);
17335
+ l === !1 && n && e && e[0] === "+" && (e = Vo(e, n, m)), e && n && c && (e = kh(e, n, m)), e && e[0] !== "+" && (!n || l) && (e = "+" + e), !e && r && r[0] === "+" && (l ? n = void 0 : n = a), e === "+" && r && r[0] === "+" && r.length > 1 && (n = void 0);
17327
17336
  var v;
17328
17337
  return e && (e[0] === "+" && (e === "+" || n && ze(n, m).indexOf(e) === 0) ? v = void 0 : v = ft(e, n, m)), v && (n = qd(v, {
17329
17338
  country: n,
@@ -17346,14 +17355,14 @@ function Vo(e, t, r) {
17346
17355
  return a ? a.formatNational().replace(/\D/g, "") : "";
17347
17356
  } else return e.replace(/\D/g, "");
17348
17357
  }
17349
- function Rh(e, t) {
17358
+ function Fh(e, t) {
17350
17359
  var r = new Ct(null, t);
17351
17360
  return r.input(e), r.getCountry();
17352
17361
  }
17353
- function Fh(e, t, r) {
17362
+ function jh(e, t, r) {
17354
17363
  return String.prototype.localeCompare ? e.localeCompare(t, r) : e < t ? -1 : e > t ? 1 : 0;
17355
17364
  }
17356
- function jh(e, t, r) {
17365
+ function Lh(e, t, r) {
17357
17366
  if (t) {
17358
17367
  var n = "+" + Je(t, r);
17359
17368
  if (e.length < n.length) {
@@ -17381,7 +17390,7 @@ function mt(e, t, r) {
17381
17390
  }
17382
17391
  function Yd(e) {
17383
17392
  var t = e.value, r = e.phoneNumber, n = e.defaultCountry, a = e.international, i = e.useNationalFormat, o = e.metadata;
17384
- return (a === !1 || i) && r && r.country ? Ah(r) : !t && a && n ? ze(n, o) : t;
17393
+ return (a === !1 || i) && r && r.country ? xh(r) : !t && a && n ? ze(n, o) : t;
17385
17394
  }
17386
17395
  function zt(e) {
17387
17396
  "@babel/helpers - typeof";
@@ -17405,26 +17414,26 @@ function sr(e) {
17405
17414
  for (var t = 1; t < arguments.length; t++) {
17406
17415
  var r = arguments[t] != null ? arguments[t] : {};
17407
17416
  t % 2 ? Go(Object(r), !0).forEach(function(n) {
17408
- Lh(e, n, r[n]);
17417
+ Bh(e, n, r[n]);
17409
17418
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Go(Object(r)).forEach(function(n) {
17410
17419
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
17411
17420
  });
17412
17421
  }
17413
17422
  return e;
17414
17423
  }
17415
- function Lh(e, t, r) {
17416
- return t = Bh(t), t in e ? Object.defineProperty(e, t, {
17424
+ function Bh(e, t, r) {
17425
+ return t = Uh(t), t in e ? Object.defineProperty(e, t, {
17417
17426
  value: r,
17418
17427
  enumerable: !0,
17419
17428
  configurable: !0,
17420
17429
  writable: !0
17421
17430
  }) : e[t] = r, e;
17422
17431
  }
17423
- function Bh(e) {
17424
- var t = Uh(e, "string");
17432
+ function Uh(e) {
17433
+ var t = Vh(e, "string");
17425
17434
  return zt(t) == "symbol" ? t : t + "";
17426
17435
  }
17427
- function Uh(e, t) {
17436
+ function Vh(e, t) {
17428
17437
  if (zt(e) != "object" || !e) return e;
17429
17438
  var r = e[Symbol.toPrimitive];
17430
17439
  if (r !== void 0) {
@@ -17434,7 +17443,7 @@ function Uh(e, t) {
17434
17443
  }
17435
17444
  return (t === "string" ? String : Number)(e);
17436
17445
  }
17437
- function Vh(e, t, r) {
17446
+ function Gh(e, t, r) {
17438
17447
  var n = e.metadata, a = e.countries, i = e.defaultCountry, o = e.value, s = e.reset, d = e.international, l = e.displayInitialValueAsLocalNumber, c = e.initialValueFormat, f = t.defaultCountry, m = t.value, p = t.reset;
17439
17448
  r.country;
17440
17449
  var h = r.value, v = r.hasUserSelectedACountry, y = r.latestCountrySelectedByUser, $ = function(H) {
@@ -17497,7 +17506,7 @@ function Vh(e, t, r) {
17497
17506
  function Wo(e, t) {
17498
17507
  return e === null && (e = void 0), t === null && (t = void 0), e === t;
17499
17508
  }
17500
- var Gh = [
17509
+ var Wh = [
17501
17510
  "name",
17502
17511
  "disabled",
17503
17512
  "readOnly",
@@ -17570,9 +17579,9 @@ function ht() {
17570
17579
  return e;
17571
17580
  }, ht.apply(this, arguments);
17572
17581
  }
17573
- function Wh(e, t) {
17582
+ function zh(e, t) {
17574
17583
  if (e == null) return {};
17575
- var r = zh(e, t), n, a;
17584
+ var r = Hh(e, t), n, a;
17576
17585
  if (Object.getOwnPropertySymbols) {
17577
17586
  var i = Object.getOwnPropertySymbols(e);
17578
17587
  for (a = 0; a < i.length; a++)
@@ -17580,14 +17589,14 @@ function Wh(e, t) {
17580
17589
  }
17581
17590
  return r;
17582
17591
  }
17583
- function zh(e, t) {
17592
+ function Hh(e, t) {
17584
17593
  if (e == null) return {};
17585
17594
  var r = {}, n = Object.keys(e), a, i;
17586
17595
  for (i = 0; i < n.length; i++)
17587
17596
  a = n[i], !(t.indexOf(a) >= 0) && (r[a] = e[a]);
17588
17597
  return r;
17589
17598
  }
17590
- function Hh(e, t) {
17599
+ function qh(e, t) {
17591
17600
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
17592
17601
  }
17593
17602
  function Ho(e, t) {
@@ -17596,18 +17605,18 @@ function Ho(e, t) {
17596
17605
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Jd(n.key), n);
17597
17606
  }
17598
17607
  }
17599
- function qh(e, t, r) {
17608
+ function Kh(e, t, r) {
17600
17609
  return t && Ho(e.prototype, t), r && Ho(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
17601
17610
  }
17602
- function Kh(e, t, r) {
17603
- return t = Gr(t), Yh(e, Xd() ? Reflect.construct(t, r || [], Gr(e).constructor) : t.apply(e, r));
17611
+ function Yh(e, t, r) {
17612
+ return t = Gr(t), Zh(e, Xd() ? Reflect.construct(t, r || [], Gr(e).constructor) : t.apply(e, r));
17604
17613
  }
17605
- function Yh(e, t) {
17614
+ function Zh(e, t) {
17606
17615
  if (t && (gt(t) === "object" || typeof t == "function")) return t;
17607
17616
  if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
17608
- return Zh(e);
17617
+ return Xh(e);
17609
17618
  }
17610
- function Zh(e) {
17619
+ function Xh(e) {
17611
17620
  if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
17612
17621
  return e;
17613
17622
  }
@@ -17626,7 +17635,7 @@ function Gr(e) {
17626
17635
  return r.__proto__ || Object.getPrototypeOf(r);
17627
17636
  }, Gr(e);
17628
17637
  }
17629
- function Xh(e, t) {
17638
+ function Jh(e, t) {
17630
17639
  if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
17631
17640
  e.prototype = Object.create(t && t.prototype, { constructor: {
17632
17641
  value: e,
@@ -17648,10 +17657,10 @@ function Me(e, t, r) {
17648
17657
  }) : e[t] = r, e;
17649
17658
  }
17650
17659
  function Jd(e) {
17651
- var t = Jh(e, "string");
17660
+ var t = Qh(e, "string");
17652
17661
  return gt(t) == "symbol" ? t : t + "";
17653
17662
  }
17654
- function Jh(e, t) {
17663
+ function Qh(e, t) {
17655
17664
  if (gt(e) != "object" || !e) return e;
17656
17665
  var r = e[Symbol.toPrimitive];
17657
17666
  if (r !== void 0) {
@@ -17661,17 +17670,17 @@ function Jh(e, t) {
17661
17670
  }
17662
17671
  return (t === "string" ? String : Number)(e);
17663
17672
  }
17664
- var Qh = /* @__PURE__ */ (function(e) {
17673
+ var ey = /* @__PURE__ */ (function(e) {
17665
17674
  function t(r) {
17666
17675
  var n;
17667
- Hh(this, t), n = Kh(this, t, [r]), Me(n, "setInputRef", function(y) {
17668
- Oh([n.props.inputRef, n.inputRef], y);
17676
+ qh(this, t), n = Yh(this, t, [r]), Me(n, "setInputRef", function(y) {
17677
+ Eh([n.props.inputRef, n.inputRef], y);
17669
17678
  }), Me(n, "isCountrySupportedWithError", function(y) {
17670
17679
  var $ = n.props.metadata;
17671
17680
  return hn(y, $);
17672
17681
  }), Me(n, "onCountryChange", function(y) {
17673
- var $ = n.props, S = $.international, b = $.metadata, P = $.onChange, _ = $.focusInputOnCountrySelection, N = n.state, T = N.phoneDigits, D = N.country, H = xh(T, {
17674
- prevCountry: D,
17682
+ var $ = n.props, S = $.international, b = $.metadata, P = $.onChange, _ = $.focusInputOnCountrySelection, N = n.state, T = N.phoneDigits, k = N.country, H = Mh(T, {
17683
+ prevCountry: k,
17675
17684
  newCountry: y,
17676
17685
  metadata: b,
17677
17686
  useNationalFormat: !S
@@ -17686,7 +17695,7 @@ var Qh = /* @__PURE__ */ (function(e) {
17686
17695
  P(J);
17687
17696
  });
17688
17697
  }), Me(n, "onChange", function(y) {
17689
- var $ = n.props, S = $.defaultCountry, b = $.onChange, P = $.addInternationalOption, _ = $.international, N = $.limitMaxLength, T = $.countryCallingCodeEditable, D = $.metadata, H = n.state, J = H.countries, ne = H.phoneDigits, ue = H.country, ae = H.latestCountrySelectedByUser, se = kh(y, {
17698
+ var $ = n.props, S = $.defaultCountry, b = $.onChange, P = $.addInternationalOption, _ = $.international, N = $.limitMaxLength, T = $.countryCallingCodeEditable, k = $.metadata, H = n.state, J = H.countries, ne = H.phoneDigits, ue = H.country, ae = H.latestCountrySelectedByUser, se = Rh(y, {
17690
17699
  prevPhoneDigits: ne,
17691
17700
  country: ue,
17692
17701
  countryRequired: !P,
@@ -17699,13 +17708,13 @@ var Qh = /* @__PURE__ */ (function(e) {
17699
17708
  international: _,
17700
17709
  limitMaxLength: N,
17701
17710
  countryCallingCodeEditable: T,
17702
- metadata: D
17711
+ metadata: k
17703
17712
  }), pe = se.phoneDigits, he = se.country, ye = se.value, Q = {
17704
17713
  phoneDigits: pe,
17705
17714
  value: ye,
17706
17715
  country: he
17707
17716
  };
17708
- ae && ye && !mt(ye, ae, D) && (Q.latestCountrySelectedByUser = void 0), T === !1 && !ye && pe === n.state.phoneDigits && (Q.forceRerender = {}), n.setState(Q, function() {
17717
+ ae && ye && !mt(ye, ae, k) && (Q.latestCountrySelectedByUser = void 0), T === !1 && !ye && pe === n.state.phoneDigits && (Q.forceRerender = {}), n.setState(Q, function() {
17709
17718
  return b(ye);
17710
17719
  });
17711
17720
  }), Me(n, "_onFocus", function() {
@@ -17740,7 +17749,7 @@ var Qh = /* @__PURE__ */ (function(e) {
17740
17749
  m && (n.isCountrySupportedWithError(m) || (m = void 0)), i && Ud(i), p = Vd(p, c);
17741
17750
  var h = Hd(i, c);
17742
17751
  n.CountryIcon = Gd(n.props);
17743
- var v = Ih({
17752
+ var v = Th({
17744
17753
  value: i,
17745
17754
  phoneNumber: h,
17746
17755
  defaultCountry: m,
@@ -17766,7 +17775,7 @@ var Qh = /* @__PURE__ */ (function(e) {
17766
17775
  value: i
17767
17776
  }, n;
17768
17777
  }
17769
- return Xh(t, e), qh(t, [
17778
+ return Jh(t, e), Kh(t, [
17770
17779
  {
17771
17780
  key: "componentDidMount",
17772
17781
  value: function() {
@@ -17786,12 +17795,12 @@ var Qh = /* @__PURE__ */ (function(e) {
17786
17795
  value: function(n) {
17787
17796
  var a = n.countries, i = this.props, o = i.international, s = i.countryCallingCodeEditable, d = i.countryOptionsOrder, l = i.addInternationalOption, c = i.labels, f = i.locales, m = i.metadata;
17788
17797
  return this.useMemoCountrySelectOptions(function() {
17789
- return gh(Th({
17798
+ return Nh(Ah({
17790
17799
  countries: a || Ro(m),
17791
17800
  countryNames: c,
17792
17801
  addInternationalOption: o && s === !1 ? !1 : l,
17793
17802
  compareStringsLocales: f
17794
- }), Nh(d, m));
17803
+ }), Ch(d, m));
17795
17804
  }, [
17796
17805
  a,
17797
17806
  d,
@@ -17804,7 +17813,7 @@ var Qh = /* @__PURE__ */ (function(e) {
17804
17813
  {
17805
17814
  key: "useMemoCountrySelectOptions",
17806
17815
  value: function(n, a) {
17807
- return (!this.countrySelectOptionsMemoDependencies || !ty(a, this.countrySelectOptionsMemoDependencies)) && (this.countrySelectOptionsMemo = n(), this.countrySelectOptionsMemoDependencies = a), this.countrySelectOptionsMemo;
17816
+ return (!this.countrySelectOptionsMemoDependencies || !ry(a, this.countrySelectOptionsMemoDependencies)) && (this.countrySelectOptionsMemo = n(), this.countrySelectOptionsMemoDependencies = a), this.countrySelectOptionsMemo;
17808
17817
  }
17809
17818
  },
17810
17819
  {
@@ -17825,7 +17834,7 @@ var Qh = /* @__PURE__ */ (function(e) {
17825
17834
  n.flags, n.flagComponent, n.flagUrl, n.addInternationalOption, n.internationalIcon, n.displayInitialValueAsLocalNumber, n.initialValueFormat, n.onCountryChange, n.limitMaxLength, n.countryCallingCodeEditable, n.focusInputOnCountrySelection, n.reset;
17826
17835
  var S = n.metadata, b = n.international;
17827
17836
  n.locales;
17828
- var P = Wh(n, Gh), _ = this.state, N = _.country, T = _.countries, D = _.phoneDigits, H = _.isFocused, J = m ? Ym : eh, ne = this.getCountrySelectOptions({ countries: T });
17837
+ var P = zh(n, Wh), _ = this.state, N = _.country, T = _.countries, k = _.phoneDigits, H = _.isFocused, J = m ? Zm : th, ne = this.getCountrySelectOptions({ countries: T });
17829
17838
  return /* @__PURE__ */ F.createElement(v, ht({
17830
17839
  style: d,
17831
17840
  className: (0, Br.default)(l, "PhoneInput", {
@@ -17856,7 +17865,7 @@ var Qh = /* @__PURE__ */ (function(e) {
17856
17865
  name: a,
17857
17866
  metadata: S,
17858
17867
  country: N,
17859
- value: D || "",
17868
+ value: k || "",
17860
17869
  onChange: this.onChange,
17861
17870
  onFocus: this.onFocus,
17862
17871
  onBlur: this.onBlur,
@@ -17870,11 +17879,11 @@ var Qh = /* @__PURE__ */ (function(e) {
17870
17879
  ], [{
17871
17880
  key: "getDerivedStateFromProps",
17872
17881
  value: function(n, a) {
17873
- return Zd({ props: n }, Vh(n, a.props, a));
17882
+ return Zd({ props: n }, Gh(n, a.props, a));
17874
17883
  }
17875
17884
  }]);
17876
17885
  })(F.PureComponent), Qd = /* @__PURE__ */ F.forwardRef(function(e, t) {
17877
- return /* @__PURE__ */ F.createElement(Qh, ht({}, ey(e), { inputRef: t }));
17886
+ return /* @__PURE__ */ F.createElement(ey, ht({}, ty(e), { inputRef: t }));
17878
17887
  });
17879
17888
  Qd.propTypes = {
17880
17889
  value: O.default.string,
@@ -17926,12 +17935,12 @@ var qo = {
17926
17935
  countryCallingCodeEditable: !0,
17927
17936
  focusInputOnCountrySelection: !0
17928
17937
  };
17929
- function ey(e) {
17938
+ function ty(e) {
17930
17939
  e = Zd({}, e);
17931
17940
  for (var t in qo) e[t] === void 0 && (e[t] = qo[t]);
17932
17941
  return e;
17933
17942
  }
17934
- function ty(e, t) {
17943
+ function ry(e, t) {
17935
17944
  if (e.length !== t.length) return !1;
17936
17945
  for (var r = 0; r < e.length; ) {
17937
17946
  if (e[r] !== t[r]) return !1;
@@ -17939,7 +17948,7 @@ function ty(e, t) {
17939
17948
  }
17940
17949
  return !0;
17941
17950
  }
17942
- var ry = {
17951
+ var ny = {
17943
17952
  ext: "ext.",
17944
17953
  country: "Phone number country",
17945
17954
  phone: "Phone",
@@ -18198,7 +18207,7 @@ var ry = {
18198
18207
  ZM: "Zambia",
18199
18208
  ZW: "Zimbabwe",
18200
18209
  ZZ: "International"
18201
- }, ny = ["metadata", "labels"];
18210
+ }, ay = ["metadata", "labels"];
18202
18211
  function fa() {
18203
18212
  return fa = Object.assign ? Object.assign.bind() : function(e) {
18204
18213
  for (var t = 1; t < arguments.length; t++) {
@@ -18208,9 +18217,9 @@ function fa() {
18208
18217
  return e;
18209
18218
  }, fa.apply(this, arguments);
18210
18219
  }
18211
- function ay(e, t) {
18220
+ function iy(e, t) {
18212
18221
  if (e == null) return {};
18213
- var r = iy(e, t), n, a;
18222
+ var r = oy(e, t), n, a;
18214
18223
  if (Object.getOwnPropertySymbols) {
18215
18224
  var i = Object.getOwnPropertySymbols(e);
18216
18225
  for (a = 0; a < i.length; a++)
@@ -18218,7 +18227,7 @@ function ay(e, t) {
18218
18227
  }
18219
18228
  return r;
18220
18229
  }
18221
- function iy(e, t) {
18230
+ function oy(e, t) {
18222
18231
  if (e == null) return {};
18223
18232
  var r = {}, n = Object.keys(e), a, i;
18224
18233
  for (i = 0; i < n.length; i++)
@@ -18227,7 +18236,7 @@ function iy(e, t) {
18227
18236
  }
18228
18237
  function el(e) {
18229
18238
  var t = /* @__PURE__ */ F.forwardRef(function(r, n) {
18230
- var a = r.metadata, i = a === void 0 ? e : a, o = r.labels, s = o === void 0 ? ry : o, d = ay(r, ny);
18239
+ var a = r.metadata, i = a === void 0 ? e : a, o = r.labels, s = o === void 0 ? ny : o, d = iy(r, ay);
18231
18240
  return /* @__PURE__ */ F.createElement(Qd, fa({}, d, {
18232
18241
  ref: n,
18233
18242
  metadata: i,
@@ -18239,16 +18248,16 @@ function el(e) {
18239
18248
  labels: zd
18240
18249
  }, t;
18241
18250
  }
18242
- var jy = el();
18243
- function oy(e, t) {
18251
+ var Uy = el();
18252
+ function sy(e, t) {
18244
18253
  var r = Array.prototype.slice.call(t);
18245
18254
  return r.push(fd), e.apply(this, r);
18246
18255
  }
18247
- var sy = el(fd);
18256
+ var dy = el(fd);
18248
18257
  function dr() {
18249
- return oy(I2, arguments);
18258
+ return sy(T2, arguments);
18250
18259
  }
18251
- var dy = [
18260
+ var ly = [
18252
18261
  "Jan",
18253
18262
  "Feb",
18254
18263
  "Mar",
@@ -18261,7 +18270,7 @@ var dy = [
18261
18270
  "Oct",
18262
18271
  "Nov",
18263
18272
  "Dec"
18264
- ], lr = "consentDraftByService", ly = 15, cy = [
18273
+ ], lr = "consentDraftByService", cy = 15, uy = [
18265
18274
  "IN",
18266
18275
  "US",
18267
18276
  "CA",
@@ -18269,12 +18278,12 @@ var dy = [
18269
18278
  "NZ",
18270
18279
  "AU",
18271
18280
  "CN"
18272
- ], uy = (e) => {
18281
+ ], fy = (e) => {
18273
18282
  const [t, r] = e.split("/");
18274
18283
  return +`${t}${r}`;
18275
18284
  };
18276
- function fy() {
18277
- const e = qe(), { tenantId: t, id: r } = X((w) => w.barber.outletDetails), { timeZone: n, image: a, outletName: i, address: o } = X((w) => w.barber.outletDetails), { staff: s, selectedServices: d, selectedProfessional: l } = X((w) => w.barber.service), { selectedSlotIds: c, selectedDate: f, selectedTime: m } = X((w) => w.barber.slots), { userDetails: p, bookingMode: h, tipPct: v } = X((w) => w.barber.appointment), y = Array.isArray(d) ? d : [d], { selectedSlotIndexes: $, slots: S } = X((w) => w.barber.slots), [b, P] = Z(!1), [_, N] = Z(!1), [T, D] = Z(null), [H, J] = Z(""), [ne, ue] = Z(!1), [ae, se] = Z(""), [pe, he] = Z(""), [ye, Q] = Z(null), [ie, ge] = Z(null), [A, C] = Z({}), [E, M] = Z({}), [k, j] = Z(!1), L = Fe(!1), U = Fe(""), V = be.now().setZone(n ?? "UTC"), [q, G] = Z(null), [K, x] = Z(!1), oe = Fe(""), ve = Fe(null), { register: B, handleSubmit: W, control: Pe, watch: je, reset: Qe, trigger: Jt, setValue: St, formState: { errors: ot, isSubmitted: La } } = pa({
18285
+ function py() {
18286
+ const e = qe(), { tenantId: t, id: r } = X((w) => w.barber.outletDetails), { timeZone: n, image: a, outletName: i, address: o } = X((w) => w.barber.outletDetails), { staff: s, selectedServices: d, selectedProfessional: l } = X((w) => w.barber.service), { selectedSlotIds: c, selectedDate: f, selectedTime: m } = X((w) => w.barber.slots), { userDetails: p, bookingMode: h, tipPct: v } = X((w) => w.barber.appointment), y = Array.isArray(d) ? d : [d], { selectedSlotIndexes: $, slots: S } = X((w) => w.barber.slots), [b, P] = Z(!1), [_, N] = Z(!1), [T, k] = Z(null), [H, J] = Z(""), [ne, ue] = Z(!1), [ae, se] = Z(""), [pe, he] = Z(""), [ye, Q] = Z(null), [ie, ge] = Z(null), [A, C] = Z({}), [E, M] = Z({}), [D, j] = Z(!1), L = Fe(!1), U = Fe(""), V = be.now().setZone(n ?? "UTC"), [q, G] = Z(null), [K, x] = Z(!1), oe = Fe(""), ve = Fe(null), { register: B, handleSubmit: W, control: Pe, watch: je, reset: Qe, trigger: Jt, setValue: St, formState: { errors: ot, isSubmitted: La } } = pa({
18278
18287
  defaultValues: {
18279
18288
  firstName: p?.firstName || "",
18280
18289
  lastName: p?.lastName || "",
@@ -18291,14 +18300,14 @@ function fy() {
18291
18300
  return {
18292
18301
  ...R,
18293
18302
  duration: I?.duration ?? w.estimated_time ?? w.min_time ?? 0,
18294
- tax: ki(R),
18295
- unitTax: ki(R, { perUnit: !0 })
18303
+ tax: Di(R),
18304
+ unitTax: Di(R, { perUnit: !0 })
18296
18305
  };
18297
18306
  }), vn = [
18298
18307
  ...S?.morning ?? [],
18299
18308
  ...S?.afternoon ?? [],
18300
18309
  ...S?.evening ?? []
18301
- ], tl = yn.reduce((w, I) => w + Number(I.duration ?? 0), 0), rl = Math.ceil(tl / ly), nl = (w) => {
18310
+ ], tl = yn.reduce((w, I) => w + Number(I.duration ?? 0), 0), rl = Math.ceil(tl / cy), nl = (w) => {
18302
18311
  if (!vn.length) return "";
18303
18312
  const I = vn[w]?.start_time, R = vn[w + rl - 1];
18304
18313
  return !I || !R ? "" : `${I} - ${R.end_time ?? R.start_time}`;
@@ -18306,7 +18315,7 @@ function fy() {
18306
18315
  day: Number(f?.day ?? V.day),
18307
18316
  month: Number(f?.month ?? V.month),
18308
18317
  year: Number(f?.year ?? V.year)
18309
- }, Va = $?.[0], Ga = Va !== void 0 ? nl(Va) : null, al = Ga ? `${dy[Ua.month]} ${Ua.day} at ${Ga}` : null, bn = yn.reduce((w, I) => w + Number(I.price) * (I.qty ?? 1), 0), Wa = yn.reduce((w, I) => w + I.tax, 0), il = Math.round(Wa * 100), za = bn * v / 100, ol = Math.round(za * 100), Ha = bn + za + Wa, Te = Ce(() => y.filter((w) => !(!Js(w) || (w?.consent_rule?.enforcementMode ?? w?.enforcementMode) === "FIXED")), [y]), sl = Ce(() => Te.map((w) => String(w.id)).filter(Boolean), [Te]), dl = (w) => {
18318
+ }, Va = $?.[0], Ga = Va !== void 0 ? nl(Va) : null, al = Ga ? `${ly[Ua.month]} ${Ua.day} at ${Ga}` : null, bn = yn.reduce((w, I) => w + Number(I.price) * (I.qty ?? 1), 0), Wa = yn.reduce((w, I) => w + I.tax, 0), il = Math.round(Wa * 100), za = bn * v / 100, ol = Math.round(za * 100), Ha = bn + za + Wa, Te = Ce(() => y.filter((w) => !(!Js(w) || (w?.consent_rule?.enforcementMode ?? w?.enforcementMode) === "FIXED")), [y]), sl = Ce(() => Te.map((w) => String(w.id)).filter(Boolean), [Te]), dl = (w) => {
18310
18319
  const I = w?.consent_template ?? w?.consentTemplate ?? null;
18311
18320
  return {
18312
18321
  heading: String(I?.heading ?? "").trim(),
@@ -18576,7 +18585,7 @@ function fy() {
18576
18585
  try {
18577
18586
  P(!0);
18578
18587
  const w = await e(vr(yl)).unwrap(), I = w?.data ?? w, R = I.id || "", z = I.customerId || I.customer?.id || "", me = I.staffId || l?.id || "";
18579
- h === "booking" && Za > 0 && await hl(R, z, me), H === "card" ? (D({
18588
+ h === "booking" && Za > 0 && await hl(R, z, me), H === "card" ? (k({
18580
18589
  appointmentId: R,
18581
18590
  customerId: z
18582
18591
  }), N(!0)) : (e(ir(String(R))), e(Ge()));
@@ -18637,7 +18646,7 @@ function fy() {
18637
18646
  cardHolderName: w.name,
18638
18647
  cardNumber: w.number.replace(/\s/g, ""),
18639
18648
  cardType: z,
18640
- cardExpiry: uy(w.expiry),
18649
+ cardExpiry: fy(w.expiry),
18641
18650
  cvData: w.cvv
18642
18651
  },
18643
18652
  billingContact: {
@@ -18682,7 +18691,7 @@ function fy() {
18682
18691
  consentRequired: Te?.length > 0,
18683
18692
  consentCompleted: Za,
18684
18693
  totalConsents: Ya,
18685
- checkingConsent: k,
18694
+ checkingConsent: D,
18686
18695
  loading: b,
18687
18696
  isBookingDisabled: Nl()
18688
18697
  })
@@ -18726,10 +18735,10 @@ function fy() {
18726
18735
  className: "aaravpos-barber-booking-grid",
18727
18736
  children: [/* @__PURE__ */ g("div", {
18728
18737
  className: "aaravpos-barber-booking-column",
18729
- children: [/* @__PURE__ */ u(Ko, { children: "Appointment" }), /* @__PURE__ */ g(py, { children: [/* @__PURE__ */ g("div", {
18738
+ children: [/* @__PURE__ */ u(Ko, { children: "Appointment" }), /* @__PURE__ */ g(my, { children: [/* @__PURE__ */ g("div", {
18730
18739
  className: "aaravpos-barber-appointment-header",
18731
18740
  children: [
18732
- /* @__PURE__ */ u(my, { pro: l }),
18741
+ /* @__PURE__ */ u(hy, { pro: l }),
18733
18742
  /* @__PURE__ */ g("div", {
18734
18743
  className: "aaravpos-barber-appointment-content",
18735
18744
  children: [/* @__PURE__ */ u("p", {
@@ -18808,11 +18817,11 @@ function fy() {
18808
18817
  } },
18809
18818
  render: ({ field: w }) => /* @__PURE__ */ g("div", {
18810
18819
  className: "aaravpos-barber-input-wrapper",
18811
- children: [/* @__PURE__ */ u(sy, {
18820
+ children: [/* @__PURE__ */ u(dy, {
18812
18821
  ...w,
18813
18822
  id: "phone",
18814
18823
  international: !0,
18815
- countries: cy,
18824
+ countries: uy,
18816
18825
  defaultCountry: "US",
18817
18826
  value: w.value || "",
18818
18827
  onChange: (I) => Ka(I ?? "", w.onChange, "phone"),
@@ -18940,12 +18949,12 @@ function fy() {
18940
18949
  })
18941
18950
  ]
18942
18951
  })] }),
18943
- _ && /* @__PURE__ */ u(O1, {
18952
+ _ && /* @__PURE__ */ u(E1, {
18944
18953
  onClose: gl,
18945
18954
  onPay: $l,
18946
18955
  amount: Ha
18947
18956
  }),
18948
- ne && ie && /* @__PURE__ */ u(Y1, {
18957
+ ne && ie && /* @__PURE__ */ u(Z1, {
18949
18958
  enforcement: ye,
18950
18959
  heading: ae,
18951
18960
  consent: pe,
@@ -18955,13 +18964,13 @@ function fy() {
18955
18964
  ]
18956
18965
  });
18957
18966
  }
18958
- function py({ children: e }) {
18967
+ function my({ children: e }) {
18959
18968
  return /* @__PURE__ */ u("div", {
18960
18969
  className: "aaravpos-barber-card-box",
18961
18970
  children: e
18962
18971
  });
18963
18972
  }
18964
- function my({ pro: e }) {
18973
+ function hy({ pro: e }) {
18965
18974
  return /* @__PURE__ */ u(we, { children: e.imageUrl ? /* @__PURE__ */ u("img", {
18966
18975
  src: e.imageUrl,
18967
18976
  alt: e.name,
@@ -18992,7 +19001,7 @@ function Yo({ icon: e, label: t, selected: r, onClick: n }) {
18992
19001
  ]
18993
19002
  });
18994
19003
  }
18995
- function hy() {
19004
+ function yy() {
18996
19005
  const e = qe(), t = X((N) => N.barber.appointment.appointmentId), { tenantId: r } = X((N) => N.barber.outletDetails), [n, a] = Z(null), [i, o] = Z(!0), [s, d] = Z(null), [l, c] = Z(!1);
18997
19006
  fe(() => {
18998
19007
  if (!t) {
@@ -19028,7 +19037,7 @@ function hy() {
19028
19037
  }), /* @__PURE__ */ g("button", {
19029
19038
  onClick: f,
19030
19039
  className: "aaravpos-barber-book-btn",
19031
- children: [/* @__PURE__ */ u(Di, {}), "Book Another Appointment"]
19040
+ children: [/* @__PURE__ */ u(ki, {}), "Book Another Appointment"]
19032
19041
  })]
19033
19042
  });
19034
19043
  const { staff: m, outlet: p, services: h } = n, v = h?.reduce((N, T) => N + Number(T.price || 0), 0), y = (n.tipsCents || 0) / 100, $ = (n.taxCents || 0) / 100, S = (n.totalCents || 0) / 100, b = S > 0 ? S.toFixed(2) : (v + y + $).toFixed(2), P = l ? h : h.slice(0, 5), _ = h.length - 5;
@@ -19165,20 +19174,20 @@ function hy() {
19165
19174
  }), /* @__PURE__ */ g("button", {
19166
19175
  onClick: f,
19167
19176
  className: "aaravpos-barber-book-btn",
19168
- children: [/* @__PURE__ */ u(Di, {}), "Book Another Appointment"]
19177
+ children: [/* @__PURE__ */ u(ki, {}), "Book Another Appointment"]
19169
19178
  })]
19170
19179
  })
19171
19180
  ]
19172
19181
  })
19173
19182
  });
19174
19183
  }
19175
- function yy() {
19184
+ function vy() {
19176
19185
  const { currentStep: e } = X((r) => r.barber.breadcrumbs), t = {
19177
19186
  professionals: p1,
19178
19187
  services: b1,
19179
- time: S1,
19180
- confirm: fy,
19181
- success: hy
19188
+ time: P1,
19189
+ confirm: py,
19190
+ success: yy
19182
19191
  }[e];
19183
19192
  return /* @__PURE__ */ u("div", {
19184
19193
  className: "aaravpos-barber-layout",
@@ -19191,20 +19200,48 @@ function yy() {
19191
19200
  })
19192
19201
  });
19193
19202
  }
19194
- function vy() {
19195
- return /* @__PURE__ */ g(we, { children: [/* @__PURE__ */ u(yy, {}), /* @__PURE__ */ u(jl, {
19203
+ function by() {
19204
+ return /* @__PURE__ */ g(we, { children: [/* @__PURE__ */ u(vy, {}), /* @__PURE__ */ u(jl, {
19196
19205
  position: "top-right",
19197
19206
  autoClose: 3e3
19198
19207
  })] });
19199
19208
  }
19200
- var by = ({ bookingCode: e }) => {
19209
+ function $y() {
19210
+ return /* @__PURE__ */ g("div", {
19211
+ className: "aaravpos-barber-professional-card skeleton-card",
19212
+ children: [
19213
+ /* @__PURE__ */ u("div", {
19214
+ className: "",
19215
+ children: /* @__PURE__ */ u("div", { className: "aaravpos-barber-skeleton-image shimmer" })
19216
+ }),
19217
+ /* @__PURE__ */ g("div", {
19218
+ className: "aaravpos-barber-skeleton-content",
19219
+ children: [/* @__PURE__ */ u("div", { className: "aaravpos-barber-skeleton-name shimmer" }), /* @__PURE__ */ u("div", { className: "aaravpos-barber-skeleton-role shimmer" })]
19220
+ }),
19221
+ /* @__PURE__ */ u("div", { className: "aaravpos-barber-skeleton-btn shimmer" })
19222
+ ]
19223
+ });
19224
+ }
19225
+ function gy() {
19226
+ return /* @__PURE__ */ u("div", {
19227
+ className: "aaravpos-barber-main-content",
19228
+ children: /* @__PURE__ */ u("div", {
19229
+ className: "aaravpos-barber-professional-wrapper",
19230
+ children: /* @__PURE__ */ u("div", {
19231
+ className: "aaravpos-barber-professional-grid",
19232
+ children: Array.from({ length: 6 }).map((e, t) => /* @__PURE__ */ u($y, {}, t))
19233
+ })
19234
+ })
19235
+ });
19236
+ }
19237
+ var Ny = ({ bookingCode: e }) => {
19201
19238
  const t = qe(), r = X((l) => l.barber.service.staff), n = X((l) => l.barber.theme), [a, i] = Z(!1), [o, s] = Z(null), d = We(async () => {
19202
19239
  try {
19203
19240
  i(!0), s(null);
19204
19241
  const l = await Uu(e);
19205
19242
  if (l?.success) {
19206
19243
  const c = l?.data?.data?.outlets || [], f = c?.[0];
19207
- t(Qu(c)), t(tf(l?.data?.result)), t(ku(l?.data?.token)), t(Fu({ staff: l?.data?.data?.staff || [] })), f && t(Du({
19244
+ t(Qu(c)), t(tf(l?.data?.result)), t(Du(l?.data?.token)), t(Fu({ staff: l?.data?.data?.staff || [] })), f && t(ku({
19208
19245
  ...f,
19209
19246
  tenantId: f?.tenantId ?? "",
19210
19247
  currency: f?.currency ?? "",
@@ -19228,13 +19265,13 @@ var by = ({ bookingCode: e }) => {
19228
19265
  className: "aaravpos-barber-error-box",
19229
19266
  children: o
19230
19267
  }) : a ? /* @__PURE__ */ u("div", {
19231
- className: "aaravpos-barber-loader-wrapper",
19232
- children: /* @__PURE__ */ u("div", { className: "aaravpos-barber-loader" })
19268
+ className: "aaravpos-barber-overflow-hidden",
19269
+ children: /* @__PURE__ */ u(gy, {})
19233
19270
  }) : /* @__PURE__ */ u("div", {
19234
19271
  className: "aaravpos-barber-overflow-hidden",
19235
- children: /* @__PURE__ */ u(vy, {})
19272
+ children: /* @__PURE__ */ u(by, {})
19236
19273
  });
19237
- }, Ly = ({ ...e }) => /* @__PURE__ */ u(ff, { children: /* @__PURE__ */ u(by, { ...e }) });
19274
+ }, Vy = ({ ...e }) => /* @__PURE__ */ u(ff, { children: /* @__PURE__ */ u(Ny, { ...e }) });
19238
19275
  export {
19239
- Ly as AppointmentBarberBooking
19276
+ Vy as AppointmentBarberBooking
19240
19277
  };