@better-auth-ui/heroui 1.6.10 → 1.6.11

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.
Files changed (2) hide show
  1. package/dist/index.js +2027 -316
  2. package/package.json +2 -3
package/dist/index.js CHANGED
@@ -1,16 +1,27 @@
1
1
  "use client";
2
2
  import { a as e, i as t, n, r, t as i } from "./user-view--47tVtJ3.js";
3
3
  import { authMutationKeys as a, authQueryKeys as o, fileToBase64 as s, getProviderName as c, parseAdditionalFieldValue as l, resolveInputType as u } from "@better-auth-ui/core";
4
- import { AuthProvider as d, providerIcons as f, useAccountInfo as p, useAuth as m, useAuthenticate as h, useChangeEmail as g, useChangePassword as _, useFetchOptions as v, useLinkSocial as y, useListAccounts as b, useListSessions as ee, useRequestPasswordReset as x, useResetPassword as S, useRevokeSession as te, useSendVerificationEmail as ne, useSession as C, useSignInEmail as re, useSignOut as ie, useSignUpEmail as ae, useUnlinkAccount as w, useUpdateUser as oe } from "@better-auth-ui/react";
5
- import { ArrowRightFromSquare as T, ArrowRightToSquare as se, Check as E, ChevronsExpandVertical as ce, CloudArrowUpIn as le, Copy as ue, Display as de, Eye as D, EyeSlash as O, Gear as fe, Link as pe, LinkSlash as me, Person as he, PersonPlus as ge, PlugConnection as _e, Shield as ve, Smartphone as ye, TrashBin as be, Xmark as xe } from "@gravity-ui/icons";
6
- import { Button as k, Calendar as A, Card as j, Checkbox as M, Chip as Se, ComboBox as Ce, DateField as we, DatePicker as Te, Description as Ee, Dropdown as N, FieldError as P, Fieldset as F, Form as I, Input as L, InputGroup as R, Label as z, Link as B, ListBox as V, NumberField as H, RouterProvider as De, Select as U, Skeleton as W, Slider as Oe, Spinner as G, Switch as ke, Tabs as K, TextArea as Ae, TextField as q, TimeField as je, cn as J, toast as Y } from "@heroui/react";
4
+ import { AuthProvider as d, providerIcons as f, useAccountInfo as p, useAuth as m, useAuthenticate as h, useChangeEmail as g, useChangePassword as _, useFetchOptions as v, useLinkSocial as y, useListAccounts as b, useListSessions as ee, useRequestPasswordReset as te, useResetPassword as x, useRevokeSession as S, useSendVerificationEmail as ne, useSession as C, useSignInEmail as re, useSignOut as ie, useSignUpEmail as ae, useUnlinkAccount as w, useUpdateUser as T } from "@better-auth-ui/react";
5
+ import { ArrowRightFromSquare as E, ArrowRightToSquare as oe, Check as D, ChevronsExpandVertical as se, CloudArrowUpIn as ce, Copy as le, Display as ue, Eye as O, EyeSlash as k, Gear as de, Link as fe, LinkSlash as pe, Person as me, PersonPlus as he, PlugConnection as ge, Shield as _e, Smartphone as ve, TrashBin as ye, Xmark as be } from "@gravity-ui/icons";
6
+ import { Button as A, Calendar as j, Card as M, Checkbox as N, Chip as xe, ComboBox as Se, DateField as Ce, DatePicker as we, Description as Te, Dropdown as P, FieldError as F, Fieldset as I, Form as L, Input as R, InputGroup as z, Label as B, Link as V, ListBox as H, NumberField as U, RouterProvider as Ee, Select as De, Skeleton as W, Slider as Oe, Spinner as G, Switch as ke, Tabs as K, TextArea as Ae, TextField as q, TimeField as je, cn as J, toast as Y } from "@heroui/react";
7
7
  import { fromDate as Me, getLocalTimeZone as Ne, parseDate as Pe, parseDateTime as Fe, toCalendarDate as Ie, toCalendarDateTime as Le } from "@internationalized/date";
8
8
  import { isValidElement as Re, useEffect as ze, useMemo as Be, useRef as Ve, useState as X } from "react";
9
9
  import { Fragment as Z, jsx as Q, jsxs as $ } from "react/jsx-runtime";
10
10
  import { matchMutation as He, matchQuery as Ue, useIsMutating as We, useQueryClient as Ge } from "@tanstack/react-query";
11
- import Ke from "bowser";
11
+ //#region \0rolldown/runtime.js
12
+ var Ke = Object.create, qe = Object.defineProperty, Je = Object.getOwnPropertyDescriptor, Ye = Object.getOwnPropertyNames, Xe = Object.getPrototypeOf, Ze = Object.prototype.hasOwnProperty, Qe = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), $e = (e, t, n, r) => {
13
+ if (t && typeof t == "object" || typeof t == "function") for (var i = Ye(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !Ze.call(e, s) && s !== n && qe(e, s, {
14
+ get: ((e) => t[e]).bind(null, s),
15
+ enumerable: !(r = Je(t, s)) || r.enumerable
16
+ });
17
+ return e;
18
+ }, et = (e, t, n) => (n = e == null ? {} : Ke(Xe(e)), $e(t || !e || !e.__esModule ? qe(n, "default", {
19
+ value: e,
20
+ enumerable: !0
21
+ }) : n, e));
22
+ //#endregion
12
23
  //#region src/components/auth/additional-field.tsx
13
- function qe(e) {
24
+ function tt(e) {
14
25
  if (e instanceof Date) return Ie(Me(e, Ne()));
15
26
  if (typeof e == "string") try {
16
27
  return Pe(e.slice(0, 10));
@@ -18,7 +29,7 @@ function qe(e) {
18
29
  return;
19
30
  }
20
31
  }
21
- function Je(e) {
32
+ function nt(e) {
22
33
  if (e instanceof Date) return Le(Me(e, Ne()));
23
34
  if (typeof e == "string") try {
24
35
  return Fe(e.replace(/(Z|[+-]\d{2}:?\d{2})$/, ""));
@@ -26,7 +37,7 @@ function Je(e) {
26
37
  return;
27
38
  }
28
39
  }
29
- function Ye({ getValue: e, isDisabled: t }) {
40
+ function rt({ getValue: e, isDisabled: t }) {
30
41
  let { localization: n } = m(), [r, i] = X(!1);
31
42
  async function a() {
32
43
  let t = e();
@@ -36,17 +47,17 @@ function Ye({ getValue: e, isDisabled: t }) {
36
47
  Y.danger(e instanceof Error ? e.message : String(e));
37
48
  }
38
49
  }
39
- return /* @__PURE__ */ Q(k, {
50
+ return /* @__PURE__ */ Q(A, {
40
51
  isIconOnly: !0,
41
52
  "aria-label": n.settings.copyToClipboard,
42
53
  size: "sm",
43
54
  variant: "ghost",
44
55
  isDisabled: t,
45
56
  onPress: a,
46
- children: Q(r ? E : ue, { className: "size-4" })
57
+ children: Q(r ? D : le, { className: "size-4" })
47
58
  });
48
59
  }
49
- function Xe({ name: e, field: t, isPending: n, variant: r }) {
60
+ function it({ name: e, field: t, isPending: n, variant: r }) {
50
61
  let { localization: i } = m(), a = u(t), o = r === "transparent" ? "primary" : "secondary", s = Ve(null);
51
62
  if (t.render) return /* @__PURE__ */ Q(Z, { children: t.render({
52
63
  name: e,
@@ -65,18 +76,18 @@ function Xe({ name: e, field: t, isPending: n, variant: r }) {
65
76
  isDisabled: n,
66
77
  isReadOnly: t.readOnly,
67
78
  children: [
68
- /* @__PURE__ */ Q(z, { children: t.label }),
79
+ /* @__PURE__ */ Q(B, { children: t.label }),
69
80
  /* @__PURE__ */ Q(Ae, {
70
81
  placeholder: t.placeholder,
71
82
  required: t.required,
72
83
  variant: o
73
84
  }),
74
- /* @__PURE__ */ Q(P, {})
85
+ /* @__PURE__ */ Q(F, {})
75
86
  ]
76
87
  });
77
88
  if (a === "number") {
78
89
  let r = t.formatOptions?.maximumFractionDigits;
79
- return /* @__PURE__ */ $(H, {
90
+ return /* @__PURE__ */ $(U, {
80
91
  name: e,
81
92
  defaultValue: typeof t.defaultValue == "number" ? t.defaultValue : t.defaultValue != null && t.defaultValue !== "" ? Number(t.defaultValue) : void 0,
82
93
  minValue: t.min,
@@ -87,16 +98,16 @@ function Xe({ name: e, field: t, isPending: n, variant: r }) {
87
98
  isReadOnly: t.readOnly,
88
99
  variant: o,
89
100
  children: [
90
- /* @__PURE__ */ Q(z, { children: t.label }),
91
- /* @__PURE__ */ $(H.Group, { children: [
92
- /* @__PURE__ */ Q(H.DecrementButton, {}),
93
- /* @__PURE__ */ Q(H.Input, {
101
+ /* @__PURE__ */ Q(B, { children: t.label }),
102
+ /* @__PURE__ */ $(U.Group, { children: [
103
+ /* @__PURE__ */ Q(U.DecrementButton, {}),
104
+ /* @__PURE__ */ Q(U.Input, {
94
105
  placeholder: t.placeholder,
95
106
  required: t.required
96
107
  }),
97
- /* @__PURE__ */ Q(H.IncrementButton, {})
108
+ /* @__PURE__ */ Q(U.IncrementButton, {})
98
109
  ] }),
99
- /* @__PURE__ */ Q(P, {})
110
+ /* @__PURE__ */ Q(F, {})
100
111
  ]
101
112
  });
102
113
  }
@@ -112,7 +123,7 @@ function Xe({ name: e, field: t, isPending: n, variant: r }) {
112
123
  className: "flex flex-col gap-2",
113
124
  children: [/* @__PURE__ */ $("div", {
114
125
  className: "flex items-center justify-between gap-2",
115
- children: [/* @__PURE__ */ Q(z, { children: t.label }), /* @__PURE__ */ Q(Oe.Output, { className: "text-sm text-muted" })]
126
+ children: [/* @__PURE__ */ Q(B, { children: t.label }), /* @__PURE__ */ Q(Oe.Output, { className: "text-sm text-muted" })]
116
127
  }), /* @__PURE__ */ $(Oe.Track, { children: [/* @__PURE__ */ Q(Oe.Fill, {}), /* @__PURE__ */ Q(Oe.Thumb, { name: e })] })]
117
128
  });
118
129
  }
@@ -121,18 +132,18 @@ function Xe({ name: e, field: t, isPending: n, variant: r }) {
121
132
  defaultSelected: t.defaultValue === !0 || t.defaultValue === "true",
122
133
  isDisabled: n,
123
134
  isReadOnly: t.readOnly,
124
- children: [/* @__PURE__ */ Q(ke.Control, { children: /* @__PURE__ */ Q(ke.Thumb, {}) }), /* @__PURE__ */ Q(z, { children: t.label })]
135
+ children: [/* @__PURE__ */ Q(ke.Control, { children: /* @__PURE__ */ Q(ke.Thumb, {}) }), /* @__PURE__ */ Q(B, { children: t.label })]
125
136
  });
126
- if (a === "checkbox") return /* @__PURE__ */ $(M, {
137
+ if (a === "checkbox") return /* @__PURE__ */ $(N, {
127
138
  name: e,
128
139
  defaultSelected: t.defaultValue === !0 || t.defaultValue === "true",
129
140
  isDisabled: n,
130
141
  isReadOnly: t.readOnly,
131
142
  isRequired: t.required,
132
143
  variant: o,
133
- children: [/* @__PURE__ */ Q(M.Control, { children: /* @__PURE__ */ Q(M.Indicator, {}) }), /* @__PURE__ */ Q(M.Content, { children: /* @__PURE__ */ Q(z, { children: t.label }) })]
144
+ children: [/* @__PURE__ */ Q(N.Control, { children: /* @__PURE__ */ Q(N.Indicator, {}) }), /* @__PURE__ */ Q(N.Content, { children: /* @__PURE__ */ Q(B, { children: t.label }) })]
134
145
  });
135
- if (a === "select") return /* @__PURE__ */ $(U, {
146
+ if (a === "select") return /* @__PURE__ */ $(De, {
136
147
  className: "[&[data-required=true]>.label]:after:content-none",
137
148
  name: e,
138
149
  defaultValue: t.defaultValue == null ? void 0 : String(t.defaultValue),
@@ -142,17 +153,17 @@ function Xe({ name: e, field: t, isPending: n, variant: r }) {
142
153
  variant: o,
143
154
  fullWidth: !0,
144
155
  children: [
145
- /* @__PURE__ */ Q(z, { children: t.label }),
146
- /* @__PURE__ */ $(U.Trigger, { children: [/* @__PURE__ */ Q(U.Value, {}), /* @__PURE__ */ Q(U.Indicator, {})] }),
147
- /* @__PURE__ */ Q(U.Popover, { children: /* @__PURE__ */ Q(V, { children: t.options?.map((e) => /* @__PURE__ */ $(V.Item, {
156
+ /* @__PURE__ */ Q(B, { children: t.label }),
157
+ /* @__PURE__ */ $(De.Trigger, { children: [/* @__PURE__ */ Q(De.Value, {}), /* @__PURE__ */ Q(De.Indicator, {})] }),
158
+ /* @__PURE__ */ Q(De.Popover, { children: /* @__PURE__ */ Q(H, { children: t.options?.map((e) => /* @__PURE__ */ $(H.Item, {
148
159
  id: e.value,
149
160
  textValue: typeof e.label == "string" ? e.label : e.value,
150
- children: [e.label, /* @__PURE__ */ Q(V.ItemIndicator, {})]
161
+ children: [e.label, /* @__PURE__ */ Q(H.ItemIndicator, {})]
151
162
  }, e.value)) }) }),
152
- /* @__PURE__ */ Q(P, {})
163
+ /* @__PURE__ */ Q(F, {})
153
164
  ]
154
165
  });
155
- if (a === "combobox") return /* @__PURE__ */ $(Ce, {
166
+ if (a === "combobox") return /* @__PURE__ */ $(Se, {
156
167
  className: "[&[data-required=true]>.label]:after:content-none",
157
168
  name: e,
158
169
  defaultSelectedKey: t.defaultValue == null ? void 0 : String(t.defaultValue),
@@ -162,50 +173,50 @@ function Xe({ name: e, field: t, isPending: n, variant: r }) {
162
173
  variant: o,
163
174
  fullWidth: !0,
164
175
  children: [
165
- /* @__PURE__ */ Q(z, { children: t.label }),
166
- /* @__PURE__ */ $(Ce.InputGroup, { children: [/* @__PURE__ */ Q(L, { placeholder: t.placeholder }), /* @__PURE__ */ Q(Ce.Trigger, {})] }),
167
- /* @__PURE__ */ Q(Ce.Popover, { children: /* @__PURE__ */ Q(V, { children: t.options?.map((e) => /* @__PURE__ */ $(V.Item, {
176
+ /* @__PURE__ */ Q(B, { children: t.label }),
177
+ /* @__PURE__ */ $(Se.InputGroup, { children: [/* @__PURE__ */ Q(R, { placeholder: t.placeholder }), /* @__PURE__ */ Q(Se.Trigger, {})] }),
178
+ /* @__PURE__ */ Q(Se.Popover, { children: /* @__PURE__ */ Q(H, { children: t.options?.map((e) => /* @__PURE__ */ $(H.Item, {
168
179
  id: e.value,
169
180
  textValue: typeof e.label == "string" ? e.label : e.value,
170
- children: [e.label, /* @__PURE__ */ Q(V.ItemIndicator, {})]
181
+ children: [e.label, /* @__PURE__ */ Q(H.ItemIndicator, {})]
171
182
  }, e.value)) }) }),
172
- /* @__PURE__ */ Q(P, {})
183
+ /* @__PURE__ */ Q(F, {})
173
184
  ]
174
185
  });
175
186
  if (a === "date" || a === "datetime") {
176
187
  let r = a === "datetime";
177
- return /* @__PURE__ */ Q(Te, {
188
+ return /* @__PURE__ */ Q(we, {
178
189
  className: "w-full [&[data-required=true]>.label]:after:content-none",
179
190
  name: e,
180
- defaultValue: r ? Je(t.defaultValue) : qe(t.defaultValue),
191
+ defaultValue: r ? nt(t.defaultValue) : tt(t.defaultValue),
181
192
  granularity: r ? "minute" : "day",
182
193
  isDisabled: n,
183
194
  isReadOnly: t.readOnly,
184
195
  isRequired: t.required,
185
196
  children: ({ state: n }) => /* @__PURE__ */ $(Z, { children: [
186
- /* @__PURE__ */ Q(z, { children: t.label }),
187
- /* @__PURE__ */ $(we.Group, {
197
+ /* @__PURE__ */ Q(B, { children: t.label }),
198
+ /* @__PURE__ */ $(Ce.Group, {
188
199
  variant: o,
189
200
  fullWidth: !0,
190
- children: [/* @__PURE__ */ Q(we.Input, { children: (e) => /* @__PURE__ */ Q(we.Segment, { segment: e }) }), /* @__PURE__ */ Q(we.Suffix, { children: /* @__PURE__ */ Q(Te.Trigger, { children: /* @__PURE__ */ Q(Te.TriggerIndicator, {}) }) })]
201
+ children: [/* @__PURE__ */ Q(Ce.Input, { children: (e) => /* @__PURE__ */ Q(Ce.Segment, { segment: e }) }), /* @__PURE__ */ Q(Ce.Suffix, { children: /* @__PURE__ */ Q(we.Trigger, { children: /* @__PURE__ */ Q(we.TriggerIndicator, {}) }) })]
191
202
  }),
192
- /* @__PURE__ */ Q(P, {}),
193
- /* @__PURE__ */ $(Te.Popover, {
203
+ /* @__PURE__ */ Q(F, {}),
204
+ /* @__PURE__ */ $(we.Popover, {
194
205
  className: "flex flex-col gap-3",
195
- children: [/* @__PURE__ */ $(A, {
206
+ children: [/* @__PURE__ */ $(j, {
196
207
  "aria-label": typeof t.label == "string" ? t.label : e,
197
208
  children: [
198
- /* @__PURE__ */ $(A.Header, { children: [
199
- /* @__PURE__ */ $(A.YearPickerTrigger, { children: [/* @__PURE__ */ Q(A.YearPickerTriggerHeading, {}), /* @__PURE__ */ Q(A.YearPickerTriggerIndicator, {})] }),
200
- /* @__PURE__ */ Q(A.NavButton, { slot: "previous" }),
201
- /* @__PURE__ */ Q(A.NavButton, { slot: "next" })
209
+ /* @__PURE__ */ $(j.Header, { children: [
210
+ /* @__PURE__ */ $(j.YearPickerTrigger, { children: [/* @__PURE__ */ Q(j.YearPickerTriggerHeading, {}), /* @__PURE__ */ Q(j.YearPickerTriggerIndicator, {})] }),
211
+ /* @__PURE__ */ Q(j.NavButton, { slot: "previous" }),
212
+ /* @__PURE__ */ Q(j.NavButton, { slot: "next" })
202
213
  ] }),
203
- /* @__PURE__ */ $(A.Grid, { children: [/* @__PURE__ */ Q(A.GridHeader, { children: (e) => /* @__PURE__ */ Q(A.HeaderCell, { children: e }) }), /* @__PURE__ */ Q(A.GridBody, { children: (e) => /* @__PURE__ */ Q(A.Cell, { date: e }) })] }),
204
- /* @__PURE__ */ Q(A.YearPickerGrid, { children: /* @__PURE__ */ Q(A.YearPickerGridBody, { children: ({ year: e }) => /* @__PURE__ */ Q(A.YearPickerCell, { year: e }) }) })
214
+ /* @__PURE__ */ $(j.Grid, { children: [/* @__PURE__ */ Q(j.GridHeader, { children: (e) => /* @__PURE__ */ Q(j.HeaderCell, { children: e }) }), /* @__PURE__ */ Q(j.GridBody, { children: (e) => /* @__PURE__ */ Q(j.Cell, { date: e }) })] }),
215
+ /* @__PURE__ */ Q(j.YearPickerGrid, { children: /* @__PURE__ */ Q(j.YearPickerGridBody, { children: ({ year: e }) => /* @__PURE__ */ Q(j.YearPickerCell, { year: e }) }) })
205
216
  ]
206
217
  }), r && /* @__PURE__ */ $("div", {
207
218
  className: "flex items-center justify-between",
208
- children: [/* @__PURE__ */ Q(z, { children: i.settings.time }), /* @__PURE__ */ Q(je, {
219
+ children: [/* @__PURE__ */ Q(B, { children: i.settings.time }), /* @__PURE__ */ Q(je, {
209
220
  "aria-label": i.settings.time,
210
221
  granularity: "minute",
211
222
  value: n.timeValue,
@@ -227,12 +238,12 @@ function Xe({ name: e, field: t, isPending: n, variant: r }) {
227
238
  isDisabled: n,
228
239
  isReadOnly: t.readOnly,
229
240
  children: [
230
- /* @__PURE__ */ Q(z, { children: t.label }),
231
- /* @__PURE__ */ $(R, {
241
+ /* @__PURE__ */ Q(B, { children: t.label }),
242
+ /* @__PURE__ */ $(z, {
232
243
  variant: o,
233
244
  children: [
234
- c && /* @__PURE__ */ Q(R.Prefix, { children: t.prefix }),
235
- /* @__PURE__ */ Q(R.Input, {
245
+ c && /* @__PURE__ */ Q(z.Prefix, { children: t.prefix }),
246
+ /* @__PURE__ */ Q(z.Input, {
236
247
  ref: s,
237
248
  placeholder: t.placeholder,
238
249
  required: t.required,
@@ -240,16 +251,16 @@ function Xe({ name: e, field: t, isPending: n, variant: r }) {
240
251
  inputMode: h,
241
252
  step: g
242
253
  }),
243
- t.copyable ? /* @__PURE__ */ Q(R.Suffix, {
254
+ t.copyable ? /* @__PURE__ */ Q(z.Suffix, {
244
255
  className: "px-0",
245
- children: /* @__PURE__ */ Q(Ye, {
256
+ children: /* @__PURE__ */ Q(rt, {
246
257
  getValue: () => s.current?.value,
247
258
  isDisabled: n
248
259
  })
249
- }) : t.suffix != null && /* @__PURE__ */ Q(R.Suffix, { children: t.suffix })
260
+ }) : t.suffix != null && /* @__PURE__ */ Q(z.Suffix, { children: t.suffix })
250
261
  ]
251
262
  }),
252
- /* @__PURE__ */ Q(P, {})
263
+ /* @__PURE__ */ Q(F, {})
253
264
  ]
254
265
  }) : /* @__PURE__ */ $(q, {
255
266
  name: e,
@@ -257,8 +268,8 @@ function Xe({ name: e, field: t, isPending: n, variant: r }) {
257
268
  isDisabled: n,
258
269
  isReadOnly: t.readOnly,
259
270
  children: [
260
- /* @__PURE__ */ Q(z, { children: t.label }),
261
- /* @__PURE__ */ Q(L, {
271
+ /* @__PURE__ */ Q(B, { children: t.label }),
272
+ /* @__PURE__ */ Q(R, {
262
273
  placeholder: t.placeholder,
263
274
  required: t.required,
264
275
  variant: o,
@@ -266,14 +277,14 @@ function Xe({ name: e, field: t, isPending: n, variant: r }) {
266
277
  inputMode: h,
267
278
  step: g
268
279
  }),
269
- /* @__PURE__ */ Q(P, {})
280
+ /* @__PURE__ */ Q(F, {})
270
281
  ]
271
282
  });
272
283
  }
273
284
  //#endregion
274
285
  //#region src/components/auth/forgot-password.tsx
275
- function Ze({ className: e, variant: t, ...n }) {
276
- let { authClient: r, baseURL: i, basePaths: a, localization: o, viewPaths: s, navigate: c, plugins: l } = m(), { fetchOptions: u, resetFetchOptions: d } = v(), { mutate: f, isPending: p } = x(r, {
286
+ function at({ className: e, variant: t, ...n }) {
287
+ let { authClient: r, baseURL: i, basePaths: a, localization: o, viewPaths: s, navigate: c, plugins: l } = m(), { fetchOptions: u, resetFetchOptions: d } = v(), { mutate: f, isPending: p } = te(r, {
277
288
  onError: (e) => {
278
289
  Y.danger(e.error?.message || e.message), d();
279
290
  },
@@ -289,18 +300,18 @@ function Ze({ className: e, variant: t, ...n }) {
289
300
  });
290
301
  }
291
302
  let g = l.find((e) => e.captchaComponent)?.captchaComponent;
292
- return /* @__PURE__ */ $(j, {
303
+ return /* @__PURE__ */ $(M, {
293
304
  className: J("w-full max-w-sm gap-4 md:p-6", e),
294
305
  variant: t,
295
306
  ...n,
296
307
  children: [
297
- /* @__PURE__ */ Q(j.Header, { children: /* @__PURE__ */ Q(j.Title, {
308
+ /* @__PURE__ */ Q(M.Header, { children: /* @__PURE__ */ Q(M.Title, {
298
309
  className: "text-xl font-semibold mb-1",
299
310
  children: o.auth.forgotPassword
300
311
  }) }),
301
- /* @__PURE__ */ Q(j.Content, {
312
+ /* @__PURE__ */ Q(M.Content, {
302
313
  className: "gap-4",
303
- children: /* @__PURE__ */ $(I, {
314
+ children: /* @__PURE__ */ $(L, {
304
315
  onSubmit: h,
305
316
  className: "flex flex-col gap-4",
306
317
  children: [
@@ -310,13 +321,13 @@ function Ze({ className: e, variant: t, ...n }) {
310
321
  autoComplete: "email",
311
322
  isDisabled: p,
312
323
  children: [
313
- /* @__PURE__ */ Q(z, { children: o.auth.email }),
314
- /* @__PURE__ */ Q(L, {
324
+ /* @__PURE__ */ Q(B, { children: o.auth.email }),
325
+ /* @__PURE__ */ Q(R, {
315
326
  placeholder: o.auth.emailPlaceholder,
316
327
  required: !0,
317
328
  variant: t === "transparent" ? "primary" : "secondary"
318
329
  }),
319
- /* @__PURE__ */ Q(P, {})
330
+ /* @__PURE__ */ Q(F, {})
320
331
  ]
321
332
  }),
322
333
  g && /* @__PURE__ */ Q("div", {
@@ -325,7 +336,7 @@ function Ze({ className: e, variant: t, ...n }) {
325
336
  }),
326
337
  /* @__PURE__ */ Q("div", {
327
338
  className: "flex flex-col gap-3",
328
- children: /* @__PURE__ */ $(k, {
339
+ children: /* @__PURE__ */ $(A, {
329
340
  type: "submit",
330
341
  className: "w-full",
331
342
  isPending: p,
@@ -338,14 +349,14 @@ function Ze({ className: e, variant: t, ...n }) {
338
349
  ]
339
350
  })
340
351
  }),
341
- /* @__PURE__ */ Q(j.Footer, {
352
+ /* @__PURE__ */ Q(M.Footer, {
342
353
  className: "flex-col gap-3",
343
- children: /* @__PURE__ */ $(Ee, {
354
+ children: /* @__PURE__ */ $(Te, {
344
355
  className: "text-sm",
345
356
  children: [
346
357
  o.auth.rememberYourPassword,
347
358
  " ",
348
- /* @__PURE__ */ Q(B, {
359
+ /* @__PURE__ */ Q(V, {
349
360
  href: `${a.auth}/${s.auth.signIn}`,
350
361
  className: "text-accent no-underline hover:underline decoration-accent-hover",
351
362
  children: o.auth.signIn
@@ -358,8 +369,8 @@ function Ze({ className: e, variant: t, ...n }) {
358
369
  }
359
370
  //#endregion
360
371
  //#region src/components/auth/reset-password.tsx
361
- function Qe({ className: e, variant: t, ...n }) {
362
- let { authClient: r, basePaths: i, emailAndPassword: a, localization: o, viewPaths: s, navigate: c } = m(), { mutate: l, isPending: u } = S(r, { onSuccess: () => {
372
+ function ot({ className: e, variant: t, ...n }) {
373
+ let { authClient: r, basePaths: i, emailAndPassword: a, localization: o, viewPaths: s, navigate: c } = m(), { mutate: l, isPending: u } = x(r, { onSuccess: () => {
363
374
  Y.success(o.auth.passwordResetSuccess), c({ to: `${i.auth}/${s.auth.signIn}` });
364
375
  } }), [d, f] = X(!1), [p, h] = X(!1);
365
376
  ze(() => {
@@ -387,18 +398,18 @@ function Qe({ className: e, variant: t, ...n }) {
387
398
  newPassword: r
388
399
  });
389
400
  }
390
- return /* @__PURE__ */ $(j, {
401
+ return /* @__PURE__ */ $(M, {
391
402
  className: J("w-full max-w-sm gap-4 md:p-6", e),
392
403
  variant: t,
393
404
  ...n,
394
405
  children: [
395
- /* @__PURE__ */ Q(j.Header, { children: /* @__PURE__ */ Q(j.Title, {
406
+ /* @__PURE__ */ Q(M.Header, { children: /* @__PURE__ */ Q(M.Title, {
396
407
  className: "text-xl font-semibold mb-1",
397
408
  children: o.auth.resetPassword
398
409
  }) }),
399
- /* @__PURE__ */ Q(j.Content, {
410
+ /* @__PURE__ */ Q(M.Content, {
400
411
  className: "gap-4",
401
- children: /* @__PURE__ */ $(I, {
412
+ children: /* @__PURE__ */ $(L, {
402
413
  onSubmit: g,
403
414
  className: "flex flex-col gap-4",
404
415
  children: [
@@ -409,28 +420,28 @@ function Qe({ className: e, variant: t, ...n }) {
409
420
  autoComplete: "new-password",
410
421
  isDisabled: u,
411
422
  children: [
412
- /* @__PURE__ */ Q(z, { children: o.auth.password }),
413
- /* @__PURE__ */ $(R, {
423
+ /* @__PURE__ */ Q(B, { children: o.auth.password }),
424
+ /* @__PURE__ */ $(z, {
414
425
  variant: t === "transparent" ? "primary" : "secondary",
415
- children: [/* @__PURE__ */ Q(R.Input, {
426
+ children: [/* @__PURE__ */ Q(z.Input, {
416
427
  name: "password",
417
428
  placeholder: o.auth.newPasswordPlaceholder,
418
429
  type: d ? "text" : "password",
419
430
  required: !0
420
- }), /* @__PURE__ */ Q(R.Suffix, {
431
+ }), /* @__PURE__ */ Q(z.Suffix, {
421
432
  className: "px-0",
422
- children: /* @__PURE__ */ Q(k, {
433
+ children: /* @__PURE__ */ Q(A, {
423
434
  isIconOnly: !0,
424
435
  "aria-label": d ? o.auth.hidePassword : o.auth.showPassword,
425
436
  size: "sm",
426
437
  variant: "ghost",
427
438
  onPress: () => f(!d),
428
439
  isDisabled: u,
429
- children: Q(d ? O : D, {})
440
+ children: Q(d ? k : O, {})
430
441
  })
431
442
  })]
432
443
  }),
433
- /* @__PURE__ */ Q(P, {})
444
+ /* @__PURE__ */ Q(F, {})
434
445
  ]
435
446
  }),
436
447
  a?.confirmPassword && /* @__PURE__ */ $(q, {
@@ -440,33 +451,33 @@ function Qe({ className: e, variant: t, ...n }) {
440
451
  autoComplete: "new-password",
441
452
  isDisabled: u,
442
453
  children: [
443
- /* @__PURE__ */ Q(z, { children: o.auth.confirmPassword }),
444
- /* @__PURE__ */ $(R, {
454
+ /* @__PURE__ */ Q(B, { children: o.auth.confirmPassword }),
455
+ /* @__PURE__ */ $(z, {
445
456
  variant: t === "transparent" ? "primary" : "secondary",
446
- children: [/* @__PURE__ */ Q(R.Input, {
457
+ children: [/* @__PURE__ */ Q(z.Input, {
447
458
  placeholder: o.auth.confirmPasswordPlaceholder,
448
459
  type: p ? "text" : "password",
449
460
  required: !0,
450
461
  name: "confirmPassword"
451
- }), /* @__PURE__ */ Q(R.Suffix, {
462
+ }), /* @__PURE__ */ Q(z.Suffix, {
452
463
  className: "px-0",
453
- children: /* @__PURE__ */ Q(k, {
464
+ children: /* @__PURE__ */ Q(A, {
454
465
  isIconOnly: !0,
455
466
  "aria-label": p ? o.auth.hidePassword : o.auth.showPassword,
456
467
  size: "sm",
457
468
  variant: "ghost",
458
469
  onPress: () => h(!p),
459
470
  isDisabled: u,
460
- children: Q(p ? O : D, {})
471
+ children: Q(p ? k : O, {})
461
472
  })
462
473
  })]
463
474
  }),
464
- /* @__PURE__ */ Q(P, {})
475
+ /* @__PURE__ */ Q(F, {})
465
476
  ]
466
477
  }),
467
478
  /* @__PURE__ */ Q("div", {
468
479
  className: "flex flex-col gap-3",
469
- children: /* @__PURE__ */ $(k, {
480
+ children: /* @__PURE__ */ $(A, {
470
481
  type: "submit",
471
482
  className: "w-full",
472
483
  isPending: u,
@@ -479,14 +490,14 @@ function Qe({ className: e, variant: t, ...n }) {
479
490
  ]
480
491
  })
481
492
  }),
482
- /* @__PURE__ */ Q(j.Footer, {
493
+ /* @__PURE__ */ Q(M.Footer, {
483
494
  className: "flex-col gap-3",
484
- children: /* @__PURE__ */ $(Ee, {
495
+ children: /* @__PURE__ */ $(Te, {
485
496
  className: "text-sm",
486
497
  children: [
487
498
  o.auth.rememberYourPassword,
488
499
  " ",
489
- /* @__PURE__ */ Q(B, {
500
+ /* @__PURE__ */ Q(V, {
490
501
  href: `${i.auth}/${s.auth.signIn}`,
491
502
  className: "text-accent no-underline hover:underline decoration-accent-hover",
492
503
  children: o.auth.signIn
@@ -499,12 +510,12 @@ function Qe({ className: e, variant: t, ...n }) {
499
510
  }
500
511
  //#endregion
501
512
  //#region src/components/auth/sign-in.tsx
502
- function $e({ className: t, socialLayout: n, socialPosition: i = "bottom", variant: o, ...s }) {
503
- let { authClient: c, basePaths: l, baseURL: u, emailAndPassword: d, localization: f, plugins: p, redirectTo: h, socialProviders: g, viewPaths: _, navigate: y } = m(), { fetchOptions: b, resetFetchOptions: ee } = v(), [x, S] = X(""), { mutate: te } = ne(c, { onSuccess: () => Y.success(f.auth.verificationEmailSent) }), { mutate: C, isPending: ie } = re(c, {
513
+ function st({ className: t, socialLayout: n, socialPosition: i = "bottom", variant: o, ...s }) {
514
+ let { authClient: c, basePaths: l, baseURL: u, emailAndPassword: d, localization: f, plugins: p, redirectTo: h, socialProviders: g, viewPaths: _, navigate: y } = m(), { fetchOptions: b, resetFetchOptions: ee } = v(), [te, x] = X(""), { mutate: S } = ne(c, { onSuccess: () => Y.success(f.auth.verificationEmailSent) }), { mutate: C, isPending: ie } = re(c, {
504
515
  onError: (e, { email: t }) => {
505
- S(""), e.error?.code === "EMAIL_NOT_VERIFIED" ? Y.danger(e.error?.message || e.message, { actionProps: {
516
+ x(""), e.error?.code === "EMAIL_NOT_VERIFIED" ? Y.danger(e.error?.message || e.message, { actionProps: {
506
517
  children: f.auth.resend,
507
- onClick: () => te({
518
+ onClick: () => S({
508
519
  email: t,
509
520
  callbackURL: `${u}${h}`
510
521
  })
@@ -516,25 +527,25 @@ function $e({ className: t, socialLayout: n, socialPosition: i = "bottom", varia
516
527
  let t = new FormData(e.currentTarget), n = t.get("email"), r = t.get("rememberMe") === "on";
517
528
  C({
518
529
  email: n,
519
- password: x,
530
+ password: te,
520
531
  ...d?.rememberMe ? { rememberMe: r } : {},
521
532
  fetchOptions: b
522
533
  });
523
- }, w = We({ mutationKey: a.signIn.all }) + We({ mutationKey: a.signUp.all }) > 0, oe = p.find((e) => e.captchaComponent)?.captchaComponent, T = d?.enabled && !!g?.length;
524
- return /* @__PURE__ */ $(j, {
534
+ }, w = We({ mutationKey: a.signIn.all }) + We({ mutationKey: a.signUp.all }) > 0, T = p.find((e) => e.captchaComponent)?.captchaComponent, E = d?.enabled && !!g?.length;
535
+ return /* @__PURE__ */ $(M, {
525
536
  className: J("w-full max-w-sm gap-4 md:p-6", t),
526
537
  variant: o,
527
538
  ...s,
528
539
  children: [
529
- /* @__PURE__ */ Q(j.Header, { children: /* @__PURE__ */ Q(j.Title, {
540
+ /* @__PURE__ */ Q(M.Header, { children: /* @__PURE__ */ Q(M.Title, {
530
541
  className: "text-xl font-semibold mb-1",
531
542
  children: f.auth.signIn
532
543
  }) }),
533
- /* @__PURE__ */ $(j.Content, {
544
+ /* @__PURE__ */ $(M.Content, {
534
545
  className: "gap-4",
535
546
  children: [
536
- i === "top" && /* @__PURE__ */ $(Z, { children: [!!g?.length && /* @__PURE__ */ Q(r, { socialLayout: n }), T && /* @__PURE__ */ Q(e, { children: f.auth.or })] }),
537
- d?.enabled && /* @__PURE__ */ $(I, {
547
+ i === "top" && /* @__PURE__ */ $(Z, { children: [!!g?.length && /* @__PURE__ */ Q(r, { socialLayout: n }), E && /* @__PURE__ */ Q(e, { children: f.auth.or })] }),
548
+ d?.enabled && /* @__PURE__ */ $(L, {
538
549
  onSubmit: ae,
539
550
  className: "flex flex-col gap-4",
540
551
  children: [
@@ -544,13 +555,13 @@ function $e({ className: t, socialLayout: n, socialPosition: i = "bottom", varia
544
555
  autoComplete: "email",
545
556
  isDisabled: w,
546
557
  children: [
547
- /* @__PURE__ */ Q(z, { children: f.auth.email }),
548
- /* @__PURE__ */ Q(L, {
558
+ /* @__PURE__ */ Q(B, { children: f.auth.email }),
559
+ /* @__PURE__ */ Q(R, {
549
560
  placeholder: f.auth.emailPlaceholder,
550
561
  variant: o === "transparent" ? "primary" : "secondary",
551
562
  required: !0
552
563
  }),
553
- /* @__PURE__ */ Q(P, {})
564
+ /* @__PURE__ */ Q(F, {})
554
565
  ]
555
566
  }),
556
567
  /* @__PURE__ */ $(q, {
@@ -560,31 +571,31 @@ function $e({ className: t, socialLayout: n, socialPosition: i = "bottom", varia
560
571
  type: "password",
561
572
  autoComplete: "current-password",
562
573
  isDisabled: w,
563
- value: x,
564
- onChange: S,
574
+ value: te,
575
+ onChange: x,
565
576
  children: [
566
- /* @__PURE__ */ Q(z, { children: f.auth.password }),
567
- /* @__PURE__ */ Q(L, {
577
+ /* @__PURE__ */ Q(B, { children: f.auth.password }),
578
+ /* @__PURE__ */ Q(R, {
568
579
  placeholder: f.auth.passwordPlaceholder,
569
580
  variant: o === "transparent" ? "primary" : "secondary",
570
581
  required: !0
571
582
  }),
572
- /* @__PURE__ */ Q(P, {})
583
+ /* @__PURE__ */ Q(F, {})
573
584
  ]
574
585
  }),
575
- d?.rememberMe && /* @__PURE__ */ $(M, {
586
+ d?.rememberMe && /* @__PURE__ */ $(N, {
576
587
  name: "rememberMe",
577
588
  isDisabled: w,
578
589
  variant: o === "transparent" ? "primary" : "secondary",
579
- children: [/* @__PURE__ */ Q(M.Control, { children: /* @__PURE__ */ Q(M.Indicator, {}) }), /* @__PURE__ */ Q(M.Content, { children: /* @__PURE__ */ Q(z, { children: f.auth.rememberMe }) })]
590
+ children: [/* @__PURE__ */ Q(N.Control, { children: /* @__PURE__ */ Q(N.Indicator, {}) }), /* @__PURE__ */ Q(N.Content, { children: /* @__PURE__ */ Q(B, { children: f.auth.rememberMe }) })]
580
591
  }),
581
- oe && /* @__PURE__ */ Q("div", {
592
+ T && /* @__PURE__ */ Q("div", {
582
593
  className: "flex justify-center",
583
- children: oe
594
+ children: T
584
595
  }),
585
596
  /* @__PURE__ */ $("div", {
586
597
  className: "flex flex-col gap-3",
587
- children: [/* @__PURE__ */ $(k, {
598
+ children: [/* @__PURE__ */ $(A, {
588
599
  type: "submit",
589
600
  className: "w-full",
590
601
  isPending: w,
@@ -596,21 +607,21 @@ function $e({ className: t, socialLayout: n, socialPosition: i = "bottom", varia
596
607
  })
597
608
  ]
598
609
  }),
599
- i === "bottom" && /* @__PURE__ */ $(Z, { children: [T && /* @__PURE__ */ Q(e, { children: f.auth.or }), !!g?.length && /* @__PURE__ */ Q(r, { socialLayout: n })] })
610
+ i === "bottom" && /* @__PURE__ */ $(Z, { children: [E && /* @__PURE__ */ Q(e, { children: f.auth.or }), !!g?.length && /* @__PURE__ */ Q(r, { socialLayout: n })] })
600
611
  ]
601
612
  }),
602
- /* @__PURE__ */ $(j.Footer, {
613
+ /* @__PURE__ */ $(M.Footer, {
603
614
  className: "flex-col gap-3",
604
- children: [d?.forgotPassword && /* @__PURE__ */ Q(B, {
615
+ children: [d?.forgotPassword && /* @__PURE__ */ Q(V, {
605
616
  href: `${l.auth}/${_.auth.forgotPassword}`,
606
617
  className: "no-underline hover:underline",
607
618
  children: f.auth.forgotPasswordLink
608
- }), d?.enabled && /* @__PURE__ */ $(Ee, {
619
+ }), d?.enabled && /* @__PURE__ */ $(Te, {
609
620
  className: "text-sm",
610
621
  children: [
611
622
  f.auth.needToCreateAnAccount,
612
623
  " ",
613
- /* @__PURE__ */ Q(B, {
624
+ /* @__PURE__ */ Q(V, {
614
625
  href: `${l.auth}/${_.auth.signUp}`,
615
626
  className: "text-accent no-underline hover:underline decoration-accent-hover",
616
627
  children: f.auth.signUp
@@ -623,7 +634,7 @@ function $e({ className: t, socialLayout: n, socialPosition: i = "bottom", varia
623
634
  }
624
635
  //#endregion
625
636
  //#region src/components/auth/sign-out.tsx
626
- function et({ className: e }) {
637
+ function ct({ className: e }) {
627
638
  let { authClient: t, basePaths: n, navigate: r, viewPaths: i } = m(), { mutate: a } = ie(t, {
628
639
  onError: (e) => {
629
640
  Y.danger(e.error?.message || e.message), r({
@@ -645,19 +656,19 @@ function et({ className: e }) {
645
656
  }
646
657
  //#endregion
647
658
  //#region src/components/auth/sign-up.tsx
648
- function tt({ className: t, socialLayout: n, socialPosition: i = "bottom", variant: o, ...s }) {
649
- let { additionalFields: c, authClient: u, basePaths: d, emailAndPassword: f, localization: p, plugins: h, redirectTo: g, socialProviders: _, viewPaths: y, navigate: b } = m(), { fetchOptions: ee, resetFetchOptions: x } = v(), [S, te] = X(""), [ne, C] = X(""), { mutate: re, isPending: ie } = ae(u, {
659
+ function lt({ className: t, socialLayout: n, socialPosition: i = "bottom", variant: o, ...s }) {
660
+ let { additionalFields: c, authClient: u, basePaths: d, emailAndPassword: f, localization: p, plugins: h, redirectTo: g, socialProviders: _, viewPaths: y, navigate: b } = m(), { fetchOptions: ee, resetFetchOptions: te } = v(), [x, S] = X(""), [ne, C] = X(""), { mutate: re, isPending: ie } = ae(u, {
650
661
  onError: (e) => {
651
- te(""), C(""), Y.danger(e.error?.message || e.message), x();
662
+ S(""), C(""), Y.danger(e.error?.message || e.message), te();
652
663
  },
653
664
  onSuccess: () => {
654
665
  f?.requireEmailVerification ? (Y.success(p.auth.verifyYourEmail), b({ to: `${d.auth}/${y.auth.signIn}` })) : b({ to: g });
655
666
  }
656
- }), [w, oe] = X(!1), [T, se] = X(!1), E = We({ mutationKey: a.signIn.all }) + We({ mutationKey: a.signUp.all }) > 0, ce = h.find((e) => e.captchaComponent)?.captchaComponent, le = async (e) => {
667
+ }), [w, T] = X(!1), [E, oe] = X(!1), D = We({ mutationKey: a.signIn.all }) + We({ mutationKey: a.signUp.all }) > 0, se = h.find((e) => e.captchaComponent)?.captchaComponent, ce = async (e) => {
657
668
  e.preventDefault();
658
669
  let t = new FormData(e.currentTarget), n = t.get("name") ?? "", r = t.get("email");
659
- if (f?.confirmPassword && S !== ne) {
660
- Y.danger(p.auth.passwordsDoNotMatch), te(""), C("");
670
+ if (f?.confirmPassword && x !== ne) {
671
+ Y.danger(p.auth.passwordsDoNotMatch), S(""), C("");
661
672
  return;
662
673
  }
663
674
  let i = {};
@@ -675,62 +686,62 @@ function tt({ className: t, socialLayout: n, socialPosition: i = "bottom", varia
675
686
  re({
676
687
  name: n,
677
688
  email: r,
678
- password: S,
689
+ password: x,
679
690
  ...i,
680
691
  fetchOptions: ee
681
692
  });
682
- }, ue = f?.enabled && !!_?.length;
683
- return /* @__PURE__ */ $(j, {
693
+ }, le = f?.enabled && !!_?.length;
694
+ return /* @__PURE__ */ $(M, {
684
695
  className: J("w-full max-w-sm gap-4 md:p-6", t),
685
696
  variant: o,
686
697
  ...s,
687
698
  children: [
688
- /* @__PURE__ */ Q(j.Header, { children: /* @__PURE__ */ Q(j.Title, {
699
+ /* @__PURE__ */ Q(M.Header, { children: /* @__PURE__ */ Q(M.Title, {
689
700
  className: "text-xl font-semibold mb-1",
690
701
  children: p.auth.signUp
691
702
  }) }),
692
- /* @__PURE__ */ $(j.Content, {
703
+ /* @__PURE__ */ $(M.Content, {
693
704
  className: "gap-4",
694
705
  children: [
695
- i === "top" && /* @__PURE__ */ $(Z, { children: [!!_?.length && /* @__PURE__ */ Q(r, { socialLayout: n }), ue && /* @__PURE__ */ Q(e, { children: p.auth.or })] }),
696
- f?.enabled && /* @__PURE__ */ $(I, {
697
- onSubmit: le,
706
+ i === "top" && /* @__PURE__ */ $(Z, { children: [!!_?.length && /* @__PURE__ */ Q(r, { socialLayout: n }), le && /* @__PURE__ */ Q(e, { children: p.auth.or })] }),
707
+ f?.enabled && /* @__PURE__ */ $(L, {
708
+ onSubmit: ce,
698
709
  className: "flex flex-col gap-4",
699
710
  children: [
700
711
  f.name !== !1 && /* @__PURE__ */ $(q, {
701
712
  name: "name",
702
713
  type: "text",
703
714
  autoComplete: "name",
704
- isDisabled: E,
715
+ isDisabled: D,
705
716
  children: [
706
- /* @__PURE__ */ Q(z, { children: p.auth.name }),
707
- /* @__PURE__ */ Q(L, {
717
+ /* @__PURE__ */ Q(B, { children: p.auth.name }),
718
+ /* @__PURE__ */ Q(R, {
708
719
  placeholder: p.auth.namePlaceholder,
709
720
  required: !0,
710
721
  variant: o === "transparent" ? "primary" : "secondary"
711
722
  }),
712
- /* @__PURE__ */ Q(P, {})
723
+ /* @__PURE__ */ Q(F, {})
713
724
  ]
714
725
  }),
715
726
  /* @__PURE__ */ $(q, {
716
727
  name: "email",
717
728
  type: "email",
718
729
  autoComplete: "email",
719
- isDisabled: E,
730
+ isDisabled: D,
720
731
  children: [
721
- /* @__PURE__ */ Q(z, { children: p.auth.email }),
722
- /* @__PURE__ */ Q(L, {
732
+ /* @__PURE__ */ Q(B, { children: p.auth.email }),
733
+ /* @__PURE__ */ Q(R, {
723
734
  placeholder: p.auth.emailPlaceholder,
724
735
  required: !0,
725
736
  variant: o === "transparent" ? "primary" : "secondary"
726
737
  }),
727
- /* @__PURE__ */ Q(P, {})
738
+ /* @__PURE__ */ Q(F, {})
728
739
  ]
729
740
  }),
730
- c?.map((e) => e.signUp === "above" && /* @__PURE__ */ Q(Xe, {
741
+ c?.map((e) => e.signUp === "above" && /* @__PURE__ */ Q(it, {
731
742
  name: e.name,
732
743
  field: e,
733
- isPending: E,
744
+ isPending: D,
734
745
  variant: o
735
746
  }, e.name)),
736
747
  /* @__PURE__ */ $(q, {
@@ -738,32 +749,32 @@ function tt({ className: t, socialLayout: n, socialPosition: i = "bottom", varia
738
749
  maxLength: f?.maxPasswordLength,
739
750
  name: "password",
740
751
  autoComplete: "new-password",
741
- isDisabled: E,
742
- value: S,
743
- onChange: te,
752
+ isDisabled: D,
753
+ value: x,
754
+ onChange: S,
744
755
  children: [
745
- /* @__PURE__ */ Q(z, { children: p.auth.password }),
746
- /* @__PURE__ */ $(R, {
756
+ /* @__PURE__ */ Q(B, { children: p.auth.password }),
757
+ /* @__PURE__ */ $(z, {
747
758
  variant: o === "transparent" ? "primary" : "secondary",
748
- children: [/* @__PURE__ */ Q(R.Input, {
759
+ children: [/* @__PURE__ */ Q(z.Input, {
749
760
  placeholder: p.auth.passwordPlaceholder,
750
761
  type: w ? "text" : "password",
751
762
  name: "password",
752
763
  required: !0
753
- }), /* @__PURE__ */ Q(R.Suffix, {
764
+ }), /* @__PURE__ */ Q(z.Suffix, {
754
765
  className: "px-0",
755
- children: /* @__PURE__ */ Q(k, {
766
+ children: /* @__PURE__ */ Q(A, {
756
767
  isIconOnly: !0,
757
768
  "aria-label": w ? p.auth.hidePassword : p.auth.showPassword,
758
769
  size: "sm",
759
770
  variant: "ghost",
760
- onPress: () => oe(!w),
761
- isDisabled: E,
762
- children: Q(w ? O : D, {})
771
+ onPress: () => T(!w),
772
+ isDisabled: D,
773
+ children: Q(w ? k : O, {})
763
774
  })
764
775
  })]
765
776
  }),
766
- /* @__PURE__ */ Q(P, {})
777
+ /* @__PURE__ */ Q(F, {})
767
778
  ]
768
779
  }),
769
780
  f?.confirmPassword && /* @__PURE__ */ $(q, {
@@ -771,50 +782,50 @@ function tt({ className: t, socialLayout: n, socialPosition: i = "bottom", varia
771
782
  maxLength: f?.maxPasswordLength,
772
783
  name: "confirmPassword",
773
784
  autoComplete: "new-password",
774
- isDisabled: E,
785
+ isDisabled: D,
775
786
  value: ne,
776
787
  onChange: C,
777
788
  children: [
778
- /* @__PURE__ */ Q(z, { children: p.auth.confirmPassword }),
779
- /* @__PURE__ */ $(R, {
789
+ /* @__PURE__ */ Q(B, { children: p.auth.confirmPassword }),
790
+ /* @__PURE__ */ $(z, {
780
791
  variant: o === "transparent" ? "primary" : "secondary",
781
- children: [/* @__PURE__ */ Q(R.Input, {
792
+ children: [/* @__PURE__ */ Q(z.Input, {
782
793
  name: "confirmPassword",
783
794
  placeholder: p.auth.confirmPasswordPlaceholder,
784
- type: T ? "text" : "password",
795
+ type: E ? "text" : "password",
785
796
  required: !0
786
- }), /* @__PURE__ */ Q(R.Suffix, {
797
+ }), /* @__PURE__ */ Q(z.Suffix, {
787
798
  className: "px-0",
788
- children: /* @__PURE__ */ Q(k, {
799
+ children: /* @__PURE__ */ Q(A, {
789
800
  isIconOnly: !0,
790
- "aria-label": T ? p.auth.hidePassword : p.auth.showPassword,
801
+ "aria-label": E ? p.auth.hidePassword : p.auth.showPassword,
791
802
  size: "sm",
792
803
  variant: "ghost",
793
- onPress: () => se(!T),
794
- isDisabled: E,
795
- children: Q(T ? O : D, {})
804
+ onPress: () => oe(!E),
805
+ isDisabled: D,
806
+ children: Q(E ? k : O, {})
796
807
  })
797
808
  })]
798
809
  }),
799
- /* @__PURE__ */ Q(P, {})
810
+ /* @__PURE__ */ Q(F, {})
800
811
  ]
801
812
  }),
802
- c?.map((e) => e.signUp && e.signUp !== "above" && /* @__PURE__ */ Q(Xe, {
813
+ c?.map((e) => e.signUp && e.signUp !== "above" && /* @__PURE__ */ Q(it, {
803
814
  name: e.name,
804
815
  field: e,
805
- isPending: E,
816
+ isPending: D,
806
817
  variant: o
807
818
  }, e.name)),
808
- ce && /* @__PURE__ */ Q("div", {
819
+ se && /* @__PURE__ */ Q("div", {
809
820
  className: "flex justify-center",
810
- children: ce
821
+ children: se
811
822
  }),
812
823
  /* @__PURE__ */ $("div", {
813
824
  className: "flex flex-col gap-3",
814
- children: [/* @__PURE__ */ $(k, {
825
+ children: [/* @__PURE__ */ $(A, {
815
826
  type: "submit",
816
827
  className: "w-full",
817
- isPending: E,
828
+ isPending: D,
818
829
  children: [ie && /* @__PURE__ */ Q(G, {
819
830
  color: "current",
820
831
  size: "sm"
@@ -823,17 +834,17 @@ function tt({ className: t, socialLayout: n, socialPosition: i = "bottom", varia
823
834
  })
824
835
  ]
825
836
  }),
826
- i === "bottom" && /* @__PURE__ */ $(Z, { children: [ue && /* @__PURE__ */ Q(e, { children: p.auth.or }), !!_?.length && /* @__PURE__ */ Q(r, { socialLayout: n })] })
837
+ i === "bottom" && /* @__PURE__ */ $(Z, { children: [le && /* @__PURE__ */ Q(e, { children: p.auth.or }), !!_?.length && /* @__PURE__ */ Q(r, { socialLayout: n })] })
827
838
  ]
828
839
  }),
829
- /* @__PURE__ */ Q(j.Footer, {
840
+ /* @__PURE__ */ Q(M.Footer, {
830
841
  className: "flex-col gap-3",
831
- children: /* @__PURE__ */ $(Ee, {
842
+ children: /* @__PURE__ */ $(Te, {
832
843
  className: "text-sm",
833
844
  children: [
834
845
  p.auth.alreadyHaveAnAccount,
835
846
  " ",
836
- /* @__PURE__ */ Q(B, {
847
+ /* @__PURE__ */ Q(V, {
837
848
  href: `${d.auth}/${y.auth.signIn}`,
838
849
  className: "text-accent no-underline hover:underline decoration-accent-hover",
839
850
  children: p.auth.signIn
@@ -846,21 +857,21 @@ function tt({ className: t, socialLayout: n, socialPosition: i = "bottom", varia
846
857
  }
847
858
  //#endregion
848
859
  //#region src/components/auth/auth.tsx
849
- var nt = [
860
+ var ut = [
850
861
  "signUp",
851
862
  "forgotPassword",
852
863
  "resetPassword"
853
- ], rt = {
854
- signIn: $e,
855
- signOut: et,
856
- signUp: tt,
857
- forgotPassword: Ze,
858
- resetPassword: Qe
864
+ ], dt = {
865
+ signIn: st,
866
+ signOut: ct,
867
+ signUp: lt,
868
+ forgotPassword: at,
869
+ resetPassword: ot
859
870
  };
860
- function it({ path: e, socialLayout: t, socialPosition: n, view: r, ...i }) {
871
+ function ft({ path: e, socialLayout: t, socialPosition: n, view: r, ...i }) {
861
872
  let { basePaths: a, emailAndPassword: o, plugins: s, viewPaths: c, navigate: l } = m();
862
873
  if (!r && !e) throw Error("[Better Auth UI] Either `view` or `path` must be provided");
863
- let u = r || Object.keys(c.auth).find((t) => c.auth[t] === e), d = !o?.enabled && u && nt.includes(u);
874
+ let u = r || Object.keys(c.auth).find((t) => c.auth[t] === e), d = !o?.enabled && u && ut.includes(u);
864
875
  if (ze(() => {
865
876
  d && l({
866
877
  to: `${a.auth}/${c.auth.signIn}`,
@@ -890,8 +901,8 @@ function it({ path: e, socialLayout: t, socialPosition: n, view: r, ...i }) {
890
901
  ...i
891
902
  });
892
903
  }
893
- let f = u ? rt[u] : void 0;
894
- if (!f) throw Error(`[Better Auth UI] Unknown view "${u}". Valid views are: ${Object.keys(rt).join(", ")}`);
904
+ let f = u ? dt[u] : void 0;
905
+ if (!f) throw Error(`[Better Auth UI] Unknown view "${u}". Valid views are: ${Object.keys(dt).join(", ")}`);
895
906
  return /* @__PURE__ */ Q(f, {
896
907
  socialLayout: t,
897
908
  socialPosition: n,
@@ -900,7 +911,7 @@ function it({ path: e, socialLayout: t, socialPosition: n, view: r, ...i }) {
900
911
  }
901
912
  //#endregion
902
913
  //#region src/components/auth/error-toaster.tsx
903
- function at() {
914
+ function pt() {
904
915
  let e = Ge();
905
916
  return ze(() => {
906
917
  let t = e.getQueryCache().subscribe((e) => {
@@ -919,19 +930,19 @@ function at() {
919
930
  }
920
931
  //#endregion
921
932
  //#region src/components/auth/auth-provider.tsx
922
- function ot({ children: e, navigate: t, ...n }) {
933
+ function mt({ children: e, navigate: t, ...n }) {
923
934
  return /* @__PURE__ */ Q(d, {
924
935
  navigate: t,
925
936
  ...n,
926
- children: /* @__PURE__ */ $(De, {
937
+ children: /* @__PURE__ */ $(Ee, {
927
938
  navigate: (e) => t({ to: e }),
928
- children: [e, /* @__PURE__ */ Q(at, {})]
939
+ children: [e, /* @__PURE__ */ Q(pt, {})]
929
940
  })
930
941
  });
931
942
  }
932
943
  //#endregion
933
944
  //#region src/components/auth/settings/account/change-email.tsx
934
- function st({ className: e, variant: t, ...n }) {
945
+ function ht({ className: e, variant: t, ...n }) {
935
946
  let { authClient: r, localization: i, baseURL: a, viewPaths: o } = m(), { data: s } = C(r), { mutate: c, isPending: l } = g(r, { onSuccess: () => Y.success(i.settings.changeEmailSuccess) });
936
947
  function u(e) {
937
948
  e.preventDefault(), c({
@@ -942,30 +953,30 @@ function st({ className: e, variant: t, ...n }) {
942
953
  return /* @__PURE__ */ $("div", { children: [/* @__PURE__ */ Q("h2", {
943
954
  className: J("text-sm font-semibold mb-3"),
944
955
  children: i.settings.changeEmail
945
- }), /* @__PURE__ */ Q(j, {
956
+ }), /* @__PURE__ */ Q(M, {
946
957
  className: J("p-4 gap-4", e),
947
958
  variant: t,
948
959
  ...n,
949
- children: /* @__PURE__ */ Q(j.Content, { children: /* @__PURE__ */ Q(I, {
960
+ children: /* @__PURE__ */ Q(M.Content, { children: /* @__PURE__ */ Q(L, {
950
961
  onSubmit: u,
951
- children: /* @__PURE__ */ $(F, {
962
+ children: /* @__PURE__ */ $(I, {
952
963
  className: "w-full gap-4",
953
- children: [/* @__PURE__ */ Q(F.Group, { children: /* @__PURE__ */ $(q, {
964
+ children: [/* @__PURE__ */ Q(I.Group, { children: /* @__PURE__ */ $(q, {
954
965
  name: "email",
955
966
  type: "email",
956
967
  defaultValue: s?.user.email,
957
968
  isDisabled: l || !s,
958
969
  children: [
959
- /* @__PURE__ */ Q(z, { children: i.auth.email }),
960
- s ? /* @__PURE__ */ Q(L, {
970
+ /* @__PURE__ */ Q(B, { children: i.auth.email }),
971
+ s ? /* @__PURE__ */ Q(R, {
961
972
  required: !0,
962
973
  variant: t === "transparent" ? "primary" : "secondary",
963
974
  autoComplete: "email",
964
975
  placeholder: i.auth.emailPlaceholder
965
976
  }) : /* @__PURE__ */ Q(W, { className: "h-10 md:h-9 w-full rounded-xl" }),
966
- /* @__PURE__ */ Q(P, {})
977
+ /* @__PURE__ */ Q(F, {})
967
978
  ]
968
- }, `${s?.user.id}-${s?.user.email}-email`) }), /* @__PURE__ */ Q(F.Actions, { children: /* @__PURE__ */ $(k, {
979
+ }, `${s?.user.id}-${s?.user.email}-email`) }), /* @__PURE__ */ Q(I.Actions, { children: /* @__PURE__ */ $(A, {
969
980
  type: "submit",
970
981
  isPending: l,
971
982
  isDisabled: !s,
@@ -981,8 +992,8 @@ function st({ className: e, variant: t, ...n }) {
981
992
  }
982
993
  //#endregion
983
994
  //#region src/components/auth/settings/account/change-avatar.tsx
984
- function ct({ className: e }) {
985
- let { authClient: t, localization: r, avatar: i } = m(), { data: a } = C(t), { mutate: o, isPending: c } = oe(t), l = Ve(null), [u, d] = X(!1), [f, p] = X(!1), h = c || u || f;
995
+ function gt({ className: e }) {
996
+ let { authClient: t, localization: r, avatar: i } = m(), { data: a } = C(t), { mutate: o, isPending: c } = T(t), l = Ve(null), [u, d] = X(!1), [f, p] = X(!1), h = c || u || f;
986
997
  async function g(e) {
987
998
  let t = e.target.files?.[0];
988
999
  if (t) {
@@ -1013,7 +1024,7 @@ function ct({ className: e }) {
1013
1024
  return /* @__PURE__ */ $("div", {
1014
1025
  className: J("flex flex-col gap-1", e),
1015
1026
  children: [
1016
- /* @__PURE__ */ Q(z, {
1027
+ /* @__PURE__ */ Q(B, {
1017
1028
  isDisabled: !a,
1018
1029
  children: r.settings.avatar
1019
1030
  }),
@@ -1026,7 +1037,7 @@ function ct({ className: e }) {
1026
1037
  }),
1027
1038
  /* @__PURE__ */ $("div", {
1028
1039
  className: "flex items-center gap-4",
1029
- children: [/* @__PURE__ */ Q(k, {
1040
+ children: [/* @__PURE__ */ Q(A, {
1030
1041
  type: "button",
1031
1042
  isIconOnly: !0,
1032
1043
  variant: "ghost",
@@ -1037,23 +1048,23 @@ function ct({ className: e }) {
1037
1048
  size: "lg",
1038
1049
  isPending: h
1039
1050
  })
1040
- }), /* @__PURE__ */ $(N, { children: [/* @__PURE__ */ $(k, {
1051
+ }), /* @__PURE__ */ $(P, { children: [/* @__PURE__ */ $(A, {
1041
1052
  isDisabled: !a || h,
1042
1053
  size: "sm",
1043
1054
  variant: "secondary",
1044
1055
  children: [h && /* @__PURE__ */ Q(G, { size: "sm" }), r.settings.changeAvatar]
1045
- }), /* @__PURE__ */ Q(N.Popover, {
1056
+ }), /* @__PURE__ */ Q(P.Popover, {
1046
1057
  className: "min-w-fit",
1047
- children: /* @__PURE__ */ $(N.Menu, { children: [/* @__PURE__ */ $(N.Item, {
1058
+ children: /* @__PURE__ */ $(P.Menu, { children: [/* @__PURE__ */ $(P.Item, {
1048
1059
  textValue: r.settings.uploadAvatar,
1049
1060
  onAction: () => l.current?.click(),
1050
- children: [/* @__PURE__ */ Q(le, { className: "text-muted" }), /* @__PURE__ */ Q(z, { children: r.settings.uploadAvatar })]
1051
- }), /* @__PURE__ */ $(N.Item, {
1061
+ children: [/* @__PURE__ */ Q(ce, { className: "text-muted" }), /* @__PURE__ */ Q(B, { children: r.settings.uploadAvatar })]
1062
+ }), /* @__PURE__ */ $(P.Item, {
1052
1063
  textValue: r.settings.deleteAvatar,
1053
1064
  isDisabled: !a?.user.image,
1054
1065
  onAction: _,
1055
1066
  variant: "danger",
1056
- children: [/* @__PURE__ */ Q(be, { className: "text-danger" }), /* @__PURE__ */ Q(z, { children: r.settings.deleteAvatar })]
1067
+ children: [/* @__PURE__ */ Q(ye, { className: "text-danger" }), /* @__PURE__ */ Q(B, { children: r.settings.deleteAvatar })]
1057
1068
  })] })
1058
1069
  })] })]
1059
1070
  })
@@ -1062,8 +1073,8 @@ function ct({ className: e }) {
1062
1073
  }
1063
1074
  //#endregion
1064
1075
  //#region src/components/auth/settings/account/user-profile.tsx
1065
- function lt({ className: e, variant: t, ...n }) {
1066
- let { additionalFields: r, authClient: i, localization: a } = m(), { data: o } = C(i), { mutate: s, isPending: c } = oe(i, { onSuccess: () => Y.success(a.settings.profileUpdatedSuccess) });
1076
+ function _t({ className: e, variant: t, ...n }) {
1077
+ let { additionalFields: r, authClient: i, localization: a } = m(), { data: o } = C(i), { mutate: s, isPending: c } = T(i, { onSuccess: () => Y.success(a.settings.profileUpdatedSuccess) });
1067
1078
  async function u(e) {
1068
1079
  e.preventDefault();
1069
1080
  let t = new FormData(e.currentTarget), n = t.get("name"), i = {};
@@ -1086,35 +1097,35 @@ function lt({ className: e, variant: t, ...n }) {
1086
1097
  return /* @__PURE__ */ $("div", { children: [/* @__PURE__ */ Q("h2", {
1087
1098
  className: J("text-sm font-semibold mb-3"),
1088
1099
  children: a.settings.userProfile
1089
- }), /* @__PURE__ */ Q(j, {
1100
+ }), /* @__PURE__ */ Q(M, {
1090
1101
  className: J("p-4 gap-4", e),
1091
1102
  variant: t,
1092
1103
  ...n,
1093
- children: /* @__PURE__ */ Q(j.Content, { children: /* @__PURE__ */ $(I, {
1104
+ children: /* @__PURE__ */ Q(M.Content, { children: /* @__PURE__ */ $(L, {
1094
1105
  onSubmit: u,
1095
1106
  className: "flex flex-col gap-4",
1096
1107
  children: [
1097
- /* @__PURE__ */ Q(ct, {}),
1108
+ /* @__PURE__ */ Q(gt, {}),
1098
1109
  /* @__PURE__ */ $(q, {
1099
1110
  name: "name",
1100
1111
  defaultValue: o?.user.name,
1101
1112
  isDisabled: c || !o,
1102
1113
  children: [
1103
- /* @__PURE__ */ Q(z, { children: a.auth.name }),
1104
- /* @__PURE__ */ Q(L, {
1114
+ /* @__PURE__ */ Q(B, { children: a.auth.name }),
1115
+ /* @__PURE__ */ Q(R, {
1105
1116
  className: J(!o && "hidden"),
1106
1117
  autoComplete: "name",
1107
1118
  placeholder: a.auth.name,
1108
1119
  variant: t === "transparent" ? "primary" : "secondary"
1109
1120
  }),
1110
1121
  !o && /* @__PURE__ */ Q(W, { className: "h-10 md:h-9 w-full rounded-xl" }),
1111
- /* @__PURE__ */ Q(P, {})
1122
+ /* @__PURE__ */ Q(F, {})
1112
1123
  ]
1113
1124
  }, `${o?.user?.id}-${o?.user?.name}-name`),
1114
1125
  r?.filter((e) => e.profile !== !1).map((e) => {
1115
1126
  if (!o) return e.inputType === "hidden" ? null : /* @__PURE__ */ Q(W, { className: "h-10 md:h-9 w-full rounded-xl" }, e.name);
1116
1127
  let n = o.user[e.name], r = `${o.user.id}-${e.name}-${n instanceof Date ? n.toISOString() : String(n ?? "")}`;
1117
- return /* @__PURE__ */ Q(Xe, {
1128
+ return /* @__PURE__ */ Q(it, {
1118
1129
  name: e.name,
1119
1130
  field: {
1120
1131
  ...e,
@@ -1124,7 +1135,7 @@ function lt({ className: e, variant: t, ...n }) {
1124
1135
  variant: t
1125
1136
  }, r);
1126
1137
  }),
1127
- /* @__PURE__ */ $(k, {
1138
+ /* @__PURE__ */ $(A, {
1128
1139
  type: "submit",
1129
1140
  isPending: c,
1130
1141
  isDisabled: !o,
@@ -1141,21 +1152,1721 @@ function lt({ className: e, variant: t, ...n }) {
1141
1152
  }
1142
1153
  //#endregion
1143
1154
  //#region src/components/auth/settings/account/account-settings.tsx
1144
- function ut({ className: e, variant: t, ...n }) {
1155
+ function vt({ className: e, variant: t, ...n }) {
1145
1156
  let { emailAndPassword: r, plugins: i } = m(), a = i.some((e) => e.id === "magicLink");
1146
1157
  return /* @__PURE__ */ $("div", {
1147
1158
  className: J("flex w-full flex-col gap-4 md:gap-6", e),
1148
1159
  ...n,
1149
1160
  children: [
1150
- /* @__PURE__ */ Q(lt, { variant: t }),
1151
- (r?.enabled || a) && /* @__PURE__ */ Q(st, { variant: t }),
1161
+ /* @__PURE__ */ Q(_t, { variant: t }),
1162
+ (r?.enabled || a) && /* @__PURE__ */ Q(ht, { variant: t }),
1152
1163
  i.flatMap((e) => e.accountCards?.map((n, r) => /* @__PURE__ */ Q(n, { variant: t }, `${e.id}-${r.toString()}`)))
1153
1164
  ]
1154
1165
  });
1155
1166
  }
1156
1167
  //#endregion
1157
1168
  //#region src/components/auth/settings/security/active-session.tsx
1158
- function dt(e) {
1169
+ var yt = /* @__PURE__ */ et((/* @__PURE__ */ Qe(((e, t) => {
1170
+ (function(n, r) {
1171
+ typeof e == "object" && typeof t == "object" ? t.exports = r() : typeof define == "function" && define.amd ? define([], r) : typeof e == "object" ? e.bowser = r() : n.bowser = r();
1172
+ })(e, (function() {
1173
+ return function(e) {
1174
+ var t = {};
1175
+ function n(r) {
1176
+ if (t[r]) return t[r].exports;
1177
+ var i = t[r] = {
1178
+ i: r,
1179
+ l: !1,
1180
+ exports: {}
1181
+ };
1182
+ return e[r].call(i.exports, i, i.exports, n), i.l = !0, i.exports;
1183
+ }
1184
+ return n.m = e, n.c = t, n.d = function(e, t, r) {
1185
+ n.o(e, t) || Object.defineProperty(e, t, {
1186
+ enumerable: !0,
1187
+ get: r
1188
+ });
1189
+ }, n.r = function(e) {
1190
+ typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e, "__esModule", { value: !0 });
1191
+ }, n.t = function(e, t) {
1192
+ if (1 & t && (e = n(e)), 8 & t || 4 & t && typeof e == "object" && e && e.__esModule) return e;
1193
+ var r = Object.create(null);
1194
+ if (n.r(r), Object.defineProperty(r, "default", {
1195
+ enumerable: !0,
1196
+ value: e
1197
+ }), 2 & t && typeof e != "string") for (var i in e) n.d(r, i, function(t) {
1198
+ return e[t];
1199
+ }.bind(null, i));
1200
+ return r;
1201
+ }, n.n = function(e) {
1202
+ var t = e && e.__esModule ? function() {
1203
+ return e.default;
1204
+ } : function() {
1205
+ return e;
1206
+ };
1207
+ return n.d(t, "a", t), t;
1208
+ }, n.o = function(e, t) {
1209
+ return Object.prototype.hasOwnProperty.call(e, t);
1210
+ }, n.p = "", n(n.s = 90);
1211
+ }({
1212
+ 17: function(e, t, n) {
1213
+ t.__esModule = !0, t.default = void 0;
1214
+ var r = n(18);
1215
+ t.default = function() {
1216
+ function e() {}
1217
+ return e.getFirstMatch = function(e, t) {
1218
+ var n = t.match(e);
1219
+ return n && n.length > 0 && n[1] || "";
1220
+ }, e.getSecondMatch = function(e, t) {
1221
+ var n = t.match(e);
1222
+ return n && n.length > 1 && n[2] || "";
1223
+ }, e.matchAndReturnConst = function(e, t, n) {
1224
+ if (e.test(t)) return n;
1225
+ }, e.getWindowsVersionName = function(e) {
1226
+ switch (e) {
1227
+ case "NT": return "NT";
1228
+ case "XP": return "XP";
1229
+ case "NT 5.0": return "2000";
1230
+ case "NT 5.1": return "XP";
1231
+ case "NT 5.2": return "2003";
1232
+ case "NT 6.0": return "Vista";
1233
+ case "NT 6.1": return "7";
1234
+ case "NT 6.2": return "8";
1235
+ case "NT 6.3": return "8.1";
1236
+ case "NT 10.0": return "10";
1237
+ default: return;
1238
+ }
1239
+ }, e.getMacOSVersionName = function(e) {
1240
+ var t = e.split(".").splice(0, 2).map((function(e) {
1241
+ return parseInt(e, 10) || 0;
1242
+ }));
1243
+ t.push(0);
1244
+ var n = t[0], r = t[1];
1245
+ if (n === 10) switch (r) {
1246
+ case 5: return "Leopard";
1247
+ case 6: return "Snow Leopard";
1248
+ case 7: return "Lion";
1249
+ case 8: return "Mountain Lion";
1250
+ case 9: return "Mavericks";
1251
+ case 10: return "Yosemite";
1252
+ case 11: return "El Capitan";
1253
+ case 12: return "Sierra";
1254
+ case 13: return "High Sierra";
1255
+ case 14: return "Mojave";
1256
+ case 15: return "Catalina";
1257
+ default: return;
1258
+ }
1259
+ switch (n) {
1260
+ case 11: return "Big Sur";
1261
+ case 12: return "Monterey";
1262
+ case 13: return "Ventura";
1263
+ case 14: return "Sonoma";
1264
+ case 15: return "Sequoia";
1265
+ default: return;
1266
+ }
1267
+ }, e.getAndroidVersionName = function(e) {
1268
+ var t = e.split(".").splice(0, 2).map((function(e) {
1269
+ return parseInt(e, 10) || 0;
1270
+ }));
1271
+ if (t.push(0), !(t[0] === 1 && t[1] < 5)) return t[0] === 1 && t[1] < 6 ? "Cupcake" : t[0] === 1 && t[1] >= 6 ? "Donut" : t[0] === 2 && t[1] < 2 ? "Eclair" : t[0] === 2 && t[1] === 2 ? "Froyo" : t[0] === 2 && t[1] > 2 ? "Gingerbread" : t[0] === 3 ? "Honeycomb" : t[0] === 4 && t[1] < 1 ? "Ice Cream Sandwich" : t[0] === 4 && t[1] < 4 ? "Jelly Bean" : t[0] === 4 && t[1] >= 4 ? "KitKat" : t[0] === 5 ? "Lollipop" : t[0] === 6 ? "Marshmallow" : t[0] === 7 ? "Nougat" : t[0] === 8 ? "Oreo" : t[0] === 9 ? "Pie" : void 0;
1272
+ }, e.getVersionPrecision = function(e) {
1273
+ return e.split(".").length;
1274
+ }, e.compareVersions = function(t, n, r) {
1275
+ r === void 0 && (r = !1);
1276
+ var i = e.getVersionPrecision(t), a = e.getVersionPrecision(n), o = Math.max(i, a), s = 0, c = e.map([t, n], (function(t) {
1277
+ var n = o - e.getVersionPrecision(t), r = t + Array(n + 1).join(".0");
1278
+ return e.map(r.split("."), (function(e) {
1279
+ return Array(20 - e.length).join("0") + e;
1280
+ })).reverse();
1281
+ }));
1282
+ for (r && (s = o - Math.min(i, a)), --o; o >= s;) {
1283
+ if (c[0][o] > c[1][o]) return 1;
1284
+ if (c[0][o] === c[1][o]) {
1285
+ if (o === s) return 0;
1286
+ --o;
1287
+ } else if (c[0][o] < c[1][o]) return -1;
1288
+ }
1289
+ }, e.map = function(e, t) {
1290
+ var n, r = [];
1291
+ if (Array.prototype.map) return Array.prototype.map.call(e, t);
1292
+ for (n = 0; n < e.length; n += 1) r.push(t(e[n]));
1293
+ return r;
1294
+ }, e.find = function(e, t) {
1295
+ var n, r;
1296
+ if (Array.prototype.find) return Array.prototype.find.call(e, t);
1297
+ for (n = 0, r = e.length; n < r; n += 1) {
1298
+ var i = e[n];
1299
+ if (t(i, n)) return i;
1300
+ }
1301
+ }, e.assign = function(e) {
1302
+ for (var t, n, r = e, i = arguments.length, a = Array(i > 1 ? i - 1 : 0), o = 1; o < i; o++) a[o - 1] = arguments[o];
1303
+ if (Object.assign) return Object.assign.apply(Object, [e].concat(a));
1304
+ var s = function() {
1305
+ var e = a[t];
1306
+ typeof e == "object" && e && Object.keys(e).forEach((function(t) {
1307
+ r[t] = e[t];
1308
+ }));
1309
+ };
1310
+ for (t = 0, n = a.length; t < n; t += 1) s();
1311
+ return e;
1312
+ }, e.getBrowserAlias = function(e) {
1313
+ return r.BROWSER_ALIASES_MAP[e];
1314
+ }, e.getBrowserTypeByAlias = function(e) {
1315
+ return r.BROWSER_MAP[e] || "";
1316
+ }, e;
1317
+ }(), e.exports = t.default;
1318
+ },
1319
+ 18: function(e, t, n) {
1320
+ t.__esModule = !0, t.ENGINE_MAP = t.OS_MAP = t.PLATFORMS_MAP = t.BROWSER_MAP = t.BROWSER_ALIASES_MAP = void 0, t.BROWSER_ALIASES_MAP = {
1321
+ AmazonBot: "amazonbot",
1322
+ "Amazon Silk": "amazon_silk",
1323
+ "Android Browser": "android",
1324
+ BaiduSpider: "baiduspider",
1325
+ Bada: "bada",
1326
+ BingCrawler: "bingcrawler",
1327
+ Brave: "brave",
1328
+ BlackBerry: "blackberry",
1329
+ "ChatGPT-User": "chatgpt_user",
1330
+ Chrome: "chrome",
1331
+ ClaudeBot: "claudebot",
1332
+ Chromium: "chromium",
1333
+ Diffbot: "diffbot",
1334
+ DuckDuckBot: "duckduckbot",
1335
+ DuckDuckGo: "duckduckgo",
1336
+ Electron: "electron",
1337
+ Epiphany: "epiphany",
1338
+ FacebookExternalHit: "facebookexternalhit",
1339
+ Firefox: "firefox",
1340
+ Focus: "focus",
1341
+ Generic: "generic",
1342
+ "Google Search": "google_search",
1343
+ Googlebot: "googlebot",
1344
+ GPTBot: "gptbot",
1345
+ "Internet Explorer": "ie",
1346
+ InternetArchiveCrawler: "internetarchivecrawler",
1347
+ "K-Meleon": "k_meleon",
1348
+ LibreWolf: "librewolf",
1349
+ Linespider: "linespider",
1350
+ Maxthon: "maxthon",
1351
+ "Meta-ExternalAds": "meta_externalads",
1352
+ "Meta-ExternalAgent": "meta_externalagent",
1353
+ "Meta-ExternalFetcher": "meta_externalfetcher",
1354
+ "Meta-WebIndexer": "meta_webindexer",
1355
+ "Microsoft Edge": "edge",
1356
+ "MZ Browser": "mz",
1357
+ "NAVER Whale Browser": "naver",
1358
+ "OAI-SearchBot": "oai_searchbot",
1359
+ Omgilibot: "omgilibot",
1360
+ Opera: "opera",
1361
+ "Opera Coast": "opera_coast",
1362
+ "Pale Moon": "pale_moon",
1363
+ PerplexityBot: "perplexitybot",
1364
+ "Perplexity-User": "perplexity_user",
1365
+ PhantomJS: "phantomjs",
1366
+ PingdomBot: "pingdombot",
1367
+ Puffin: "puffin",
1368
+ QQ: "qq",
1369
+ QQLite: "qqlite",
1370
+ QupZilla: "qupzilla",
1371
+ Roku: "roku",
1372
+ Safari: "safari",
1373
+ Sailfish: "sailfish",
1374
+ "Samsung Internet for Android": "samsung_internet",
1375
+ SlackBot: "slackbot",
1376
+ SeaMonkey: "seamonkey",
1377
+ Sleipnir: "sleipnir",
1378
+ "Sogou Browser": "sogou",
1379
+ Swing: "swing",
1380
+ Tizen: "tizen",
1381
+ "UC Browser": "uc",
1382
+ Vivaldi: "vivaldi",
1383
+ "WebOS Browser": "webos",
1384
+ WeChat: "wechat",
1385
+ YahooSlurp: "yahooslurp",
1386
+ "Yandex Browser": "yandex",
1387
+ YandexBot: "yandexbot",
1388
+ YouBot: "youbot"
1389
+ }, t.BROWSER_MAP = {
1390
+ amazonbot: "AmazonBot",
1391
+ amazon_silk: "Amazon Silk",
1392
+ android: "Android Browser",
1393
+ baiduspider: "BaiduSpider",
1394
+ bada: "Bada",
1395
+ bingcrawler: "BingCrawler",
1396
+ blackberry: "BlackBerry",
1397
+ brave: "Brave",
1398
+ chatgpt_user: "ChatGPT-User",
1399
+ chrome: "Chrome",
1400
+ claudebot: "ClaudeBot",
1401
+ chromium: "Chromium",
1402
+ diffbot: "Diffbot",
1403
+ duckduckbot: "DuckDuckBot",
1404
+ duckduckgo: "DuckDuckGo",
1405
+ edge: "Microsoft Edge",
1406
+ electron: "Electron",
1407
+ epiphany: "Epiphany",
1408
+ facebookexternalhit: "FacebookExternalHit",
1409
+ firefox: "Firefox",
1410
+ focus: "Focus",
1411
+ generic: "Generic",
1412
+ google_search: "Google Search",
1413
+ googlebot: "Googlebot",
1414
+ gptbot: "GPTBot",
1415
+ ie: "Internet Explorer",
1416
+ internetarchivecrawler: "InternetArchiveCrawler",
1417
+ k_meleon: "K-Meleon",
1418
+ librewolf: "LibreWolf",
1419
+ linespider: "Linespider",
1420
+ maxthon: "Maxthon",
1421
+ meta_externalads: "Meta-ExternalAds",
1422
+ meta_externalagent: "Meta-ExternalAgent",
1423
+ meta_externalfetcher: "Meta-ExternalFetcher",
1424
+ meta_webindexer: "Meta-WebIndexer",
1425
+ mz: "MZ Browser",
1426
+ naver: "NAVER Whale Browser",
1427
+ oai_searchbot: "OAI-SearchBot",
1428
+ omgilibot: "Omgilibot",
1429
+ opera: "Opera",
1430
+ opera_coast: "Opera Coast",
1431
+ pale_moon: "Pale Moon",
1432
+ perplexitybot: "PerplexityBot",
1433
+ perplexity_user: "Perplexity-User",
1434
+ phantomjs: "PhantomJS",
1435
+ pingdombot: "PingdomBot",
1436
+ puffin: "Puffin",
1437
+ qq: "QQ Browser",
1438
+ qqlite: "QQ Browser Lite",
1439
+ qupzilla: "QupZilla",
1440
+ roku: "Roku",
1441
+ safari: "Safari",
1442
+ sailfish: "Sailfish",
1443
+ samsung_internet: "Samsung Internet for Android",
1444
+ seamonkey: "SeaMonkey",
1445
+ slackbot: "SlackBot",
1446
+ sleipnir: "Sleipnir",
1447
+ sogou: "Sogou Browser",
1448
+ swing: "Swing",
1449
+ tizen: "Tizen",
1450
+ uc: "UC Browser",
1451
+ vivaldi: "Vivaldi",
1452
+ webos: "WebOS Browser",
1453
+ wechat: "WeChat",
1454
+ yahooslurp: "YahooSlurp",
1455
+ yandex: "Yandex Browser",
1456
+ yandexbot: "YandexBot",
1457
+ youbot: "YouBot"
1458
+ }, t.PLATFORMS_MAP = {
1459
+ bot: "bot",
1460
+ desktop: "desktop",
1461
+ mobile: "mobile",
1462
+ tablet: "tablet",
1463
+ tv: "tv"
1464
+ }, t.OS_MAP = {
1465
+ Android: "Android",
1466
+ Bada: "Bada",
1467
+ BlackBerry: "BlackBerry",
1468
+ ChromeOS: "Chrome OS",
1469
+ HarmonyOS: "HarmonyOS",
1470
+ iOS: "iOS",
1471
+ Linux: "Linux",
1472
+ MacOS: "macOS",
1473
+ PlayStation4: "PlayStation 4",
1474
+ Roku: "Roku",
1475
+ Tizen: "Tizen",
1476
+ WebOS: "WebOS",
1477
+ Windows: "Windows",
1478
+ WindowsPhone: "Windows Phone"
1479
+ }, t.ENGINE_MAP = {
1480
+ Blink: "Blink",
1481
+ EdgeHTML: "EdgeHTML",
1482
+ Gecko: "Gecko",
1483
+ Presto: "Presto",
1484
+ Trident: "Trident",
1485
+ WebKit: "WebKit"
1486
+ };
1487
+ },
1488
+ 90: function(e, t, n) {
1489
+ t.__esModule = !0, t.default = void 0;
1490
+ var r, i = (r = n(91)) && r.__esModule ? r : { default: r }, a = n(18);
1491
+ function o(e, t) {
1492
+ for (var n = 0; n < t.length; n++) {
1493
+ var r = t[n];
1494
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
1495
+ }
1496
+ }
1497
+ t.default = function() {
1498
+ function e() {}
1499
+ var t, n, r;
1500
+ return e.getParser = function(e, t, n) {
1501
+ if (t === void 0 && (t = !1), n === void 0 && (n = null), typeof e != "string") throw Error("UserAgent should be a string");
1502
+ return new i.default(e, t, n);
1503
+ }, e.parse = function(e, t) {
1504
+ return t === void 0 && (t = null), new i.default(e, t).getResult();
1505
+ }, t = e, r = [
1506
+ {
1507
+ key: "BROWSER_MAP",
1508
+ get: function() {
1509
+ return a.BROWSER_MAP;
1510
+ }
1511
+ },
1512
+ {
1513
+ key: "ENGINE_MAP",
1514
+ get: function() {
1515
+ return a.ENGINE_MAP;
1516
+ }
1517
+ },
1518
+ {
1519
+ key: "OS_MAP",
1520
+ get: function() {
1521
+ return a.OS_MAP;
1522
+ }
1523
+ },
1524
+ {
1525
+ key: "PLATFORMS_MAP",
1526
+ get: function() {
1527
+ return a.PLATFORMS_MAP;
1528
+ }
1529
+ }
1530
+ ], (n = null) && o(t.prototype, n), r && o(t, r), e;
1531
+ }(), e.exports = t.default;
1532
+ },
1533
+ 91: function(e, t, n) {
1534
+ t.__esModule = !0, t.default = void 0;
1535
+ var r = c(n(92)), i = c(n(93)), a = c(n(94)), o = c(n(95)), s = c(n(17));
1536
+ function c(e) {
1537
+ return e && e.__esModule ? e : { default: e };
1538
+ }
1539
+ t.default = function() {
1540
+ function e(e, t, n) {
1541
+ if (t === void 0 && (t = !1), n === void 0 && (n = null), e == null || e === "") throw Error("UserAgent parameter can't be empty");
1542
+ this._ua = e;
1543
+ var r = !1;
1544
+ typeof t == "boolean" ? (r = t, this._hints = n) : this._hints = typeof t == "object" && t ? t : null, this.parsedResult = {}, !0 !== r && this.parse();
1545
+ }
1546
+ var t = e.prototype;
1547
+ return t.getHints = function() {
1548
+ return this._hints;
1549
+ }, t.hasBrand = function(e) {
1550
+ if (!this._hints || !Array.isArray(this._hints.brands)) return !1;
1551
+ var t = e.toLowerCase();
1552
+ return this._hints.brands.some((function(e) {
1553
+ return e.brand && e.brand.toLowerCase() === t;
1554
+ }));
1555
+ }, t.getBrandVersion = function(e) {
1556
+ if (this._hints && Array.isArray(this._hints.brands)) {
1557
+ var t = e.toLowerCase(), n = this._hints.brands.find((function(e) {
1558
+ return e.brand && e.brand.toLowerCase() === t;
1559
+ }));
1560
+ return n ? n.version : void 0;
1561
+ }
1562
+ }, t.getUA = function() {
1563
+ return this._ua;
1564
+ }, t.test = function(e) {
1565
+ return e.test(this._ua);
1566
+ }, t.parseBrowser = function() {
1567
+ var e = this;
1568
+ this.parsedResult.browser = {};
1569
+ var t = s.default.find(r.default, (function(t) {
1570
+ if (typeof t.test == "function") return t.test(e);
1571
+ if (Array.isArray(t.test)) return t.test.some((function(t) {
1572
+ return e.test(t);
1573
+ }));
1574
+ throw Error("Browser's test function is not valid");
1575
+ }));
1576
+ return t && (this.parsedResult.browser = t.describe(this.getUA(), this)), this.parsedResult.browser;
1577
+ }, t.getBrowser = function() {
1578
+ return this.parsedResult.browser ? this.parsedResult.browser : this.parseBrowser();
1579
+ }, t.getBrowserName = function(e) {
1580
+ return e ? String(this.getBrowser().name).toLowerCase() || "" : this.getBrowser().name || "";
1581
+ }, t.getBrowserVersion = function() {
1582
+ return this.getBrowser().version;
1583
+ }, t.getOS = function() {
1584
+ return this.parsedResult.os ? this.parsedResult.os : this.parseOS();
1585
+ }, t.parseOS = function() {
1586
+ var e = this;
1587
+ this.parsedResult.os = {};
1588
+ var t = s.default.find(i.default, (function(t) {
1589
+ if (typeof t.test == "function") return t.test(e);
1590
+ if (Array.isArray(t.test)) return t.test.some((function(t) {
1591
+ return e.test(t);
1592
+ }));
1593
+ throw Error("Browser's test function is not valid");
1594
+ }));
1595
+ return t && (this.parsedResult.os = t.describe(this.getUA())), this.parsedResult.os;
1596
+ }, t.getOSName = function(e) {
1597
+ var t = this.getOS().name;
1598
+ return e ? String(t).toLowerCase() || "" : t || "";
1599
+ }, t.getOSVersion = function() {
1600
+ return this.getOS().version;
1601
+ }, t.getPlatform = function() {
1602
+ return this.parsedResult.platform ? this.parsedResult.platform : this.parsePlatform();
1603
+ }, t.getPlatformType = function(e) {
1604
+ e === void 0 && (e = !1);
1605
+ var t = this.getPlatform().type;
1606
+ return e ? String(t).toLowerCase() || "" : t || "";
1607
+ }, t.parsePlatform = function() {
1608
+ var e = this;
1609
+ this.parsedResult.platform = {};
1610
+ var t = s.default.find(a.default, (function(t) {
1611
+ if (typeof t.test == "function") return t.test(e);
1612
+ if (Array.isArray(t.test)) return t.test.some((function(t) {
1613
+ return e.test(t);
1614
+ }));
1615
+ throw Error("Browser's test function is not valid");
1616
+ }));
1617
+ return t && (this.parsedResult.platform = t.describe(this.getUA())), this.parsedResult.platform;
1618
+ }, t.getEngine = function() {
1619
+ return this.parsedResult.engine ? this.parsedResult.engine : this.parseEngine();
1620
+ }, t.getEngineName = function(e) {
1621
+ return e ? String(this.getEngine().name).toLowerCase() || "" : this.getEngine().name || "";
1622
+ }, t.parseEngine = function() {
1623
+ var e = this;
1624
+ this.parsedResult.engine = {};
1625
+ var t = s.default.find(o.default, (function(t) {
1626
+ if (typeof t.test == "function") return t.test(e);
1627
+ if (Array.isArray(t.test)) return t.test.some((function(t) {
1628
+ return e.test(t);
1629
+ }));
1630
+ throw Error("Browser's test function is not valid");
1631
+ }));
1632
+ return t && (this.parsedResult.engine = t.describe(this.getUA())), this.parsedResult.engine;
1633
+ }, t.parse = function() {
1634
+ return this.parseBrowser(), this.parseOS(), this.parsePlatform(), this.parseEngine(), this;
1635
+ }, t.getResult = function() {
1636
+ return s.default.assign({}, this.parsedResult);
1637
+ }, t.satisfies = function(e) {
1638
+ var t = this, n = {}, r = 0, i = {}, a = 0;
1639
+ if (Object.keys(e).forEach((function(t) {
1640
+ var o = e[t];
1641
+ typeof o == "string" ? (i[t] = o, a += 1) : typeof o == "object" && (n[t] = o, r += 1);
1642
+ })), r > 0) {
1643
+ var o = Object.keys(n), c = s.default.find(o, (function(e) {
1644
+ return t.isOS(e);
1645
+ }));
1646
+ if (c) {
1647
+ var l = this.satisfies(n[c]);
1648
+ if (l !== void 0) return l;
1649
+ }
1650
+ var u = s.default.find(o, (function(e) {
1651
+ return t.isPlatform(e);
1652
+ }));
1653
+ if (u) {
1654
+ var d = this.satisfies(n[u]);
1655
+ if (d !== void 0) return d;
1656
+ }
1657
+ }
1658
+ if (a > 0) {
1659
+ var f = Object.keys(i), p = s.default.find(f, (function(e) {
1660
+ return t.isBrowser(e, !0);
1661
+ }));
1662
+ if (p !== void 0) return this.compareVersion(i[p]);
1663
+ }
1664
+ }, t.isBrowser = function(e, t) {
1665
+ t === void 0 && (t = !1);
1666
+ var n = this.getBrowserName().toLowerCase(), r = e.toLowerCase(), i = s.default.getBrowserTypeByAlias(r);
1667
+ return t && i && (r = i.toLowerCase()), r === n;
1668
+ }, t.compareVersion = function(e) {
1669
+ var t = [0], n = e, r = !1, i = this.getBrowserVersion();
1670
+ if (typeof i == "string") return e[0] === ">" || e[0] === "<" ? (n = e.substr(1), e[1] === "=" ? (r = !0, n = e.substr(2)) : t = [], e[0] === ">" ? t.push(1) : t.push(-1)) : e[0] === "=" ? n = e.substr(1) : e[0] === "~" && (r = !0, n = e.substr(1)), t.indexOf(s.default.compareVersions(i, n, r)) > -1;
1671
+ }, t.isOS = function(e) {
1672
+ return this.getOSName(!0) === String(e).toLowerCase();
1673
+ }, t.isPlatform = function(e) {
1674
+ return this.getPlatformType(!0) === String(e).toLowerCase();
1675
+ }, t.isEngine = function(e) {
1676
+ return this.getEngineName(!0) === String(e).toLowerCase();
1677
+ }, t.is = function(e, t) {
1678
+ return t === void 0 && (t = !1), this.isBrowser(e, t) || this.isOS(e) || this.isPlatform(e);
1679
+ }, t.some = function(e) {
1680
+ var t = this;
1681
+ return e === void 0 && (e = []), e.some((function(e) {
1682
+ return t.is(e);
1683
+ }));
1684
+ }, e;
1685
+ }(), e.exports = t.default;
1686
+ },
1687
+ 92: function(e, t, n) {
1688
+ t.__esModule = !0, t.default = void 0;
1689
+ var r, i = (r = n(17)) && r.__esModule ? r : { default: r }, a = /version\/(\d+(\.?_?\d+)+)/i;
1690
+ t.default = [
1691
+ {
1692
+ test: [/gptbot/i],
1693
+ describe: function(e) {
1694
+ var t = { name: "GPTBot" }, n = i.default.getFirstMatch(/gptbot\/(\d+(\.\d+)+)/i, e) || i.default.getFirstMatch(a, e);
1695
+ return n && (t.version = n), t;
1696
+ }
1697
+ },
1698
+ {
1699
+ test: [/chatgpt-user/i],
1700
+ describe: function(e) {
1701
+ var t = { name: "ChatGPT-User" }, n = i.default.getFirstMatch(/chatgpt-user\/(\d+(\.\d+)+)/i, e) || i.default.getFirstMatch(a, e);
1702
+ return n && (t.version = n), t;
1703
+ }
1704
+ },
1705
+ {
1706
+ test: [/oai-searchbot/i],
1707
+ describe: function(e) {
1708
+ var t = { name: "OAI-SearchBot" }, n = i.default.getFirstMatch(/oai-searchbot\/(\d+(\.\d+)+)/i, e) || i.default.getFirstMatch(a, e);
1709
+ return n && (t.version = n), t;
1710
+ }
1711
+ },
1712
+ {
1713
+ test: [
1714
+ /claudebot/i,
1715
+ /claude-web/i,
1716
+ /claude-user/i,
1717
+ /claude-searchbot/i
1718
+ ],
1719
+ describe: function(e) {
1720
+ var t = { name: "ClaudeBot" }, n = i.default.getFirstMatch(/(?:claudebot|claude-web|claude-user|claude-searchbot)\/(\d+(\.\d+)+)/i, e) || i.default.getFirstMatch(a, e);
1721
+ return n && (t.version = n), t;
1722
+ }
1723
+ },
1724
+ {
1725
+ test: [/omgilibot/i, /webzio-extended/i],
1726
+ describe: function(e) {
1727
+ var t = { name: "Omgilibot" }, n = i.default.getFirstMatch(/(?:omgilibot|webzio-extended)\/(\d+(\.\d+)+)/i, e) || i.default.getFirstMatch(a, e);
1728
+ return n && (t.version = n), t;
1729
+ }
1730
+ },
1731
+ {
1732
+ test: [/diffbot/i],
1733
+ describe: function(e) {
1734
+ var t = { name: "Diffbot" }, n = i.default.getFirstMatch(/diffbot\/(\d+(\.\d+)+)/i, e) || i.default.getFirstMatch(a, e);
1735
+ return n && (t.version = n), t;
1736
+ }
1737
+ },
1738
+ {
1739
+ test: [/perplexitybot/i],
1740
+ describe: function(e) {
1741
+ var t = { name: "PerplexityBot" }, n = i.default.getFirstMatch(/perplexitybot\/(\d+(\.\d+)+)/i, e) || i.default.getFirstMatch(a, e);
1742
+ return n && (t.version = n), t;
1743
+ }
1744
+ },
1745
+ {
1746
+ test: [/perplexity-user/i],
1747
+ describe: function(e) {
1748
+ var t = { name: "Perplexity-User" }, n = i.default.getFirstMatch(/perplexity-user\/(\d+(\.\d+)+)/i, e) || i.default.getFirstMatch(a, e);
1749
+ return n && (t.version = n), t;
1750
+ }
1751
+ },
1752
+ {
1753
+ test: [/youbot/i],
1754
+ describe: function(e) {
1755
+ var t = { name: "YouBot" }, n = i.default.getFirstMatch(/youbot\/(\d+(\.\d+)+)/i, e) || i.default.getFirstMatch(a, e);
1756
+ return n && (t.version = n), t;
1757
+ }
1758
+ },
1759
+ {
1760
+ test: [/meta-webindexer/i],
1761
+ describe: function(e) {
1762
+ var t = { name: "Meta-WebIndexer" }, n = i.default.getFirstMatch(/meta-webindexer\/(\d+(\.\d+)+)/i, e) || i.default.getFirstMatch(a, e);
1763
+ return n && (t.version = n), t;
1764
+ }
1765
+ },
1766
+ {
1767
+ test: [/meta-externalads/i],
1768
+ describe: function(e) {
1769
+ var t = { name: "Meta-ExternalAds" }, n = i.default.getFirstMatch(/meta-externalads\/(\d+(\.\d+)+)/i, e) || i.default.getFirstMatch(a, e);
1770
+ return n && (t.version = n), t;
1771
+ }
1772
+ },
1773
+ {
1774
+ test: [/meta-externalagent/i],
1775
+ describe: function(e) {
1776
+ var t = { name: "Meta-ExternalAgent" }, n = i.default.getFirstMatch(/meta-externalagent\/(\d+(\.\d+)+)/i, e) || i.default.getFirstMatch(a, e);
1777
+ return n && (t.version = n), t;
1778
+ }
1779
+ },
1780
+ {
1781
+ test: [/meta-externalfetcher/i],
1782
+ describe: function(e) {
1783
+ var t = { name: "Meta-ExternalFetcher" }, n = i.default.getFirstMatch(/meta-externalfetcher\/(\d+(\.\d+)+)/i, e) || i.default.getFirstMatch(a, e);
1784
+ return n && (t.version = n), t;
1785
+ }
1786
+ },
1787
+ {
1788
+ test: [/googlebot/i],
1789
+ describe: function(e) {
1790
+ var t = { name: "Googlebot" }, n = i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i, e) || i.default.getFirstMatch(a, e);
1791
+ return n && (t.version = n), t;
1792
+ }
1793
+ },
1794
+ {
1795
+ test: [/linespider/i],
1796
+ describe: function(e) {
1797
+ var t = { name: "Linespider" }, n = i.default.getFirstMatch(/(?:linespider)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i, e) || i.default.getFirstMatch(a, e);
1798
+ return n && (t.version = n), t;
1799
+ }
1800
+ },
1801
+ {
1802
+ test: [/amazonbot/i],
1803
+ describe: function(e) {
1804
+ var t = { name: "AmazonBot" }, n = i.default.getFirstMatch(/amazonbot\/(\d+(\.\d+)+)/i, e) || i.default.getFirstMatch(a, e);
1805
+ return n && (t.version = n), t;
1806
+ }
1807
+ },
1808
+ {
1809
+ test: [/bingbot/i],
1810
+ describe: function(e) {
1811
+ var t = { name: "BingCrawler" }, n = i.default.getFirstMatch(/bingbot\/(\d+(\.\d+)+)/i, e) || i.default.getFirstMatch(a, e);
1812
+ return n && (t.version = n), t;
1813
+ }
1814
+ },
1815
+ {
1816
+ test: [/baiduspider/i],
1817
+ describe: function(e) {
1818
+ var t = { name: "BaiduSpider" }, n = i.default.getFirstMatch(/baiduspider\/(\d+(\.\d+)+)/i, e) || i.default.getFirstMatch(a, e);
1819
+ return n && (t.version = n), t;
1820
+ }
1821
+ },
1822
+ {
1823
+ test: [/duckduckbot/i],
1824
+ describe: function(e) {
1825
+ var t = { name: "DuckDuckBot" }, n = i.default.getFirstMatch(/duckduckbot\/(\d+(\.\d+)+)/i, e) || i.default.getFirstMatch(a, e);
1826
+ return n && (t.version = n), t;
1827
+ }
1828
+ },
1829
+ {
1830
+ test: [/ia_archiver/i],
1831
+ describe: function(e) {
1832
+ var t = { name: "InternetArchiveCrawler" }, n = i.default.getFirstMatch(/ia_archiver\/(\d+(\.\d+)+)/i, e) || i.default.getFirstMatch(a, e);
1833
+ return n && (t.version = n), t;
1834
+ }
1835
+ },
1836
+ {
1837
+ test: [/facebookexternalhit/i, /facebookcatalog/i],
1838
+ describe: function() {
1839
+ return { name: "FacebookExternalHit" };
1840
+ }
1841
+ },
1842
+ {
1843
+ test: [/slackbot/i, /slack-imgProxy/i],
1844
+ describe: function(e) {
1845
+ var t = { name: "SlackBot" }, n = i.default.getFirstMatch(/(?:slackbot|slack-imgproxy)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i, e) || i.default.getFirstMatch(a, e);
1846
+ return n && (t.version = n), t;
1847
+ }
1848
+ },
1849
+ {
1850
+ test: [/yahoo!?[\s/]*slurp/i],
1851
+ describe: function() {
1852
+ return { name: "YahooSlurp" };
1853
+ }
1854
+ },
1855
+ {
1856
+ test: [/yandexbot/i, /yandexmobilebot/i],
1857
+ describe: function() {
1858
+ return { name: "YandexBot" };
1859
+ }
1860
+ },
1861
+ {
1862
+ test: [/pingdom/i],
1863
+ describe: function() {
1864
+ return { name: "PingdomBot" };
1865
+ }
1866
+ },
1867
+ {
1868
+ test: [/opera/i],
1869
+ describe: function(e) {
1870
+ var t = { name: "Opera" }, n = i.default.getFirstMatch(a, e) || i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i, e);
1871
+ return n && (t.version = n), t;
1872
+ }
1873
+ },
1874
+ {
1875
+ test: [/opr\/|opios/i],
1876
+ describe: function(e) {
1877
+ var t = { name: "Opera" }, n = i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i, e) || i.default.getFirstMatch(a, e);
1878
+ return n && (t.version = n), t;
1879
+ }
1880
+ },
1881
+ {
1882
+ test: [/SamsungBrowser/i],
1883
+ describe: function(e) {
1884
+ var t = { name: "Samsung Internet for Android" }, n = i.default.getFirstMatch(a, e) || i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i, e);
1885
+ return n && (t.version = n), t;
1886
+ }
1887
+ },
1888
+ {
1889
+ test: [/Whale/i],
1890
+ describe: function(e) {
1891
+ var t = { name: "NAVER Whale Browser" }, n = i.default.getFirstMatch(a, e) || i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i, e);
1892
+ return n && (t.version = n), t;
1893
+ }
1894
+ },
1895
+ {
1896
+ test: [/PaleMoon/i],
1897
+ describe: function(e) {
1898
+ var t = { name: "Pale Moon" }, n = i.default.getFirstMatch(a, e) || i.default.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i, e);
1899
+ return n && (t.version = n), t;
1900
+ }
1901
+ },
1902
+ {
1903
+ test: [/MZBrowser/i],
1904
+ describe: function(e) {
1905
+ var t = { name: "MZ Browser" }, n = i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i, e) || i.default.getFirstMatch(a, e);
1906
+ return n && (t.version = n), t;
1907
+ }
1908
+ },
1909
+ {
1910
+ test: [/focus/i],
1911
+ describe: function(e) {
1912
+ var t = { name: "Focus" }, n = i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i, e) || i.default.getFirstMatch(a, e);
1913
+ return n && (t.version = n), t;
1914
+ }
1915
+ },
1916
+ {
1917
+ test: [/swing/i],
1918
+ describe: function(e) {
1919
+ var t = { name: "Swing" }, n = i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i, e) || i.default.getFirstMatch(a, e);
1920
+ return n && (t.version = n), t;
1921
+ }
1922
+ },
1923
+ {
1924
+ test: [/coast/i],
1925
+ describe: function(e) {
1926
+ var t = { name: "Opera Coast" }, n = i.default.getFirstMatch(a, e) || i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i, e);
1927
+ return n && (t.version = n), t;
1928
+ }
1929
+ },
1930
+ {
1931
+ test: [/opt\/\d+(?:.?_?\d+)+/i],
1932
+ describe: function(e) {
1933
+ var t = { name: "Opera Touch" }, n = i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i, e) || i.default.getFirstMatch(a, e);
1934
+ return n && (t.version = n), t;
1935
+ }
1936
+ },
1937
+ {
1938
+ test: [/yabrowser/i],
1939
+ describe: function(e) {
1940
+ var t = { name: "Yandex Browser" }, n = i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i, e) || i.default.getFirstMatch(a, e);
1941
+ return n && (t.version = n), t;
1942
+ }
1943
+ },
1944
+ {
1945
+ test: [/ucbrowser/i],
1946
+ describe: function(e) {
1947
+ var t = { name: "UC Browser" }, n = i.default.getFirstMatch(a, e) || i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i, e);
1948
+ return n && (t.version = n), t;
1949
+ }
1950
+ },
1951
+ {
1952
+ test: [/Maxthon|mxios/i],
1953
+ describe: function(e) {
1954
+ var t = { name: "Maxthon" }, n = i.default.getFirstMatch(a, e) || i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i, e);
1955
+ return n && (t.version = n), t;
1956
+ }
1957
+ },
1958
+ {
1959
+ test: [/epiphany/i],
1960
+ describe: function(e) {
1961
+ var t = { name: "Epiphany" }, n = i.default.getFirstMatch(a, e) || i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i, e);
1962
+ return n && (t.version = n), t;
1963
+ }
1964
+ },
1965
+ {
1966
+ test: [/puffin/i],
1967
+ describe: function(e) {
1968
+ var t = { name: "Puffin" }, n = i.default.getFirstMatch(a, e) || i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i, e);
1969
+ return n && (t.version = n), t;
1970
+ }
1971
+ },
1972
+ {
1973
+ test: [/sleipnir/i],
1974
+ describe: function(e) {
1975
+ var t = { name: "Sleipnir" }, n = i.default.getFirstMatch(a, e) || i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i, e);
1976
+ return n && (t.version = n), t;
1977
+ }
1978
+ },
1979
+ {
1980
+ test: [/k-meleon/i],
1981
+ describe: function(e) {
1982
+ var t = { name: "K-Meleon" }, n = i.default.getFirstMatch(a, e) || i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i, e);
1983
+ return n && (t.version = n), t;
1984
+ }
1985
+ },
1986
+ {
1987
+ test: [/micromessenger/i],
1988
+ describe: function(e) {
1989
+ var t = { name: "WeChat" }, n = i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i, e) || i.default.getFirstMatch(a, e);
1990
+ return n && (t.version = n), t;
1991
+ }
1992
+ },
1993
+ {
1994
+ test: [/qqbrowser/i],
1995
+ describe: function(e) {
1996
+ var t = { name: /qqbrowserlite/i.test(e) ? "QQ Browser Lite" : "QQ Browser" }, n = i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i, e) || i.default.getFirstMatch(a, e);
1997
+ return n && (t.version = n), t;
1998
+ }
1999
+ },
2000
+ {
2001
+ test: [/msie|trident/i],
2002
+ describe: function(e) {
2003
+ var t = { name: "Internet Explorer" }, n = i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i, e);
2004
+ return n && (t.version = n), t;
2005
+ }
2006
+ },
2007
+ {
2008
+ test: [/\sedg\//i],
2009
+ describe: function(e) {
2010
+ var t = { name: "Microsoft Edge" }, n = i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i, e);
2011
+ return n && (t.version = n), t;
2012
+ }
2013
+ },
2014
+ {
2015
+ test: [/edg([ea]|ios)/i],
2016
+ describe: function(e) {
2017
+ var t = { name: "Microsoft Edge" }, n = i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i, e);
2018
+ return n && (t.version = n), t;
2019
+ }
2020
+ },
2021
+ {
2022
+ test: [/vivaldi/i],
2023
+ describe: function(e) {
2024
+ var t = { name: "Vivaldi" }, n = i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i, e);
2025
+ return n && (t.version = n), t;
2026
+ }
2027
+ },
2028
+ {
2029
+ test: [/seamonkey/i],
2030
+ describe: function(e) {
2031
+ var t = { name: "SeaMonkey" }, n = i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i, e);
2032
+ return n && (t.version = n), t;
2033
+ }
2034
+ },
2035
+ {
2036
+ test: [/sailfish/i],
2037
+ describe: function(e) {
2038
+ var t = { name: "Sailfish" }, n = i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i, e);
2039
+ return n && (t.version = n), t;
2040
+ }
2041
+ },
2042
+ {
2043
+ test: [/silk/i],
2044
+ describe: function(e) {
2045
+ var t = { name: "Amazon Silk" }, n = i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i, e);
2046
+ return n && (t.version = n), t;
2047
+ }
2048
+ },
2049
+ {
2050
+ test: [/phantom/i],
2051
+ describe: function(e) {
2052
+ var t = { name: "PhantomJS" }, n = i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i, e);
2053
+ return n && (t.version = n), t;
2054
+ }
2055
+ },
2056
+ {
2057
+ test: [/slimerjs/i],
2058
+ describe: function(e) {
2059
+ var t = { name: "SlimerJS" }, n = i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i, e);
2060
+ return n && (t.version = n), t;
2061
+ }
2062
+ },
2063
+ {
2064
+ test: [/blackberry|\bbb\d+/i, /rim\stablet/i],
2065
+ describe: function(e) {
2066
+ var t = { name: "BlackBerry" }, n = i.default.getFirstMatch(a, e) || i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i, e);
2067
+ return n && (t.version = n), t;
2068
+ }
2069
+ },
2070
+ {
2071
+ test: [/(web|hpw)[o0]s/i],
2072
+ describe: function(e) {
2073
+ var t = { name: "WebOS Browser" }, n = i.default.getFirstMatch(a, e) || i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i, e);
2074
+ return n && (t.version = n), t;
2075
+ }
2076
+ },
2077
+ {
2078
+ test: [/bada/i],
2079
+ describe: function(e) {
2080
+ var t = { name: "Bada" }, n = i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i, e);
2081
+ return n && (t.version = n), t;
2082
+ }
2083
+ },
2084
+ {
2085
+ test: [/tizen/i],
2086
+ describe: function(e) {
2087
+ var t = { name: "Tizen" }, n = i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i, e) || i.default.getFirstMatch(a, e);
2088
+ return n && (t.version = n), t;
2089
+ }
2090
+ },
2091
+ {
2092
+ test: [/qupzilla/i],
2093
+ describe: function(e) {
2094
+ var t = { name: "QupZilla" }, n = i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i, e) || i.default.getFirstMatch(a, e);
2095
+ return n && (t.version = n), t;
2096
+ }
2097
+ },
2098
+ {
2099
+ test: [/librewolf/i],
2100
+ describe: function(e) {
2101
+ var t = { name: "LibreWolf" }, n = i.default.getFirstMatch(/(?:librewolf)[\s/](\d+(\.?_?\d+)+)/i, e);
2102
+ return n && (t.version = n), t;
2103
+ }
2104
+ },
2105
+ {
2106
+ test: [/firefox|iceweasel|fxios/i],
2107
+ describe: function(e) {
2108
+ var t = { name: "Firefox" }, n = i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i, e);
2109
+ return n && (t.version = n), t;
2110
+ }
2111
+ },
2112
+ {
2113
+ test: [/electron/i],
2114
+ describe: function(e) {
2115
+ var t = { name: "Electron" }, n = i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i, e);
2116
+ return n && (t.version = n), t;
2117
+ }
2118
+ },
2119
+ {
2120
+ test: [
2121
+ /sogoumobilebrowser/i,
2122
+ /metasr/i,
2123
+ /se 2\.[x]/i
2124
+ ],
2125
+ describe: function(e) {
2126
+ var t = { name: "Sogou Browser" }, n = i.default.getFirstMatch(/(?:sogoumobilebrowser)[\s/](\d+(\.?_?\d+)+)/i, e), r = i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i, e), a = i.default.getFirstMatch(/se ([\d.]+)x/i, e), o = n || r || a;
2127
+ return o && (t.version = o), t;
2128
+ }
2129
+ },
2130
+ {
2131
+ test: [/MiuiBrowser/i],
2132
+ describe: function(e) {
2133
+ var t = { name: "Miui" }, n = i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i, e);
2134
+ return n && (t.version = n), t;
2135
+ }
2136
+ },
2137
+ {
2138
+ test: function(e) {
2139
+ return !!e.hasBrand("DuckDuckGo") || e.test(/\sDdg\/[\d.]+$/i);
2140
+ },
2141
+ describe: function(e, t) {
2142
+ var n = { name: "DuckDuckGo" };
2143
+ if (t) {
2144
+ var r = t.getBrandVersion("DuckDuckGo");
2145
+ if (r) return n.version = r, n;
2146
+ }
2147
+ var a = i.default.getFirstMatch(/\sDdg\/([\d.]+)$/i, e);
2148
+ return a && (n.version = a), n;
2149
+ }
2150
+ },
2151
+ {
2152
+ test: function(e) {
2153
+ return e.hasBrand("Brave");
2154
+ },
2155
+ describe: function(e, t) {
2156
+ var n = { name: "Brave" };
2157
+ if (t) {
2158
+ var r = t.getBrandVersion("Brave");
2159
+ if (r) return n.version = r, n;
2160
+ }
2161
+ return n;
2162
+ }
2163
+ },
2164
+ {
2165
+ test: [/chromium/i],
2166
+ describe: function(e) {
2167
+ var t = { name: "Chromium" }, n = i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i, e) || i.default.getFirstMatch(a, e);
2168
+ return n && (t.version = n), t;
2169
+ }
2170
+ },
2171
+ {
2172
+ test: [/chrome|crios|crmo/i],
2173
+ describe: function(e) {
2174
+ var t = { name: "Chrome" }, n = i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i, e);
2175
+ return n && (t.version = n), t;
2176
+ }
2177
+ },
2178
+ {
2179
+ test: [/GSA/i],
2180
+ describe: function(e) {
2181
+ var t = { name: "Google Search" }, n = i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i, e);
2182
+ return n && (t.version = n), t;
2183
+ }
2184
+ },
2185
+ {
2186
+ test: function(e) {
2187
+ var t = !e.test(/like android/i), n = e.test(/android/i);
2188
+ return t && n;
2189
+ },
2190
+ describe: function(e) {
2191
+ var t = { name: "Android Browser" }, n = i.default.getFirstMatch(a, e);
2192
+ return n && (t.version = n), t;
2193
+ }
2194
+ },
2195
+ {
2196
+ test: [/playstation 4/i],
2197
+ describe: function(e) {
2198
+ var t = { name: "PlayStation 4" }, n = i.default.getFirstMatch(a, e);
2199
+ return n && (t.version = n), t;
2200
+ }
2201
+ },
2202
+ {
2203
+ test: [/safari|applewebkit/i],
2204
+ describe: function(e) {
2205
+ var t = { name: "Safari" }, n = i.default.getFirstMatch(a, e);
2206
+ return n && (t.version = n), t;
2207
+ }
2208
+ },
2209
+ {
2210
+ test: [/.*/i],
2211
+ describe: function(e) {
2212
+ var t = e.search("\\(") === -1 ? /^(.*)\/(.*) / : /^(.*)\/(.*)[ \t]\((.*)/;
2213
+ return {
2214
+ name: i.default.getFirstMatch(t, e),
2215
+ version: i.default.getSecondMatch(t, e)
2216
+ };
2217
+ }
2218
+ }
2219
+ ], e.exports = t.default;
2220
+ },
2221
+ 93: function(e, t, n) {
2222
+ t.__esModule = !0, t.default = void 0;
2223
+ var r, i = (r = n(17)) && r.__esModule ? r : { default: r }, a = n(18);
2224
+ t.default = [
2225
+ {
2226
+ test: [/Roku\/DVP/],
2227
+ describe: function(e) {
2228
+ var t = i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i, e);
2229
+ return {
2230
+ name: a.OS_MAP.Roku,
2231
+ version: t
2232
+ };
2233
+ }
2234
+ },
2235
+ {
2236
+ test: [/windows phone/i],
2237
+ describe: function(e) {
2238
+ var t = i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i, e);
2239
+ return {
2240
+ name: a.OS_MAP.WindowsPhone,
2241
+ version: t
2242
+ };
2243
+ }
2244
+ },
2245
+ {
2246
+ test: [/windows /i],
2247
+ describe: function(e) {
2248
+ var t = i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i, e), n = i.default.getWindowsVersionName(t);
2249
+ return {
2250
+ name: a.OS_MAP.Windows,
2251
+ version: t,
2252
+ versionName: n
2253
+ };
2254
+ }
2255
+ },
2256
+ {
2257
+ test: [/Macintosh(.*?) FxiOS(.*?)\//],
2258
+ describe: function(e) {
2259
+ var t = { name: a.OS_MAP.iOS }, n = i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/, e);
2260
+ return n && (t.version = n), t;
2261
+ }
2262
+ },
2263
+ {
2264
+ test: [/macintosh/i],
2265
+ describe: function(e) {
2266
+ var t = i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i, e).replace(/[_\s]/g, "."), n = i.default.getMacOSVersionName(t), r = {
2267
+ name: a.OS_MAP.MacOS,
2268
+ version: t
2269
+ };
2270
+ return n && (r.versionName = n), r;
2271
+ }
2272
+ },
2273
+ {
2274
+ test: [/(ipod|iphone|ipad)/i],
2275
+ describe: function(e) {
2276
+ var t = i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i, e).replace(/[_\s]/g, ".");
2277
+ return {
2278
+ name: a.OS_MAP.iOS,
2279
+ version: t
2280
+ };
2281
+ }
2282
+ },
2283
+ {
2284
+ test: [/OpenHarmony/i],
2285
+ describe: function(e) {
2286
+ var t = i.default.getFirstMatch(/OpenHarmony\s+(\d+(\.\d+)*)/i, e);
2287
+ return {
2288
+ name: a.OS_MAP.HarmonyOS,
2289
+ version: t
2290
+ };
2291
+ }
2292
+ },
2293
+ {
2294
+ test: function(e) {
2295
+ var t = !e.test(/like android/i), n = e.test(/android/i);
2296
+ return t && n;
2297
+ },
2298
+ describe: function(e) {
2299
+ var t = i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i, e), n = i.default.getAndroidVersionName(t), r = {
2300
+ name: a.OS_MAP.Android,
2301
+ version: t
2302
+ };
2303
+ return n && (r.versionName = n), r;
2304
+ }
2305
+ },
2306
+ {
2307
+ test: [/(web|hpw)[o0]s/i],
2308
+ describe: function(e) {
2309
+ var t = i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i, e), n = { name: a.OS_MAP.WebOS };
2310
+ return t && t.length && (n.version = t), n;
2311
+ }
2312
+ },
2313
+ {
2314
+ test: [/blackberry|\bbb\d+/i, /rim\stablet/i],
2315
+ describe: function(e) {
2316
+ var t = i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i, e) || i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i, e) || i.default.getFirstMatch(/\bbb(\d+)/i, e);
2317
+ return {
2318
+ name: a.OS_MAP.BlackBerry,
2319
+ version: t
2320
+ };
2321
+ }
2322
+ },
2323
+ {
2324
+ test: [/bada/i],
2325
+ describe: function(e) {
2326
+ var t = i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i, e);
2327
+ return {
2328
+ name: a.OS_MAP.Bada,
2329
+ version: t
2330
+ };
2331
+ }
2332
+ },
2333
+ {
2334
+ test: [/tizen/i],
2335
+ describe: function(e) {
2336
+ var t = i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i, e);
2337
+ return {
2338
+ name: a.OS_MAP.Tizen,
2339
+ version: t
2340
+ };
2341
+ }
2342
+ },
2343
+ {
2344
+ test: [/linux/i],
2345
+ describe: function() {
2346
+ return { name: a.OS_MAP.Linux };
2347
+ }
2348
+ },
2349
+ {
2350
+ test: [/CrOS/],
2351
+ describe: function() {
2352
+ return { name: a.OS_MAP.ChromeOS };
2353
+ }
2354
+ },
2355
+ {
2356
+ test: [/PlayStation 4/],
2357
+ describe: function(e) {
2358
+ var t = i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i, e);
2359
+ return {
2360
+ name: a.OS_MAP.PlayStation4,
2361
+ version: t
2362
+ };
2363
+ }
2364
+ }
2365
+ ], e.exports = t.default;
2366
+ },
2367
+ 94: function(e, t, n) {
2368
+ t.__esModule = !0, t.default = void 0;
2369
+ var r, i = (r = n(17)) && r.__esModule ? r : { default: r }, a = n(18);
2370
+ t.default = [
2371
+ {
2372
+ test: [/googlebot/i],
2373
+ describe: function() {
2374
+ return {
2375
+ type: a.PLATFORMS_MAP.bot,
2376
+ vendor: "Google"
2377
+ };
2378
+ }
2379
+ },
2380
+ {
2381
+ test: [/linespider/i],
2382
+ describe: function() {
2383
+ return {
2384
+ type: a.PLATFORMS_MAP.bot,
2385
+ vendor: "Line"
2386
+ };
2387
+ }
2388
+ },
2389
+ {
2390
+ test: [/amazonbot/i],
2391
+ describe: function() {
2392
+ return {
2393
+ type: a.PLATFORMS_MAP.bot,
2394
+ vendor: "Amazon"
2395
+ };
2396
+ }
2397
+ },
2398
+ {
2399
+ test: [/gptbot/i],
2400
+ describe: function() {
2401
+ return {
2402
+ type: a.PLATFORMS_MAP.bot,
2403
+ vendor: "OpenAI"
2404
+ };
2405
+ }
2406
+ },
2407
+ {
2408
+ test: [/chatgpt-user/i],
2409
+ describe: function() {
2410
+ return {
2411
+ type: a.PLATFORMS_MAP.bot,
2412
+ vendor: "OpenAI"
2413
+ };
2414
+ }
2415
+ },
2416
+ {
2417
+ test: [/oai-searchbot/i],
2418
+ describe: function() {
2419
+ return {
2420
+ type: a.PLATFORMS_MAP.bot,
2421
+ vendor: "OpenAI"
2422
+ };
2423
+ }
2424
+ },
2425
+ {
2426
+ test: [/baiduspider/i],
2427
+ describe: function() {
2428
+ return {
2429
+ type: a.PLATFORMS_MAP.bot,
2430
+ vendor: "Baidu"
2431
+ };
2432
+ }
2433
+ },
2434
+ {
2435
+ test: [/bingbot/i],
2436
+ describe: function() {
2437
+ return {
2438
+ type: a.PLATFORMS_MAP.bot,
2439
+ vendor: "Bing"
2440
+ };
2441
+ }
2442
+ },
2443
+ {
2444
+ test: [/duckduckbot/i],
2445
+ describe: function() {
2446
+ return {
2447
+ type: a.PLATFORMS_MAP.bot,
2448
+ vendor: "DuckDuckGo"
2449
+ };
2450
+ }
2451
+ },
2452
+ {
2453
+ test: [
2454
+ /claudebot/i,
2455
+ /claude-web/i,
2456
+ /claude-user/i,
2457
+ /claude-searchbot/i
2458
+ ],
2459
+ describe: function() {
2460
+ return {
2461
+ type: a.PLATFORMS_MAP.bot,
2462
+ vendor: "Anthropic"
2463
+ };
2464
+ }
2465
+ },
2466
+ {
2467
+ test: [/omgilibot/i, /webzio-extended/i],
2468
+ describe: function() {
2469
+ return {
2470
+ type: a.PLATFORMS_MAP.bot,
2471
+ vendor: "Webz.io"
2472
+ };
2473
+ }
2474
+ },
2475
+ {
2476
+ test: [/diffbot/i],
2477
+ describe: function() {
2478
+ return {
2479
+ type: a.PLATFORMS_MAP.bot,
2480
+ vendor: "Diffbot"
2481
+ };
2482
+ }
2483
+ },
2484
+ {
2485
+ test: [/perplexitybot/i],
2486
+ describe: function() {
2487
+ return {
2488
+ type: a.PLATFORMS_MAP.bot,
2489
+ vendor: "Perplexity AI"
2490
+ };
2491
+ }
2492
+ },
2493
+ {
2494
+ test: [/perplexity-user/i],
2495
+ describe: function() {
2496
+ return {
2497
+ type: a.PLATFORMS_MAP.bot,
2498
+ vendor: "Perplexity AI"
2499
+ };
2500
+ }
2501
+ },
2502
+ {
2503
+ test: [/youbot/i],
2504
+ describe: function() {
2505
+ return {
2506
+ type: a.PLATFORMS_MAP.bot,
2507
+ vendor: "You.com"
2508
+ };
2509
+ }
2510
+ },
2511
+ {
2512
+ test: [/ia_archiver/i],
2513
+ describe: function() {
2514
+ return {
2515
+ type: a.PLATFORMS_MAP.bot,
2516
+ vendor: "Internet Archive"
2517
+ };
2518
+ }
2519
+ },
2520
+ {
2521
+ test: [/meta-webindexer/i],
2522
+ describe: function() {
2523
+ return {
2524
+ type: a.PLATFORMS_MAP.bot,
2525
+ vendor: "Meta"
2526
+ };
2527
+ }
2528
+ },
2529
+ {
2530
+ test: [/meta-externalads/i],
2531
+ describe: function() {
2532
+ return {
2533
+ type: a.PLATFORMS_MAP.bot,
2534
+ vendor: "Meta"
2535
+ };
2536
+ }
2537
+ },
2538
+ {
2539
+ test: [/meta-externalagent/i],
2540
+ describe: function() {
2541
+ return {
2542
+ type: a.PLATFORMS_MAP.bot,
2543
+ vendor: "Meta"
2544
+ };
2545
+ }
2546
+ },
2547
+ {
2548
+ test: [/meta-externalfetcher/i],
2549
+ describe: function() {
2550
+ return {
2551
+ type: a.PLATFORMS_MAP.bot,
2552
+ vendor: "Meta"
2553
+ };
2554
+ }
2555
+ },
2556
+ {
2557
+ test: [/facebookexternalhit/i, /facebookcatalog/i],
2558
+ describe: function() {
2559
+ return {
2560
+ type: a.PLATFORMS_MAP.bot,
2561
+ vendor: "Meta"
2562
+ };
2563
+ }
2564
+ },
2565
+ {
2566
+ test: [/slackbot/i, /slack-imgProxy/i],
2567
+ describe: function() {
2568
+ return {
2569
+ type: a.PLATFORMS_MAP.bot,
2570
+ vendor: "Slack"
2571
+ };
2572
+ }
2573
+ },
2574
+ {
2575
+ test: [/yahoo/i],
2576
+ describe: function() {
2577
+ return {
2578
+ type: a.PLATFORMS_MAP.bot,
2579
+ vendor: "Yahoo"
2580
+ };
2581
+ }
2582
+ },
2583
+ {
2584
+ test: [/yandexbot/i, /yandexmobilebot/i],
2585
+ describe: function() {
2586
+ return {
2587
+ type: a.PLATFORMS_MAP.bot,
2588
+ vendor: "Yandex"
2589
+ };
2590
+ }
2591
+ },
2592
+ {
2593
+ test: [/pingdom/i],
2594
+ describe: function() {
2595
+ return {
2596
+ type: a.PLATFORMS_MAP.bot,
2597
+ vendor: "Pingdom"
2598
+ };
2599
+ }
2600
+ },
2601
+ {
2602
+ test: [/huawei/i],
2603
+ describe: function(e) {
2604
+ var t = i.default.getFirstMatch(/(can-l01)/i, e) && "Nova", n = {
2605
+ type: a.PLATFORMS_MAP.mobile,
2606
+ vendor: "Huawei"
2607
+ };
2608
+ return t && (n.model = t), n;
2609
+ }
2610
+ },
2611
+ {
2612
+ test: [/nexus\s*(?:7|8|9|10).*/i],
2613
+ describe: function() {
2614
+ return {
2615
+ type: a.PLATFORMS_MAP.tablet,
2616
+ vendor: "Nexus"
2617
+ };
2618
+ }
2619
+ },
2620
+ {
2621
+ test: [/ipad/i],
2622
+ describe: function() {
2623
+ return {
2624
+ type: a.PLATFORMS_MAP.tablet,
2625
+ vendor: "Apple",
2626
+ model: "iPad"
2627
+ };
2628
+ }
2629
+ },
2630
+ {
2631
+ test: [/Macintosh(.*?) FxiOS(.*?)\//],
2632
+ describe: function() {
2633
+ return {
2634
+ type: a.PLATFORMS_MAP.tablet,
2635
+ vendor: "Apple",
2636
+ model: "iPad"
2637
+ };
2638
+ }
2639
+ },
2640
+ {
2641
+ test: [/kftt build/i],
2642
+ describe: function() {
2643
+ return {
2644
+ type: a.PLATFORMS_MAP.tablet,
2645
+ vendor: "Amazon",
2646
+ model: "Kindle Fire HD 7"
2647
+ };
2648
+ }
2649
+ },
2650
+ {
2651
+ test: [/silk/i],
2652
+ describe: function() {
2653
+ return {
2654
+ type: a.PLATFORMS_MAP.tablet,
2655
+ vendor: "Amazon"
2656
+ };
2657
+ }
2658
+ },
2659
+ {
2660
+ test: [/tablet(?! pc)/i],
2661
+ describe: function() {
2662
+ return { type: a.PLATFORMS_MAP.tablet };
2663
+ }
2664
+ },
2665
+ {
2666
+ test: function(e) {
2667
+ var t = e.test(/ipod|iphone/i), n = e.test(/like (ipod|iphone)/i);
2668
+ return t && !n;
2669
+ },
2670
+ describe: function(e) {
2671
+ var t = i.default.getFirstMatch(/(ipod|iphone)/i, e);
2672
+ return {
2673
+ type: a.PLATFORMS_MAP.mobile,
2674
+ vendor: "Apple",
2675
+ model: t
2676
+ };
2677
+ }
2678
+ },
2679
+ {
2680
+ test: [/nexus\s*[0-6].*/i, /galaxy nexus/i],
2681
+ describe: function() {
2682
+ return {
2683
+ type: a.PLATFORMS_MAP.mobile,
2684
+ vendor: "Nexus"
2685
+ };
2686
+ }
2687
+ },
2688
+ {
2689
+ test: [/Nokia/i],
2690
+ describe: function(e) {
2691
+ var t = i.default.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i, e), n = {
2692
+ type: a.PLATFORMS_MAP.mobile,
2693
+ vendor: "Nokia"
2694
+ };
2695
+ return t && (n.model = t), n;
2696
+ }
2697
+ },
2698
+ {
2699
+ test: [/[^-]mobi/i],
2700
+ describe: function() {
2701
+ return { type: a.PLATFORMS_MAP.mobile };
2702
+ }
2703
+ },
2704
+ {
2705
+ test: function(e) {
2706
+ return e.getBrowserName(!0) === "blackberry";
2707
+ },
2708
+ describe: function() {
2709
+ return {
2710
+ type: a.PLATFORMS_MAP.mobile,
2711
+ vendor: "BlackBerry"
2712
+ };
2713
+ }
2714
+ },
2715
+ {
2716
+ test: function(e) {
2717
+ return e.getBrowserName(!0) === "bada";
2718
+ },
2719
+ describe: function() {
2720
+ return { type: a.PLATFORMS_MAP.mobile };
2721
+ }
2722
+ },
2723
+ {
2724
+ test: function(e) {
2725
+ return e.getBrowserName() === "windows phone";
2726
+ },
2727
+ describe: function() {
2728
+ return {
2729
+ type: a.PLATFORMS_MAP.mobile,
2730
+ vendor: "Microsoft"
2731
+ };
2732
+ }
2733
+ },
2734
+ {
2735
+ test: function(e) {
2736
+ var t = Number(String(e.getOSVersion()).split(".")[0]);
2737
+ return e.getOSName(!0) === "android" && t >= 3;
2738
+ },
2739
+ describe: function() {
2740
+ return { type: a.PLATFORMS_MAP.tablet };
2741
+ }
2742
+ },
2743
+ {
2744
+ test: function(e) {
2745
+ return e.getOSName(!0) === "android";
2746
+ },
2747
+ describe: function() {
2748
+ return { type: a.PLATFORMS_MAP.mobile };
2749
+ }
2750
+ },
2751
+ {
2752
+ test: [/smart-?tv|smarttv/i],
2753
+ describe: function() {
2754
+ return { type: a.PLATFORMS_MAP.tv };
2755
+ }
2756
+ },
2757
+ {
2758
+ test: [/netcast/i],
2759
+ describe: function() {
2760
+ return { type: a.PLATFORMS_MAP.tv };
2761
+ }
2762
+ },
2763
+ {
2764
+ test: function(e) {
2765
+ return e.getOSName(!0) === "macos";
2766
+ },
2767
+ describe: function() {
2768
+ return {
2769
+ type: a.PLATFORMS_MAP.desktop,
2770
+ vendor: "Apple"
2771
+ };
2772
+ }
2773
+ },
2774
+ {
2775
+ test: function(e) {
2776
+ return e.getOSName(!0) === "windows";
2777
+ },
2778
+ describe: function() {
2779
+ return { type: a.PLATFORMS_MAP.desktop };
2780
+ }
2781
+ },
2782
+ {
2783
+ test: function(e) {
2784
+ return e.getOSName(!0) === "linux";
2785
+ },
2786
+ describe: function() {
2787
+ return { type: a.PLATFORMS_MAP.desktop };
2788
+ }
2789
+ },
2790
+ {
2791
+ test: function(e) {
2792
+ return e.getOSName(!0) === "playstation 4";
2793
+ },
2794
+ describe: function() {
2795
+ return { type: a.PLATFORMS_MAP.tv };
2796
+ }
2797
+ },
2798
+ {
2799
+ test: function(e) {
2800
+ return e.getOSName(!0) === "roku";
2801
+ },
2802
+ describe: function() {
2803
+ return { type: a.PLATFORMS_MAP.tv };
2804
+ }
2805
+ }
2806
+ ], e.exports = t.default;
2807
+ },
2808
+ 95: function(e, t, n) {
2809
+ t.__esModule = !0, t.default = void 0;
2810
+ var r, i = (r = n(17)) && r.__esModule ? r : { default: r }, a = n(18);
2811
+ t.default = [
2812
+ {
2813
+ test: function(e) {
2814
+ return e.getBrowserName(!0) === "microsoft edge";
2815
+ },
2816
+ describe: function(e) {
2817
+ if (/\sedg\//i.test(e)) return { name: a.ENGINE_MAP.Blink };
2818
+ var t = i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i, e);
2819
+ return {
2820
+ name: a.ENGINE_MAP.EdgeHTML,
2821
+ version: t
2822
+ };
2823
+ }
2824
+ },
2825
+ {
2826
+ test: [/trident/i],
2827
+ describe: function(e) {
2828
+ var t = { name: a.ENGINE_MAP.Trident }, n = i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i, e);
2829
+ return n && (t.version = n), t;
2830
+ }
2831
+ },
2832
+ {
2833
+ test: function(e) {
2834
+ return e.test(/presto/i);
2835
+ },
2836
+ describe: function(e) {
2837
+ var t = { name: a.ENGINE_MAP.Presto }, n = i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i, e);
2838
+ return n && (t.version = n), t;
2839
+ }
2840
+ },
2841
+ {
2842
+ test: function(e) {
2843
+ var t = e.test(/gecko/i), n = e.test(/like gecko/i);
2844
+ return t && !n;
2845
+ },
2846
+ describe: function(e) {
2847
+ var t = { name: a.ENGINE_MAP.Gecko }, n = i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i, e);
2848
+ return n && (t.version = n), t;
2849
+ }
2850
+ },
2851
+ {
2852
+ test: [/(apple)?webkit\/537\.36/i],
2853
+ describe: function() {
2854
+ return { name: a.ENGINE_MAP.Blink };
2855
+ }
2856
+ },
2857
+ {
2858
+ test: [/(apple)?webkit/i],
2859
+ describe: function(e) {
2860
+ var t = { name: a.ENGINE_MAP.WebKit }, n = i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i, e);
2861
+ return n && (t.version = n), t;
2862
+ }
2863
+ }
2864
+ ], e.exports = t.default;
2865
+ }
2866
+ });
2867
+ }));
2868
+ })))(), 1);
2869
+ function bt(e) {
1159
2870
  let t = Math.floor((Date.now() - e.getTime()) / 1e3), n = new Intl.RelativeTimeFormat(void 0, { numeric: "auto" });
1160
2871
  for (let [e, r] of [
1161
2872
  ["year", 31536e3],
@@ -1168,30 +2879,30 @@ function dt(e) {
1168
2879
  ]) if (t >= r) return n.format(-Math.floor(t / r), e);
1169
2880
  return n.format(0, "second");
1170
2881
  }
1171
- function ft({ activeSession: e }) {
1172
- let { authClient: t, basePaths: n, localization: r, viewPaths: i, navigate: a } = m(), { data: o } = C(t, { refetchOnMount: !1 }), { mutate: s, isPending: c } = te(t, { onSuccess: () => Y.success(r.settings.revokeSessionSuccess) }), l = e.token === o?.session.token, u = Ke.parse(e.userAgent || "");
2882
+ function xt({ activeSession: e }) {
2883
+ let { authClient: t, basePaths: n, localization: r, viewPaths: i, navigate: a } = m(), { data: o } = C(t, { refetchOnMount: !1 }), { mutate: s, isPending: c } = S(t, { onSuccess: () => Y.success(r.settings.revokeSessionSuccess) }), l = e.token === o?.session.token, u = yt.default.parse(e.userAgent || "");
1173
2884
  return /* @__PURE__ */ $("div", {
1174
2885
  className: "flex items-center gap-3",
1175
2886
  children: [
1176
2887
  /* @__PURE__ */ Q("div", {
1177
2888
  className: "flex size-10 shrink-0 items-center justify-center rounded-xl bg-surface-secondary",
1178
- children: u.platform.type === "mobile" || u.platform.type === "tablet" ? /* @__PURE__ */ Q(ye, { className: "size-4.5" }) : /* @__PURE__ */ Q(de, { className: "size-4.5" })
2889
+ children: u.platform.type === "mobile" || u.platform.type === "tablet" ? /* @__PURE__ */ Q(ve, { className: "size-4.5" }) : /* @__PURE__ */ Q(ue, { className: "size-4.5" })
1179
2890
  }),
1180
2891
  /* @__PURE__ */ $("div", {
1181
2892
  className: "flex flex-col min-w-0",
1182
2893
  children: [/* @__PURE__ */ $("span", {
1183
2894
  className: "text-sm font-medium truncate",
1184
2895
  children: [u.browser.name || "Unknown Browser", u.os.name ? `, ${u.os.name}` : ""]
1185
- }), l ? /* @__PURE__ */ Q(Se, {
2896
+ }), l ? /* @__PURE__ */ Q(xe, {
1186
2897
  color: "accent",
1187
2898
  size: "sm",
1188
2899
  children: r.settings.currentSession
1189
2900
  }) : e.createdAt && /* @__PURE__ */ Q("span", {
1190
2901
  className: "text-xs text-muted capitalize",
1191
- children: dt(e.createdAt)
2902
+ children: bt(e.createdAt)
1192
2903
  })]
1193
2904
  }),
1194
- /* @__PURE__ */ $(k, {
2905
+ /* @__PURE__ */ $(A, {
1195
2906
  className: "ml-auto shrink-0",
1196
2907
  variant: "outline",
1197
2908
  size: "sm",
@@ -1201,29 +2912,29 @@ function ft({ activeSession: e }) {
1201
2912
  children: [c ? /* @__PURE__ */ Q(G, {
1202
2913
  color: "current",
1203
2914
  size: "sm"
1204
- }) : Q(l ? T : xe, {}), l ? r.auth.signOut : r.settings.revoke]
2915
+ }) : Q(l ? E : be, {}), l ? r.auth.signOut : r.settings.revoke]
1205
2916
  })
1206
2917
  ]
1207
2918
  });
1208
2919
  }
1209
2920
  //#endregion
1210
2921
  //#region src/components/auth/settings/security/active-sessions.tsx
1211
- function pt({ className: e, variant: t, ...n }) {
2922
+ function St({ className: e, variant: t, ...n }) {
1212
2923
  let { authClient: r, localization: i } = m(), { data: a } = C(r), { data: o, isPending: s } = ee(r), c = o && [...o].sort((e, t) => e.id === a?.session.id ? -1 : +(t.id === a?.session.id));
1213
2924
  return /* @__PURE__ */ $("div", { children: [/* @__PURE__ */ Q("h2", {
1214
2925
  className: J("text-sm font-semibold mb-3"),
1215
2926
  children: i.settings.activeSessions
1216
- }), /* @__PURE__ */ Q(j, {
2927
+ }), /* @__PURE__ */ Q(M, {
1217
2928
  className: J(e),
1218
2929
  variant: t,
1219
2930
  ...n,
1220
- children: /* @__PURE__ */ Q(j.Content, {
2931
+ children: /* @__PURE__ */ Q(M.Content, {
1221
2932
  className: "gap-0",
1222
- children: s ? /* @__PURE__ */ Q(mt, {}) : c?.map((e, t) => /* @__PURE__ */ $("div", { children: [t > 0 && /* @__PURE__ */ Q("div", { className: "border-b border-dashed -mx-4 my-4" }), /* @__PURE__ */ Q(ft, { activeSession: e })] }, e.id))
2933
+ children: s ? /* @__PURE__ */ Q(Ct, {}) : c?.map((e, t) => /* @__PURE__ */ $("div", { children: [t > 0 && /* @__PURE__ */ Q("div", { className: "border-b border-dashed -mx-4 my-4" }), /* @__PURE__ */ Q(xt, { activeSession: e })] }, e.id))
1223
2934
  })
1224
2935
  })] });
1225
2936
  }
1226
- function mt() {
2937
+ function Ct() {
1227
2938
  return /* @__PURE__ */ Q("div", {
1228
2939
  className: "flex items-center justify-between",
1229
2940
  children: /* @__PURE__ */ $("div", {
@@ -1237,13 +2948,13 @@ function mt() {
1237
2948
  }
1238
2949
  //#endregion
1239
2950
  //#region src/components/auth/settings/security/change-password.tsx
1240
- function ht({ className: e, variant: t, ...n }) {
2951
+ function wt({ className: e, variant: t, ...n }) {
1241
2952
  let { authClient: r, emailAndPassword: i, localization: a } = m(), { data: o } = C(r), { data: s, isPending: c } = b(r), l = s?.some((e) => e.providerId === "credential");
1242
- return !c && !l ? /* @__PURE__ */ Q(gt, {
2953
+ return !c && !l ? /* @__PURE__ */ Q(Tt, {
1243
2954
  className: e,
1244
2955
  variant: t,
1245
2956
  ...n
1246
- }) : /* @__PURE__ */ Q(_t, {
2957
+ }) : /* @__PURE__ */ Q(Et, {
1247
2958
  className: e,
1248
2959
  variant: t,
1249
2960
  emailAndPassword: i,
@@ -1252,18 +2963,18 @@ function ht({ className: e, variant: t, ...n }) {
1252
2963
  ...n
1253
2964
  });
1254
2965
  }
1255
- function gt({ className: e, variant: t, ...n }) {
1256
- let { authClient: r, localization: i } = m(), { data: a } = C(r), { mutate: o, isPending: s } = x(r, { onSuccess: () => Y.success(i.auth.passwordResetEmailSent) }), c = () => {
2966
+ function Tt({ className: e, variant: t, ...n }) {
2967
+ let { authClient: r, localization: i } = m(), { data: a } = C(r), { mutate: o, isPending: s } = te(r, { onSuccess: () => Y.success(i.auth.passwordResetEmailSent) }), c = () => {
1257
2968
  a?.user.email && o({ email: a.user.email });
1258
2969
  };
1259
2970
  return /* @__PURE__ */ $("div", { children: [/* @__PURE__ */ Q("h2", {
1260
2971
  className: J("text-sm font-semibold mb-3"),
1261
2972
  children: i.settings.changePassword
1262
- }), /* @__PURE__ */ Q(j, {
2973
+ }), /* @__PURE__ */ Q(M, {
1263
2974
  className: J(e),
1264
2975
  variant: t,
1265
2976
  ...n,
1266
- children: /* @__PURE__ */ $(j.Content, {
2977
+ children: /* @__PURE__ */ $(M.Content, {
1267
2978
  className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
1268
2979
  children: [/* @__PURE__ */ $("div", { children: [/* @__PURE__ */ Q("p", {
1269
2980
  className: "text-sm font-medium leading-tight",
@@ -1271,7 +2982,7 @@ function gt({ className: e, variant: t, ...n }) {
1271
2982
  }), /* @__PURE__ */ Q("p", {
1272
2983
  className: "text-muted text-xs mt-0.5",
1273
2984
  children: i.settings.setPasswordDescription
1274
- })] }), /* @__PURE__ */ $(k, {
2985
+ })] }), /* @__PURE__ */ $(A, {
1275
2986
  size: "sm",
1276
2987
  isPending: s,
1277
2988
  isDisabled: !a,
@@ -1284,7 +2995,7 @@ function gt({ className: e, variant: t, ...n }) {
1284
2995
  })
1285
2996
  })] });
1286
2997
  }
1287
- function _t({ className: e, variant: t, emailAndPassword: n, localization: r, session: i, ...a }) {
2998
+ function Et({ className: e, variant: t, emailAndPassword: n, localization: r, session: i, ...a }) {
1288
2999
  let { authClient: o } = m(), [s, c] = X(""), [l, u] = X(""), [d, f] = X(""), { mutate: p, isPending: h } = _(o, {
1289
3000
  onError: (e) => {
1290
3001
  c(""), u(""), f(""), Y.danger(e.error?.message || e.message);
@@ -1306,15 +3017,15 @@ function _t({ className: e, variant: t, emailAndPassword: n, localization: r, se
1306
3017
  return /* @__PURE__ */ $("div", { children: [/* @__PURE__ */ Q("h2", {
1307
3018
  className: J("text-sm font-semibold mb-3"),
1308
3019
  children: r.settings.changePassword
1309
- }), /* @__PURE__ */ Q(j, {
3020
+ }), /* @__PURE__ */ Q(M, {
1310
3021
  className: J("p-4 gap-4", e),
1311
3022
  variant: t,
1312
3023
  ...a,
1313
- children: /* @__PURE__ */ Q(j.Content, { children: /* @__PURE__ */ Q(I, {
3024
+ children: /* @__PURE__ */ Q(M.Content, { children: /* @__PURE__ */ Q(L, {
1314
3025
  onSubmit: ee,
1315
- children: /* @__PURE__ */ $(F, {
3026
+ children: /* @__PURE__ */ $(I, {
1316
3027
  className: "w-full gap-4",
1317
- children: [/* @__PURE__ */ $(F.Group, { children: [
3028
+ children: [/* @__PURE__ */ $(I.Group, { children: [
1318
3029
  /* @__PURE__ */ $(q, {
1319
3030
  name: "currentPassword",
1320
3031
  type: "password",
@@ -1323,8 +3034,8 @@ function _t({ className: e, variant: t, emailAndPassword: n, localization: r, se
1323
3034
  value: s,
1324
3035
  onChange: c,
1325
3036
  children: [
1326
- /* @__PURE__ */ Q(z, { children: r.settings.currentPassword }),
1327
- /* @__PURE__ */ Q(L, {
3037
+ /* @__PURE__ */ Q(B, { children: r.settings.currentPassword }),
3038
+ /* @__PURE__ */ Q(R, {
1328
3039
  className: J(!i && "hidden"),
1329
3040
  autoComplete: "current-password",
1330
3041
  placeholder: r.settings.currentPasswordPlaceholder,
@@ -1332,7 +3043,7 @@ function _t({ className: e, variant: t, emailAndPassword: n, localization: r, se
1332
3043
  variant: t === "transparent" ? "primary" : "secondary"
1333
3044
  }),
1334
3045
  !i && /* @__PURE__ */ Q(W, { className: "h-10 md:h-9 w-full rounded-xl" }),
1335
- /* @__PURE__ */ Q(P, {})
3046
+ /* @__PURE__ */ Q(F, {})
1336
3047
  ]
1337
3048
  }),
1338
3049
  /* @__PURE__ */ $(q, {
@@ -1342,31 +3053,31 @@ function _t({ className: e, variant: t, emailAndPassword: n, localization: r, se
1342
3053
  value: l,
1343
3054
  onChange: u,
1344
3055
  children: [
1345
- /* @__PURE__ */ Q(z, { children: r.auth.newPassword }),
1346
- /* @__PURE__ */ $(R, {
3056
+ /* @__PURE__ */ Q(B, { children: r.auth.newPassword }),
3057
+ /* @__PURE__ */ $(z, {
1347
3058
  className: J(!i && "hidden"),
1348
3059
  variant: t === "transparent" ? "primary" : "secondary",
1349
- children: [/* @__PURE__ */ Q(R.Input, {
3060
+ children: [/* @__PURE__ */ Q(z.Input, {
1350
3061
  name: "newPassword",
1351
3062
  type: g ? "text" : "password",
1352
3063
  autoComplete: "new-password",
1353
3064
  placeholder: r.auth.newPasswordPlaceholder,
1354
3065
  required: !0
1355
- }), /* @__PURE__ */ Q(R.Suffix, {
3066
+ }), /* @__PURE__ */ Q(z.Suffix, {
1356
3067
  className: "px-0",
1357
- children: /* @__PURE__ */ Q(k, {
3068
+ children: /* @__PURE__ */ Q(A, {
1358
3069
  isIconOnly: !0,
1359
3070
  "aria-label": g ? r.auth.hidePassword : r.auth.showPassword,
1360
3071
  size: "sm",
1361
3072
  variant: "ghost",
1362
3073
  onPress: () => v(!g),
1363
3074
  isDisabled: h,
1364
- children: Q(g ? O : D, {})
3075
+ children: Q(g ? k : O, {})
1365
3076
  })
1366
3077
  })]
1367
3078
  }),
1368
3079
  !i && /* @__PURE__ */ Q(W, { className: "h-10 md:h-9 w-full rounded-xl" }),
1369
- /* @__PURE__ */ Q(P, {})
3080
+ /* @__PURE__ */ Q(F, {})
1370
3081
  ]
1371
3082
  }),
1372
3083
  n?.confirmPassword && /* @__PURE__ */ $(q, {
@@ -1377,34 +3088,34 @@ function _t({ className: e, variant: t, emailAndPassword: n, localization: r, se
1377
3088
  value: d,
1378
3089
  onChange: f,
1379
3090
  children: [
1380
- /* @__PURE__ */ Q(z, { children: r.auth.confirmPassword }),
1381
- /* @__PURE__ */ $(R, {
3091
+ /* @__PURE__ */ Q(B, { children: r.auth.confirmPassword }),
3092
+ /* @__PURE__ */ $(z, {
1382
3093
  className: J(!i && "hidden"),
1383
3094
  variant: t === "transparent" ? "primary" : "secondary",
1384
- children: [/* @__PURE__ */ Q(R.Input, {
3095
+ children: [/* @__PURE__ */ Q(z.Input, {
1385
3096
  name: "confirmPassword",
1386
3097
  type: y ? "text" : "password",
1387
3098
  autoComplete: "new-password",
1388
3099
  placeholder: r.auth.confirmPasswordPlaceholder,
1389
3100
  required: !0
1390
- }), /* @__PURE__ */ Q(R.Suffix, {
3101
+ }), /* @__PURE__ */ Q(z.Suffix, {
1391
3102
  className: "px-0",
1392
- children: /* @__PURE__ */ Q(k, {
3103
+ children: /* @__PURE__ */ Q(A, {
1393
3104
  isIconOnly: !0,
1394
3105
  "aria-label": y ? r.auth.hidePassword : r.auth.showPassword,
1395
3106
  size: "sm",
1396
3107
  variant: "ghost",
1397
3108
  onPress: () => b(!y),
1398
3109
  isDisabled: h,
1399
- children: Q(y ? O : D, {})
3110
+ children: Q(y ? k : O, {})
1400
3111
  })
1401
3112
  })]
1402
3113
  }),
1403
3114
  !i && /* @__PURE__ */ Q(W, { className: "h-10 md:h-9 w-full rounded-xl" }),
1404
- /* @__PURE__ */ Q(P, {})
3115
+ /* @__PURE__ */ Q(F, {})
1405
3116
  ]
1406
3117
  })
1407
- ] }), /* @__PURE__ */ Q(F.Actions, { children: /* @__PURE__ */ $(k, {
3118
+ ] }), /* @__PURE__ */ Q(I.Actions, { children: /* @__PURE__ */ $(A, {
1408
3119
  type: "submit",
1409
3120
  isPending: h,
1410
3121
  isDisabled: !i,
@@ -1420,14 +3131,14 @@ function _t({ className: e, variant: t, emailAndPassword: n, localization: r, se
1420
3131
  }
1421
3132
  //#endregion
1422
3133
  //#region src/components/auth/settings/security/linked-account.tsx
1423
- function vt({ account: e, provider: t }) {
3134
+ function Dt({ account: e, provider: t }) {
1424
3135
  let { authClient: n, baseURL: r, localization: i } = m(), { data: a, isPending: o } = p(n, { query: { accountId: e?.accountId } }), { mutate: s, isPending: l } = y(n), { mutate: u, isPending: d } = w(n, { onSuccess: () => Y.success(i.settings.accountUnlinked) }), h = f[t], g = c(t), _ = a?.data?.login || a?.data?.username || a?.user?.email || a?.user?.name || e?.accountId;
1425
3136
  return /* @__PURE__ */ $("div", {
1426
3137
  className: "flex items-center gap-3",
1427
3138
  children: [
1428
3139
  /* @__PURE__ */ Q("div", {
1429
3140
  className: J("flex size-10 shrink-0 items-center justify-center rounded-xl bg-surface-secondary"),
1430
- children: Q(h || _e, { className: "size-4.5" })
3141
+ children: Q(h || ge, { className: "size-4.5" })
1431
3142
  }),
1432
3143
  /* @__PURE__ */ $("div", {
1433
3144
  className: "flex flex-col min-w-0",
@@ -1439,7 +3150,7 @@ function vt({ account: e, provider: t }) {
1439
3150
  children: e ? _ : i.settings.linkProvider.replace("{{provider}}", g)
1440
3151
  })]
1441
3152
  }),
1442
- e ? /* @__PURE__ */ $(k, {
3153
+ e ? /* @__PURE__ */ $(A, {
1443
3154
  className: "ml-auto shrink-0",
1444
3155
  variant: "outline",
1445
3156
  size: "sm",
@@ -1449,8 +3160,8 @@ function vt({ account: e, provider: t }) {
1449
3160
  children: [d ? /* @__PURE__ */ Q(G, {
1450
3161
  color: "current",
1451
3162
  size: "sm"
1452
- }) : /* @__PURE__ */ Q(me, {}), i.settings.unlinkProvider.replace("{{provider}}", "").trim()]
1453
- }) : /* @__PURE__ */ $(k, {
3163
+ }) : /* @__PURE__ */ Q(pe, {}), i.settings.unlinkProvider.replace("{{provider}}", "").trim()]
3164
+ }) : /* @__PURE__ */ $(A, {
1454
3165
  className: "ml-auto shrink-0",
1455
3166
  variant: "outline",
1456
3167
  size: "sm",
@@ -1463,14 +3174,14 @@ function vt({ account: e, provider: t }) {
1463
3174
  children: [l ? /* @__PURE__ */ Q(G, {
1464
3175
  color: "current",
1465
3176
  size: "sm"
1466
- }) : /* @__PURE__ */ Q(pe, {}), i.settings.link]
3177
+ }) : /* @__PURE__ */ Q(fe, {}), i.settings.link]
1467
3178
  })
1468
3179
  ]
1469
3180
  });
1470
3181
  }
1471
3182
  //#endregion
1472
3183
  //#region src/components/auth/settings/security/linked-accounts.tsx
1473
- function yt({ className: e, variant: t, ...n }) {
3184
+ function Ot({ className: e, variant: t, ...n }) {
1474
3185
  let { authClient: r, localization: i, socialProviders: a } = m(), { data: o, isPending: s } = b(r), c = [...(o?.filter((e) => e.providerId !== "credential"))?.map((e) => ({
1475
3186
  key: e.id,
1476
3187
  account: e,
@@ -1483,20 +3194,20 @@ function yt({ className: e, variant: t, ...n }) {
1483
3194
  return /* @__PURE__ */ $("div", { children: [/* @__PURE__ */ Q("h2", {
1484
3195
  className: J("text-sm font-semibold mb-3"),
1485
3196
  children: i.settings.linkedAccounts
1486
- }), /* @__PURE__ */ Q(j, {
3197
+ }), /* @__PURE__ */ Q(M, {
1487
3198
  className: J(e),
1488
3199
  variant: t,
1489
3200
  ...n,
1490
- children: /* @__PURE__ */ Q(j.Content, {
3201
+ children: /* @__PURE__ */ Q(M.Content, {
1491
3202
  className: "gap-0",
1492
- children: s ? a?.map((e, t) => /* @__PURE__ */ $("div", { children: [t > 0 && /* @__PURE__ */ Q("div", { className: "border-b border-dashed -mx-4 my-4" }), /* @__PURE__ */ Q(bt, {})] }, e)) : c.map((e, t) => /* @__PURE__ */ $("div", { children: [t > 0 && /* @__PURE__ */ Q("div", { className: "border-b border-dashed -mx-4 my-4" }), /* @__PURE__ */ Q(vt, {
3203
+ children: s ? a?.map((e, t) => /* @__PURE__ */ $("div", { children: [t > 0 && /* @__PURE__ */ Q("div", { className: "border-b border-dashed -mx-4 my-4" }), /* @__PURE__ */ Q(kt, {})] }, e)) : c.map((e, t) => /* @__PURE__ */ $("div", { children: [t > 0 && /* @__PURE__ */ Q("div", { className: "border-b border-dashed -mx-4 my-4" }), /* @__PURE__ */ Q(Dt, {
1493
3204
  account: e.account,
1494
3205
  provider: e.provider
1495
3206
  })] }, e.key))
1496
3207
  })
1497
3208
  })] });
1498
3209
  }
1499
- function bt() {
3210
+ function kt() {
1500
3211
  return /* @__PURE__ */ Q("div", {
1501
3212
  className: "flex items-center justify-between",
1502
3213
  children: /* @__PURE__ */ $("div", {
@@ -1510,22 +3221,22 @@ function bt() {
1510
3221
  }
1511
3222
  //#endregion
1512
3223
  //#region src/components/auth/settings/security/security-settings.tsx
1513
- function xt({ className: e, variant: t, ...n }) {
3224
+ function At({ className: e, variant: t, ...n }) {
1514
3225
  let { emailAndPassword: r, plugins: i, socialProviders: a } = m();
1515
3226
  return /* @__PURE__ */ $("div", {
1516
3227
  className: J("flex w-full flex-col gap-4 md:gap-6", e),
1517
3228
  ...n,
1518
3229
  children: [
1519
- r?.enabled && /* @__PURE__ */ Q(ht, { variant: t }),
1520
- !!a?.length && /* @__PURE__ */ Q(yt, { variant: t }),
1521
- /* @__PURE__ */ Q(pt, { variant: t }),
3230
+ r?.enabled && /* @__PURE__ */ Q(wt, { variant: t }),
3231
+ !!a?.length && /* @__PURE__ */ Q(Ot, { variant: t }),
3232
+ /* @__PURE__ */ Q(St, { variant: t }),
1522
3233
  i.flatMap((e) => e.securityCards?.map((n, r) => /* @__PURE__ */ Q(n, { variant: t }, `${e.id}-${r.toString()}`)))
1523
3234
  ]
1524
3235
  });
1525
3236
  }
1526
3237
  //#endregion
1527
3238
  //#region src/components/auth/settings/settings.tsx
1528
- function St({ className: e, hideNav: t, path: n, variant: r, view: i, ...a }) {
3239
+ function jt({ className: e, hideNav: t, path: n, variant: r, view: i, ...a }) {
1529
3240
  if (!i && !n) throw Error("[Better Auth UI] Either `view` or `path` must be provided");
1530
3241
  let { authClient: o, basePaths: s, localization: c, viewPaths: l, plugins: u } = m();
1531
3242
  h(o);
@@ -1561,7 +3272,7 @@ function St({ className: e, hideNav: t, path: n, variant: r, view: i, ...a }) {
1561
3272
  inline: "center"
1562
3273
  }),
1563
3274
  children: [
1564
- /* @__PURE__ */ Q(he, { className: "text-muted" }),
3275
+ /* @__PURE__ */ Q(me, { className: "text-muted" }),
1565
3276
  c.settings.account,
1566
3277
  /* @__PURE__ */ Q(K.Indicator, {})
1567
3278
  ]
@@ -1575,7 +3286,7 @@ function St({ className: e, hideNav: t, path: n, variant: r, view: i, ...a }) {
1575
3286
  inline: "center"
1576
3287
  }),
1577
3288
  children: [
1578
- /* @__PURE__ */ Q(ve, { className: "text-muted" }),
3289
+ /* @__PURE__ */ Q(_e, { className: "text-muted" }),
1579
3290
  c.settings.security,
1580
3291
  /* @__PURE__ */ Q(K.Indicator, {})
1581
3292
  ]
@@ -1595,12 +3306,12 @@ function St({ className: e, hideNav: t, path: n, variant: r, view: i, ...a }) {
1595
3306
  /* @__PURE__ */ Q(K.Panel, {
1596
3307
  id: "account",
1597
3308
  className: "px-0",
1598
- children: /* @__PURE__ */ Q(ut, { variant: r })
3309
+ children: /* @__PURE__ */ Q(vt, { variant: r })
1599
3310
  }),
1600
3311
  /* @__PURE__ */ Q(K.Panel, {
1601
3312
  id: "security",
1602
3313
  className: "px-0",
1603
- children: /* @__PURE__ */ Q(xt, { variant: r })
3314
+ children: /* @__PURE__ */ Q(At, { variant: r })
1604
3315
  }),
1605
3316
  u.flatMap((e) => e.settingsTabs?.map((t, n) => /* @__PURE__ */ Q(K.Panel, {
1606
3317
  id: t.view,
@@ -1612,28 +3323,28 @@ function St({ className: e, hideNav: t, path: n, variant: r, view: i, ...a }) {
1612
3323
  }
1613
3324
  //#endregion
1614
3325
  //#region src/components/auth/user/user-button.tsx
1615
- function Ct(e, t) {
3326
+ function Mt(e, t) {
1616
3327
  if (Re(e)) return e;
1617
3328
  let { label: n, href: r, icon: i, variant: a } = e;
1618
- return /* @__PURE__ */ $(N.Item, {
3329
+ return /* @__PURE__ */ $(P.Item, {
1619
3330
  href: r,
1620
3331
  variant: a,
1621
3332
  textValue: typeof n == "string" ? n : void 0,
1622
- children: [i, /* @__PURE__ */ Q(z, { children: n })]
3333
+ children: [i, /* @__PURE__ */ Q(B, { children: n })]
1623
3334
  }, t);
1624
3335
  }
1625
- function wt({ className: e, placement: t, size: r = "default", variant: a = "ghost", links: o, hideSettings: s, hideSubtitle: c }) {
3336
+ function Nt({ className: e, placement: t, size: r = "default", variant: a = "ghost", links: o, hideSettings: s, hideSubtitle: c }) {
1626
3337
  let { authClient: l, basePaths: u, viewPaths: d, localization: f, plugins: p } = m(), { data: h, isPending: g } = C(l), _ = p.flatMap((e) => e.userMenuItems?.map((t, n) => /* @__PURE__ */ Q(t, { hideSubtitle: c }, `${e.id}-${n.toString()}`)) ?? []), v = o?.flatMap((e, t) => {
1627
3338
  if (!Re(e)) {
1628
3339
  let t = e.visibility ?? "always";
1629
3340
  if (t === "authenticated" && !h || t === "unauthenticated" && h) return [];
1630
3341
  }
1631
- return [Ct(e, `user-button-link-${t.toString()}`)];
3342
+ return [Mt(e, `user-button-link-${t.toString()}`)];
1632
3343
  });
1633
- return /* @__PURE__ */ $(N, { children: [r === "icon" ? /* @__PURE__ */ Q(N.Trigger, {
3344
+ return /* @__PURE__ */ $(P, { children: [r === "icon" ? /* @__PURE__ */ Q(P.Trigger, {
1634
3345
  className: J("rounded-full", e),
1635
3346
  children: /* @__PURE__ */ Q(n, {})
1636
- }) : /* @__PURE__ */ $(k, {
3347
+ }) : /* @__PURE__ */ $(A, {
1637
3348
  variant: a,
1638
3349
  className: J("h-auto font-normal justify-start px-2 py-2 text-left", e),
1639
3350
  children: [h || g ? /* @__PURE__ */ Q(i, {
@@ -1642,42 +3353,42 @@ function wt({ className: e, placement: t, size: r = "default", variant: a = "gho
1642
3353
  }) : /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(n, {}), /* @__PURE__ */ Q("p", {
1643
3354
  className: "text-sm font-medium",
1644
3355
  children: f.auth.account
1645
- })] }), /* @__PURE__ */ Q(ce, { className: "ml-auto size-3 text-muted" })]
1646
- }), /* @__PURE__ */ $(N.Popover, {
3356
+ })] }), /* @__PURE__ */ Q(se, { className: "ml-auto size-3 text-muted" })]
3357
+ }), /* @__PURE__ */ $(P.Popover, {
1647
3358
  placement: t,
1648
3359
  className: "min-w-40 md:min-w-56 max-w-[48svw]",
1649
3360
  children: [h && /* @__PURE__ */ Q("div", {
1650
3361
  className: "px-3 pt-3 pb-1",
1651
3362
  children: /* @__PURE__ */ Q(i, { hideSubtitle: c })
1652
- }), /* @__PURE__ */ Q(N.Menu, { children: h ? /* @__PURE__ */ $(Z, { children: [
3363
+ }), /* @__PURE__ */ Q(P.Menu, { children: h ? /* @__PURE__ */ $(Z, { children: [
1653
3364
  v,
1654
- !s && /* @__PURE__ */ $(N.Item, {
3365
+ !s && /* @__PURE__ */ $(P.Item, {
1655
3366
  textValue: f.settings.settings,
1656
3367
  href: `${u.settings}/${d.settings.account}`,
1657
- children: [/* @__PURE__ */ Q(fe, { className: "text-muted" }), /* @__PURE__ */ Q(z, { children: f.settings.settings })]
3368
+ children: [/* @__PURE__ */ Q(de, { className: "text-muted" }), /* @__PURE__ */ Q(B, { children: f.settings.settings })]
1658
3369
  }),
1659
3370
  _,
1660
- /* @__PURE__ */ $(N.Item, {
3371
+ /* @__PURE__ */ $(P.Item, {
1661
3372
  textValue: f.auth.signOut,
1662
3373
  href: `${u.auth}/${d.auth.signOut}`,
1663
3374
  variant: "danger",
1664
- children: [/* @__PURE__ */ Q(T, { className: "text-danger" }), /* @__PURE__ */ Q(z, { children: f.auth.signOut })]
3375
+ children: [/* @__PURE__ */ Q(E, { className: "text-danger" }), /* @__PURE__ */ Q(B, { children: f.auth.signOut })]
1665
3376
  })
1666
3377
  ] }) : /* @__PURE__ */ $(Z, { children: [
1667
3378
  v,
1668
- /* @__PURE__ */ $(N.Item, {
3379
+ /* @__PURE__ */ $(P.Item, {
1669
3380
  textValue: f.auth.signIn,
1670
3381
  href: `${u.auth}/${d.auth.signIn}`,
1671
- children: [/* @__PURE__ */ Q(se, { className: "text-muted" }), /* @__PURE__ */ Q(z, { children: f.auth.signIn })]
3382
+ children: [/* @__PURE__ */ Q(oe, { className: "text-muted" }), /* @__PURE__ */ Q(B, { children: f.auth.signIn })]
1672
3383
  }),
1673
- /* @__PURE__ */ $(N.Item, {
3384
+ /* @__PURE__ */ $(P.Item, {
1674
3385
  textValue: f.auth.signUp,
1675
3386
  href: `${u.auth}/${d.auth.signUp}`,
1676
- children: [/* @__PURE__ */ Q(ge, { className: "text-muted" }), /* @__PURE__ */ Q(z, { children: f.auth.signUp })]
3387
+ children: [/* @__PURE__ */ Q(he, { className: "text-muted" }), /* @__PURE__ */ Q(B, { children: f.auth.signUp })]
1677
3388
  }),
1678
3389
  _
1679
3390
  ] }) })]
1680
3391
  })] });
1681
3392
  }
1682
3393
  //#endregion
1683
- export { ut as AccountSettings, pt as ActiveSessions, Xe as AdditionalField, it as Auth, ot as AuthProvider, st as ChangeEmail, ht as ChangePassword, Ze as ForgotPassword, yt as LinkedAccounts, t as ProviderButton, r as ProviderButtons, Qe as ResetPassword, xt as SecuritySettings, St as Settings, $e as SignIn, et as SignOut, tt as SignUp, n as UserAvatar, wt as UserButton, lt as UserProfile, i as UserView };
3394
+ export { vt as AccountSettings, St as ActiveSessions, it as AdditionalField, ft as Auth, mt as AuthProvider, ht as ChangeEmail, wt as ChangePassword, at as ForgotPassword, Ot as LinkedAccounts, t as ProviderButton, r as ProviderButtons, ot as ResetPassword, At as SecuritySettings, jt as Settings, st as SignIn, ct as SignOut, lt as SignUp, n as UserAvatar, Nt as UserButton, _t as UserProfile, i as UserView };