authhero 9.37.0 → 9.38.0

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 (76) hide show
  1. package/dist/assets/u/widget/authhero-widget.esm.js +1 -1
  2. package/dist/assets/u/widget/index.esm.js +1 -1
  3. package/dist/assets/u/widget/{p-ce8560f6.entry.js → p-32247347.entry.js} +1 -1
  4. package/dist/assets/u/widget/p-3f908508.entry.js +1 -0
  5. package/dist/assets/u/widget/p-Wx4M-olY.js +2 -0
  6. package/dist/authhero.cjs +110 -89
  7. package/dist/authhero.d.ts +551 -440
  8. package/dist/authhero.mjs +12680 -11723
  9. package/dist/{mfa-DuNbh_YF.js → mfa-DBhvi2B5.js} +1 -1
  10. package/dist/{mfa-BpHxTir1.mjs → mfa-DnCary4g.mjs} +17 -17
  11. package/dist/{mfa-attempts-DDgCBTDW.mjs → mfa-attempts-BK-gWrgJ.mjs} +5034 -5001
  12. package/dist/mfa-attempts-C5kobAHS.js +275 -0
  13. package/dist/{passkey-enrollment-D6ZZmelw.js → passkey-enrollment-CmKahPq7.js} +1 -1
  14. package/dist/tsconfig.types.tsbuildinfo +1 -1
  15. package/dist/types/authentication-flows/passwordless.d.ts +2 -2
  16. package/dist/types/helpers/default-destinations.d.ts +14 -0
  17. package/dist/types/helpers/firehose-client.d.ts +29 -0
  18. package/dist/types/helpers/outbox-destinations/log-streams.d.ts +21 -1
  19. package/dist/types/helpers/prompt-partials.d.ts +1 -1
  20. package/dist/types/helpers/reserved-claims.d.ts +2 -2
  21. package/dist/types/helpers/run-outbox-relay.d.ts +9 -2
  22. package/dist/types/index.d.ts +543 -439
  23. package/dist/types/routes/auth-api/device.d.ts +8 -8
  24. package/dist/types/routes/auth-api/index.d.ts +36 -36
  25. package/dist/types/routes/auth-api/passwordless.d.ts +18 -18
  26. package/dist/types/routes/auth-api/token.d.ts +10 -10
  27. package/dist/types/routes/management-api/action-executions.d.ts +2 -2
  28. package/dist/types/routes/management-api/actions.d.ts +9 -9
  29. package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
  30. package/dist/types/routes/management-api/branding-preview.d.ts +9 -1
  31. package/dist/types/routes/management-api/branding.d.ts +105 -1
  32. package/dist/types/routes/management-api/client-registration-tokens.d.ts +3 -3
  33. package/dist/types/routes/management-api/clients.d.ts +8 -8
  34. package/dist/types/routes/management-api/connections.d.ts +1 -1
  35. package/dist/types/routes/management-api/custom-domains.d.ts +6 -6
  36. package/dist/types/routes/management-api/email-templates.d.ts +20 -20
  37. package/dist/types/routes/management-api/emails.d.ts +2 -2
  38. package/dist/types/routes/management-api/failed-events.d.ts +4 -4
  39. package/dist/types/routes/management-api/forms.d.ts +144 -144
  40. package/dist/types/routes/management-api/guardian.d.ts +5 -5
  41. package/dist/types/routes/management-api/helpers.d.ts +1 -1
  42. package/dist/types/routes/management-api/hooks.d.ts +4 -4
  43. package/dist/types/routes/management-api/index.d.ts +492 -388
  44. package/dist/types/routes/management-api/keys.d.ts +8 -8
  45. package/dist/types/routes/management-api/log-streams.d.ts +12 -12
  46. package/dist/types/routes/management-api/logs.d.ts +4 -4
  47. package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
  48. package/dist/types/routes/management-api/organizations.d.ts +7 -7
  49. package/dist/types/routes/management-api/prompts.d.ts +8 -8
  50. package/dist/types/routes/management-api/roles.d.ts +1 -1
  51. package/dist/types/routes/management-api/rollouts.d.ts +6 -6
  52. package/dist/types/routes/management-api/self-service-profiles.d.ts +8 -8
  53. package/dist/types/routes/management-api/tenant-export-import.d.ts +5 -5
  54. package/dist/types/routes/management-api/tenant-operations.d.ts +10 -10
  55. package/dist/types/routes/management-api/tenants.d.ts +36 -36
  56. package/dist/types/routes/management-api/themes.d.ts +69 -0
  57. package/dist/types/routes/management-api/users.d.ts +16 -16
  58. package/dist/types/routes/universal-login/common.d.ts +54 -2
  59. package/dist/types/routes/universal-login/dark-theme.d.ts +25 -0
  60. package/dist/types/routes/universal-login/flow-api.d.ts +12 -12
  61. package/dist/types/routes/universal-login/form-node.d.ts +4 -4
  62. package/dist/types/routes/universal-login/identifier.d.ts +2 -2
  63. package/dist/types/routes/universal-login/index.d.ts +6 -6
  64. package/dist/types/routes/universal-login/legal-links.d.ts +18 -0
  65. package/dist/types/routes/universal-login/screen-prompt-map.d.ts +31 -0
  66. package/dist/types/routes/universal-login/screens/login-partials.d.ts +9 -1
  67. package/dist/types/routes/universal-login/u2-form-node.d.ts +2 -2
  68. package/dist/types/routes/universal-login/u2-index.d.ts +5 -5
  69. package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
  70. package/dist/types/routes/universal-login/u2-widget-page.d.ts +6 -1
  71. package/dist/types/routes/universal-login/universal-login-template.d.ts +1 -0
  72. package/dist/types/state-machines/login-session.d.ts +1 -1
  73. package/package.json +7 -6
  74. package/dist/assets/u/widget/p-FUW5zvoZ.js +0 -2
  75. package/dist/assets/u/widget/p-c6ec4c36.entry.js +0 -1
  76. package/dist/mfa-attempts-D5U1FCSY.js +0 -275
@@ -43,7 +43,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
43
43
  hint?: string | undefined;
44
44
  messages?: {
45
45
  text: string;
46
- type: "success" | "error" | "info" | "warning";
46
+ type: "error" | "success" | "info" | "warning";
47
47
  id?: number | undefined;
48
48
  }[] | undefined;
49
49
  }[];
@@ -51,7 +51,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
51
51
  description?: string | undefined;
52
52
  messages?: {
53
53
  text: string;
54
- type: "success" | "error" | "info" | "warning";
54
+ type: "error" | "success" | "info" | "warning";
55
55
  id?: number | undefined;
56
56
  }[] | undefined;
57
57
  links?: {
@@ -123,7 +123,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
123
123
  hint?: string | undefined;
124
124
  messages?: {
125
125
  text: string;
126
- type: "success" | "error" | "info" | "warning";
126
+ type: "error" | "success" | "info" | "warning";
127
127
  id?: number | undefined;
128
128
  }[] | undefined;
129
129
  }[];
@@ -131,7 +131,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
131
131
  description?: string | undefined;
132
132
  messages?: {
133
133
  text: string;
134
- type: "success" | "error" | "info" | "warning";
134
+ type: "error" | "success" | "info" | "warning";
135
135
  id?: number | undefined;
136
136
  }[] | undefined;
137
137
  links?: {
@@ -173,7 +173,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
173
173
  };
174
174
  output: {};
175
175
  outputFormat: string;
176
- status: 400;
176
+ status: 404;
177
177
  } | {
178
178
  input: {
179
179
  query: {
@@ -188,7 +188,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
188
188
  };
189
189
  output: {};
190
190
  outputFormat: string;
191
- status: 404;
191
+ status: 400;
192
192
  } | {
193
193
  input: {
194
194
  query: {
@@ -220,7 +220,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
220
220
  hint?: string | undefined;
221
221
  messages?: {
222
222
  text: string;
223
- type: "success" | "error" | "info" | "warning";
223
+ type: "error" | "success" | "info" | "warning";
224
224
  id?: number | undefined;
225
225
  }[] | undefined;
226
226
  }[];
@@ -228,7 +228,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
228
228
  description?: string | undefined;
229
229
  messages?: {
230
230
  text: string;
231
- type: "success" | "error" | "info" | "warning";
231
+ type: "error" | "success" | "info" | "warning";
232
232
  id?: number | undefined;
233
233
  }[] | undefined;
234
234
  links?: {
@@ -282,7 +282,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
282
282
  };
283
283
  output: {};
284
284
  outputFormat: string;
285
- status: 400;
285
+ status: 404;
286
286
  } | {
287
287
  input: {
288
288
  param: {
@@ -300,7 +300,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
300
300
  };
301
301
  output: {};
302
302
  outputFormat: string;
303
- status: 404;
303
+ status: 400;
304
304
  } | {
305
305
  input: {
306
306
  param: {
@@ -335,7 +335,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
335
335
  hint?: string | undefined;
336
336
  messages?: {
337
337
  text: string;
338
- type: "success" | "error" | "info" | "warning";
338
+ type: "error" | "success" | "info" | "warning";
339
339
  id?: number | undefined;
340
340
  }[] | undefined;
341
341
  }[];
@@ -343,7 +343,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
343
343
  description?: string | undefined;
344
344
  messages?: {
345
345
  text: string;
346
- type: "success" | "error" | "info" | "warning";
346
+ type: "error" | "success" | "info" | "warning";
347
347
  id?: number | undefined;
348
348
  }[] | undefined;
349
349
  links?: {
@@ -18,7 +18,7 @@ export declare const formNodeRoutes: OpenAPIHono<{
18
18
  };
19
19
  output: {};
20
20
  outputFormat: string;
21
- status: 200;
21
+ status: 404;
22
22
  } | {
23
23
  input: {
24
24
  param: {
@@ -32,7 +32,7 @@ export declare const formNodeRoutes: OpenAPIHono<{
32
32
  };
33
33
  output: {};
34
34
  outputFormat: string;
35
- status: 404;
35
+ status: 200;
36
36
  };
37
37
  };
38
38
  } & {
@@ -52,7 +52,7 @@ export declare const formNodeRoutes: OpenAPIHono<{
52
52
  };
53
53
  output: {};
54
54
  outputFormat: string;
55
- status: 200;
55
+ status: 404;
56
56
  } | {
57
57
  input: {
58
58
  param: {
@@ -68,7 +68,7 @@ export declare const formNodeRoutes: OpenAPIHono<{
68
68
  };
69
69
  output: {};
70
70
  outputFormat: string;
71
- status: 404;
71
+ status: 200;
72
72
  };
73
73
  };
74
74
  }, "/">;
@@ -30,7 +30,7 @@ export declare const identifierRoutes: OpenAPIHono<{
30
30
  } & {
31
31
  form: {
32
32
  username: string;
33
- login_selection?: "password" | "code" | undefined;
33
+ login_selection?: "code" | "password" | undefined;
34
34
  };
35
35
  };
36
36
  output: {};
@@ -44,7 +44,7 @@ export declare const identifierRoutes: OpenAPIHono<{
44
44
  } & {
45
45
  form: {
46
46
  username: string;
47
- login_selection?: "password" | "code" | undefined;
47
+ login_selection?: "code" | "password" | undefined;
48
48
  };
49
49
  };
50
50
  output: {};
@@ -63,7 +63,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
63
63
  };
64
64
  output: {};
65
65
  outputFormat: string;
66
- status: 200;
66
+ status: 404;
67
67
  } | {
68
68
  input: {
69
69
  param: {
@@ -77,7 +77,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
77
77
  };
78
78
  output: {};
79
79
  outputFormat: string;
80
- status: 404;
80
+ status: 200;
81
81
  };
82
82
  };
83
83
  } & {
@@ -97,7 +97,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
97
97
  };
98
98
  output: {};
99
99
  outputFormat: string;
100
- status: 200;
100
+ status: 404;
101
101
  } | {
102
102
  input: {
103
103
  param: {
@@ -113,7 +113,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
113
113
  };
114
114
  output: {};
115
115
  outputFormat: string;
116
- status: 404;
116
+ status: 200;
117
117
  };
118
118
  };
119
119
  }, "/forms"> & import("hono/types").MergeSchemaPath<{
@@ -515,7 +515,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
515
515
  } & {
516
516
  form: {
517
517
  username: string;
518
- login_selection?: "password" | "code" | undefined;
518
+ login_selection?: "code" | "password" | undefined;
519
519
  };
520
520
  };
521
521
  output: {};
@@ -529,7 +529,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
529
529
  } & {
530
530
  form: {
531
531
  username: string;
532
- login_selection?: "password" | "code" | undefined;
532
+ login_selection?: "code" | "password" | undefined;
533
533
  };
534
534
  };
535
535
  output: {};
@@ -0,0 +1,18 @@
1
+ import type { Branding } from "@authhero/adapter-interfaces";
2
+ export interface LegalUrls {
3
+ /** Terms-of-service link (or the legacy combined "terms" link). */
4
+ termsAndConditionsUrl?: string;
5
+ privacyUrl?: string;
6
+ }
7
+ /**
8
+ * The terms and privacy URLs for a client, from its `client_metadata`:
9
+ * `tos_uri` / `policy_uri` (the DCR names), with the older single
10
+ * `termsAndConditionsUrl` kept as the terms fallback so existing clients
11
+ * render as before. Unusable values are omitted.
12
+ */
13
+ export declare function clientLegalUrls(metadata: Record<string, string | undefined> | undefined): LegalUrls;
14
+ /**
15
+ * Fill whatever the client left unset from the tenant's branding defaults
16
+ * (`terms_url`, `privacy_url`). A client value always wins.
17
+ */
18
+ export declare function withTenantLegalDefaults(legal: LegalUrls, branding: Pick<Branding, "terms_url" | "privacy_url"> | null | undefined): LegalUrls;
@@ -1,2 +1,33 @@
1
1
  import type { PromptScreen } from "@authhero/adapter-interfaces";
2
+ /**
3
+ * Screens that render tenant prompt partials (Auth0-style HTML injected at the
4
+ * form insertion points), and where to find them. Partials are stored per
5
+ * prompt and keyed by screen name; the prompt is usually the one the screen
6
+ * uses for custom text (`SCREEN_TO_PROMPT_MAP`), except where Auth0 stores
7
+ * partials elsewhere, and `key` is the screen name under it.
8
+ * `key` follows Auth0's screen names where there is an equivalent and is the
9
+ * u2 screen id otherwise.
10
+ *
11
+ * `identifier`, `enter-password`, `login` and `signup` read their partials
12
+ * themselves (they validate and prefill them); the rest are attached by
13
+ * `withPromptPartials` in the screen registry.
14
+ *
15
+ * Not listed on purpose: the account/self-service screens, the connect and
16
+ * device-flow screens, consent, invitations and passkeys. They either have no
17
+ * Auth0 prompt-partials equivalent or are not part of the sign-in form flow.
18
+ */
19
+ export interface PromptPartialsTarget {
20
+ prompt: string;
21
+ key: string;
22
+ /**
23
+ * Prompts read when `prompt` has nothing for `key`. The partials API also
24
+ * accepts Auth0's screen names as prompt names, so a tenant may have stored
25
+ * the same partials under e.g. `login-passwordless-email-code`.
26
+ */
27
+ fallbackPrompts?: string[];
28
+ }
29
+ /** Where `withPromptPartials` finds the partials for a screen, if it has any. */
30
+ export declare function getPartialsTargetForScreen(screenId: string): PromptPartialsTarget | undefined;
31
+ /** Screen ids attached by `withPromptPartials`. */
32
+ export declare function listPartialsScreenIds(): string[];
2
33
  export declare function getPromptScreenForScreen(screenId: string): PromptScreen | undefined;
@@ -4,5 +4,13 @@
4
4
  * (`login-id`, `login-password`, `login`), like the signup screen does.
5
5
  */
6
6
  import type { UiScreen } from "@authhero/adapter-interfaces";
7
- import type { ScreenContext } from "./types";
7
+ import type { ScreenContext, ScreenDefinition, ScreenResult } from "./types";
8
8
  export declare function getLoginPartials(context: ScreenContext, prompt: "login-id" | "login-password" | "login"): Promise<UiScreen["partials"]>;
9
+ /**
10
+ * Attach the tenant's prompt partials to a screen that doesn't read them
11
+ * itself. A screen that already set `partials` is left alone, and a screen
12
+ * without stored partials is returned untouched, so tenants that have not
13
+ * configured partials see exactly what they saw before.
14
+ */
15
+ export declare function attachPromptPartials(context: ScreenContext, screenId: string, result: ScreenResult): Promise<ScreenResult>;
16
+ export declare function withPromptPartials(screenId: string, definition: ScreenDefinition): ScreenDefinition;
@@ -28,7 +28,7 @@ export declare const u2FormNodeRoutes: OpenAPIHono<{
28
28
  };
29
29
  output: {};
30
30
  outputFormat: string;
31
- status: 200;
31
+ status: 404;
32
32
  } | {
33
33
  input: {
34
34
  param: {
@@ -42,7 +42,7 @@ export declare const u2FormNodeRoutes: OpenAPIHono<{
42
42
  };
43
43
  output: {};
44
44
  outputFormat: string;
45
- status: 404;
45
+ status: 200;
46
46
  };
47
47
  };
48
48
  } & {
@@ -195,7 +195,7 @@ export default function createU2App(config: AuthHeroConfig): OpenAPIHono<{
195
195
  $get: {
196
196
  input: {
197
197
  param: {
198
- screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "account" | "enter-password" | "try-connection-result" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "login/email-verification" | "login/email-verification-sent" | "reset-password/code" | "reset-password/request" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant" | "self-service/app" | "device/code" | "device/confirmation" | "device/complete";
198
+ screen: "signup" | "login" | "reset-password" | "consent" | "enter-password" | "impersonate" | "account" | "try-connection-result" | "reset-password/request" | "reset-password/code" | "login/email-verification" | "login/email-verification-sent" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant" | "self-service/app" | "device/code" | "device/confirmation" | "device/complete";
199
199
  };
200
200
  } & {
201
201
  query: {
@@ -211,7 +211,7 @@ export default function createU2App(config: AuthHeroConfig): OpenAPIHono<{
211
211
  } | {
212
212
  input: {
213
213
  param: {
214
- screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "account" | "enter-password" | "try-connection-result" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "login/email-verification" | "login/email-verification-sent" | "reset-password/code" | "reset-password/request" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant" | "self-service/app" | "device/code" | "device/confirmation" | "device/complete";
214
+ screen: "signup" | "login" | "reset-password" | "consent" | "enter-password" | "impersonate" | "account" | "try-connection-result" | "reset-password/request" | "reset-password/code" | "login/email-verification" | "login/email-verification-sent" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant" | "self-service/app" | "device/code" | "device/confirmation" | "device/complete";
215
215
  };
216
216
  } & {
217
217
  query: {
@@ -227,7 +227,7 @@ export default function createU2App(config: AuthHeroConfig): OpenAPIHono<{
227
227
  } | {
228
228
  input: {
229
229
  param: {
230
- screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "account" | "enter-password" | "try-connection-result" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "login/email-verification" | "login/email-verification-sent" | "reset-password/code" | "reset-password/request" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant" | "self-service/app" | "device/code" | "device/confirmation" | "device/complete";
230
+ screen: "signup" | "login" | "reset-password" | "consent" | "enter-password" | "impersonate" | "account" | "try-connection-result" | "reset-password/request" | "reset-password/code" | "login/email-verification" | "login/email-verification-sent" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant" | "self-service/app" | "device/code" | "device/confirmation" | "device/complete";
231
231
  };
232
232
  } & {
233
233
  query: {
@@ -247,7 +247,7 @@ export default function createU2App(config: AuthHeroConfig): OpenAPIHono<{
247
247
  $post: {
248
248
  input: {
249
249
  param: {
250
- screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "enter-password" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "login/email-verification" | "login/email-verification-sent" | "reset-password/code" | "reset-password/request" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant" | "self-service/app" | "device/code" | "device/confirmation";
250
+ screen: "signup" | "login" | "reset-password" | "consent" | "enter-password" | "impersonate" | "reset-password/request" | "reset-password/code" | "login/email-verification" | "login/email-verification-sent" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant" | "self-service/app" | "device/code" | "device/confirmation";
251
251
  };
252
252
  } & {
253
253
  query: {
@@ -265,7 +265,7 @@ export default function createU2App(config: AuthHeroConfig): OpenAPIHono<{
265
265
  } | {
266
266
  input: {
267
267
  param: {
268
- screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "enter-password" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "login/email-verification" | "login/email-verification-sent" | "reset-password/code" | "reset-password/request" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant" | "self-service/app" | "device/code" | "device/confirmation";
268
+ screen: "signup" | "login" | "reset-password" | "consent" | "enter-password" | "impersonate" | "reset-password/request" | "reset-password/code" | "login/email-verification" | "login/email-verification-sent" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant" | "self-service/app" | "device/code" | "device/confirmation";
269
269
  };
270
270
  } & {
271
271
  query: {
@@ -200,7 +200,7 @@ export declare const u2Routes: OpenAPIHono<{
200
200
  $get: {
201
201
  input: {
202
202
  param: {
203
- screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "account" | "enter-password" | "try-connection-result" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "login/email-verification" | "login/email-verification-sent" | "reset-password/code" | "reset-password/request" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant" | "self-service/app" | "device/code" | "device/confirmation" | "device/complete";
203
+ screen: "signup" | "login" | "reset-password" | "consent" | "enter-password" | "impersonate" | "account" | "try-connection-result" | "reset-password/request" | "reset-password/code" | "login/email-verification" | "login/email-verification-sent" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant" | "self-service/app" | "device/code" | "device/confirmation" | "device/complete";
204
204
  };
205
205
  } & {
206
206
  query: {
@@ -216,7 +216,7 @@ export declare const u2Routes: OpenAPIHono<{
216
216
  } | {
217
217
  input: {
218
218
  param: {
219
- screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "account" | "enter-password" | "try-connection-result" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "login/email-verification" | "login/email-verification-sent" | "reset-password/code" | "reset-password/request" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant" | "self-service/app" | "device/code" | "device/confirmation" | "device/complete";
219
+ screen: "signup" | "login" | "reset-password" | "consent" | "enter-password" | "impersonate" | "account" | "try-connection-result" | "reset-password/request" | "reset-password/code" | "login/email-verification" | "login/email-verification-sent" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant" | "self-service/app" | "device/code" | "device/confirmation" | "device/complete";
220
220
  };
221
221
  } & {
222
222
  query: {
@@ -232,7 +232,7 @@ export declare const u2Routes: OpenAPIHono<{
232
232
  } | {
233
233
  input: {
234
234
  param: {
235
- screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "account" | "enter-password" | "try-connection-result" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "login/email-verification" | "login/email-verification-sent" | "reset-password/code" | "reset-password/request" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant" | "self-service/app" | "device/code" | "device/confirmation" | "device/complete";
235
+ screen: "signup" | "login" | "reset-password" | "consent" | "enter-password" | "impersonate" | "account" | "try-connection-result" | "reset-password/request" | "reset-password/code" | "login/email-verification" | "login/email-verification-sent" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant" | "self-service/app" | "device/code" | "device/confirmation" | "device/complete";
236
236
  };
237
237
  } & {
238
238
  query: {
@@ -252,7 +252,7 @@ export declare const u2Routes: OpenAPIHono<{
252
252
  $post: {
253
253
  input: {
254
254
  param: {
255
- screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "enter-password" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "login/email-verification" | "login/email-verification-sent" | "reset-password/code" | "reset-password/request" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant" | "self-service/app" | "device/code" | "device/confirmation";
255
+ screen: "signup" | "login" | "reset-password" | "consent" | "enter-password" | "impersonate" | "reset-password/request" | "reset-password/code" | "login/email-verification" | "login/email-verification-sent" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant" | "self-service/app" | "device/code" | "device/confirmation";
256
256
  };
257
257
  } & {
258
258
  query: {
@@ -270,7 +270,7 @@ export declare const u2Routes: OpenAPIHono<{
270
270
  } | {
271
271
  input: {
272
272
  param: {
273
- screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "enter-password" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "login/email-verification" | "login/email-verification-sent" | "reset-password/code" | "reset-password/request" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant" | "self-service/app" | "device/code" | "device/confirmation";
273
+ screen: "signup" | "login" | "reset-password" | "consent" | "enter-password" | "impersonate" | "reset-password/request" | "reset-password/code" | "login/email-verification" | "login/email-verification-sent" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant" | "self-service/app" | "device/code" | "device/confirmation";
274
274
  };
275
275
  } & {
276
276
  query: {
@@ -58,6 +58,7 @@ export type WidgetPageProps = {
58
58
  };
59
59
  logo_url?: string;
60
60
  favicon_url?: string;
61
+ favicon_url_dark?: string;
61
62
  font?: {
62
63
  url?: string;
63
64
  };
@@ -79,6 +80,7 @@ export type WidgetPageProps = {
79
80
  language?: string;
80
81
  availableLanguages?: string[];
81
82
  termsAndConditionsUrl?: string;
83
+ privacyUrl?: string;
82
84
  darkMode?: DarkModePreference;
83
85
  /**
84
86
  * Where to render the tenant logo on the page.
@@ -127,6 +129,8 @@ export declare function detectEmbeddedBrowser(userAgent: string | undefined): {
127
129
  export declare function buildLanguageOptions(availableLanguages?: string[]): LanguageOption[] | undefined;
128
130
  /** The short "Terms & Privacy" label, in the page's language. */
129
131
  export declare function resolveTermsLabel(language?: string): string;
132
+ /** The "Privacy Policy" link label, in the page's language. */
133
+ export declare function resolvePrivacyLabel(language?: string): string;
130
134
  /**
131
135
  * The functional `<head>` contents the page shell injects, as an HTML string.
132
136
  *
@@ -142,7 +146,7 @@ export declare function buildHeadEssentials(opts: {
142
146
  branding?: WidgetPageProps["branding"];
143
147
  theme?: any;
144
148
  }): string;
145
- export declare function WidgetPage({ widgetHtml, screenId, branding, theme, themePageBackground, clientName, poweredByLogo, language, availableLanguages, termsAndConditionsUrl, darkMode, logoPosition, extraScript, customBodyHtml, embed, embeddedBrowser, }: WidgetPageProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
149
+ export declare function WidgetPage({ widgetHtml, screenId, branding, theme, themePageBackground, clientName, poweredByLogo, language, availableLanguages, termsAndConditionsUrl, privacyUrl, darkMode, logoPosition, extraScript, customBodyHtml, embed, embeddedBrowser, }: WidgetPageProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
146
150
  /**
147
151
  * Reads `theme.page_background.logo_placement` and returns the resolved
148
152
  * page-level `logoPosition` plus a theme variant suitable for passing to
@@ -207,6 +211,7 @@ export declare function renderWidgetPageResponse(ctx: any, opts: {
207
211
  locale?: string;
208
212
  availableLanguages?: string[];
209
213
  termsAndConditionsUrl?: string;
214
+ privacyUrl?: string;
210
215
  darkMode?: DarkModePreference;
211
216
  logoPosition?: LogoPosition;
212
217
  extraScript?: string;
@@ -66,6 +66,7 @@ export type TemplateSlotOptions = {
66
66
  height?: number;
67
67
  };
68
68
  termsAndConditionsUrl?: string;
69
+ privacyUrl?: string;
69
70
  /** Full branding/theme objects, exposed to the template as Liquid variables. */
70
71
  branding?: Branding | null;
71
72
  theme?: Theme | null;
@@ -252,7 +252,7 @@ export declare const loginSessionMachine: import("xstate").StateMachine<LoginSes
252
252
  }, {
253
253
  type: "passwordResetRequested";
254
254
  params: unknown;
255
- }, never, "pending" | "authenticated" | "failed" | "expired" | "awaiting_email_verification" | "awaiting_mfa" | "awaiting_consent" | "awaiting_hook" | "awaiting_continuation" | "completed", string, import("xstate").NonReducibleUnknown, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
255
+ }, never, "pending" | "failed" | "expired" | "authenticated" | "awaiting_email_verification" | "awaiting_mfa" | "awaiting_consent" | "awaiting_hook" | "awaiting_continuation" | "completed", string, import("xstate").NonReducibleUnknown, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
256
256
  id: "loginSession";
257
257
  states: {
258
258
  readonly pending: {};
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "type": "git",
12
12
  "url": "https://github.com/sesamyab/authhero"
13
13
  },
14
- "version": "9.37.0",
14
+ "version": "9.38.0",
15
15
  "files": [
16
16
  "dist"
17
17
  ],
@@ -63,13 +63,14 @@
63
63
  "vite": "^8.0.14",
64
64
  "vite-plugin-dts": "^4.5.4",
65
65
  "vitest": "^4.1.7",
66
- "@authhero/kysely-adapter": "12.23.0",
67
- "@authhero/widget": "0.41.16"
66
+ "@authhero/kysely-adapter": "12.24.0",
67
+ "@authhero/widget": "0.42.0"
68
68
  },
69
69
  "dependencies": {
70
70
  "@peculiar/x509": "^1.14.3",
71
71
  "@simplewebauthn/server": "^13.0.0",
72
72
  "acorn": "^8.16.0",
73
+ "aws4fetch": "^1.0.20",
73
74
  "bcryptjs": "^3.0.3",
74
75
  "classnames": "^2.5.1",
75
76
  "cookie": "^1.1.1",
@@ -81,9 +82,9 @@
81
82
  "qrcode": "^1.5.4",
82
83
  "sanitize-html": "^2.17.4",
83
84
  "xstate": "^5.31.1",
84
- "@authhero/adapter-interfaces": "4.32.0",
85
- "@authhero/proxy": "0.11.19",
86
- "@authhero/saml": "0.6.12"
85
+ "@authhero/adapter-interfaces": "4.33.0",
86
+ "@authhero/proxy": "0.11.20",
87
+ "@authhero/saml": "0.6.13"
87
88
  },
88
89
  "peerDependencies": {
89
90
  "@authhero/widget": ">=0.38.9",
@@ -1,2 +0,0 @@
1
- var t=(t=>(t.Undefined="undefined",t.Null="null",t.String="string",t.Number="number",t.SpecialNumber="number",t.Boolean="boolean",t.BigInt="bigint",t))(t||{}),n=(t=>(t.Array="array",t.Date="date",t.Map="map",t.Object="object",t.RegularExpression="regexp",t.Set="set",t.Channel="channel",t.Symbol="symbol",t))(n||{}),e="type",o="value",l="serialized:";function s(t,n,e){const o="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;t&&t!==o;){const o=Object.getOwnPropertyDescriptor(t,n);if(o&&(!e||o.get))return o;t=Object.getPrototypeOf(t)}}var i,r=(t,n)=>{var e;Object.entries(null!=(e=n.o.t)?e:{}).map((([e,[o]])=>{if(31&o||32&o){const o=t[e],l=s(Object.getPrototypeOf(t),e,!0)||Object.getOwnPropertyDescriptor(t,e);l&&Object.defineProperty(t,e,{get(){return l.get.call(this)},set(t){l.set.call(this,t)},configurable:!0,enumerable:!0}),n.l.has(e)?t[e]=n.l.get(e):void 0!==o&&(t[e]=o)}}))},c=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},u=(t,n)=>{n&&(t.__stencil__getHostRef=()=>n,n.i=t,512&n.o.u&&r(t,n))},f=(t,n)=>n in t,a=(t,n)=>(0,console.error)(t,n),d=new Map,p=new Map,h="s-id",$="sty-id",m="c-id",v="undefined"!=typeof window?window:{},y={u:0,p:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,n,e,o)=>t.addEventListener(n,e,o),rel:(t,n,e,o)=>t.removeEventListener(n,e,o),ce:(t,n)=>new CustomEvent(t,n)},b=t=>Promise.resolve(t),g=(()=>{try{return!!v.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),w=!!g&&(()=>!!v.document&&Object.getOwnPropertyDescriptor(v.document.adoptedStyleSheets,"length").writable)(),j=!1,S=[],O=[],k=(t,n)=>e=>{t.push(e),j||(j=!0,n&&4&y.u?M(E):y.raf(E))},x=t=>{for(let n=0;n<t.length;n++)try{t[n](performance.now())}catch(t){a(t)}t.length=0},E=()=>{x(S),x(O),(j=S.length>0)&&y.raf(E)},M=t=>b().then(t),C=k(O,!0);function N(){const t=this.attachShadow({mode:"open"});void 0===i&&(i=null),i&&(w?t.adoptedStyleSheets.push(i):t.adoptedStyleSheets=[...t.adoptedStyleSheets,i])}var I=(t,n,e,o)=>{if(t["s-ol"]&&t["s-ol"].isConnected)return;const l=document.createTextNode("");if(l["s-nr"]=t,!n["s-cr"]||!n["s-cr"].parentNode)return;const s=n["s-cr"].parentNode,i=L(s,"appendChild");if(void 0!==o){l["s-oo"]=o;const t=L(s,"childNodes"),n=[l];t.forEach((t=>{t["s-nr"]&&n.push(t)})),n.sort(((t,n)=>!t["s-oo"]||t["s-oo"]<(n["s-oo"]||0)?-1:!n["s-oo"]||n["s-oo"]<t["s-oo"]?1:0)),n.forEach((t=>i.call(s,t)))}else i.call(s,l);t["s-ol"]=l,t["s-sh"]=n["s-hn"]};function L(t,n){if("__"+n in t){const e=t["__"+n];return"function"!=typeof e?e:e.bind(t)}return"function"!=typeof t[n]?t[n]:t[n].bind(t)}function A(t){var n,e,o;return null!=(o=null==(e=null==(n=t.head)?void 0:n.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?o:void 0}var D=new WeakMap,R=(t,n,e)=>{let o=p.get(t);g&&e?(o=o||new CSSStyleSheet,"string"==typeof o?o=n:o.replaceSync(n)):o=n,p.set(t,o)},T=(t,n)=>{var e,o,l;const s=U(n),i=p.get(s);if(!v.document)return s;if(t=11===t.nodeType?t:v.document,i)if("string"==typeof i){let l,r=D.get(t=t.head||t);r||D.set(t,r=new Set);const c=t.querySelector(`[${$}="${s}"]`);if(c)c.textContent=i;else if(!r.has(s)){l=v.document.createElement("style"),l.textContent=i;const c=null!=(e=y.h)?e:A(v.document);if(null!=c&&l.setAttribute("nonce",c),!(1&n.u))if("HEAD"===t.nodeName){const n=t.querySelectorAll("link[rel=preconnect]"),e=n.length>0?n[n.length-1].nextSibling:t.querySelector("style");t.insertBefore(l,(null==e?void 0:e.parentNode)===t?e:null)}else if("host"in t)if(g){const n=new(null!=(o=t.defaultView)?o:t.ownerDocument.defaultView).CSSStyleSheet;n.replaceSync(i),w?t.adoptedStyleSheets.unshift(n):t.adoptedStyleSheets=[n,...t.adoptedStyleSheets]}else{const n=t.querySelector("style");n?n.textContent=i+n.textContent:t.prepend(l)}else t.append(l);1&n.u&&t.insertBefore(l,null),4&n.u&&(l.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),r&&r.add(s)}}else{let n=D.get(t);if(n||D.set(t,n=new Set),!n.has(s)){const e=null!=(l=t.defaultView)?l:t.ownerDocument.defaultView;let o;if(i.constructor===e.CSSStyleSheet)o=i;else{o=new e.CSSStyleSheet;for(let t=0;t<i.cssRules.length;t++)o.insertRule(i.cssRules[t].cssText,t)}if(w?t.adoptedStyleSheets.push(o):t.adoptedStyleSheets=[...t.adoptedStyleSheets,o],n.add(s),"host"in t){const n=t.querySelector(`[${$}="${s}"]`);n&&C((()=>n.remove()))}}}return s},U=t=>"sc-"+t.$,P=t=>t.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),V=t=>"object"==(t=typeof t)||"function"===t,H=(t,n,...e)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=n=>{for(let e=0;e<n.length;e++)o=n[e],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof t&&!V(o))&&(o+=""),s&&i?r[r.length-1].m+=o:r.push(s?_(null,o):o),i=s)};if(c(e),n){n.key&&(l=n.key);{const t=n.className||n.class;t&&(n.class="object"!=typeof t?t:Object.keys(t).filter((n=>t[n])).join(" "))}}const u=_(t,null);return u.v=n,r.length>0&&(u.j=r),u.S=l,u},_=(t,n)=>({u:0,O:t,m:null!=n?n:null,k:null,j:null,v:null,S:null}),z={},W=(t,n,e,o,l,s,i,r=[])=>{let c,u,f,a;if(1===s.nodeType){if(c=s.getAttribute(m),c&&(u=c.split("."),u[0]===i||"0"===u[0])){f=F({u:0,M:u[0],C:u[1],N:u[2],I:u[3],O:s.tagName.toLowerCase(),k:s,v:{class:s.className||""}}),n.push(f),s.removeAttribute(m),t.j||(t.j=[]);const l=f.k.getAttribute("s-sn");"string"==typeof l&&("slot-fb"===f.O&&q(l,u[2],f,s,t,n,e,o,r),f.k["s-sn"]=l,f.k.removeAttribute("s-sn")),void 0!==f.I&&(t.j[f.I]=f),t=f,o&&"0"===f.N&&(o[f.I]=f.k)}if(s.shadowRoot)for(a=s.shadowRoot.childNodes.length-1;a>=0;a--)W(t,n,e,o,l,s.shadowRoot.childNodes[a],i,r);const d=s.__childNodes||s.childNodes;for(a=d.length-1;a>=0;a--)W(t,n,e,o,l,d[a],i,r)}else if(8===s.nodeType)u=s.nodeValue.split("."),(u[1]===i||"0"===u[1])&&(c=u[0],f=F({M:u[1],C:u[2],N:u[3],I:u[4]||"0",k:s,v:null,j:null,S:null,L:null,O:null,m:null}),"t"===c?(f.k=G(s,3),f.k&&3===f.k.nodeType&&(f.m=f.k.textContent,n.push(f),s.remove(),i===f.M&&(t.j||(t.j=[]),t.j[f.I]=f),o&&"0"===f.N&&(o[f.I]=f.k))):"c"===c?(f.k=G(s,8),f.k&&8===f.k.nodeType&&(n.push(f),s.remove())):f.M===i&&("s"===c?q(s["s-sn"]=u[5]||"",u[2],f,s,t,n,e,o,r):"r"===c&&o&&s.remove()));else if(t&&"style"===t.O){const n=_(null,s.textContent);n.k=s,n.I="0",t.j=[n]}return t},B=(t,n)=>{if(1===t.nodeType){const e=t[h]||t.getAttribute(h);e&&n.set(e,t);let o=0;if(t.shadowRoot)for(;o<t.shadowRoot.childNodes.length;o++)B(t.shadowRoot.childNodes[o],n);const l=t.__childNodes||t.childNodes;for(o=0;o<l.length;o++)B(l[o],n)}else if(8===t.nodeType){const e=t.nodeValue.split(".");"o"===e[0]&&(n.set(e[1]+"."+e[2],t),t.nodeValue="",t["s-en"]=e[3])}},F=t=>({u:0,M:null,C:null,N:null,I:"0",k:null,v:null,j:null,S:null,L:null,O:null,m:null,...t});function q(t,n,e,o,l,s,i,r,c){o["s-sr"]=!0,e.L=t||null,e.O="slot";const u=(null==l?void 0:l.k)?l.k["s-id"]||l.k.getAttribute("s-id"):"";if(r&&v.document){const s=e.k=v.document.createElement(e.O);e.L&&e.k.setAttribute("name",t),l.k.shadowRoot&&u&&u!==e.M?L(l.k,"insertBefore")(s,L(l.k,"children")[0]):L(L(o,"parentNode"),"insertBefore")(s,o),Y(c,n,t,o,e.M),o.remove(),"0"===e.N&&(r[e.I]=e.k)}else{const s=e.k,i=u&&u!==e.M&&l.k.shadowRoot;Y(c,n,t,o,i?u:e.M),function(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const n=n=>function(t){const e=[],o=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const l=this["s-cr"].parentElement;return(l.__childNodes?l.childNodes:(t=>{const n=[];for(let e=0;e<t.length;e++){const o=t[e]["s-nr"]||void 0;o&&o.isConnected&&n.push(o)}return n})(l.childNodes)).forEach((t=>{o===(t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0)(t)&&e.push(t)})),n?e.filter((t=>1===t.nodeType)):e}.bind(t);t.assignedElements=n(!0),t.assignedNodes=n(!1)}(o),i&&l.k.insertBefore(s,l.k.children[0])}s.push(e),i.push(e),l.j||(l.j=[]),l.j[e.I]=e}var Y=(t,n,e,o,l)=>{var s,i;let r=o.nextSibling;if(t[n]=t[n]||[],r&&!(null==(s=r.nodeValue)?void 0:s.startsWith("s.")))do{!r||(r.getAttribute&&r.getAttribute("slot")||r["s-sn"])!==e&&(""!==e||r["s-sn"]||r.getAttribute&&r.getAttribute("slot")||8!==r.nodeType&&3!==r.nodeType)||(r["s-sn"]=e,t[n].push({slot:o,node:r,hostId:l})),r=null==r?void 0:r.nextSibling}while(r&&!(null==(i=r.nodeValue)?void 0:i.startsWith("s.")))},G=(t,n)=>{let e=t;do{e=e.nextSibling}while(e&&(e.nodeType!==n||!e.nodeValue));return e},J=t=>{if(!t)return;const n=Object.keys(t);if(0===n.length)return;let e=!1;for(const o of n){if(e)break;for(const n of t[o])if("string"==typeof n){e=!0;break}}if(!e)return t;const o={};for(const e of n)o[e]=t[e].map((t=>"string"==typeof t?{[t]:0}:t));return o},Z=class l{static fromLocalValue(t){const n=t[e],s=o in t?t[o]:void 0;switch(n){case"string":case"boolean":return s;case"bigint":return BigInt(s);case"undefined":return;case"null":return null;case"number":return"NaN"===s?NaN:"-0"===s?-0:"Infinity"===s?1/0:"-Infinity"===s?-1/0:s;case"array":return s.map((t=>l.fromLocalValue(t)));case"date":return new Date(s);case"map":const t=new Map;for(const[n,e]of s){const o="object"==typeof n&&null!==n?l.fromLocalValue(n):n,s=l.fromLocalValue(e);t.set(o,s)}return t;case"object":const e={};for(const[t,n]of s)e[t]=l.fromLocalValue(n);return e;case"regexp":const{pattern:o,flags:i}=s;return RegExp(o,i);case"set":const r=new Set;for(const t of s)r.add(l.fromLocalValue(t));return r;case"symbol":return Symbol(s);default:throw Error("Unsupported type: "+n)}}static fromLocalValueArray(t){return t.map((t=>l.fromLocalValue(t)))}static isLocalValueObject(l){if("object"!=typeof l||null===l)return!1;if(!l.hasOwnProperty(e))return!1;const s=l[e];return!!Object.values({...t,...n}).includes(s)&&("null"===s||"undefined"===s||l.hasOwnProperty(o))}};var K,Q=(t,n)=>"string"==typeof t&&t.startsWith(l)?t=function(t){return"string"==typeof t&&t.startsWith(l)?Z.fromLocalValue(JSON.parse(function(t){const n=atob(t),e=new Uint8Array(n.length);for(let t=0;t<n.length;t++)e[t]=n.charCodeAt(t);return(new TextDecoder).decode(e)}(t.slice(11)))):t}(t):null==t||V(t)?t:4&n?"false"!==t&&(""===t||!!t):1&n?t+"":t,X=t=>{var n;return null==(n=c(t))?void 0:n.$hostElement$},tt=(t,n)=>{const e=X(t);return{emit:t=>nt(e,n,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},nt=(t,n,e)=>{const o=y.ce(n,e);return t.dispatchEvent(o),o},et=(t,n,e,o,l,s,i)=>{if(e===o)return;let r=f(t,n),u=n.toLowerCase();if("class"===n){const n=t.classList,l=lt(e);let s=lt(o);if((t["s-si"]||t["s-sc"])&&i){const e=t["s-sc"]||t["s-si"];s.push(e),l.forEach((t=>{t.startsWith(e)&&s.push(t)})),s=[...new Set(s)].filter((t=>t)),n.add(...s)}else n.remove(...l.filter((t=>t&&!s.includes(t)))),n.add(...s.filter((t=>t&&!l.includes(t))))}else if("style"===n){for(const n in e)o&&null!=o[n]||(n.includes("-")?t.style.removeProperty(n):t.style[n]="");for(const n in o)e&&o[n]===e[n]||(n.includes("-")?t.style.setProperty(n,o[n]):t.style[n]=o[n])}else if("key"===n);else if(r||"o"!==n[0]||"n"!==n[1]){if("a"===n[0]&&n.startsWith("attr:")){const e=n.slice(5);let l;{const n=c(t);if(n&&n.o&&n.o.t){const t=n.o.t[e];t&&t[1]&&(l=t[1])}}return l||(l=e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==o||!1===o?!1===o&&""!==t.getAttribute(l)||t.removeAttribute(l):t.setAttribute(l,!0===o?"":o))}if("p"===n[0]&&n.startsWith("prop:")){const e=n.slice(5);try{t[e]=o}catch(t){}return}{const i=V(o);if((r||i&&null!==o)&&!l)try{if(t.tagName.includes("-"))t[n]!==o&&(t[n]=o);else{const l=null==o?"":o;"list"===n?r=!1:null!=e&&t[n]===l||("function"==typeof t.__lookupSetter__(n)?t[n]=l:t.setAttribute(n,l))}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(n)||t.removeAttribute(n):(!r||4&s||l)&&!i&&1===t.nodeType&&t.setAttribute(n,o=!0===o?"":o)}}else if(n="-"===n[2]?n.slice(3):f(v,u)?u.slice(2):u[2]+n.slice(3),e||o){const l=n.endsWith(st);n=n.replace(it,""),e&&y.rel(t,n,e,l),o&&y.ael(t,n,o,l)}},ot=/\s/,lt=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(ot):[]),st="Capture",it=RegExp(st+"$"),rt=(t,n,e,o)=>{const l=11===n.k.nodeType&&n.k.host?n.k.host:n.k,s=t&&t.v||{},i=n.v||{};for(const t of ct(Object.keys(s)))t in i||et(l,t,s[t],void 0,e,n.u,o);for(const t of ct(Object.keys(i)))et(l,t,s[t],i[t],e,n.u,o)};function ct(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var ut=!1,ft=(t,n,e)=>{const o=n.j[e];let l,s,i=0;if(null!=o.m)l=o.k=v.document.createTextNode(o.m);else{if(ut||(ut="svg"===o.O),!v.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=o.k=v.document.createElementNS(ut?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.O),ut&&"foreignObject"===o.O&&(ut=!1),rt(null,o,ut),o.j){const n="template"===o.O?l.content:l;for(i=0;i<o.j.length;++i)s=ft(t,o,i),s&&n.appendChild(s)}"svg"===o.O?ut=!1:"foreignObject"===l.tagName&&(ut=!0)}return l["s-hn"]=K,l},at=(t,n,e,o,l,s)=>{let i,r=t;for(r.shadowRoot&&r.tagName===K&&(r=r.shadowRoot),"template"===e.O&&(r=r.content);l<=s;++l)o[l]&&(i=ft(null,e,l),i&&(o[l].k=i,$t(r,i,n)))},dt=(t,n,e)=>{for(let o=n;o<=e;++o){const n=t[o];if(n){const t=n.k;t&&t.remove()}}},pt=(t,n,e=!1)=>t.O===n.O&&(e?(e&&!t.S&&n.S&&(t.S=n.S),!0):t.S===n.S),ht=(t,n,e=!1)=>{const o=n.k=t.k,l=t.j,s=n.j,i=n.O,r=n.m;null==r?(rt(t,n,ut="svg"===i||"foreignObject"!==i&&ut,e),null!==l&&null!==s?((t,n,e,o,l=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=n.length-1,d=n[0],p=n[a],h=o.length-1,$=o[0],m=o[h];const v="template"===e.O?t.content:t;for(;r<=a&&c<=h;)if(null==d)d=n[++r];else if(null==p)p=n[--a];else if(null==$)$=o[++c];else if(null==m)m=o[--h];else if(pt(d,$,l))ht(d,$,l),d=n[++r],$=o[++c];else if(pt(p,m,l))ht(p,m,l),p=n[--a],m=o[--h];else if(pt(d,m,l))ht(d,m,l),$t(v,d.k,p.k.nextSibling),d=n[++r],m=o[--h];else if(pt(p,$,l))ht(p,$,l),$t(v,p.k,d.k),p=n[--a],$=o[++c];else{for(u=-1,f=r;f<=a;++f)if(n[f]&&null!==n[f].S&&n[f].S===$.S){u=f;break}u>=0?(i=n[u],i.O!==$.O?s=ft(n&&n[c],e,u):(ht(i,$,l),n[u]=void 0,s=i.k),$=o[++c]):(s=ft(n&&n[c],e,c),$=o[++c]),s&&$t(d.k.parentNode,s,d.k)}r>a?at(t,null==o[h+1]?null:o[h+1].k,e,o,c,h):c>h&&dt(n,r,a)})(o,l,n,s,e):null!==s?(null!==t.m&&(o.textContent=""),at(o,null,n,s,0,s.length-1)):e||null===l?e&&null!==l&&null===s&&(n.j=l):dt(l,0,l.length-1),ut&&"svg"===i&&(ut=!1)):t.m!==r&&(o.data=r)},$t=(t,n,e)=>t.__insertBefore?t.__insertBefore(n,e):null==t?void 0:t.insertBefore(n,e),mt=(t,n)=>{if(n&&!t.A&&n["s-p"]){const e=n["s-p"].push(new Promise((o=>t.A=()=>{n["s-p"].splice(e-1,1),o()})))}},vt=(t,n)=>{if(t.u|=16,4&t.u)return void(t.u|=512);mt(t,t.D);const e=()=>yt(t,n);if(!n)return C(e);queueMicrotask((()=>{e()}))},yt=(t,n)=>{const e=t.$hostElement$,o=t.i;if(!o)throw Error(`Can't render component <${e.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return n?(t.R.length&&t.R.forEach((t=>t(e))),l=kt(o,"componentWillLoad",void 0,e)):l=kt(o,"componentWillUpdate",void 0,e),l=bt(l,(()=>kt(o,"componentWillRender",void 0,e))),bt(l,(()=>wt(t,o,n)))},bt=(t,n)=>gt(t)?t.then(n).catch((t=>{console.error(t),n()})):n(),gt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,wt=async(t,n,e)=>{var o;const l=t.$hostElement$,s=l["s-rc"];e&&(t=>{const n=t.o,e=t.$hostElement$,o=n.u,l=T(e.shadowRoot?e.shadowRoot:e.getRootNode(),n);10&o&&(e["s-sc"]=l,e.classList.add(l+"-h"))})(t);jt(t,n,l,e),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const n=null!=(o=l["s-p"])?o:[],e=()=>St(t);0===n.length?e():(Promise.all(n).then(e).catch(e),t.u|=4,n.length=0)}},jt=(t,n,e,o)=>{try{n=n.render(),t.u&=-17,t.u|=2,((t,n,e=!1)=>{const o=t.$hostElement$,l=t.T||_(null,null),s=(t=>t&&t.O===z)(n)?n:H(null,null,n);if(K=o.tagName,e&&s.v)for(const t of Object.keys(s.v))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(s.v[t]=o[t]);s.O=null,s.u|=4,t.T=s,s.k=l.k=o.shadowRoot||o,ht(l,s,e)})(t,n,o)}catch(n){a(n,t.$hostElement$)}return null},St=t=>{const n=t.$hostElement$,e=t.i,o=t.D;kt(e,"componentDidRender",void 0,n),64&t.u?kt(e,"componentDidUpdate",void 0,n):(t.u|=64,xt(n),kt(e,"componentDidLoad",void 0,n),t.U(n),o||Ot()),t.A&&(t.A(),t.A=void 0),512&t.u&&M((()=>vt(t,!1))),t.u&=-517},Ot=()=>{var t;M((()=>nt(v,"appload",{detail:{namespace:"authhero-widget"}}))),(null==(t=y.P)?void 0:t.size)&&y.P.clear()},kt=(t,n,e,o)=>{if(t&&t[n])try{return t[n](e)}catch(t){a(t,o)}},xt=t=>t.classList.add("hydrated"),Et=(t,n,e,o)=>{const l=c(t);if(!l)return;if(!l)throw Error(`Couldn't find host element for "${o.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const s=l.$hostElement$,i=l.l.get(n),r=l.u,u=l.i;if(e=Q(e,o.t[n][0]),!(8&r&&void 0!==i||e===i||Number.isNaN(i)&&Number.isNaN(e))){if(l.l.set(n,e),o.V){const t=o.V[n];t&&t.map((t=>{try{const[[o,s]]=Object.entries(t);(128&r||1&s)&&(u?u[o](e,i,n):l.R.push((()=>{l.i[o](e,i,n)})))}catch(t){a(t,s)}}))}if(2&r){if(u.componentShouldUpdate&&!1===u.componentShouldUpdate(e,i,n)&&!(16&r))return;16&r||vt(l,!1)}}},Mt=(t,n,e)=>{var o,l;const i=t.prototype;{t.watchers&&!n.V&&(n.V=J(t.watchers)),t.deserializers&&!n.H&&(n.H=t.deserializers),t.serializers&&!n._&&(n._=t.serializers);const r=Object.entries(null!=(o=n.t)?o:{});if(r.map((([t,[o]])=>{if(31&o||2&e&&32&o){const{get:l,set:r}=s(i,t)||{};l&&(n.t[t][0]|=2048),r&&(n.t[t][0]|=4096),(1&e||!l)&&Object.defineProperty(i,t,{get(){{if(!(2048&n.t[t][0]))return((t,n)=>c(this).l.get(n))(0,t);const e=c(this),o=e?e.i:i;if(!o)return;return o[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(l){const s=c(this);if(s){if(r)return void 0===(32&o?this[t]:s.$hostElement$[t])&&s.l.get(t)&&(l=s.l.get(t)),r.call(this,Q(l,o)),void Et(this,t,l=32&o?this[t]:s.$hostElement$[t],n);{if(!(1&e&&4096&n.t[t][0]))return Et(this,t,l,n),void(1&e&&!s.i&&s.R.push((()=>{4096&n.t[t][0]&&s.i[t]!==s.l.get(t)&&(s.i[t]=l)})));const i=()=>{const e=s.i[t];!s.l.get(t)&&e&&s.l.set(t,e),s.i[t]=Q(l,o),Et(this,t,s.i[t],n)};s.i?i():s.R.push((()=>{i()}))}}}})}})),1&e){const e=new Map;i.attributeChangedCallback=function(t,o,l){y.jmp((()=>{var s;const u=e.get(t),f=c(this);if(this.hasOwnProperty(u)&&(l=this[u],delete this[u]),i.hasOwnProperty(u)&&"number"==typeof this[u]&&this[u]==l)return;if(null==u){const e=null==f?void 0:f.u;if(f&&e&&!(8&e)&&l!==o){const i=f.i,r=null==(s=n.V)?void 0:s[t];null==r||r.forEach((n=>{const[[s,r]]=Object.entries(n);null!=i[s]&&(128&e||1&r)&&i[s].call(i,l,o,t)}))}return}const a=r.find((([t])=>t===u)),d=a&&4&a[1][0],p=d&&null===l&&void 0===this[u];d&&(l=null!==l&&"false"!==l);const h=Object.getOwnPropertyDescriptor(i,u);p||l==this[u]||h.get&&!h.set||(this[u]=l)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(l=n.V)?l:{}),...r.filter((([t,n])=>31&n[0])).map((([t,n])=>{const o=n[1]||t;return e.set(o,t),o}))]))}}return t},Ct=(t,n)=>{kt(t,"connectedCallback",void 0,n)},Nt=t=>{if(!(1&y.u)){const n=c(t);if(!n)return;const e=n.o,o=()=>{};if(1&n.u)(null==n?void 0:n.i)?Ct(n.i,t):(null==n?void 0:n.W)&&n.W.then((()=>Ct(n.i,t)));else{let o;if(n.u|=1,o=t.getAttribute(h),o){if(1&e.u){const n=T(t.shadowRoot,e);t.classList.remove(n+"-h",n+"-s")}((t,n,e,o)=>{var l,s,i,r;const u=t.shadowRoot,f=[],a=[],d=u?[]:null,p=_(n,null);p.k=t,!v.document||y.P&&y.P.size||B(v.document.body,y.P=new Map),t[h]=e,t.removeAttribute(h),o.T=W(p,f,[],d,t,t,e,a);let $=0;const m=f.length;let b;for(;$<m;$++){b=f[$];const e=b.M+"."+b.C,o=y.P.get(e),s=b.k;if(u){if((null==(l=b.O)?void 0:(""+l).includes("-"))&&"slot-fb"!==b.O&&!b.k.shadowRoot){const t=c(b.k);if(t){const n=U(t.o),e=v.document.querySelector(`style[sty-id="${n}"]`);e&&d.unshift(e.cloneNode(!0))}}}else s["s-hn"]=n.toUpperCase(),"slot"===b.O&&(s["s-cr"]=t["s-cr"]);"slot"===b.O&&(b.L=b.k["s-sn"]||b.k.name||null,b.j?(b.u|=2,b.k.childNodes.length||b.j.forEach((t=>{b.k.appendChild(t.k)}))):b.u|=1),o&&o.isConnected&&(o.parentElement.shadowRoot&&""===o["s-en"]&&o.parentNode.insertBefore(s,o.nextSibling),o.parentNode.removeChild(o),u||(s["s-oo"]=parseInt(b.C))),o&&!o["s-id"]&&y.P.delete(e)}const g=[],w=a.length;let j,S,O,k,x=0,E=0;for(;x<w;x++)if(j=a[x],j&&j.length)for(O=j.length,S=0;S<O;S++){if(k=j[S],g[k.hostId]||(g[k.hostId]=y.P.get(k.hostId)),!g[k.hostId])continue;const t=g[k.hostId];t.shadowRoot&&k.node.parentElement!==t&&t.insertBefore(k.node,null==(i=null==(s=j[S-1])?void 0:s.node)?void 0:i.nextSibling),t.shadowRoot&&u||(k.slot["s-cr"]||(k.slot["s-cr"]=t["s-cr"],k.slot["s-cr"]=!k.slot["s-cr"]&&t.shadowRoot?t:(t.__childNodes||t.childNodes)[0]),I(k.node,k.slot,0,k.node["s-oo"]||E),(null==(r=k.node.parentElement)?void 0:r.shadowRoot)&&k.node.getAttribute&&k.node.getAttribute("slot")&&k.node.removeAttribute("slot")),E=(k.node["s-oo"]||E)+1}if(u&&!u.childNodes.length){let n=0;const e=d.length;if(e){for(;n<e;n++){const t=d[n];t&&u.appendChild(t)}Array.from(t.childNodes).forEach((t=>{"string"!=typeof t["s-en"]&&"string"!=typeof t["s-sn"]&&(1===t.nodeType&&t.slot&&t.hidden?t.removeAttribute("hidden"):8!==t.nodeType||t.nodeValue||t.parentNode.removeChild(t))}))}}o.$hostElement$=t})(t,e.$,o,n)}{let e=t;for(;e=e.parentNode||e.host;)if(1===e.nodeType&&e.hasAttribute("s-id")&&e["s-p"]||e["s-p"]){mt(n,n.D=e);break}}e.t&&Object.entries(e.t).map((([n,[e]])=>{if(31&e&&Object.prototype.hasOwnProperty.call(t,n)){const e=t[n];delete t[n],t[n]=e}})),(async(t,n,e)=>{let o;try{if(!(32&n.u)){if(n.u|=32,e.B){const l=((t,n)=>{const e=t.$.replace(/-/g,"_"),o=t.B;if(!o)return;const l=d.get(o);return l?l[e]:import(`./${o}.entry.js`).then((t=>(d.set(o,t),t[e])),(t=>{a(t,n.$hostElement$)}))
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(e,n);if(l&&"then"in l){const t=()=>{};o=await l,t()}else o=l;if(!o)throw Error(`Constructor for "${e.$}#${n.F}" was not found`);o.isProxied||(e.V=J(o.watchers),e._=o.serializers,e.H=o.deserializers,Mt(o,e,2),o.isProxied=!0);const s=()=>{};n.u|=8;try{new o(n)}catch(n){a(n,t)}n.u&=-9,n.u|=128,s(),Ct(n.i,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>n.u|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const n=U(e);if(!p.has(n)){const o=()=>{};R(n,t,!!(1&e.u)),o()}}}const l=n.D,s=()=>vt(n,!0);l&&l["s-rc"]?l["s-rc"].push(s):s()}catch(e){a(e,t),n.A&&(n.A(),n.A=void 0),n.U&&n.U(t)}})(t,n,e)}o()}},It=(t,n)=>{kt(t,"disconnectedCallback",void 0,n||t)},Lt=(t,n={})=>{var e;if(!v.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const o=[],l=n.exclude||[],s=v.customElements,i=v.document.head,r=i.querySelector("meta[charset]"),u=v.document.createElement("style"),f=[];let a,d=!0;if(Object.assign(y,n),y.p=new URL(n.resourcesUrl||"./",v.document.baseURI).href,y.u|=2,(()=>{if(!v.document)return;const t=v.document.querySelectorAll(`[${$}]`);let n=0;for(;n<t.length;n++)R(t[n].getAttribute($),P(t[n].innerHTML),!0)})(),t.map((t=>{t[1].map((n=>{var e,i;const r={u:n[0],$:n[1],t:n[2],q:n[3]};r.t=n[2],r.V=J(n[4]),r._=null!=(e=n[5])?e:{},r.H=null!=(i=n[6])?i:{};const u=r.$,p=class extends HTMLElement{"s-p";"s-rc";hasRegisteredEventListeners=!1;constructor(t){if(super(t),((t,n)=>{const e={u:0,$hostElement$:t,o:n,l:new Map,Y:new Map};e.W=new Promise((t=>e.U=t)),t["s-p"]=[],t["s-rc"]=[],e.R=[];const o=e;t.__stencil__getHostRef=()=>o})(t=this,r),1&r.u)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${r.$}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else N.call(t,r)}connectedCallback(){c(this)&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),a&&(clearTimeout(a),a=null),d?f.push(this):y.jmp((()=>Nt(this))))}disconnectedCallback(){y.jmp((()=>(async t=>{if(!(1&y.u)){const n=c(t);(null==n?void 0:n.i)?It(n.i,t):(null==n?void 0:n.W)&&n.W.then((()=>It(n.i,t)))}D.has(t)&&D.delete(t),t.shadowRoot&&D.has(t.shadowRoot)&&D.delete(t.shadowRoot)})(this))),y.raf((()=>{var t;const n=c(this);if(!n)return;const e=f.findIndex((t=>t===this));e>-1&&f.splice(e,1),(null==(t=null==n?void 0:n.T)?void 0:t.k)instanceof Node&&!n.T.k.isConnected&&delete n.T.k}))}componentOnReady(){var t;return null==(t=c(this))?void 0:t.W}};r.B=t[0],l.includes(u)||s.get(u)||(o.push(u),s.define(u,Mt(p,r,1)))}))})),o.length>0&&(u.textContent+=o.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",u.innerHTML.length)){u.setAttribute("data-styles","");const t=null!=(e=y.h)?e:A(v.document);null!=t&&u.setAttribute("nonce",t),i.insertBefore(u,r?r.nextSibling:i.firstChild)}d=!1,f.length?f.map((t=>t.connectedCallback())):y.jmp((()=>a=setTimeout(Ot,30)))},At=t=>y.h=t;export{Lt as b,tt as c,X as g,H as h,b as p,u as r,At as s}