strapi-plugin-firebase-authentication 1.5.0 → 1.5.1

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.
@@ -3,9 +3,9 @@ import { Layouts, useQueryParams as useQueryParams$1, getFetchClient, Pagination
3
3
  import { useNavigate, useLocation, useParams, Routes, Route } from "react-router-dom";
4
4
  import { Provider } from "@radix-ui/react-tooltip";
5
5
  import m__default, { useState, useCallback, useMemo, useEffect, useRef, useLayoutEffect } from "react";
6
- import { z as zc, T, R, N as Nn, A as Ar, S as S1, k as k1, a as A1, b as Tr, E, t as t1, v as v1, C as C1, $ as $1, c as bo, w as wo, h as h0, d as a0, o as ot, K as Km, x as x1, G as G0, e as vm, g as getFirebaseConfig$1, F as Fm, D as D1, W as Wd, I as Is, p as pl } from "./api-C0Snp7-s.mjs";
6
+ import { W as Wc, T, R, z as zn, A as Ar, k as k1, a as A1, b as R1, c as Tr, I, n as n1, C as C1, $ as $1, d as T1, y as yo, w as wo, e as d0, f as c0, o as ot, _ as _m, S as S1, X as X0, g as Cm, h as getFirebaseConfig$1, H as Hm, E as E1, P as Ps, i as o1, s as s1, j as a1, l as l1, m as bl } from "./api-DVWAqtdZ.mjs";
7
7
  import { useIntl } from "react-intl";
8
- import { i as isArguments_1, a as isBufferExports, b as isTypedArray_1, c as isLength_1, d as isFunction_1, _ as _getTag, e as _Stack, f as _equalArrays, g as _equalByTag, h as isObjectLike_1, j as getDefaultExportFromCjs, U as U2, k as _baseGetTag, l as _MapCache, m as _Symbol, n as m3, o as bn, N as Nn$1, Y as Y2, J as J2, P as PLUGIN_ID, p as getAugmentedNamespace, q as commonjsGlobal, u as un, s as sn, r as c5, w as w5, t as _3 } from "./index-DrHJAVR8.mjs";
8
+ import { i as isArguments_1, a as isBufferExports, b as isTypedArray_1, c as isLength_1, d as isFunction_1, _ as _Stack, e as _getTag, f as _equalArrays, g as _equalByTag, h as isObjectLike_1, j as getDefaultExportFromCjs, U as U2, k as _baseGetTag, l as _MapCache, m as _Symbol, n as m3, o as bn, N as Nn, Y as Y2, J as J2, P as PLUGIN_ID, p as getAugmentedNamespace, q as commonjsGlobal, u as un, s as sn, r as c5, w as w5, t as _3 } from "./index-CSMCJKO0.mjs";
9
9
  import styled from "styled-components";
10
10
  import { RxCheck, RxCross2 } from "react-icons/rx";
11
11
  import { AiOutlineUserAdd, AiFillPhone, AiFillMail, AiFillYahoo, AiFillGithub, AiFillTwitterCircle, AiFillFacebook, AiFillApple, AiFillGoogleCircle } from "react-icons/ai";
@@ -277,7 +277,7 @@ const Header = ({
277
277
  const navigate = useNavigate();
278
278
  const didChangeData = !isEqual$1(initialData, modifiedData) || isCreatingEntry && !isEmpty$1(modifiedData);
279
279
  const primaryAction = /* @__PURE__ */ jsx(T, { children: /* @__PURE__ */ jsx(R, { children: /* @__PURE__ */ jsx(
280
- Nn,
280
+ zn,
281
281
  {
282
282
  disabled: !didChangeData || isSubmitButtonDisabled,
283
283
  onClick: onSave,
@@ -292,7 +292,7 @@ const Header = ({
292
292
  title,
293
293
  primaryAction,
294
294
  navigationAction: /* @__PURE__ */ jsx(
295
- zc,
295
+ Wc,
296
296
  {
297
297
  startIcon: /* @__PURE__ */ jsx(U2, {}),
298
298
  onClick: (e2) => {
@@ -917,7 +917,7 @@ var formatters = {
917
917
  return addLeadingZeros(week, token.length);
918
918
  },
919
919
  // ISO week of year
920
- I: function I(date, token, localize2) {
920
+ I: function I2(date, token, localize2) {
921
921
  var isoWeek = getUTCISOWeek(date);
922
922
  if (token === "Io") {
923
923
  return localize2.ordinalNumber(isoWeek, {
@@ -946,7 +946,7 @@ var formatters = {
946
946
  return addLeadingZeros(dayOfYear, token.length);
947
947
  },
948
948
  // Day of week
949
- E: function E2(date, token, localize2) {
949
+ E: function E(date, token, localize2) {
950
950
  var dayOfWeek = date.getUTCDay();
951
951
  switch (token) {
952
952
  case "E":
@@ -1990,10 +1990,10 @@ const getPasswordResetTooltip = (user) => {
1990
1990
  }
1991
1991
  return `Password reset is only available for users with email/password authentication. Current provider(s): ${providers}`;
1992
1992
  };
1993
- const TypographyMaxWidth = styled(E)`
1993
+ const TypographyMaxWidth = styled(I)`
1994
1994
  max-width: 300px;
1995
1995
  `;
1996
- const CellLink = styled(A1)`
1996
+ const CellLink = styled(R1)`
1997
1997
  text-decoration: underline;
1998
1998
  color: ${({ theme }) => theme.colors.primary600};
1999
1999
  &:hover {
@@ -2004,7 +2004,7 @@ const CellLink = styled(A1)`
2004
2004
  color: ${({ theme }) => theme.colors.primary600};
2005
2005
  }
2006
2006
  `;
2007
- const ActionCell = styled(A1)`
2007
+ const ActionCell = styled(R1)`
2008
2008
  /* Prevent scroll on button clicks */
2009
2009
  position: relative;
2010
2010
 
@@ -2032,10 +2032,10 @@ const FirebaseTableRows = ({
2032
2032
  const { formatMessage } = useIntl();
2033
2033
  const navigate = useNavigate();
2034
2034
  const location = useLocation();
2035
- return /* @__PURE__ */ jsx(S1, { children: rows.map((data) => {
2035
+ return /* @__PURE__ */ jsx(k1, { children: rows.map((data) => {
2036
2036
  const isChecked = entriesToDelete.includes(data.id);
2037
- return /* @__PURE__ */ jsxs(k1, { children: [
2038
- /* @__PURE__ */ jsx(A1, { children: /* @__PURE__ */ jsx(T, { justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ jsx(
2037
+ return /* @__PURE__ */ jsxs(A1, { children: [
2038
+ /* @__PURE__ */ jsx(R1, { children: /* @__PURE__ */ jsx(T, { justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ jsx(
2039
2039
  Tr,
2040
2040
  {
2041
2041
  "aria-label": formatMessage({
@@ -2075,15 +2075,15 @@ const FirebaseTableRows = ({
2075
2075
  children: data.strapiId
2076
2076
  }
2077
2077
  ) }) }, data.strapiId),
2078
- /* @__PURE__ */ jsx(A1, { children: /* @__PURE__ */ jsx(TypographyMaxWidth, { ellipsis: true, textColor: "neutral800", children: data.username }) }, data.username),
2079
- /* @__PURE__ */ jsx(A1, { children: /* @__PURE__ */ jsx(TypographyMaxWidth, { ellipsis: true, textColor: "neutral800", children: data.displayName }) }),
2080
- /* @__PURE__ */ jsx(A1, { style: { padding: 16 }, children: /* @__PURE__ */ jsx(TypographyMaxWidth, { ellipsis: true, textColor: "neutral800", children: data.email }) }, data.email),
2081
- /* @__PURE__ */ jsx(A1, { style: { padding: 16 }, children: /* @__PURE__ */ jsx(TypographyMaxWidth, { ellipsis: true, textColor: "neutral800", children: data.phoneNumber || "-" }) }, data.phoneNumber),
2082
- /* @__PURE__ */ jsx(A1, { children: /* @__PURE__ */ jsx(MapProviderToIcon, { providerData: data.providerData }) }),
2083
- /* @__PURE__ */ jsx(A1, { children: data.emailVerified ? /* @__PURE__ */ jsx(RxCheck, { size: 24 }) : /* @__PURE__ */ jsx(RxCross2, { size: 24 }) }),
2084
- /* @__PURE__ */ jsx(A1, { children: data.disabled ? /* @__PURE__ */ jsx(RxCheck, { size: 24 }) : /* @__PURE__ */ jsx(RxCross2, { size: 24 }) }, data.disabled),
2085
- /* @__PURE__ */ jsx(A1, { children: /* @__PURE__ */ jsx(TypographyMaxWidth, { ellipsis: true, textColor: "neutral800", children: data.createdAt ? format(new Date(data.createdAt), "yyyy/MM/dd HH:mm z") : data.metadata?.creationTime ? format(new Date(data.metadata.creationTime), "yyyy/MM/dd HH:mm z") : "-" }) }, data.createdAt),
2086
- /* @__PURE__ */ jsx(A1, { children: /* @__PURE__ */ jsx(TypographyMaxWidth, { ellipsis: true, textColor: "neutral800", children: data.metadata?.lastSignInTime ? format(new Date(data.metadata.lastSignInTime), "yyyy/MM/dd HH:mm z") : "-" }) }, data.metadata?.lastSignInTime || "lastSignInTime"),
2078
+ /* @__PURE__ */ jsx(R1, { children: /* @__PURE__ */ jsx(TypographyMaxWidth, { ellipsis: true, textColor: "neutral800", children: data.username }) }, data.username),
2079
+ /* @__PURE__ */ jsx(R1, { children: /* @__PURE__ */ jsx(TypographyMaxWidth, { ellipsis: true, textColor: "neutral800", children: data.displayName }) }),
2080
+ /* @__PURE__ */ jsx(R1, { style: { padding: 16 }, children: /* @__PURE__ */ jsx(TypographyMaxWidth, { ellipsis: true, textColor: "neutral800", children: data.email }) }, data.email),
2081
+ /* @__PURE__ */ jsx(R1, { style: { padding: 16 }, children: /* @__PURE__ */ jsx(TypographyMaxWidth, { ellipsis: true, textColor: "neutral800", children: data.phoneNumber || "-" }) }, data.phoneNumber),
2082
+ /* @__PURE__ */ jsx(R1, { children: /* @__PURE__ */ jsx(MapProviderToIcon, { providerData: data.providerData }) }),
2083
+ /* @__PURE__ */ jsx(R1, { children: data.emailVerified ? /* @__PURE__ */ jsx(RxCheck, { size: 24 }) : /* @__PURE__ */ jsx(RxCross2, { size: 24 }) }),
2084
+ /* @__PURE__ */ jsx(R1, { children: data.disabled ? /* @__PURE__ */ jsx(RxCheck, { size: 24 }) : /* @__PURE__ */ jsx(RxCross2, { size: 24 }) }, data.disabled),
2085
+ /* @__PURE__ */ jsx(R1, { children: /* @__PURE__ */ jsx(TypographyMaxWidth, { ellipsis: true, textColor: "neutral800", children: data.createdAt ? format(new Date(data.createdAt), "yyyy/MM/dd HH:mm z") : data.metadata?.creationTime ? format(new Date(data.metadata.creationTime), "yyyy/MM/dd HH:mm z") : "-" }) }, data.createdAt),
2086
+ /* @__PURE__ */ jsx(R1, { children: /* @__PURE__ */ jsx(TypographyMaxWidth, { ellipsis: true, textColor: "neutral800", children: data.metadata?.lastSignInTime ? format(new Date(data.metadata.lastSignInTime), "yyyy/MM/dd HH:mm z") : "-" }) }, data.metadata?.lastSignInTime || "lastSignInTime"),
2087
2087
  /* @__PURE__ */ jsx(
2088
2088
  ActionCell,
2089
2089
  {
@@ -2096,7 +2096,7 @@ const FirebaseTableRows = ({
2096
2096
  },
2097
2097
  children: /* @__PURE__ */ jsxs(T, { gap: 2, justifyContent: "center", alignItems: "center", children: [
2098
2098
  hasPasswordProvider(data) ? /* @__PURE__ */ jsx(
2099
- Nn,
2099
+ zn,
2100
2100
  {
2101
2101
  onClick: (e2) => {
2102
2102
  e2.preventDefault();
@@ -2118,7 +2118,7 @@ const FirebaseTableRows = ({
2118
2118
  children: /* @__PURE__ */ jsx(m3, { "aria-hidden": true, style: { display: "block" } })
2119
2119
  }
2120
2120
  ) : /* @__PURE__ */ jsx(Ar, { label: getPasswordResetTooltip(data), children: /* @__PURE__ */ jsx(R, { children: /* @__PURE__ */ jsx(
2121
- Nn,
2121
+ zn,
2122
2122
  {
2123
2123
  disabled: true,
2124
2124
  variant: "secondary",
@@ -2138,7 +2138,7 @@ const FirebaseTableRows = ({
2138
2138
  }
2139
2139
  ) }) }),
2140
2140
  /* @__PURE__ */ jsx(
2141
- Nn,
2141
+ zn,
2142
2142
  {
2143
2143
  onClick: (e2) => {
2144
2144
  e2.preventDefault();
@@ -2372,22 +2372,22 @@ const DeleteAccount = ({
2372
2372
  setIsStrapiIncluded(true);
2373
2373
  setIsFirebaseIncluded(true);
2374
2374
  }, [isOpen]);
2375
- return /* @__PURE__ */ jsx(t1.Root, { open: isOpen, onOpenChange: (open) => !open && onToggleDialog(), children: /* @__PURE__ */ jsxs(t1.Content, { children: [
2376
- /* @__PURE__ */ jsx(t1.Header, { children: /* @__PURE__ */ jsx(t1.Title, { children: "Delete Account" }) }),
2377
- /* @__PURE__ */ jsx(t1.Body, { children: /* @__PURE__ */ jsxs(T, { direction: "column", alignItems: "stretch", gap: 4, children: [
2375
+ return /* @__PURE__ */ jsx(n1.Root, { open: isOpen, onOpenChange: (open) => !open && onToggleDialog(), children: /* @__PURE__ */ jsxs(n1.Content, { children: [
2376
+ /* @__PURE__ */ jsx(n1.Header, { children: /* @__PURE__ */ jsx(n1.Title, { children: "Delete Account" }) }),
2377
+ /* @__PURE__ */ jsx(n1.Body, { children: /* @__PURE__ */ jsxs(T, { direction: "column", alignItems: "stretch", gap: 4, children: [
2378
2378
  /* @__PURE__ */ jsxs(T, { direction: "row", alignItems: "center", gap: 2, children: [
2379
- /* @__PURE__ */ jsx(Nn$1, { fill: "danger700", width: "20px", height: "20px" }),
2380
- /* @__PURE__ */ jsx(E, { textColor: "danger700", children: "After you delete an account, it's permanently deleted. Accounts cannot be undeleted." })
2379
+ /* @__PURE__ */ jsx(Nn, { fill: "danger700", width: "20px", height: "20px" }),
2380
+ /* @__PURE__ */ jsx(I, { textColor: "danger700", children: "After you delete an account, it's permanently deleted. Accounts cannot be undeleted." })
2381
2381
  ] }),
2382
2382
  isSingleRecord ? /* @__PURE__ */ jsxs(T, { direction: "column", alignItems: "stretch", gap: 1, children: [
2383
- /* @__PURE__ */ jsx(E, { variant: "sigma", children: "User account" }),
2384
- /* @__PURE__ */ jsx(E, { children: email })
2383
+ /* @__PURE__ */ jsx(I, { variant: "sigma", children: "User account" }),
2384
+ /* @__PURE__ */ jsx(I, { children: email })
2385
2385
  ] }) : /* @__PURE__ */ jsxs(T, { direction: "column", alignItems: "stretch", gap: 1, children: [
2386
- /* @__PURE__ */ jsx(E, { variant: "sigma", children: "Bulk delete operation" }),
2387
- /* @__PURE__ */ jsx(E, { children: "You are about to delete multiple user accounts" })
2386
+ /* @__PURE__ */ jsx(I, { variant: "sigma", children: "Bulk delete operation" }),
2387
+ /* @__PURE__ */ jsx(I, { children: "You are about to delete multiple user accounts" })
2388
2388
  ] }),
2389
2389
  /* @__PURE__ */ jsxs(T, { direction: "column", alignItems: "stretch", gap: 2, children: [
2390
- /* @__PURE__ */ jsx(E, { children: "Delete user from:" }),
2390
+ /* @__PURE__ */ jsx(I, { children: "Delete user from:" }),
2391
2391
  /* @__PURE__ */ jsxs(T, { direction: "row", alignItems: "center", gap: 4, children: [
2392
2392
  /* @__PURE__ */ jsx(
2393
2393
  Tr,
@@ -2408,10 +2408,10 @@ const DeleteAccount = ({
2408
2408
  ] })
2409
2409
  ] })
2410
2410
  ] }) }),
2411
- /* @__PURE__ */ jsxs(t1.Footer, { children: [
2412
- /* @__PURE__ */ jsx(Nn, { onClick: onToggleDialog, variant: "tertiary", children: "Cancel" }),
2411
+ /* @__PURE__ */ jsxs(n1.Footer, { children: [
2412
+ /* @__PURE__ */ jsx(zn, { onClick: onToggleDialog, variant: "tertiary", children: "Cancel" }),
2413
2413
  /* @__PURE__ */ jsx(
2414
- Nn,
2414
+ zn,
2415
2415
  {
2416
2416
  variant: "danger",
2417
2417
  onClick: () => {
@@ -2533,14 +2533,14 @@ const FirebaseTable = ({
2533
2533
  /* @__PURE__ */ jsxs(T, { direction: "row", alignItems: "center", gap: 2, wrap: "nowrap", children: [
2534
2534
  action,
2535
2535
  hasSelection && /* @__PURE__ */ jsxs(Fragment, { children: [
2536
- /* @__PURE__ */ jsxs(E, { variant: "omega", fontWeight: "semiBold", style: { whiteSpace: "nowrap" }, children: [
2536
+ /* @__PURE__ */ jsxs(I, { variant: "omega", fontWeight: "semiBold", style: { whiteSpace: "nowrap" }, children: [
2537
2537
  selectedCount,
2538
2538
  " ",
2539
2539
  selectedCount === 1 ? "entry" : "entries",
2540
2540
  " selected"
2541
2541
  ] }),
2542
2542
  /* @__PURE__ */ jsx(
2543
- Nn,
2543
+ zn,
2544
2544
  {
2545
2545
  variant: "danger",
2546
2546
  startIcon: /* @__PURE__ */ jsx(bn, {}),
@@ -2551,7 +2551,7 @@ const FirebaseTable = ({
2551
2551
  }
2552
2552
  ),
2553
2553
  /* @__PURE__ */ jsx(
2554
- Nn,
2554
+ zn,
2555
2555
  {
2556
2556
  variant: "secondary",
2557
2557
  onClick: clearSelection,
@@ -2564,9 +2564,9 @@ const FirebaseTable = ({
2564
2564
  ] }),
2565
2565
  createAction
2566
2566
  ] }) }),
2567
- /* @__PURE__ */ jsx(StyledTableContainer, { children: /* @__PURE__ */ jsxs(v1, { colCount: tableHeaders.length + 2, rowCount: rows.length + 1, children: [
2568
- /* @__PURE__ */ jsx(C1, { children: /* @__PURE__ */ jsxs(k1, { children: [
2569
- /* @__PURE__ */ jsx($1, { children: /* @__PURE__ */ jsx(
2567
+ /* @__PURE__ */ jsx(StyledTableContainer, { children: /* @__PURE__ */ jsxs(C1, { colCount: tableHeaders.length + 2, rowCount: rows.length + 1, children: [
2568
+ /* @__PURE__ */ jsx($1, { children: /* @__PURE__ */ jsxs(A1, { children: [
2569
+ /* @__PURE__ */ jsx(T1, { children: /* @__PURE__ */ jsx(
2570
2570
  Tr,
2571
2571
  {
2572
2572
  "aria-label": "Select all entries",
@@ -2579,19 +2579,19 @@ const FirebaseTable = ({
2579
2579
  const isSorted = sortBy === header.name;
2580
2580
  const isAsc = sortOrder === "ASC";
2581
2581
  const isSortable = header.metadatas.sortable;
2582
- return /* @__PURE__ */ jsx($1, { children: isSortable ? /* @__PURE__ */ jsxs(
2582
+ return /* @__PURE__ */ jsx(T1, { children: isSortable ? /* @__PURE__ */ jsxs(
2583
2583
  SortButton,
2584
2584
  {
2585
2585
  onClick: () => handleSort(header.name),
2586
2586
  "aria-label": `Sort by ${header.metadatas.label}`,
2587
2587
  children: [
2588
- /* @__PURE__ */ jsx(E, { variant: "sigma", textColor: "neutral600", children: header.metadatas.label }),
2588
+ /* @__PURE__ */ jsx(I, { variant: "sigma", textColor: "neutral600", children: header.metadatas.label }),
2589
2589
  isSorted && /* @__PURE__ */ jsx(Fragment, { children: isAsc ? /* @__PURE__ */ jsx(Y2, { width: "10px", height: "10px" }) : /* @__PURE__ */ jsx(J2, { width: "10px", height: "10px" }) })
2590
2590
  ]
2591
2591
  }
2592
- ) : /* @__PURE__ */ jsx(E, { variant: "sigma", textColor: "neutral600", children: header.metadatas.label }) }, header.key);
2592
+ ) : /* @__PURE__ */ jsx(I, { variant: "sigma", textColor: "neutral600", children: header.metadatas.label }) }, header.key);
2593
2593
  }),
2594
- /* @__PURE__ */ jsx($1, { children: /* @__PURE__ */ jsx(E, { variant: "sigma", textColor: "neutral600", children: "Actions" }) })
2594
+ /* @__PURE__ */ jsx(T1, { children: /* @__PURE__ */ jsx(I, { variant: "sigma", textColor: "neutral600", children: "Actions" }) })
2595
2595
  ] }) }),
2596
2596
  /* @__PURE__ */ jsx(
2597
2597
  FirebaseTableRows,
@@ -2739,9 +2739,9 @@ const PaginationFooter = ({ pageCount = 0 }) => {
2739
2739
  };
2740
2740
  return /* @__PURE__ */ jsx(R, { paddingTop: 4, children: /* @__PURE__ */ jsxs(T, { alignItems: "center", justifyContent: "space-between", children: [
2741
2741
  /* @__PURE__ */ jsxs(T, { alignItems: "center", gap: 2, children: [
2742
- /* @__PURE__ */ jsx(E, { variant: "pi", textColor: "neutral600", children: "Entries per page:" }),
2742
+ /* @__PURE__ */ jsx(I, { variant: "pi", textColor: "neutral600", children: "Entries per page:" }),
2743
2743
  /* @__PURE__ */ jsxs(
2744
- bo,
2744
+ yo,
2745
2745
  {
2746
2746
  size: "S",
2747
2747
  value: pageSize,
@@ -2999,7 +2999,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
2999
2999
  var ys = arrObjKeys(obj, inspect2);
3000
3000
  var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
3001
3001
  var protoTag = obj instanceof Object ? "" : "null prototype";
3002
- var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr$1(obj), 8, -1) : protoTag ? "Object" : "";
3002
+ var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
3003
3003
  var constructorTag = isPlainObject || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
3004
3004
  var tag = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat$1.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
3005
3005
  if (ys.length === 0) {
@@ -3024,25 +3024,25 @@ function canTrustToString(obj) {
3024
3024
  return !toStringTag || !(typeof obj === "object" && (toStringTag in obj || typeof obj[toStringTag] !== "undefined"));
3025
3025
  }
3026
3026
  function isArray$3(obj) {
3027
- return toStr$1(obj) === "[object Array]" && canTrustToString(obj);
3027
+ return toStr(obj) === "[object Array]" && canTrustToString(obj);
3028
3028
  }
3029
3029
  function isDate(obj) {
3030
- return toStr$1(obj) === "[object Date]" && canTrustToString(obj);
3030
+ return toStr(obj) === "[object Date]" && canTrustToString(obj);
3031
3031
  }
3032
3032
  function isRegExp$1(obj) {
3033
- return toStr$1(obj) === "[object RegExp]" && canTrustToString(obj);
3033
+ return toStr(obj) === "[object RegExp]" && canTrustToString(obj);
3034
3034
  }
3035
3035
  function isError(obj) {
3036
- return toStr$1(obj) === "[object Error]" && canTrustToString(obj);
3036
+ return toStr(obj) === "[object Error]" && canTrustToString(obj);
3037
3037
  }
3038
3038
  function isString(obj) {
3039
- return toStr$1(obj) === "[object String]" && canTrustToString(obj);
3039
+ return toStr(obj) === "[object String]" && canTrustToString(obj);
3040
3040
  }
3041
3041
  function isNumber(obj) {
3042
- return toStr$1(obj) === "[object Number]" && canTrustToString(obj);
3042
+ return toStr(obj) === "[object Number]" && canTrustToString(obj);
3043
3043
  }
3044
3044
  function isBoolean(obj) {
3045
- return toStr$1(obj) === "[object Boolean]" && canTrustToString(obj);
3045
+ return toStr(obj) === "[object Boolean]" && canTrustToString(obj);
3046
3046
  }
3047
3047
  function isSymbol(obj) {
3048
3048
  if (hasShammedSymbols) {
@@ -3078,7 +3078,7 @@ var hasOwn$1 = Object.prototype.hasOwnProperty || function(key) {
3078
3078
  function has$3(obj, key) {
3079
3079
  return hasOwn$1.call(obj, key);
3080
3080
  }
3081
- function toStr$1(obj) {
3081
+ function toStr(obj) {
3082
3082
  return objectToString.call(obj);
3083
3083
  }
3084
3084
  function nameOf(f) {
@@ -3387,7 +3387,7 @@ var syntax = SyntaxError;
3387
3387
  var uri = URIError;
3388
3388
  var abs$1 = Math.abs;
3389
3389
  var floor$1 = Math.floor;
3390
- var max$2 = Math.max;
3390
+ var max$1 = Math.max;
3391
3391
  var min$1 = Math.min;
3392
3392
  var pow$1 = Math.pow;
3393
3393
  var round$1 = Math.round;
@@ -3516,78 +3516,99 @@ function requireObject_getPrototypeOf() {
3516
3516
  Object_getPrototypeOf = $Object2.getPrototypeOf || null;
3517
3517
  return Object_getPrototypeOf;
3518
3518
  }
3519
- var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
3520
- var toStr = Object.prototype.toString;
3521
- var max$1 = Math.max;
3522
- var funcType = "[object Function]";
3523
- var concatty = function concatty2(a3, b2) {
3524
- var arr = [];
3525
- for (var i2 = 0; i2 < a3.length; i2 += 1) {
3526
- arr[i2] = a3[i2];
3527
- }
3528
- for (var j = 0; j < b2.length; j += 1) {
3529
- arr[j + a3.length] = b2[j];
3530
- }
3531
- return arr;
3532
- };
3533
- var slicy = function slicy2(arrLike, offset) {
3534
- var arr = [];
3535
- for (var i2 = offset, j = 0; i2 < arrLike.length; i2 += 1, j += 1) {
3536
- arr[j] = arrLike[i2];
3537
- }
3538
- return arr;
3539
- };
3540
- var joiny = function(arr, joiner) {
3541
- var str = "";
3542
- for (var i2 = 0; i2 < arr.length; i2 += 1) {
3543
- str += arr[i2];
3544
- if (i2 + 1 < arr.length) {
3545
- str += joiner;
3519
+ var implementation;
3520
+ var hasRequiredImplementation;
3521
+ function requireImplementation() {
3522
+ if (hasRequiredImplementation) return implementation;
3523
+ hasRequiredImplementation = 1;
3524
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
3525
+ var toStr2 = Object.prototype.toString;
3526
+ var max2 = Math.max;
3527
+ var funcType = "[object Function]";
3528
+ var concatty = function concatty2(a3, b2) {
3529
+ var arr = [];
3530
+ for (var i2 = 0; i2 < a3.length; i2 += 1) {
3531
+ arr[i2] = a3[i2];
3532
+ }
3533
+ for (var j = 0; j < b2.length; j += 1) {
3534
+ arr[j + a3.length] = b2[j];
3535
+ }
3536
+ return arr;
3537
+ };
3538
+ var slicy = function slicy2(arrLike, offset) {
3539
+ var arr = [];
3540
+ for (var i2 = offset, j = 0; i2 < arrLike.length; i2 += 1, j += 1) {
3541
+ arr[j] = arrLike[i2];
3546
3542
  }
3547
- }
3548
- return str;
3549
- };
3550
- var implementation$1 = function bind(that) {
3551
- var target = this;
3552
- if (typeof target !== "function" || toStr.apply(target) !== funcType) {
3553
- throw new TypeError(ERROR_MESSAGE + target);
3554
- }
3555
- var args = slicy(arguments, 1);
3556
- var bound;
3557
- var binder = function() {
3558
- if (this instanceof bound) {
3559
- var result = target.apply(
3560
- this,
3561
- concatty(args, arguments)
3562
- );
3563
- if (Object(result) === result) {
3564
- return result;
3543
+ return arr;
3544
+ };
3545
+ var joiny = function(arr, joiner) {
3546
+ var str = "";
3547
+ for (var i2 = 0; i2 < arr.length; i2 += 1) {
3548
+ str += arr[i2];
3549
+ if (i2 + 1 < arr.length) {
3550
+ str += joiner;
3565
3551
  }
3566
- return this;
3567
3552
  }
3568
- return target.apply(
3569
- that,
3570
- concatty(args, arguments)
3571
- );
3553
+ return str;
3572
3554
  };
3573
- var boundLength = max$1(0, target.length - args.length);
3574
- var boundArgs = [];
3575
- for (var i2 = 0; i2 < boundLength; i2++) {
3576
- boundArgs[i2] = "$" + i2;
3577
- }
3578
- bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
3579
- if (target.prototype) {
3580
- var Empty = function Empty2() {
3555
+ implementation = function bind2(that) {
3556
+ var target = this;
3557
+ if (typeof target !== "function" || toStr2.apply(target) !== funcType) {
3558
+ throw new TypeError(ERROR_MESSAGE + target);
3559
+ }
3560
+ var args = slicy(arguments, 1);
3561
+ var bound;
3562
+ var binder = function() {
3563
+ if (this instanceof bound) {
3564
+ var result = target.apply(
3565
+ this,
3566
+ concatty(args, arguments)
3567
+ );
3568
+ if (Object(result) === result) {
3569
+ return result;
3570
+ }
3571
+ return this;
3572
+ }
3573
+ return target.apply(
3574
+ that,
3575
+ concatty(args, arguments)
3576
+ );
3581
3577
  };
3582
- Empty.prototype = target.prototype;
3583
- bound.prototype = new Empty();
3584
- Empty.prototype = null;
3585
- }
3586
- return bound;
3587
- };
3588
- var implementation = implementation$1;
3589
- var functionBind = Function.prototype.bind || implementation;
3590
- var functionCall = Function.prototype.call;
3578
+ var boundLength = max2(0, target.length - args.length);
3579
+ var boundArgs = [];
3580
+ for (var i2 = 0; i2 < boundLength; i2++) {
3581
+ boundArgs[i2] = "$" + i2;
3582
+ }
3583
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
3584
+ if (target.prototype) {
3585
+ var Empty = function Empty2() {
3586
+ };
3587
+ Empty.prototype = target.prototype;
3588
+ bound.prototype = new Empty();
3589
+ Empty.prototype = null;
3590
+ }
3591
+ return bound;
3592
+ };
3593
+ return implementation;
3594
+ }
3595
+ var functionBind;
3596
+ var hasRequiredFunctionBind;
3597
+ function requireFunctionBind() {
3598
+ if (hasRequiredFunctionBind) return functionBind;
3599
+ hasRequiredFunctionBind = 1;
3600
+ var implementation2 = requireImplementation();
3601
+ functionBind = Function.prototype.bind || implementation2;
3602
+ return functionBind;
3603
+ }
3604
+ var functionCall;
3605
+ var hasRequiredFunctionCall;
3606
+ function requireFunctionCall() {
3607
+ if (hasRequiredFunctionCall) return functionCall;
3608
+ hasRequiredFunctionCall = 1;
3609
+ functionCall = Function.prototype.call;
3610
+ return functionCall;
3611
+ }
3591
3612
  var functionApply;
3592
3613
  var hasRequiredFunctionApply;
3593
3614
  function requireFunctionApply() {
@@ -3597,14 +3618,14 @@ function requireFunctionApply() {
3597
3618
  return functionApply;
3598
3619
  }
3599
3620
  var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
3600
- var bind$2 = functionBind;
3621
+ var bind$2 = requireFunctionBind();
3601
3622
  var $apply$1 = requireFunctionApply();
3602
- var $call$2 = functionCall;
3623
+ var $call$2 = requireFunctionCall();
3603
3624
  var $reflectApply = reflectApply;
3604
3625
  var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
3605
- var bind$1 = functionBind;
3626
+ var bind$1 = requireFunctionBind();
3606
3627
  var $TypeError$4 = type;
3607
- var $call$1 = functionCall;
3628
+ var $call$1 = requireFunctionCall();
3608
3629
  var $actualApply = actualApply;
3609
3630
  var callBindApplyHelpers = function callBindBasic(args) {
3610
3631
  if (args.length < 1 || typeof args[0] !== "function") {
@@ -3670,8 +3691,8 @@ function requireHasown() {
3670
3691
  hasRequiredHasown = 1;
3671
3692
  var call = Function.prototype.call;
3672
3693
  var $hasOwn = Object.prototype.hasOwnProperty;
3673
- var bind3 = functionBind;
3674
- hasown = bind3.call(call, $hasOwn);
3694
+ var bind2 = requireFunctionBind();
3695
+ hasown = bind2.call(call, $hasOwn);
3675
3696
  return hasown;
3676
3697
  }
3677
3698
  var undefined$1;
@@ -3685,7 +3706,7 @@ var $TypeError$3 = type;
3685
3706
  var $URIError = uri;
3686
3707
  var abs = abs$1;
3687
3708
  var floor = floor$1;
3688
- var max = max$2;
3709
+ var max = max$1;
3689
3710
  var min = min$1;
3690
3711
  var pow = pow$1;
3691
3712
  var round = round$1;
@@ -3719,7 +3740,7 @@ var getProto = requireGetProto();
3719
3740
  var $ObjectGPO = requireObject_getPrototypeOf();
3720
3741
  var $ReflectGPO = requireReflect_getPrototypeOf();
3721
3742
  var $apply = requireFunctionApply();
3722
- var $call = functionCall;
3743
+ var $call = requireFunctionCall();
3723
3744
  var needsEval = {};
3724
3745
  var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
3725
3746
  var INTRINSICS = {
@@ -3890,13 +3911,13 @@ var LEGACY_ALIASES = {
3890
3911
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
3891
3912
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
3892
3913
  };
3893
- var bind2 = functionBind;
3914
+ var bind = requireFunctionBind();
3894
3915
  var hasOwn = requireHasown();
3895
- var $concat = bind2.call($call, Array.prototype.concat);
3896
- var $spliceApply = bind2.call($apply, Array.prototype.splice);
3897
- var $replace = bind2.call($call, String.prototype.replace);
3898
- var $strSlice = bind2.call($call, String.prototype.slice);
3899
- var $exec = bind2.call($call, RegExp.prototype.exec);
3916
+ var $concat = bind.call($call, Array.prototype.concat);
3917
+ var $spliceApply = bind.call($apply, Array.prototype.splice);
3918
+ var $replace = bind.call($call, String.prototype.replace);
3919
+ var $strSlice = bind.call($call, String.prototype.slice);
3920
+ var $exec = bind.call($call, RegExp.prototype.exec);
3900
3921
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
3901
3922
  var reEscapeChar = /\\(\\)?/g;
3902
3923
  var stringToPath = function stringToPath2(string) {
@@ -4166,7 +4187,7 @@ var Format = {
4166
4187
  RFC1738: "RFC1738",
4167
4188
  RFC3986: "RFC3986"
4168
4189
  };
4169
- var formats$3 = {
4190
+ var formats$2 = {
4170
4191
  "default": Format.RFC3986,
4171
4192
  formatters: {
4172
4193
  RFC1738: function(value) {
@@ -4176,12 +4197,26 @@ var formats$3 = {
4176
4197
  return String(value);
4177
4198
  }
4178
4199
  },
4179
- RFC1738: Format.RFC1738,
4180
- RFC3986: Format.RFC3986
4200
+ RFC1738: Format.RFC1738
4181
4201
  };
4182
- var formats$2 = formats$3;
4202
+ var formats$1 = formats$2;
4203
+ var getSideChannel$1 = sideChannel;
4183
4204
  var has$2 = Object.prototype.hasOwnProperty;
4184
4205
  var isArray$2 = Array.isArray;
4206
+ var overflowChannel = getSideChannel$1();
4207
+ var markOverflow = function markOverflow2(obj, maxIndex) {
4208
+ overflowChannel.set(obj, maxIndex);
4209
+ return obj;
4210
+ };
4211
+ var isOverflow = function isOverflow2(obj) {
4212
+ return overflowChannel.has(obj);
4213
+ };
4214
+ var getMaxIndex = function getMaxIndex2(obj) {
4215
+ return overflowChannel.get(obj);
4216
+ };
4217
+ var setMaxIndex = function setMaxIndex2(obj, maxIndex) {
4218
+ overflowChannel.set(obj, maxIndex);
4219
+ };
4185
4220
  var hexTable = function() {
4186
4221
  var array = [];
4187
4222
  for (var i2 = 0; i2 < 256; ++i2) {
@@ -4205,7 +4240,7 @@ var compactQueue = function compactQueue2(queue) {
4205
4240
  }
4206
4241
  };
4207
4242
  var arrayToObject = function arrayToObject2(source, options) {
4208
- var obj = options && options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
4243
+ var obj = options && options.plainObjects ? { __proto__: null } : {};
4209
4244
  for (var i2 = 0; i2 < source.length; ++i2) {
4210
4245
  if (typeof source[i2] !== "undefined") {
4211
4246
  obj[i2] = source[i2];
@@ -4217,11 +4252,15 @@ var merge = function merge2(target, source, options) {
4217
4252
  if (!source) {
4218
4253
  return target;
4219
4254
  }
4220
- if (typeof source !== "object") {
4255
+ if (typeof source !== "object" && typeof source !== "function") {
4221
4256
  if (isArray$2(target)) {
4222
4257
  target.push(source);
4223
4258
  } else if (target && typeof target === "object") {
4224
- if (options && (options.plainObjects || options.allowPrototypes) || !has$2.call(Object.prototype, source)) {
4259
+ if (isOverflow(target)) {
4260
+ var newIndex = getMaxIndex(target) + 1;
4261
+ target[newIndex] = source;
4262
+ setMaxIndex(target, newIndex);
4263
+ } else if (options && (options.plainObjects || options.allowPrototypes) || !has$2.call(Object.prototype, source)) {
4225
4264
  target[source] = true;
4226
4265
  }
4227
4266
  } else {
@@ -4230,6 +4269,15 @@ var merge = function merge2(target, source, options) {
4230
4269
  return target;
4231
4270
  }
4232
4271
  if (!target || typeof target !== "object") {
4272
+ if (isOverflow(source)) {
4273
+ var sourceKeys = Object.keys(source);
4274
+ var result = options && options.plainObjects ? { __proto__: null, 0: target } : { 0: target };
4275
+ for (var m4 = 0; m4 < sourceKeys.length; m4++) {
4276
+ var oldKey = parseInt(sourceKeys[m4], 10);
4277
+ result[oldKey + 1] = source[sourceKeys[m4]];
4278
+ }
4279
+ return markOverflow(result, getMaxIndex(source) + 1);
4280
+ }
4233
4281
  return [target].concat(source);
4234
4282
  }
4235
4283
  var mergeTarget = target;
@@ -4267,7 +4315,7 @@ var assign = function assignSingleSource(target, source) {
4267
4315
  return acc;
4268
4316
  }, target);
4269
4317
  };
4270
- var decode = function(str, decoder, charset) {
4318
+ var decode = function(str, defaultDecoder, charset) {
4271
4319
  var strWithoutPlus = str.replace(/\+/g, " ");
4272
4320
  if (charset === "iso-8859-1") {
4273
4321
  return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
@@ -4278,6 +4326,7 @@ var decode = function(str, decoder, charset) {
4278
4326
  return strWithoutPlus;
4279
4327
  }
4280
4328
  };
4329
+ var limit = 1024;
4281
4330
  var encode = function encode2(str, defaultEncoder, charset, kind, format2) {
4282
4331
  if (str.length === 0) {
4283
4332
  return str;
@@ -4294,27 +4343,32 @@ var encode = function encode2(str, defaultEncoder, charset, kind, format2) {
4294
4343
  });
4295
4344
  }
4296
4345
  var out = "";
4297
- for (var i2 = 0; i2 < string.length; ++i2) {
4298
- var c2 = string.charCodeAt(i2);
4299
- if (c2 === 45 || c2 === 46 || c2 === 95 || c2 === 126 || c2 >= 48 && c2 <= 57 || c2 >= 65 && c2 <= 90 || c2 >= 97 && c2 <= 122 || format2 === formats$2.RFC1738 && (c2 === 40 || c2 === 41)) {
4300
- out += string.charAt(i2);
4301
- continue;
4302
- }
4303
- if (c2 < 128) {
4304
- out = out + hexTable[c2];
4305
- continue;
4306
- }
4307
- if (c2 < 2048) {
4308
- out = out + (hexTable[192 | c2 >> 6] + hexTable[128 | c2 & 63]);
4309
- continue;
4310
- }
4311
- if (c2 < 55296 || c2 >= 57344) {
4312
- out = out + (hexTable[224 | c2 >> 12] + hexTable[128 | c2 >> 6 & 63] + hexTable[128 | c2 & 63]);
4313
- continue;
4346
+ for (var j = 0; j < string.length; j += limit) {
4347
+ var segment = string.length >= limit ? string.slice(j, j + limit) : string;
4348
+ var arr = [];
4349
+ for (var i2 = 0; i2 < segment.length; ++i2) {
4350
+ var c2 = segment.charCodeAt(i2);
4351
+ if (c2 === 45 || c2 === 46 || c2 === 95 || c2 === 126 || c2 >= 48 && c2 <= 57 || c2 >= 65 && c2 <= 90 || c2 >= 97 && c2 <= 122 || format2 === formats$1.RFC1738 && (c2 === 40 || c2 === 41)) {
4352
+ arr[arr.length] = segment.charAt(i2);
4353
+ continue;
4354
+ }
4355
+ if (c2 < 128) {
4356
+ arr[arr.length] = hexTable[c2];
4357
+ continue;
4358
+ }
4359
+ if (c2 < 2048) {
4360
+ arr[arr.length] = hexTable[192 | c2 >> 6] + hexTable[128 | c2 & 63];
4361
+ continue;
4362
+ }
4363
+ if (c2 < 55296 || c2 >= 57344) {
4364
+ arr[arr.length] = hexTable[224 | c2 >> 12] + hexTable[128 | c2 >> 6 & 63] + hexTable[128 | c2 & 63];
4365
+ continue;
4366
+ }
4367
+ i2 += 1;
4368
+ c2 = 65536 + ((c2 & 1023) << 10 | segment.charCodeAt(i2) & 1023);
4369
+ arr[arr.length] = hexTable[240 | c2 >> 18] + hexTable[128 | c2 >> 12 & 63] + hexTable[128 | c2 >> 6 & 63] + hexTable[128 | c2 & 63];
4314
4370
  }
4315
- i2 += 1;
4316
- c2 = 65536 + ((c2 & 1023) << 10 | string.charCodeAt(i2) & 1023);
4317
- out += hexTable[240 | c2 >> 18] + hexTable[128 | c2 >> 12 & 63] + hexTable[128 | c2 >> 6 & 63] + hexTable[128 | c2 & 63];
4371
+ out += arr.join("");
4318
4372
  }
4319
4373
  return out;
4320
4374
  };
@@ -4346,8 +4400,18 @@ var isBuffer = function isBuffer2(obj) {
4346
4400
  }
4347
4401
  return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
4348
4402
  };
4349
- var combine = function combine2(a3, b2) {
4350
- return [].concat(a3, b2);
4403
+ var combine = function combine2(a3, b2, arrayLimit, plainObjects) {
4404
+ if (isOverflow(a3)) {
4405
+ var newIndex = getMaxIndex(a3) + 1;
4406
+ a3[newIndex] = b2;
4407
+ setMaxIndex(a3, newIndex);
4408
+ return a3;
4409
+ }
4410
+ var result = [].concat(a3, b2);
4411
+ if (result.length > arrayLimit) {
4412
+ return markOverflow(arrayToObject(result, { plainObjects }), result.length - 1);
4413
+ }
4414
+ return result;
4351
4415
  };
4352
4416
  var maybeMap = function maybeMap2(val, fn) {
4353
4417
  if (isArray$2(val)) {
@@ -4367,13 +4431,14 @@ var utils$2 = {
4367
4431
  decode,
4368
4432
  encode,
4369
4433
  isBuffer,
4434
+ isOverflow,
4370
4435
  isRegExp,
4371
4436
  maybeMap,
4372
4437
  merge
4373
4438
  };
4374
4439
  var getSideChannel2 = sideChannel;
4375
4440
  var utils$1 = utils$2;
4376
- var formats$1 = formats$3;
4441
+ var formats = formats$2;
4377
4442
  var has$1 = Object.prototype.hasOwnProperty;
4378
4443
  var arrayPrefixGenerators = {
4379
4444
  brackets: function brackets(prefix) {
@@ -4393,18 +4458,23 @@ var pushToArray = function(arr, valueOrArray) {
4393
4458
  push.apply(arr, isArray$1(valueOrArray) ? valueOrArray : [valueOrArray]);
4394
4459
  };
4395
4460
  var toISO = Date.prototype.toISOString;
4396
- var defaultFormat = formats$1["default"];
4461
+ var defaultFormat = formats["default"];
4397
4462
  var defaults$1 = {
4398
4463
  addQueryPrefix: false,
4399
4464
  allowDots: false,
4465
+ allowEmptyArrays: false,
4466
+ arrayFormat: "indices",
4400
4467
  charset: "utf-8",
4401
4468
  charsetSentinel: false,
4469
+ commaRoundTrip: false,
4402
4470
  delimiter: "&",
4403
4471
  encode: true,
4472
+ encodeDotInKeys: false,
4404
4473
  encoder: utils$1.encode,
4405
4474
  encodeValuesOnly: false,
4475
+ filter: void 0,
4406
4476
  format: defaultFormat,
4407
- formatter: formats$1.formatters[defaultFormat],
4477
+ formatter: formats.formatters[defaultFormat],
4408
4478
  // deprecated
4409
4479
  indices: false,
4410
4480
  serializeDate: function serializeDate(date) {
@@ -4417,7 +4487,7 @@ var isNonNullishPrimitive = function isNonNullishPrimitive2(v) {
4417
4487
  return typeof v === "string" || typeof v === "number" || typeof v === "boolean" || typeof v === "symbol" || typeof v === "bigint";
4418
4488
  };
4419
4489
  var sentinel = {};
4420
- var stringify$1 = function stringify(object, prefix, generateArrayPrefix, commaRoundTrip, strictNullHandling, skipNulls, encoder, filter, sort, allowDots, serializeDate2, format2, formatter, encodeValuesOnly, charset, sideChannel2) {
4490
+ var stringify$1 = function stringify(object, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder, filter, sort, allowDots, serializeDate2, format2, formatter, encodeValuesOnly, charset, sideChannel2) {
4421
4491
  var obj = object;
4422
4492
  var tmpSc = sideChannel2;
4423
4493
  var step = 0;
@@ -4477,14 +4547,19 @@ var stringify$1 = function stringify(object, prefix, generateArrayPrefix, commaR
4477
4547
  var keys2 = Object.keys(obj);
4478
4548
  objKeys = sort ? keys2.sort(sort) : keys2;
4479
4549
  }
4480
- var adjustedPrefix = commaRoundTrip && isArray$1(obj) && obj.length === 1 ? prefix + "[]" : prefix;
4550
+ var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, "%2E") : String(prefix);
4551
+ var adjustedPrefix = commaRoundTrip && isArray$1(obj) && obj.length === 1 ? encodedPrefix + "[]" : encodedPrefix;
4552
+ if (allowEmptyArrays && isArray$1(obj) && obj.length === 0) {
4553
+ return adjustedPrefix + "[]";
4554
+ }
4481
4555
  for (var j = 0; j < objKeys.length; ++j) {
4482
4556
  var key = objKeys[j];
4483
- var value = typeof key === "object" && typeof key.value !== "undefined" ? key.value : obj[key];
4557
+ var value = typeof key === "object" && key && typeof key.value !== "undefined" ? key.value : obj[key];
4484
4558
  if (skipNulls && value === null) {
4485
4559
  continue;
4486
4560
  }
4487
- var keyPrefix = isArray$1(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + key : "[" + key + "]");
4561
+ var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, "%2E") : String(key);
4562
+ var keyPrefix = isArray$1(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + encodedKey : "[" + encodedKey + "]");
4488
4563
  sideChannel2.set(object, step);
4489
4564
  var valueSideChannel = getSideChannel2();
4490
4565
  valueSideChannel.set(sentinel, sideChannel2);
@@ -4493,8 +4568,10 @@ var stringify$1 = function stringify(object, prefix, generateArrayPrefix, commaR
4493
4568
  keyPrefix,
4494
4569
  generateArrayPrefix,
4495
4570
  commaRoundTrip,
4571
+ allowEmptyArrays,
4496
4572
  strictNullHandling,
4497
4573
  skipNulls,
4574
+ encodeDotInKeys,
4498
4575
  generateArrayPrefix === "comma" && encodeValuesOnly && isArray$1(obj) ? null : encoder,
4499
4576
  filter,
4500
4577
  sort,
@@ -4513,6 +4590,12 @@ var normalizeStringifyOptions = function normalizeStringifyOptions2(opts) {
4513
4590
  if (!opts) {
4514
4591
  return defaults$1;
4515
4592
  }
4593
+ if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
4594
+ throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
4595
+ }
4596
+ if (typeof opts.encodeDotInKeys !== "undefined" && typeof opts.encodeDotInKeys !== "boolean") {
4597
+ throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
4598
+ }
4516
4599
  if (opts.encoder !== null && typeof opts.encoder !== "undefined" && typeof opts.encoder !== "function") {
4517
4600
  throw new TypeError("Encoder has to be a function.");
4518
4601
  }
@@ -4520,25 +4603,41 @@ var normalizeStringifyOptions = function normalizeStringifyOptions2(opts) {
4520
4603
  if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
4521
4604
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
4522
4605
  }
4523
- var format2 = formats$1["default"];
4606
+ var format2 = formats["default"];
4524
4607
  if (typeof opts.format !== "undefined") {
4525
- if (!has$1.call(formats$1.formatters, opts.format)) {
4608
+ if (!has$1.call(formats.formatters, opts.format)) {
4526
4609
  throw new TypeError("Unknown format option provided.");
4527
4610
  }
4528
4611
  format2 = opts.format;
4529
4612
  }
4530
- var formatter = formats$1.formatters[format2];
4613
+ var formatter = formats.formatters[format2];
4531
4614
  var filter = defaults$1.filter;
4532
4615
  if (typeof opts.filter === "function" || isArray$1(opts.filter)) {
4533
4616
  filter = opts.filter;
4534
4617
  }
4618
+ var arrayFormat;
4619
+ if (opts.arrayFormat in arrayPrefixGenerators) {
4620
+ arrayFormat = opts.arrayFormat;
4621
+ } else if ("indices" in opts) {
4622
+ arrayFormat = opts.indices ? "indices" : "repeat";
4623
+ } else {
4624
+ arrayFormat = defaults$1.arrayFormat;
4625
+ }
4626
+ if ("commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") {
4627
+ throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
4628
+ }
4629
+ var allowDots = typeof opts.allowDots === "undefined" ? opts.encodeDotInKeys === true ? true : defaults$1.allowDots : !!opts.allowDots;
4535
4630
  return {
4536
4631
  addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults$1.addQueryPrefix,
4537
- allowDots: typeof opts.allowDots === "undefined" ? defaults$1.allowDots : !!opts.allowDots,
4632
+ allowDots,
4633
+ allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults$1.allowEmptyArrays,
4634
+ arrayFormat,
4538
4635
  charset,
4539
4636
  charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults$1.charsetSentinel,
4637
+ commaRoundTrip: !!opts.commaRoundTrip,
4540
4638
  delimiter: typeof opts.delimiter === "undefined" ? defaults$1.delimiter : opts.delimiter,
4541
4639
  encode: typeof opts.encode === "boolean" ? opts.encode : defaults$1.encode,
4640
+ encodeDotInKeys: typeof opts.encodeDotInKeys === "boolean" ? opts.encodeDotInKeys : defaults$1.encodeDotInKeys,
4542
4641
  encoder: typeof opts.encoder === "function" ? opts.encoder : defaults$1.encoder,
4543
4642
  encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults$1.encodeValuesOnly,
4544
4643
  filter,
@@ -4566,19 +4665,8 @@ var stringify_1 = function(object, opts) {
4566
4665
  if (typeof obj !== "object" || obj === null) {
4567
4666
  return "";
4568
4667
  }
4569
- var arrayFormat;
4570
- if (opts && opts.arrayFormat in arrayPrefixGenerators) {
4571
- arrayFormat = opts.arrayFormat;
4572
- } else if (opts && "indices" in opts) {
4573
- arrayFormat = opts.indices ? "indices" : "repeat";
4574
- } else {
4575
- arrayFormat = "indices";
4576
- }
4577
- var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
4578
- if (opts && "commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") {
4579
- throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
4580
- }
4581
- var commaRoundTrip = generateArrayPrefix === "comma" && opts && opts.commaRoundTrip;
4668
+ var generateArrayPrefix = arrayPrefixGenerators[options.arrayFormat];
4669
+ var commaRoundTrip = generateArrayPrefix === "comma" && options.commaRoundTrip;
4582
4670
  if (!objKeys) {
4583
4671
  objKeys = Object.keys(obj);
4584
4672
  }
@@ -4588,16 +4676,19 @@ var stringify_1 = function(object, opts) {
4588
4676
  var sideChannel2 = getSideChannel2();
4589
4677
  for (var i2 = 0; i2 < objKeys.length; ++i2) {
4590
4678
  var key = objKeys[i2];
4591
- if (options.skipNulls && obj[key] === null) {
4679
+ var value = obj[key];
4680
+ if (options.skipNulls && value === null) {
4592
4681
  continue;
4593
4682
  }
4594
4683
  pushToArray(keys2, stringify$1(
4595
- obj[key],
4684
+ value,
4596
4685
  key,
4597
4686
  generateArrayPrefix,
4598
4687
  commaRoundTrip,
4688
+ options.allowEmptyArrays,
4599
4689
  options.strictNullHandling,
4600
4690
  options.skipNulls,
4691
+ options.encodeDotInKeys,
4601
4692
  options.encode ? options.encoder : null,
4602
4693
  options.filter,
4603
4694
  options.sort,
@@ -4626,40 +4717,55 @@ var has = Object.prototype.hasOwnProperty;
4626
4717
  var isArray = Array.isArray;
4627
4718
  var defaults = {
4628
4719
  allowDots: false,
4720
+ allowEmptyArrays: false,
4629
4721
  allowPrototypes: false,
4630
4722
  allowSparse: false,
4631
4723
  arrayLimit: 20,
4632
4724
  charset: "utf-8",
4633
4725
  charsetSentinel: false,
4634
4726
  comma: false,
4727
+ decodeDotInKeys: false,
4635
4728
  decoder: utils.decode,
4636
4729
  delimiter: "&",
4637
4730
  depth: 5,
4731
+ duplicates: "combine",
4638
4732
  ignoreQueryPrefix: false,
4639
4733
  interpretNumericEntities: false,
4640
4734
  parameterLimit: 1e3,
4641
4735
  parseArrays: true,
4642
4736
  plainObjects: false,
4643
- strictNullHandling: false
4737
+ strictDepth: false,
4738
+ strictNullHandling: false,
4739
+ throwOnLimitExceeded: false
4644
4740
  };
4645
4741
  var interpretNumericEntities = function(str) {
4646
4742
  return str.replace(/&#(\d+);/g, function($0, numberStr) {
4647
4743
  return String.fromCharCode(parseInt(numberStr, 10));
4648
4744
  });
4649
4745
  };
4650
- var parseArrayValue = function(val, options) {
4746
+ var parseArrayValue = function(val, options, currentArrayLength) {
4651
4747
  if (val && typeof val === "string" && options.comma && val.indexOf(",") > -1) {
4652
4748
  return val.split(",");
4653
4749
  }
4750
+ if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) {
4751
+ throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
4752
+ }
4654
4753
  return val;
4655
4754
  };
4656
4755
  var isoSentinel = "utf8=%26%2310003%3B";
4657
4756
  var charsetSentinel = "utf8=%E2%9C%93";
4658
4757
  var parseValues = function parseQueryStringValues(str, options) {
4659
- var obj = {};
4758
+ var obj = { __proto__: null };
4660
4759
  var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, "") : str;
4661
- var limit = options.parameterLimit === Infinity ? void 0 : options.parameterLimit;
4662
- var parts = cleanStr.split(options.delimiter, limit);
4760
+ cleanStr = cleanStr.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
4761
+ var limit2 = options.parameterLimit === Infinity ? void 0 : options.parameterLimit;
4762
+ var parts = cleanStr.split(
4763
+ options.delimiter,
4764
+ options.throwOnLimitExceeded ? limit2 + 1 : limit2
4765
+ );
4766
+ if (options.throwOnLimitExceeded && parts.length > limit2) {
4767
+ throw new RangeError("Parameter limit exceeded. Only " + limit2 + " parameter" + (limit2 === 1 ? "" : "s") + " allowed.");
4768
+ }
4663
4769
  var skipIndex = -1;
4664
4770
  var i2;
4665
4771
  var charset = options.charset;
@@ -4683,65 +4789,100 @@ var parseValues = function parseQueryStringValues(str, options) {
4683
4789
  var part = parts[i2];
4684
4790
  var bracketEqualsPos = part.indexOf("]=");
4685
4791
  var pos = bracketEqualsPos === -1 ? part.indexOf("=") : bracketEqualsPos + 1;
4686
- var key, val;
4792
+ var key;
4793
+ var val;
4687
4794
  if (pos === -1) {
4688
4795
  key = options.decoder(part, defaults.decoder, charset, "key");
4689
4796
  val = options.strictNullHandling ? null : "";
4690
4797
  } else {
4691
4798
  key = options.decoder(part.slice(0, pos), defaults.decoder, charset, "key");
4692
- val = utils.maybeMap(
4693
- parseArrayValue(part.slice(pos + 1), options),
4694
- function(encodedVal) {
4695
- return options.decoder(encodedVal, defaults.decoder, charset, "value");
4696
- }
4697
- );
4799
+ if (key !== null) {
4800
+ val = utils.maybeMap(
4801
+ parseArrayValue(
4802
+ part.slice(pos + 1),
4803
+ options,
4804
+ isArray(obj[key]) ? obj[key].length : 0
4805
+ ),
4806
+ function(encodedVal) {
4807
+ return options.decoder(encodedVal, defaults.decoder, charset, "value");
4808
+ }
4809
+ );
4810
+ }
4698
4811
  }
4699
4812
  if (val && options.interpretNumericEntities && charset === "iso-8859-1") {
4700
- val = interpretNumericEntities(val);
4813
+ val = interpretNumericEntities(String(val));
4701
4814
  }
4702
4815
  if (part.indexOf("[]=") > -1) {
4703
4816
  val = isArray(val) ? [val] : val;
4704
4817
  }
4705
- if (has.call(obj, key)) {
4706
- obj[key] = utils.combine(obj[key], val);
4707
- } else {
4708
- obj[key] = val;
4818
+ if (key !== null) {
4819
+ var existing = has.call(obj, key);
4820
+ if (existing && options.duplicates === "combine") {
4821
+ obj[key] = utils.combine(
4822
+ obj[key],
4823
+ val,
4824
+ options.arrayLimit,
4825
+ options.plainObjects
4826
+ );
4827
+ } else if (!existing || options.duplicates === "last") {
4828
+ obj[key] = val;
4829
+ }
4709
4830
  }
4710
4831
  }
4711
4832
  return obj;
4712
4833
  };
4713
4834
  var parseObject = function(chain, val, options, valuesParsed) {
4714
- var leaf = valuesParsed ? val : parseArrayValue(val, options);
4835
+ var currentArrayLength = 0;
4836
+ if (chain.length > 0 && chain[chain.length - 1] === "[]") {
4837
+ var parentKey = chain.slice(0, -1).join("");
4838
+ currentArrayLength = Array.isArray(val) && val[parentKey] ? val[parentKey].length : 0;
4839
+ }
4840
+ var leaf = valuesParsed ? val : parseArrayValue(val, options, currentArrayLength);
4715
4841
  for (var i2 = chain.length - 1; i2 >= 0; --i2) {
4716
4842
  var obj;
4717
4843
  var root = chain[i2];
4718
4844
  if (root === "[]" && options.parseArrays) {
4719
- obj = [].concat(leaf);
4845
+ if (utils.isOverflow(leaf)) {
4846
+ obj = leaf;
4847
+ } else {
4848
+ obj = options.allowEmptyArrays && (leaf === "" || options.strictNullHandling && leaf === null) ? [] : utils.combine(
4849
+ [],
4850
+ leaf,
4851
+ options.arrayLimit,
4852
+ options.plainObjects
4853
+ );
4854
+ }
4720
4855
  } else {
4721
- obj = options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
4856
+ obj = options.plainObjects ? { __proto__: null } : {};
4722
4857
  var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
4723
- var index = parseInt(cleanRoot, 10);
4724
- if (!options.parseArrays && cleanRoot === "") {
4858
+ var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
4859
+ var index = parseInt(decodedRoot, 10);
4860
+ if (!options.parseArrays && decodedRoot === "") {
4725
4861
  obj = { 0: leaf };
4726
- } else if (!isNaN(index) && root !== cleanRoot && String(index) === cleanRoot && index >= 0 && (options.parseArrays && index <= options.arrayLimit)) {
4862
+ } else if (!isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && (options.parseArrays && index <= options.arrayLimit)) {
4727
4863
  obj = [];
4728
4864
  obj[index] = leaf;
4729
- } else if (cleanRoot !== "__proto__") {
4730
- obj[cleanRoot] = leaf;
4865
+ } else if (decodedRoot !== "__proto__") {
4866
+ obj[decodedRoot] = leaf;
4731
4867
  }
4732
4868
  }
4733
4869
  leaf = obj;
4734
4870
  }
4735
4871
  return leaf;
4736
4872
  };
4737
- var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
4738
- if (!givenKey) {
4739
- return;
4740
- }
4873
+ var splitKeyIntoSegments = function splitKeyIntoSegments2(givenKey, options) {
4741
4874
  var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, "[$1]") : givenKey;
4875
+ if (options.depth <= 0) {
4876
+ if (!options.plainObjects && has.call(Object.prototype, key)) {
4877
+ if (!options.allowPrototypes) {
4878
+ return;
4879
+ }
4880
+ }
4881
+ return [key];
4882
+ }
4742
4883
  var brackets2 = /(\[[^[\]]*])/;
4743
4884
  var child = /(\[[^[\]]*])/g;
4744
- var segment = options.depth > 0 && brackets2.exec(key);
4885
+ var segment = brackets2.exec(key);
4745
4886
  var parent = segment ? key.slice(0, segment.index) : key;
4746
4887
  var keys2 = [];
4747
4888
  if (parent) {
@@ -4753,9 +4894,10 @@ var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesPars
4753
4894
  keys2.push(parent);
4754
4895
  }
4755
4896
  var i2 = 0;
4756
- while (options.depth > 0 && (segment = child.exec(key)) !== null && i2 < options.depth) {
4897
+ while ((segment = child.exec(key)) !== null && i2 < options.depth) {
4757
4898
  i2 += 1;
4758
- if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
4899
+ var segmentContent = segment[1].slice(1, -1);
4900
+ if (!options.plainObjects && has.call(Object.prototype, segmentContent)) {
4759
4901
  if (!options.allowPrototypes) {
4760
4902
  return;
4761
4903
  }
@@ -4763,48 +4905,80 @@ var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesPars
4763
4905
  keys2.push(segment[1]);
4764
4906
  }
4765
4907
  if (segment) {
4908
+ if (options.strictDepth === true) {
4909
+ throw new RangeError("Input depth exceeded depth option of " + options.depth + " and strictDepth is true");
4910
+ }
4766
4911
  keys2.push("[" + key.slice(segment.index) + "]");
4767
4912
  }
4913
+ return keys2;
4914
+ };
4915
+ var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
4916
+ if (!givenKey) {
4917
+ return;
4918
+ }
4919
+ var keys2 = splitKeyIntoSegments(givenKey, options);
4920
+ if (!keys2) {
4921
+ return;
4922
+ }
4768
4923
  return parseObject(keys2, val, options, valuesParsed);
4769
4924
  };
4770
4925
  var normalizeParseOptions = function normalizeParseOptions2(opts) {
4771
4926
  if (!opts) {
4772
4927
  return defaults;
4773
4928
  }
4774
- if (opts.decoder !== null && opts.decoder !== void 0 && typeof opts.decoder !== "function") {
4929
+ if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
4930
+ throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
4931
+ }
4932
+ if (typeof opts.decodeDotInKeys !== "undefined" && typeof opts.decodeDotInKeys !== "boolean") {
4933
+ throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
4934
+ }
4935
+ if (opts.decoder !== null && typeof opts.decoder !== "undefined" && typeof opts.decoder !== "function") {
4775
4936
  throw new TypeError("Decoder has to be a function.");
4776
4937
  }
4777
4938
  if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
4778
4939
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
4779
4940
  }
4941
+ if (typeof opts.throwOnLimitExceeded !== "undefined" && typeof opts.throwOnLimitExceeded !== "boolean") {
4942
+ throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
4943
+ }
4780
4944
  var charset = typeof opts.charset === "undefined" ? defaults.charset : opts.charset;
4945
+ var duplicates = typeof opts.duplicates === "undefined" ? defaults.duplicates : opts.duplicates;
4946
+ if (duplicates !== "combine" && duplicates !== "first" && duplicates !== "last") {
4947
+ throw new TypeError("The duplicates option must be either combine, first, or last");
4948
+ }
4949
+ var allowDots = typeof opts.allowDots === "undefined" ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
4781
4950
  return {
4782
- allowDots: typeof opts.allowDots === "undefined" ? defaults.allowDots : !!opts.allowDots,
4951
+ allowDots,
4952
+ allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
4783
4953
  allowPrototypes: typeof opts.allowPrototypes === "boolean" ? opts.allowPrototypes : defaults.allowPrototypes,
4784
4954
  allowSparse: typeof opts.allowSparse === "boolean" ? opts.allowSparse : defaults.allowSparse,
4785
4955
  arrayLimit: typeof opts.arrayLimit === "number" ? opts.arrayLimit : defaults.arrayLimit,
4786
4956
  charset,
4787
4957
  charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
4788
4958
  comma: typeof opts.comma === "boolean" ? opts.comma : defaults.comma,
4959
+ decodeDotInKeys: typeof opts.decodeDotInKeys === "boolean" ? opts.decodeDotInKeys : defaults.decodeDotInKeys,
4789
4960
  decoder: typeof opts.decoder === "function" ? opts.decoder : defaults.decoder,
4790
4961
  delimiter: typeof opts.delimiter === "string" || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
4791
4962
  // eslint-disable-next-line no-implicit-coercion, no-extra-parens
4792
4963
  depth: typeof opts.depth === "number" || opts.depth === false ? +opts.depth : defaults.depth,
4964
+ duplicates,
4793
4965
  ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
4794
4966
  interpretNumericEntities: typeof opts.interpretNumericEntities === "boolean" ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
4795
4967
  parameterLimit: typeof opts.parameterLimit === "number" ? opts.parameterLimit : defaults.parameterLimit,
4796
4968
  parseArrays: opts.parseArrays !== false,
4797
4969
  plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults.plainObjects,
4798
- strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling
4970
+ strictDepth: typeof opts.strictDepth === "boolean" ? !!opts.strictDepth : defaults.strictDepth,
4971
+ strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling,
4972
+ throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === "boolean" ? opts.throwOnLimitExceeded : false
4799
4973
  };
4800
4974
  };
4801
4975
  var parse$1 = function(str, opts) {
4802
4976
  var options = normalizeParseOptions(opts);
4803
4977
  if (str === "" || str === null || typeof str === "undefined") {
4804
- return options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
4978
+ return options.plainObjects ? { __proto__: null } : {};
4805
4979
  }
4806
4980
  var tempObj = typeof str === "string" ? parseValues(str, options) : str;
4807
- var obj = options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
4981
+ var obj = options.plainObjects ? { __proto__: null } : {};
4808
4982
  var keys2 = Object.keys(tempObj);
4809
4983
  for (var i2 = 0; i2 < keys2.length; ++i2) {
4810
4984
  var key = keys2[i2];
@@ -4818,9 +4992,7 @@ var parse$1 = function(str, opts) {
4818
4992
  };
4819
4993
  var stringify2 = stringify_1;
4820
4994
  var parse = parse$1;
4821
- var formats = formats$3;
4822
4995
  var lib = {
4823
- formats,
4824
4996
  parse,
4825
4997
  stringify: stringify2
4826
4998
  };
@@ -4844,7 +5016,7 @@ const useQueryParams = (initialParams) => {
4844
5016
  } else {
4845
5017
  nextQuery = { ...query, ...nextParams };
4846
5018
  }
4847
- navigate({ search: lib.stringify(nextQuery, { encode: false }) });
5019
+ navigate({ search: lib.stringify(nextQuery) });
4848
5020
  },
4849
5021
  [navigate, query]
4850
5022
  );
@@ -4879,8 +5051,8 @@ const SearchURLQuery = ({ label, placeholder = void 0 }) => {
4879
5051
  }
4880
5052
  };
4881
5053
  if (isOpen) {
4882
- return /* @__PURE__ */ jsx("div", { ref: wrapperRef, style: { width: "100%" }, children: /* @__PURE__ */ jsx(h0, { onSubmit: handleSubmit, children: /* @__PURE__ */ jsx(
4883
- a0,
5054
+ return /* @__PURE__ */ jsx("div", { ref: wrapperRef, style: { width: "100%" }, children: /* @__PURE__ */ jsx(d0, { onSubmit: handleSubmit, children: /* @__PURE__ */ jsx(
5055
+ c0,
4884
5056
  {
4885
5057
  name: "search",
4886
5058
  onChange: ({ target: { value: value2 } }) => setValue(value2),
@@ -4978,23 +5150,23 @@ const ResetPassword = ({
4978
5150
  setIsLoading(false);
4979
5151
  }
4980
5152
  };
4981
- return /* @__PURE__ */ jsx(Km.Root, { open: isOpen, onOpenChange: (open) => !open && handleClose(), children: /* @__PURE__ */ jsxs(Km.Content, { children: [
4982
- /* @__PURE__ */ jsx(Km.Header, { children: "Reset Password" }),
4983
- /* @__PURE__ */ jsx(Km.Body, { children: /* @__PURE__ */ jsxs(T, { direction: "column", gap: 4, children: [
5153
+ return /* @__PURE__ */ jsx(_m.Root, { open: isOpen, onOpenChange: (open) => !open && handleClose(), children: /* @__PURE__ */ jsxs(_m.Content, { children: [
5154
+ /* @__PURE__ */ jsx(_m.Header, { children: "Reset Password" }),
5155
+ /* @__PURE__ */ jsx(_m.Body, { children: /* @__PURE__ */ jsxs(T, { direction: "column", gap: 4, children: [
4984
5156
  /* @__PURE__ */ jsxs(T, { direction: "column", gap: 1, children: [
4985
- /* @__PURE__ */ jsx(E, { variant: "sigma", children: "User email" }),
4986
- /* @__PURE__ */ jsx(E, { children: email })
5157
+ /* @__PURE__ */ jsx(I, { variant: "sigma", children: "User email" }),
5158
+ /* @__PURE__ */ jsx(I, { children: email })
4987
5159
  ] }),
4988
- /* @__PURE__ */ jsxs(x1.Root, { value: mode, onValueChange: (val) => setMode(val), children: [
4989
- /* @__PURE__ */ jsxs(x1.List, { children: [
4990
- /* @__PURE__ */ jsx(x1.Trigger, { value: "direct", children: "Set Password Directly" }),
4991
- /* @__PURE__ */ jsx(x1.Trigger, { value: "email", children: "Send Reset Email" })
5160
+ /* @__PURE__ */ jsxs(S1.Root, { value: mode, onValueChange: (val) => setMode(val), children: [
5161
+ /* @__PURE__ */ jsxs(S1.List, { children: [
5162
+ /* @__PURE__ */ jsx(S1.Trigger, { value: "direct", children: "Set Password Directly" }),
5163
+ /* @__PURE__ */ jsx(S1.Trigger, { value: "email", children: "Send Reset Email" })
4992
5164
  ] }),
4993
- /* @__PURE__ */ jsx(x1.Content, { value: "direct", children: /* @__PURE__ */ jsxs(T, { direction: "column", gap: 3, paddingTop: 4, children: [
4994
- /* @__PURE__ */ jsx(E, { children: "Set a new password for this user. The user will not be notified of this change." }),
5165
+ /* @__PURE__ */ jsx(S1.Content, { value: "direct", children: /* @__PURE__ */ jsxs(T, { direction: "column", gap: 3, paddingTop: 4, children: [
5166
+ /* @__PURE__ */ jsx(I, { children: "Set a new password for this user. The user will not be notified of this change." }),
4995
5167
  /* @__PURE__ */ jsxs(T, { direction: "column", gap: 1, children: [
4996
5168
  /* @__PURE__ */ jsx(
4997
- G0,
5169
+ X0,
4998
5170
  {
4999
5171
  type: "password",
5000
5172
  label: "New password",
@@ -5008,24 +5180,24 @@ const ResetPassword = ({
5008
5180
  required: true
5009
5181
  }
5010
5182
  ),
5011
- isPasswordChanged && password && !validatePassword(password) && /* @__PURE__ */ jsx(E, { variant: "pi", textColor: "danger500", children: passwordMessage })
5183
+ isPasswordChanged && password && !validatePassword(password) && /* @__PURE__ */ jsx(I, { variant: "pi", textColor: "danger500", children: passwordMessage })
5012
5184
  ] })
5013
5185
  ] }) }),
5014
- /* @__PURE__ */ jsx(x1.Content, { value: "email", children: /* @__PURE__ */ jsx(T, { direction: "column", gap: 3, paddingTop: 4, children: !emailSent ? /* @__PURE__ */ jsxs(E, { children: [
5186
+ /* @__PURE__ */ jsx(S1.Content, { value: "email", children: /* @__PURE__ */ jsx(T, { direction: "column", gap: 3, paddingTop: 4, children: !emailSent ? /* @__PURE__ */ jsxs(I, { children: [
5015
5187
  "Send a password reset email to ",
5016
5188
  /* @__PURE__ */ jsx("strong", { children: email }),
5017
5189
  ". The link will expire in 1 hour."
5018
- ] }) : /* @__PURE__ */ jsxs(vm, { variant: "success", title: "Email Sent", children: [
5190
+ ] }) : /* @__PURE__ */ jsxs(Cm, { variant: "success", title: "Email Sent", children: [
5019
5191
  "Password reset email has been sent to ",
5020
5192
  email
5021
5193
  ] }) }) })
5022
5194
  ] }),
5023
- error && /* @__PURE__ */ jsx(vm, { variant: "danger", title: "Error", children: error })
5195
+ error && /* @__PURE__ */ jsx(Cm, { variant: "danger", title: "Error", children: error })
5024
5196
  ] }) }),
5025
- /* @__PURE__ */ jsxs(Km.Footer, { children: [
5026
- /* @__PURE__ */ jsx(Nn, { onClick: handleClose, variant: "tertiary", children: emailSent ? "Close" : "Cancel" }),
5197
+ /* @__PURE__ */ jsxs(_m.Footer, { children: [
5198
+ /* @__PURE__ */ jsx(zn, { onClick: handleClose, variant: "tertiary", children: emailSent ? "Close" : "Cancel" }),
5027
5199
  !emailSent && /* @__PURE__ */ jsx(
5028
- Nn,
5200
+ zn,
5029
5201
  {
5030
5202
  variant: mode === "direct" ? "danger-light" : "success",
5031
5203
  loading: isLoading,
@@ -5068,25 +5240,25 @@ const ResendVerification = ({
5068
5240
  setIsLoading(false);
5069
5241
  }
5070
5242
  };
5071
- return /* @__PURE__ */ jsx(Km.Root, { open: isOpen, onOpenChange: (open) => !open && handleClose(), children: /* @__PURE__ */ jsxs(Km.Content, { children: [
5072
- /* @__PURE__ */ jsx(Km.Header, { children: "Resend Verification Email" }),
5073
- /* @__PURE__ */ jsx(Km.Body, { children: /* @__PURE__ */ jsxs(T, { direction: "column", gap: 4, alignItems: "center", children: [
5243
+ return /* @__PURE__ */ jsx(_m.Root, { open: isOpen, onOpenChange: (open) => !open && handleClose(), children: /* @__PURE__ */ jsxs(_m.Content, { children: [
5244
+ /* @__PURE__ */ jsx(_m.Header, { children: "Resend Verification Email" }),
5245
+ /* @__PURE__ */ jsx(_m.Body, { children: /* @__PURE__ */ jsxs(T, { direction: "column", gap: 4, alignItems: "center", children: [
5074
5246
  !emailSent ? /* @__PURE__ */ jsxs(Fragment, { children: [
5075
- /* @__PURE__ */ jsxs(E, { textAlign: "center", children: [
5247
+ /* @__PURE__ */ jsxs(I, { textAlign: "center", children: [
5076
5248
  "Send a verification email to ",
5077
5249
  /* @__PURE__ */ jsx("strong", { children: email }),
5078
5250
  "?"
5079
5251
  ] }),
5080
- /* @__PURE__ */ jsx(E, { variant: "omega", textColor: "neutral600", textAlign: "center", children: "The link will expire in 1 hour." })
5081
- ] }) : /* @__PURE__ */ jsxs(vm, { variant: "success", title: "Email Sent", children: [
5252
+ /* @__PURE__ */ jsx(I, { variant: "omega", textColor: "neutral600", textAlign: "center", children: "The link will expire in 1 hour." })
5253
+ ] }) : /* @__PURE__ */ jsxs(Cm, { variant: "success", title: "Email Sent", children: [
5082
5254
  "Verification email has been sent to ",
5083
5255
  email
5084
5256
  ] }),
5085
- error && /* @__PURE__ */ jsx(vm, { variant: "danger", title: "Error", children: error })
5257
+ error && /* @__PURE__ */ jsx(Cm, { variant: "danger", title: "Error", children: error })
5086
5258
  ] }) }),
5087
- /* @__PURE__ */ jsxs(Km.Footer, { children: [
5088
- /* @__PURE__ */ jsx(Nn, { onClick: handleClose, variant: "tertiary", children: emailSent ? "Close" : "Cancel" }),
5089
- !emailSent && /* @__PURE__ */ jsx(Nn, { variant: "success", loading: isLoading, onClick: handleSendEmail, children: "Send" })
5259
+ /* @__PURE__ */ jsxs(_m.Footer, { children: [
5260
+ /* @__PURE__ */ jsx(zn, { onClick: handleClose, variant: "tertiary", children: emailSent ? "Close" : "Cancel" }),
5261
+ !emailSent && /* @__PURE__ */ jsx(zn, { variant: "success", loading: isLoading, onClick: handleSendEmail, children: "Send" })
5090
5262
  ] })
5091
5263
  ] }) });
5092
5264
  };
@@ -5254,7 +5426,7 @@ function ListView({ data, meta }) {
5254
5426
  navigate("users/create");
5255
5427
  }, [navigate]);
5256
5428
  const getCreateAction = useCallback(
5257
- () => /* @__PURE__ */ jsx(Nn, { onClick: handleNavigateToCreate, startIcon: /* @__PURE__ */ jsx(sn, {}), children: "Create" }),
5429
+ () => /* @__PURE__ */ jsx(zn, { onClick: handleNavigateToCreate, startIcon: /* @__PURE__ */ jsx(sn, {}), children: "Create" }),
5258
5430
  [handleNavigateToCreate]
5259
5431
  );
5260
5432
  const handleCloseResetDialogue = useCallback(() => {
@@ -5319,7 +5491,7 @@ function ListView({ data, meta }) {
5319
5491
  {
5320
5492
  subtitle: headSubtitle,
5321
5493
  title: HEADER_TITLE,
5322
- navigationAction: /* @__PURE__ */ jsx(zc, { startIcon: /* @__PURE__ */ jsx(U2, {}), to: "/content-manager/", children: "Back" })
5494
+ navigationAction: /* @__PURE__ */ jsx(Wc, { startIcon: /* @__PURE__ */ jsx(U2, {}), to: "/content-manager/", children: "Back" })
5323
5495
  }
5324
5496
  ),
5325
5497
  /* @__PURE__ */ jsxs(Layouts.Content, { children: [
@@ -5432,10 +5604,10 @@ const HomePage = () => {
5432
5604
  return /* @__PURE__ */ jsxs(StyledPageMain, { children: [
5433
5605
  /* @__PURE__ */ jsx(Page.Title, { children: "Firebase Users" }),
5434
5606
  !isNotConfigured ? /* @__PURE__ */ jsx(ContentContainer, { children: /* @__PURE__ */ jsx(T, { direction: "column", alignItems: "stretch", gap: 4, children: /* @__PURE__ */ jsx(ListView, {}) }) }) : /* @__PURE__ */ jsxs(T, { direction: "column", marginTop: 10, children: [
5435
- /* @__PURE__ */ jsx(Nn$1, {}),
5436
- /* @__PURE__ */ jsx(R, { marginTop: 1, children: /* @__PURE__ */ jsx(E, { children: "Firebase is not configured, please configure Firebase" }) }),
5607
+ /* @__PURE__ */ jsx(Nn, {}),
5608
+ /* @__PURE__ */ jsx(R, { marginTop: 1, children: /* @__PURE__ */ jsx(I, { children: "Firebase is not configured, please configure Firebase" }) }),
5437
5609
  /* @__PURE__ */ jsx(
5438
- Nn,
5610
+ zn,
5439
5611
  {
5440
5612
  marginTop: 3,
5441
5613
  onClick: () => {
@@ -5629,14 +5801,14 @@ const UserFormFields = ({
5629
5801
  }) => {
5630
5802
  return /* @__PURE__ */ jsxs(Fragment, { children: [
5631
5803
  /* @__PURE__ */ jsxs(
5632
- Fm.Root,
5804
+ Hm.Root,
5633
5805
  {
5634
5806
  style: { width: "50%" },
5635
5807
  error: emailError || (hasBeenTouched && !userData?.email && !userData?.phoneNumber ? "Email or Phone Number is required" : void 0),
5636
5808
  children: [
5637
- /* @__PURE__ */ jsx(Fm.Label, { children: "Email" }),
5809
+ /* @__PURE__ */ jsx(Hm.Label, { children: "Email" }),
5638
5810
  /* @__PURE__ */ jsx(
5639
- G0,
5811
+ X0,
5640
5812
  {
5641
5813
  id: "email",
5642
5814
  name: "email",
@@ -5646,14 +5818,14 @@ const UserFormFields = ({
5646
5818
  value: userData.email || ""
5647
5819
  }
5648
5820
  ),
5649
- /* @__PURE__ */ jsx(Fm.Error, {})
5821
+ /* @__PURE__ */ jsx(Hm.Error, {})
5650
5822
  ]
5651
5823
  }
5652
5824
  ),
5653
- /* @__PURE__ */ jsxs(Fm.Root, { style: { width: "50%" }, children: [
5654
- /* @__PURE__ */ jsx(Fm.Label, { children: "Display Name" }),
5825
+ /* @__PURE__ */ jsxs(Hm.Root, { style: { width: "50%" }, children: [
5826
+ /* @__PURE__ */ jsx(Hm.Label, { children: "Display Name" }),
5655
5827
  /* @__PURE__ */ jsx(
5656
- G0,
5828
+ X0,
5657
5829
  {
5658
5830
  id: "displayName",
5659
5831
  name: "displayName",
@@ -5663,8 +5835,8 @@ const UserFormFields = ({
5663
5835
  }
5664
5836
  )
5665
5837
  ] }),
5666
- /* @__PURE__ */ jsxs(Fm.Root, { style: { width: "50%" }, error: phoneError || void 0, children: [
5667
- /* @__PURE__ */ jsx(Fm.Label, { children: "Phone Number" }),
5838
+ /* @__PURE__ */ jsxs(Hm.Root, { style: { width: "50%" }, error: phoneError || void 0, children: [
5839
+ /* @__PURE__ */ jsx(Hm.Label, { children: "Phone Number" }),
5668
5840
  /* @__PURE__ */ jsx(StyledPhoneInputWrapper, { children: /* @__PURE__ */ jsx(
5669
5841
  PhoneInput,
5670
5842
  {
@@ -5694,18 +5866,18 @@ const UserFormFields = ({
5694
5866
  }
5695
5867
  }
5696
5868
  ) }),
5697
- /* @__PURE__ */ jsx(Fm.Error, {}),
5698
- /* @__PURE__ */ jsx(Fm.Hint, { children: "E.164 format: +[country code][number] (e.g., +14155552671)" })
5869
+ /* @__PURE__ */ jsx(Hm.Error, {}),
5870
+ /* @__PURE__ */ jsx(Hm.Hint, { children: "E.164 format: +[country code][number] (e.g., +14155552671)" })
5699
5871
  ] }),
5700
5872
  /* @__PURE__ */ jsxs(
5701
- Fm.Root,
5873
+ Hm.Root,
5702
5874
  {
5703
5875
  style: { width: "50%" },
5704
5876
  error: userData?.password?.length && userData?.password?.length < 6 ? "Password must be at least 6 characters" : void 0,
5705
5877
  children: [
5706
- /* @__PURE__ */ jsx(Fm.Label, { children: "Password" }),
5878
+ /* @__PURE__ */ jsx(Hm.Label, { children: "Password" }),
5707
5879
  /* @__PURE__ */ jsx(
5708
- G0,
5880
+ X0,
5709
5881
  {
5710
5882
  id: "password",
5711
5883
  name: "password",
@@ -5716,15 +5888,15 @@ const UserFormFields = ({
5716
5888
  required: isPasswordRequired
5717
5889
  }
5718
5890
  ),
5719
- /* @__PURE__ */ jsx(Fm.Error, {}),
5720
- showPasswordHint && /* @__PURE__ */ jsx(Fm.Hint, { children: "Leave empty to keep current password" })
5891
+ /* @__PURE__ */ jsx(Hm.Error, {}),
5892
+ showPasswordHint && /* @__PURE__ */ jsx(Hm.Hint, { children: "Leave empty to keep current password" })
5721
5893
  ]
5722
5894
  }
5723
5895
  ),
5724
- /* @__PURE__ */ jsxs(Fm.Root, { maxWidth: "320px", children: [
5725
- /* @__PURE__ */ jsx(Fm.Label, { children: "Disabled" }),
5896
+ /* @__PURE__ */ jsxs(Hm.Root, { maxWidth: "320px", children: [
5897
+ /* @__PURE__ */ jsx(Hm.Label, { children: "Disabled" }),
5726
5898
  /* @__PURE__ */ jsx(
5727
- D1,
5899
+ E1,
5728
5900
  {
5729
5901
  name: "disabled",
5730
5902
  onLabel: "True",
@@ -5734,10 +5906,10 @@ const UserFormFields = ({
5734
5906
  }
5735
5907
  )
5736
5908
  ] }),
5737
- /* @__PURE__ */ jsxs(Fm.Root, { maxWidth: "320px", children: [
5738
- /* @__PURE__ */ jsx(Fm.Label, { children: "Email Verified" }),
5909
+ /* @__PURE__ */ jsxs(Hm.Root, { maxWidth: "320px", children: [
5910
+ /* @__PURE__ */ jsx(Hm.Label, { children: "Email Verified" }),
5739
5911
  /* @__PURE__ */ jsx(
5740
- D1,
5912
+ E1,
5741
5913
  {
5742
5914
  name: "emailVerified",
5743
5915
  onLabel: "True",
@@ -5931,7 +6103,7 @@ const PasswordResetButton = ({
5931
6103
  }
5932
6104
  };
5933
6105
  const button = /* @__PURE__ */ jsx(
5934
- Nn,
6106
+ zn,
5935
6107
  {
5936
6108
  onClick: handleClick,
5937
6109
  disabled: !canResetPassword,
@@ -5959,17 +6131,15 @@ const FilterRow = styled(T)`
5959
6131
  flex-wrap: wrap;
5960
6132
  gap: 8px;
5961
6133
  margin-bottom: 16px;
6134
+ align-items: flex-end;
5962
6135
  `;
5963
6136
  const ScrollContainer = styled(R)`
5964
- max-height: calc(100vh - 500px);
6137
+ max-height: 400px;
5965
6138
  min-height: 200px;
5966
6139
  overflow-y: auto;
5967
- padding-right: 12px;
5968
- `;
5969
- const PaginationRow = styled(T)`
5970
- margin-top: 16px;
5971
- justify-content: center;
5972
- gap: 8px;
6140
+ padding: 12px;
6141
+ border: 1px solid ${({ theme }) => theme.colors.neutral200};
6142
+ border-radius: 4px;
5973
6143
  `;
5974
6144
  const ExpandableDetails = styled(R)`
5975
6145
  margin-top: 8px;
@@ -5994,13 +6164,9 @@ const ResponseBodyContainer = styled(R)`
5994
6164
  const ACTIVITY_TYPE_OPTIONS = [
5995
6165
  { value: "all", label: "All Types" },
5996
6166
  { value: "authentication", label: "Authentication" },
5997
- { value: "tokenValidation", label: "Token Validation" },
5998
6167
  { value: "fieldUpdate", label: "Field Update" },
5999
6168
  { value: "passwordReset", label: "Password Reset" },
6000
- { value: "emailVerification", label: "Email Verification" },
6001
- { value: "accountCreation", label: "Account Creation" },
6002
- { value: "accountDeletion", label: "Account Deletion" },
6003
- { value: "adminAction", label: "Admin Action" }
6169
+ { value: "emailVerification", label: "Email Verification" }
6004
6170
  ];
6005
6171
  const getActivityTypeBadgeColor = (activityType) => {
6006
6172
  switch (activityType) {
@@ -6029,7 +6195,6 @@ const formatActivityType = (type2) => {
6029
6195
  };
6030
6196
  const ActivityLog = ({ firebaseUserId }) => {
6031
6197
  const [logs, setLogs] = useState([]);
6032
- const [isLoading, setIsLoading] = useState(true);
6033
6198
  const [page, setPage] = useState(1);
6034
6199
  const [totalPages, setTotalPages] = useState(1);
6035
6200
  const [filters, setFilters] = useState({
@@ -6055,7 +6220,6 @@ const ActivityLog = ({ firebaseUserId }) => {
6055
6220
  }, []);
6056
6221
  const loadLogs = useCallback(async () => {
6057
6222
  if (!firebaseUserId) return;
6058
- setIsLoading(true);
6059
6223
  try {
6060
6224
  const response = await fetchActivityLogs(firebaseUserId, {
6061
6225
  page,
@@ -6071,8 +6235,6 @@ const ActivityLog = ({ firebaseUserId }) => {
6071
6235
  } catch (error) {
6072
6236
  console.error("Failed to fetch activity logs:", error);
6073
6237
  setLogs([]);
6074
- } finally {
6075
- setIsLoading(false);
6076
6238
  }
6077
6239
  }, [firebaseUserId, page, pageSize, filters]);
6078
6240
  useEffect(() => {
@@ -6092,20 +6254,20 @@ const ActivityLog = ({ firebaseUserId }) => {
6092
6254
  }, []);
6093
6255
  const renderChanges = (changes) => {
6094
6256
  return Object.entries(changes).map(([field, { old: oldVal, new: newVal }]) => /* @__PURE__ */ jsxs(T, { gap: 2, marginTop: 1, alignItems: "center", wrap: "nowrap", children: [
6095
- /* @__PURE__ */ jsxs(E, { variant: "pi", textColor: "neutral600", style: { minWidth: "100px" }, children: [
6257
+ /* @__PURE__ */ jsxs(I, { variant: "pi", textColor: "neutral600", style: { minWidth: "100px" }, children: [
6096
6258
  field,
6097
6259
  ":"
6098
6260
  ] }),
6099
- /* @__PURE__ */ jsx(E, { variant: "pi", textColor: "danger600", style: { textDecoration: "line-through" }, children: String(oldVal ?? "none") }),
6100
- /* @__PURE__ */ jsx(E, { variant: "pi", textColor: "neutral600", children: "→" }),
6101
- /* @__PURE__ */ jsx(E, { variant: "pi", textColor: "success600", children: String(newVal ?? "none") })
6261
+ /* @__PURE__ */ jsx(I, { variant: "pi", textColor: "danger600", style: { textDecoration: "line-through" }, children: String(oldVal ?? "none") }),
6262
+ /* @__PURE__ */ jsx(I, { variant: "pi", textColor: "neutral600", children: "→" }),
6263
+ /* @__PURE__ */ jsx(I, { variant: "pi", textColor: "success600", children: String(newVal ?? "none") })
6102
6264
  ] }, field));
6103
6265
  };
6104
6266
  return /* @__PURE__ */ jsxs(R, { children: [
6105
- /* @__PURE__ */ jsx(E, { variant: "sigma", textColor: "neutral600", marginBottom: 3, children: "Activity History" }),
6267
+ /* @__PURE__ */ jsx(I, { variant: "sigma", textColor: "neutral600", marginBottom: 3, children: "Activity History" }),
6106
6268
  /* @__PURE__ */ jsxs(FilterRow, { children: [
6107
6269
  /* @__PURE__ */ jsx(R, { style: { minWidth: "150px" }, children: /* @__PURE__ */ jsx(
6108
- bo,
6270
+ yo,
6109
6271
  {
6110
6272
  label: "Activity Type",
6111
6273
  value: filters.activityType,
@@ -6115,7 +6277,7 @@ const ActivityLog = ({ firebaseUserId }) => {
6115
6277
  }
6116
6278
  ) }),
6117
6279
  /* @__PURE__ */ jsx(R, { style: { minWidth: "140px" }, children: /* @__PURE__ */ jsx(
6118
- G0,
6280
+ X0,
6119
6281
  {
6120
6282
  label: "Start Date",
6121
6283
  type: "date",
@@ -6125,7 +6287,7 @@ const ActivityLog = ({ firebaseUserId }) => {
6125
6287
  }
6126
6288
  ) }),
6127
6289
  /* @__PURE__ */ jsx(R, { style: { minWidth: "140px" }, children: /* @__PURE__ */ jsx(
6128
- G0,
6290
+ X0,
6129
6291
  {
6130
6292
  label: "End Date",
6131
6293
  type: "date",
@@ -6134,31 +6296,31 @@ const ActivityLog = ({ firebaseUserId }) => {
6134
6296
  size: "S"
6135
6297
  }
6136
6298
  ) }),
6137
- /* @__PURE__ */ jsx(R, { style: { alignSelf: "flex-end" }, children: /* @__PURE__ */ jsx(Nn, { variant: "tertiary", size: "S", onClick: handleClearFilters, children: "Clear" }) })
6299
+ /* @__PURE__ */ jsx(R, { children: /* @__PURE__ */ jsx(zn, { variant: "tertiary", size: "S", onClick: handleClearFilters, children: "Clear" }) })
6138
6300
  ] }),
6139
- isLoading ? /* @__PURE__ */ jsx(T, { justifyContent: "center", padding: 4, children: /* @__PURE__ */ jsx(Wd, { small: true, children: "Loading activity logs..." }) }) : logs.length === 0 ? /* @__PURE__ */ jsx(E, { variant: "pi", textColor: "neutral600", children: "No activity logs found." }) : /* @__PURE__ */ jsxs(Fragment, { children: [
6301
+ logs.length === 0 ? /* @__PURE__ */ jsx(I, { variant: "pi", textColor: "neutral600", children: "No activity logs found." }) : /* @__PURE__ */ jsxs(Fragment, { children: [
6140
6302
  /* @__PURE__ */ jsx(ScrollContainer, { children: logs.map((log) => /* @__PURE__ */ jsx(LogItem, { children: /* @__PURE__ */ jsxs(T, { justifyContent: "space-between", alignItems: "flex-start", children: [
6141
6303
  /* @__PURE__ */ jsxs(T, { direction: "column", gap: 1, alignItems: "flex-start", style: { flex: 1 }, children: [
6142
6304
  /* @__PURE__ */ jsxs(T, { gap: 2, alignItems: "center", wrap: "wrap", children: [
6143
- /* @__PURE__ */ jsx(Is, { textColor: getActivityTypeBadgeColor(log.activityType), size: "S", children: formatActivityType(log.activityType) }),
6144
- log.activityType !== "fieldUpdate" && /* @__PURE__ */ jsx(E, { variant: "omega", fontWeight: "semiBold", children: log.action }),
6305
+ /* @__PURE__ */ jsx(Ps, { textColor: getActivityTypeBadgeColor(log.activityType), size: "S", children: formatActivityType(log.activityType) }),
6306
+ log.activityType !== "fieldUpdate" && /* @__PURE__ */ jsx(I, { variant: "omega", fontWeight: "semiBold", children: log.action }),
6145
6307
  log.metadata?.statusCode && /* @__PURE__ */ jsx(
6146
- Is,
6308
+ Ps,
6147
6309
  {
6148
6310
  textColor: log.metadata.statusCode >= 400 ? "danger600" : "success600",
6149
6311
  size: "S",
6150
6312
  children: log.metadata.statusCode
6151
6313
  }
6152
6314
  ),
6153
- !log.success && /* @__PURE__ */ jsx(Is, { textColor: "danger600", size: "S", children: "Failed" })
6315
+ !log.success && /* @__PURE__ */ jsx(Ps, { textColor: "danger600", size: "S", children: "Failed" })
6154
6316
  ] }),
6155
6317
  log.changes && Object.keys(log.changes).length > 0 && /* @__PURE__ */ jsx(R, { marginTop: 1, children: renderChanges(log.changes) }),
6156
- log.errorMessage && /* @__PURE__ */ jsxs(E, { variant: "pi", textColor: "danger600", marginTop: 1, children: [
6318
+ log.errorMessage && /* @__PURE__ */ jsxs(I, { variant: "pi", textColor: "danger600", marginTop: 1, children: [
6157
6319
  "Error: ",
6158
6320
  log.errorMessage
6159
6321
  ] }),
6160
6322
  hasExpandableContent(log) && /* @__PURE__ */ jsx(
6161
- Nn,
6323
+ zn,
6162
6324
  {
6163
6325
  onClick: () => toggleExpand(log.documentId),
6164
6326
  variant: "ghost",
@@ -6168,70 +6330,76 @@ const ActivityLog = ({ firebaseUserId }) => {
6168
6330
  }
6169
6331
  ),
6170
6332
  expandedRows.has(log.documentId) && hasExpandableContent(log) && /* @__PURE__ */ jsx(ExpandableDetails, { children: /* @__PURE__ */ jsxs(T, { direction: "column", gap: 2, alignItems: "flex-start", children: [
6171
- log.endpoint && /* @__PURE__ */ jsxs(E, { variant: "pi", textColor: "neutral600", children: [
6333
+ log.endpoint && /* @__PURE__ */ jsxs(I, { variant: "pi", textColor: "neutral600", children: [
6172
6334
  /* @__PURE__ */ jsx("strong", { children: "Endpoint:" }),
6173
6335
  " ",
6174
6336
  log.method,
6175
6337
  " ",
6176
6338
  log.endpoint
6177
6339
  ] }),
6178
- log.metadata?.responseTime && /* @__PURE__ */ jsxs(E, { variant: "pi", textColor: "neutral600", children: [
6340
+ log.metadata?.responseTime && /* @__PURE__ */ jsxs(I, { variant: "pi", textColor: "neutral600", children: [
6179
6341
  /* @__PURE__ */ jsx("strong", { children: "Response Time:" }),
6180
6342
  " ",
6181
6343
  log.metadata.responseTime,
6182
6344
  "ms"
6183
6345
  ] }),
6184
- log.metadata?.statusCode && /* @__PURE__ */ jsxs(E, { variant: "pi", textColor: "neutral600", children: [
6346
+ log.metadata?.statusCode && /* @__PURE__ */ jsxs(I, { variant: "pi", textColor: "neutral600", children: [
6185
6347
  /* @__PURE__ */ jsx("strong", { children: "Status Code:" }),
6186
6348
  " ",
6187
6349
  log.metadata.statusCode
6188
6350
  ] }),
6189
- log.userAgent && /* @__PURE__ */ jsxs(E, { variant: "pi", textColor: "neutral600", children: [
6351
+ log.userAgent && /* @__PURE__ */ jsxs(I, { variant: "pi", textColor: "neutral600", children: [
6190
6352
  /* @__PURE__ */ jsx("strong", { children: "User Agent:" }),
6191
6353
  " ",
6192
6354
  log.userAgent
6193
6355
  ] }),
6194
- log.ipAddress && /* @__PURE__ */ jsxs(E, { variant: "pi", textColor: "neutral600", children: [
6356
+ log.ipAddress && /* @__PURE__ */ jsxs(I, { variant: "pi", textColor: "neutral600", children: [
6195
6357
  /* @__PURE__ */ jsx("strong", { children: "IP Address:" }),
6196
6358
  " ",
6197
6359
  log.ipAddress
6198
6360
  ] }),
6199
6361
  log.metadata?.responseBody && /* @__PURE__ */ jsxs(R, { marginTop: 2, children: [
6200
- /* @__PURE__ */ jsx(E, { variant: "pi", textColor: "neutral600", fontWeight: "semiBold", children: "Response:" }),
6362
+ /* @__PURE__ */ jsx(I, { variant: "pi", textColor: "neutral600", fontWeight: "semiBold", children: "Response:" }),
6201
6363
  /* @__PURE__ */ jsx(ResponseBodyContainer, { children: JSON.stringify(log.metadata.responseBody, null, 2) })
6202
6364
  ] })
6203
6365
  ] }) })
6204
6366
  ] }),
6205
- /* @__PURE__ */ jsx(E, { variant: "pi", textColor: "neutral500", children: format(new Date(log.createdAt), "yyyy/MM/dd HH:mm") })
6367
+ /* @__PURE__ */ jsx(I, { variant: "pi", textColor: "neutral500", children: format(new Date(log.createdAt), "yyyy/MM/dd HH:mm") })
6206
6368
  ] }) }, log.documentId)) }),
6207
- totalPages > 1 && /* @__PURE__ */ jsxs(PaginationRow, { children: [
6369
+ totalPages > 1 && /* @__PURE__ */ jsx(R, { paddingTop: 4, children: /* @__PURE__ */ jsx(T, { justifyContent: "flex-end", children: /* @__PURE__ */ jsxs(o1, { activePage: page, pageCount: totalPages, children: [
6208
6370
  /* @__PURE__ */ jsx(
6209
- Nn,
6371
+ s1,
6210
6372
  {
6211
- variant: "tertiary",
6212
- size: "S",
6213
- disabled: page === 1,
6214
- onClick: () => setPage((p) => Math.max(1, p - 1)),
6373
+ onClick: (e2) => {
6374
+ e2.preventDefault();
6375
+ setPage((p) => Math.max(1, p - 1));
6376
+ },
6215
6377
  children: "Previous"
6216
6378
  }
6217
6379
  ),
6218
- /* @__PURE__ */ jsxs(E, { variant: "pi", textColor: "neutral600", children: [
6219
- "Page ",
6220
- page,
6221
- " of ",
6222
- totalPages
6223
- ] }),
6380
+ Array.from({ length: totalPages }, (_, i2) => i2 + 1).map((pageNum) => /* @__PURE__ */ jsx(
6381
+ a1,
6382
+ {
6383
+ number: pageNum,
6384
+ onClick: (e2) => {
6385
+ e2.preventDefault();
6386
+ setPage(pageNum);
6387
+ },
6388
+ children: pageNum
6389
+ },
6390
+ pageNum
6391
+ )),
6224
6392
  /* @__PURE__ */ jsx(
6225
- Nn,
6393
+ l1,
6226
6394
  {
6227
- variant: "tertiary",
6228
- size: "S",
6229
- disabled: page === totalPages,
6230
- onClick: () => setPage((p) => Math.min(totalPages, p + 1)),
6395
+ onClick: (e2) => {
6396
+ e2.preventDefault();
6397
+ setPage((p) => Math.min(totalPages, p + 1));
6398
+ },
6231
6399
  children: "Next"
6232
6400
  }
6233
6401
  )
6234
- ] })
6402
+ ] }) }) })
6235
6403
  ] })
6236
6404
  ] });
6237
6405
  };
@@ -6398,13 +6566,13 @@ const EditUserForm = ({ data }) => {
6398
6566
  children: [
6399
6567
  /* @__PURE__ */ jsxs(T, { paddingTop: 2, paddingBottom: 2, direction: "column", alignItems: "flex-start", gap: 2, children: [
6400
6568
  /* @__PURE__ */ jsxs(T, { gap: 1, children: [
6401
- /* @__PURE__ */ jsx(E, { variant: "sigma", textColor: "neutral600", children: "Firebase User ID:" }),
6402
- /* @__PURE__ */ jsx(E, { variant: "sigma", textColor: "neutral600", children: userData.firebaseUserID || userData.uid })
6569
+ /* @__PURE__ */ jsx(I, { variant: "sigma", textColor: "neutral600", children: "Firebase User ID:" }),
6570
+ /* @__PURE__ */ jsx(I, { variant: "sigma", textColor: "neutral600", children: userData.firebaseUserID || userData.uid })
6403
6571
  ] }),
6404
6572
  locationState?.strapiId && /* @__PURE__ */ jsxs(T, { gap: 1, children: [
6405
- /* @__PURE__ */ jsx(E, { variant: "sigma", textColor: "neutral600", children: "Strapi ID:" }),
6573
+ /* @__PURE__ */ jsx(I, { variant: "sigma", textColor: "neutral600", children: "Strapi ID:" }),
6406
6574
  /* @__PURE__ */ jsx(
6407
- E,
6575
+ I,
6408
6576
  {
6409
6577
  variant: "sigma",
6410
6578
  textColor: "primary600",
@@ -6424,29 +6592,29 @@ const EditUserForm = ({ data }) => {
6424
6592
  )
6425
6593
  ] })
6426
6594
  ] }),
6427
- /* @__PURE__ */ jsx(pl, {}),
6595
+ /* @__PURE__ */ jsx(bl, {}),
6428
6596
  userData.providerData?.map((provider, index) => /* @__PURE__ */ jsxs(m__default.Fragment, { children: [
6429
- index > 0 && /* @__PURE__ */ jsx(pl, {}),
6597
+ index > 0 && /* @__PURE__ */ jsx(bl, {}),
6430
6598
  /* @__PURE__ */ jsxs(T, { paddingTop: 2, paddingBottom: 2, direction: "column", alignItems: "flex-start", gap: 2, children: [
6431
6599
  /* @__PURE__ */ jsxs(T, { gap: 1, children: [
6432
- /* @__PURE__ */ jsx(E, { variant: "sigma", textColor: "neutral600", children: "Provider:" }),
6433
- /* @__PURE__ */ jsx(E, { variant: "sigma", textColor: "neutral600", children: provider.providerId })
6600
+ /* @__PURE__ */ jsx(I, { variant: "sigma", textColor: "neutral600", children: "Provider:" }),
6601
+ /* @__PURE__ */ jsx(I, { variant: "sigma", textColor: "neutral600", children: provider.providerId })
6434
6602
  ] }),
6435
6603
  /* @__PURE__ */ jsxs(T, { gap: 1, children: [
6436
- /* @__PURE__ */ jsx(E, { variant: "sigma", textColor: "neutral600", children: "Identifier:" }),
6437
- /* @__PURE__ */ jsx(E, { variant: "sigma", textColor: "neutral600", children: provider.uid })
6604
+ /* @__PURE__ */ jsx(I, { variant: "sigma", textColor: "neutral600", children: "Identifier:" }),
6605
+ /* @__PURE__ */ jsx(I, { variant: "sigma", textColor: "neutral600", children: provider.uid })
6438
6606
  ] })
6439
6607
  ] })
6440
6608
  ] }, index)),
6441
- /* @__PURE__ */ jsx(pl, {}),
6609
+ /* @__PURE__ */ jsx(bl, {}),
6442
6610
  /* @__PURE__ */ jsxs(T, { paddingTop: 2, paddingBottom: 2, direction: "column", alignItems: "flex-start", gap: 3, children: [
6443
6611
  userData.metadata?.lastSignInTime && /* @__PURE__ */ jsxs(MetaWrapper, { children: [
6444
- /* @__PURE__ */ jsx(E, { variant: "sigma", textColor: "neutral600", children: "Last Sign In Time" }),
6445
- /* @__PURE__ */ jsx(E, { variant: "sigma", textColor: "neutral600", children: format(new Date(userData.metadata.lastSignInTime), "yyyy/MM/dd HH:mm z") })
6612
+ /* @__PURE__ */ jsx(I, { variant: "sigma", textColor: "neutral600", children: "Last Sign In Time" }),
6613
+ /* @__PURE__ */ jsx(I, { variant: "sigma", textColor: "neutral600", children: format(new Date(userData.metadata.lastSignInTime), "yyyy/MM/dd HH:mm z") })
6446
6614
  ] }),
6447
6615
  (userData.metadata?.creationTime || userData.createdAt) && /* @__PURE__ */ jsxs(MetaWrapper, { children: [
6448
- /* @__PURE__ */ jsx(E, { variant: "sigma", textColor: "neutral600", children: "Creation Time" }),
6449
- /* @__PURE__ */ jsx(E, { variant: "sigma", textColor: "neutral600", children: userData.metadata?.creationTime ? format(new Date(userData.metadata.creationTime), "yyyy/MM/dd HH:mm z") : userData.createdAt ? format(new Date(userData.createdAt), "yyyy/MM/dd HH:mm z") : "-" })
6616
+ /* @__PURE__ */ jsx(I, { variant: "sigma", textColor: "neutral600", children: "Creation Time" }),
6617
+ /* @__PURE__ */ jsx(I, { variant: "sigma", textColor: "neutral600", children: userData.metadata?.creationTime ? format(new Date(userData.metadata.creationTime), "yyyy/MM/dd HH:mm z") : userData.createdAt ? format(new Date(userData.createdAt), "yyyy/MM/dd HH:mm z") : "-" })
6450
6618
  ] })
6451
6619
  ] })
6452
6620
  ]
@@ -6466,7 +6634,7 @@ const EditUserForm = ({ data }) => {
6466
6634
  paddingTop: 4,
6467
6635
  shadow: "tableShadow",
6468
6636
  children: [
6469
- /* @__PURE__ */ jsx(E, { variant: "sigma", textColor: "neutral600", marginBottom: 2, children: "Account Actions" }),
6637
+ /* @__PURE__ */ jsx(I, { variant: "sigma", textColor: "neutral600", marginBottom: 2, children: "Account Actions" }),
6470
6638
  /* @__PURE__ */ jsxs(T, { direction: "column", gap: 2, children: [
6471
6639
  /* @__PURE__ */ jsx(
6472
6640
  PasswordResetButton,
@@ -6483,7 +6651,7 @@ const EditUserForm = ({ data }) => {
6483
6651
  }
6484
6652
  ),
6485
6653
  userData.email && !userData.emailVerified && /* @__PURE__ */ jsx(
6486
- Nn,
6654
+ zn,
6487
6655
  {
6488
6656
  variant: "secondary",
6489
6657
  fullWidth: true,
@@ -6516,7 +6684,7 @@ const EditUserForm = ({ data }) => {
6516
6684
  shadow: "tableShadow",
6517
6685
  children: /* @__PURE__ */ jsxs(R, { paddingTop: 2, paddingBottom: 2, children: [
6518
6686
  /* @__PURE__ */ jsx(DetailsButtonWrapper, { children: /* @__PURE__ */ jsx(
6519
- zc,
6687
+ Wc,
6520
6688
  {
6521
6689
  startIcon: /* @__PURE__ */ jsx(_3, {}),
6522
6690
  onClick: () => navigate(
@@ -6527,8 +6695,8 @@ const EditUserForm = ({ data }) => {
6527
6695
  }
6528
6696
  ) }),
6529
6697
  /* @__PURE__ */ jsxs(ContentWrapper, { children: [
6530
- /* @__PURE__ */ jsx(E, { variant: "sigma", textColor: "neutral600", children: "local user:" }),
6531
- /* @__PURE__ */ jsx(E, { variant: "sigma", textColor: "neutral600", children: userData.localUser.username })
6698
+ /* @__PURE__ */ jsx(I, { variant: "sigma", textColor: "neutral600", children: "local user:" }),
6699
+ /* @__PURE__ */ jsx(I, { variant: "sigma", textColor: "neutral600", children: userData.localUser.username })
6532
6700
  ] })
6533
6701
  ] })
6534
6702
  }
@@ -6550,7 +6718,7 @@ const EditUserForm = ({ data }) => {
6550
6718
  )
6551
6719
  }
6552
6720
  ),
6553
- /* @__PURE__ */ jsx(R, { marginTop: 6, children: /* @__PURE__ */ jsx(
6721
+ /* @__PURE__ */ jsx(R, { marginTop: 6, marginBottom: 6, children: /* @__PURE__ */ jsx(
6554
6722
  R,
6555
6723
  {
6556
6724
  background: "neutral0",
@@ -6639,6 +6807,5 @@ const App = () => {
6639
6807
  ] }) });
6640
6808
  };
6641
6809
  export {
6642
- App,
6643
- App as default
6810
+ App
6644
6811
  };