authhero 9.36.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 (92) 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 +165 -141
  7. package/dist/authhero.d.ts +633 -331
  8. package/dist/authhero.mjs +19149 -16716
  9. package/dist/{mfa-DPwn1ajo.js → mfa-DBhvi2B5.js} +1 -1
  10. package/dist/{mfa-B044FRjD.mjs → mfa-DnCary4g.mjs} +19 -19
  11. package/dist/{mfa-attempts-DGOLb2oh.mjs → mfa-attempts-BK-gWrgJ.mjs} +5161 -5045
  12. package/dist/mfa-attempts-C5kobAHS.js +275 -0
  13. package/dist/{passkey-enrollment-BDboqoaP.js → passkey-enrollment-CmKahPq7.js} +1 -1
  14. package/dist/tsconfig.types.tsbuildinfo +1 -1
  15. package/dist/types/authentication-flows/email-verification.d.ts +1 -1
  16. package/dist/types/authentication-flows/passwordless.d.ts +2 -2
  17. package/dist/types/generated/locale-types.d.ts +87 -0
  18. package/dist/types/helpers/anchor-client.d.ts +16 -0
  19. package/dist/types/helpers/database-connection-scope.d.ts +48 -18
  20. package/dist/types/helpers/dcr/audience-policy.d.ts +13 -0
  21. package/dist/types/helpers/dcr/client-registration.d.ts +81 -0
  22. package/dist/types/helpers/dcr/constraint-enforcement.d.ts +1 -0
  23. package/dist/types/helpers/dcr/metadata-mapping.d.ts +18 -1
  24. package/dist/types/helpers/dcr/mint-iat.d.ts +4 -1
  25. package/dist/types/helpers/dcr/mint-token.d.ts +4 -0
  26. package/dist/types/helpers/dcr/presets.d.ts +34 -0
  27. package/dist/types/helpers/dcr/uri-policy.d.ts +34 -0
  28. package/dist/types/helpers/default-destinations.d.ts +14 -0
  29. package/dist/types/helpers/firehose-client.d.ts +29 -0
  30. package/dist/types/helpers/outbox-destinations/log-streams.d.ts +21 -1
  31. package/dist/types/helpers/password-connection.d.ts +3 -1
  32. package/dist/types/helpers/prompt-partials.d.ts +1 -1
  33. package/dist/types/helpers/reserved-claims.d.ts +2 -2
  34. package/dist/types/helpers/run-outbox-relay.d.ts +9 -2
  35. package/dist/types/helpers/self-service-tickets.d.ts +34 -0
  36. package/dist/types/helpers/users.d.ts +17 -2
  37. package/dist/types/index.d.ts +565 -271
  38. package/dist/types/routes/auth-api/authenticate.d.ts +1 -1
  39. package/dist/types/routes/auth-api/dbconnections.d.ts +2 -2
  40. package/dist/types/routes/auth-api/index.d.ts +38 -23
  41. package/dist/types/routes/auth-api/passwordless.d.ts +10 -10
  42. package/dist/types/routes/auth-api/register/index.d.ts +15 -0
  43. package/dist/types/routes/auth-api/token.d.ts +10 -10
  44. package/dist/types/routes/management-api/action-executions.d.ts +2 -2
  45. package/dist/types/routes/management-api/actions.d.ts +9 -9
  46. package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
  47. package/dist/types/routes/management-api/branding-preview.d.ts +9 -1
  48. package/dist/types/routes/management-api/branding.d.ts +105 -1
  49. package/dist/types/routes/management-api/client-registration-tokens.d.ts +149 -0
  50. package/dist/types/routes/management-api/clients.d.ts +8 -8
  51. package/dist/types/routes/management-api/custom-domains.d.ts +6 -6
  52. package/dist/types/routes/management-api/email-templates.d.ts +20 -20
  53. package/dist/types/routes/management-api/emails.d.ts +2 -2
  54. package/dist/types/routes/management-api/failed-events.d.ts +4 -4
  55. package/dist/types/routes/management-api/guardian.d.ts +5 -5
  56. package/dist/types/routes/management-api/helpers.d.ts +1 -1
  57. package/dist/types/routes/management-api/hook-code.d.ts +2 -2
  58. package/dist/types/routes/management-api/hooks.d.ts +4 -4
  59. package/dist/types/routes/management-api/index.d.ts +482 -233
  60. package/dist/types/routes/management-api/keys.d.ts +4 -4
  61. package/dist/types/routes/management-api/log-streams.d.ts +12 -12
  62. package/dist/types/routes/management-api/logs.d.ts +4 -4
  63. package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
  64. package/dist/types/routes/management-api/organizations.d.ts +7 -7
  65. package/dist/types/routes/management-api/prompts.d.ts +8 -8
  66. package/dist/types/routes/management-api/roles.d.ts +1 -1
  67. package/dist/types/routes/management-api/self-service-profiles.d.ts +7 -7
  68. package/dist/types/routes/management-api/tenant-operations.d.ts +10 -10
  69. package/dist/types/routes/management-api/tenants.d.ts +29 -29
  70. package/dist/types/routes/management-api/themes.d.ts +69 -0
  71. package/dist/types/routes/management-api/users.d.ts +16 -16
  72. package/dist/types/routes/universal-login/common.d.ts +52 -0
  73. package/dist/types/routes/universal-login/dark-theme.d.ts +25 -0
  74. package/dist/types/routes/universal-login/flow-api.d.ts +4 -4
  75. package/dist/types/routes/universal-login/form-node.d.ts +4 -4
  76. package/dist/types/routes/universal-login/index.d.ts +4 -4
  77. package/dist/types/routes/universal-login/legal-links.d.ts +18 -0
  78. package/dist/types/routes/universal-login/screen-prompt-map.d.ts +31 -0
  79. package/dist/types/routes/universal-login/screens/connect-authz.d.ts +9 -0
  80. package/dist/types/routes/universal-login/screens/login-partials.d.ts +9 -1
  81. package/dist/types/routes/universal-login/screens/self-service-app.d.ts +46 -0
  82. package/dist/types/routes/universal-login/u2-form-node.d.ts +2 -2
  83. package/dist/types/routes/universal-login/u2-index.d.ts +35 -5
  84. package/dist/types/routes/universal-login/u2-routes.d.ts +35 -5
  85. package/dist/types/routes/universal-login/u2-widget-page.d.ts +6 -1
  86. package/dist/types/routes/universal-login/universal-login-template.d.ts +1 -0
  87. package/dist/types/state-machines/login-session.d.ts +19 -1
  88. package/dist/types/types/Bindings.d.ts +2 -0
  89. package/package.json +7 -6
  90. package/dist/assets/u/widget/p-FUW5zvoZ.js +0 -2
  91. package/dist/assets/u/widget/p-c6ec4c36.entry.js +0 -1
  92. package/dist/mfa-attempts-BiU_pMOV.js +0 -275
@@ -35,6 +35,15 @@ export declare function userHasAccessAllOrganizations(context: ScreenContext, us
35
35
  * register on any child tenant without an org-scoped role.
36
36
  */
37
37
  export declare function userCanRegisterGlobally(context: ScreenContext, userId: string): Promise<boolean>;
38
+ /**
39
+ * True when the user may register a client on the tenant the request itself
40
+ * resolved to (direct mode, no control-plane workspace pick). Holding a
41
+ * session on the tenant is not enough: end users of the tenant must not be
42
+ * able to register clients. The user needs `create:clients` on the Management
43
+ * API at tenant level (directly or through a global role), the permission
44
+ * the control-plane path checks per organization.
45
+ */
46
+ export declare function userCanRegisterOnRequestTenant(context: ScreenContext, userId: string): Promise<boolean>;
38
47
  /**
39
48
  * True when the user holds the DCR register permission on the given
40
49
  * control-plane organization (scoped to the Management API audience).
@@ -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;
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Developer app setup page (#1776), served at /u2/self-service/app.
3
+ *
4
+ * An outside developer opens an invite link (an Initial Access Token minted
5
+ * from an app-type preset) to register an app, or an edit link (a
6
+ * Registration Access Token for one client) to update it. The landing route
7
+ * in u2-routes.tsx verifies the link and starts a login session carrying
8
+ * `state_data.self_service`; this screen re-checks the token on every request,
9
+ * so revoking a link also stops an open page.
10
+ *
11
+ * Registration and updates go through the same code as RFC 7591/7592
12
+ * (helpers/dcr/client-registration.ts), so the page enforces exactly what the
13
+ * API enforces.
14
+ */
15
+ import { type ClientRegistrationToken } from "@authhero/adapter-interfaces";
16
+ import type { ScreenContext, ScreenDefinition, ScreenResult } from "./types";
17
+ export declare const SELF_SERVICE_APP_SCREEN = "self-service-app";
18
+ type Kind = "app_create" | "app_edit";
19
+ export interface SelfServiceState {
20
+ kind: Kind;
21
+ token_id: string;
22
+ /** Set once a create link has registered its app. */
23
+ completed_client_id?: string;
24
+ }
25
+ export declare function readSelfServiceState(stateDataJson: string | undefined): SelfServiceState | null;
26
+ /** Which link a token is, or null when it can't open the setup page. */
27
+ export declare function ticketKind(token: ClientRegistrationToken): Kind | null;
28
+ /** Whether the link is still usable: not revoked, expired or used up. */
29
+ export declare function isTicketActive(token: ClientRegistrationToken): boolean;
30
+ /** The page shown for an unknown, expired, revoked or used link. */
31
+ export declare function invalidTicketScreen(context: ScreenContext): ScreenResult;
32
+ export interface FormValues {
33
+ client_name: string;
34
+ redirect_uris: string[];
35
+ post_logout_redirect_uris: string[];
36
+ web_origins: string[];
37
+ logo_uri: string;
38
+ client_uri: string;
39
+ policy_uri: string;
40
+ tos_uri: string;
41
+ contact: string;
42
+ }
43
+ export declare function valuesFromForm(data: Record<string, unknown>): FormValues;
44
+ export declare function selfServiceAppScreen(context: ScreenContext): Promise<ScreenResult>;
45
+ export declare const selfServiceAppScreenDefinition: ScreenDefinition;
46
+ export {};
@@ -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
  } & {
@@ -160,12 +160,42 @@ export default function createU2App(config: AuthHeroConfig): OpenAPIHono<{
160
160
  status: 302;
161
161
  };
162
162
  };
163
+ } & {
164
+ "/self-service/app": {
165
+ $get: {
166
+ input: {
167
+ query: {
168
+ ticket?: string | undefined;
169
+ state?: string | undefined;
170
+ error?: string | undefined;
171
+ error_description?: string | undefined;
172
+ ui_locales?: string | undefined;
173
+ };
174
+ };
175
+ output: Response;
176
+ outputFormat: "json";
177
+ status: import("hono/utils/http-status").StatusCode;
178
+ } | {
179
+ input: {
180
+ query: {
181
+ ticket?: string | undefined;
182
+ state?: string | undefined;
183
+ error?: string | undefined;
184
+ error_description?: string | undefined;
185
+ ui_locales?: string | undefined;
186
+ };
187
+ };
188
+ output: {};
189
+ outputFormat: string;
190
+ status: 302;
191
+ };
192
+ };
163
193
  } & {
164
194
  "/:screen{.+}": {
165
195
  $get: {
166
196
  input: {
167
197
  param: {
168
- screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "account" | "enter-password" | "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" | "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";
169
199
  };
170
200
  } & {
171
201
  query: {
@@ -181,7 +211,7 @@ export default function createU2App(config: AuthHeroConfig): OpenAPIHono<{
181
211
  } | {
182
212
  input: {
183
213
  param: {
184
- screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "account" | "enter-password" | "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" | "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";
185
215
  };
186
216
  } & {
187
217
  query: {
@@ -197,7 +227,7 @@ export default function createU2App(config: AuthHeroConfig): OpenAPIHono<{
197
227
  } | {
198
228
  input: {
199
229
  param: {
200
- screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "account" | "enter-password" | "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" | "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";
201
231
  };
202
232
  } & {
203
233
  query: {
@@ -217,7 +247,7 @@ export default function createU2App(config: AuthHeroConfig): OpenAPIHono<{
217
247
  $post: {
218
248
  input: {
219
249
  param: {
220
- screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "enter-password" | "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" | "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";
221
251
  };
222
252
  } & {
223
253
  query: {
@@ -235,7 +265,7 @@ export default function createU2App(config: AuthHeroConfig): OpenAPIHono<{
235
265
  } | {
236
266
  input: {
237
267
  param: {
238
- screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "enter-password" | "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" | "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";
239
269
  };
240
270
  } & {
241
271
  query: {
@@ -165,12 +165,42 @@ export declare const u2Routes: OpenAPIHono<{
165
165
  status: 302;
166
166
  };
167
167
  };
168
+ } & {
169
+ "/self-service/app": {
170
+ $get: {
171
+ input: {
172
+ query: {
173
+ ticket?: string | undefined;
174
+ state?: string | undefined;
175
+ error?: string | undefined;
176
+ error_description?: string | undefined;
177
+ ui_locales?: string | undefined;
178
+ };
179
+ };
180
+ output: Response;
181
+ outputFormat: "json";
182
+ status: import("hono/utils/http-status").StatusCode;
183
+ } | {
184
+ input: {
185
+ query: {
186
+ ticket?: string | undefined;
187
+ state?: string | undefined;
188
+ error?: string | undefined;
189
+ error_description?: string | undefined;
190
+ ui_locales?: string | undefined;
191
+ };
192
+ };
193
+ output: {};
194
+ outputFormat: string;
195
+ status: 302;
196
+ };
197
+ };
168
198
  } & {
169
199
  "/:screen{.+}": {
170
200
  $get: {
171
201
  input: {
172
202
  param: {
173
- screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "account" | "enter-password" | "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" | "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";
174
204
  };
175
205
  } & {
176
206
  query: {
@@ -186,7 +216,7 @@ export declare const u2Routes: OpenAPIHono<{
186
216
  } | {
187
217
  input: {
188
218
  param: {
189
- screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "account" | "enter-password" | "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" | "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";
190
220
  };
191
221
  } & {
192
222
  query: {
@@ -202,7 +232,7 @@ export declare const u2Routes: OpenAPIHono<{
202
232
  } | {
203
233
  input: {
204
234
  param: {
205
- screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "account" | "enter-password" | "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" | "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";
206
236
  };
207
237
  } & {
208
238
  query: {
@@ -222,7 +252,7 @@ export declare const u2Routes: OpenAPIHono<{
222
252
  $post: {
223
253
  input: {
224
254
  param: {
225
- screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "enter-password" | "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" | "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";
226
256
  };
227
257
  } & {
228
258
  query: {
@@ -240,7 +270,7 @@ export declare const u2Routes: OpenAPIHono<{
240
270
  } | {
241
271
  input: {
242
272
  param: {
243
- screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "enter-password" | "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" | "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";
244
274
  };
245
275
  } & {
246
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;
@@ -45,6 +45,16 @@ export interface LoginSessionData {
45
45
  inviter_name?: string;
46
46
  roles?: string[];
47
47
  connect?: Record<string, unknown>;
48
+ /**
49
+ * Developer app setup page (#1776): which link opened the page (the
50
+ * registration token row id) and, once a create link registered its app,
51
+ * the new client. See routes/universal-login/screens/self-service-app.ts.
52
+ */
53
+ self_service?: {
54
+ kind: "app_create" | "app_edit";
55
+ token_id: string;
56
+ completed_client_id?: string;
57
+ };
48
58
  deviceFlow?: {
49
59
  deviceCodeHash?: string;
50
60
  userCode?: string;
@@ -53,6 +63,14 @@ export interface LoginSessionData {
53
63
  try_connection_result?: unknown;
54
64
  session_cookie?: SessionCookieDiagnostics;
55
65
  session_transfer?: SessionTransferCarrierState;
66
+ /**
67
+ * The database connection /co/authenticate checked a password in. Written
68
+ * only by its password branch, on the session it creates, and read by
69
+ * ticketAuth. Kept apart from `authParams.connection`, which /authorize and
70
+ * other routes set from the request, so a login ticket can only be redeemed
71
+ * where a password was actually checked.
72
+ */
73
+ ticket_connection?: string;
56
74
  }
57
75
  /** The on-disk JSON shape stays flat for compatibility with existing sessions. */
58
76
  export declare function readLoginSessionData(raw?: string | null): LoginSessionData;
@@ -234,7 +252,7 @@ export declare const loginSessionMachine: import("xstate").StateMachine<LoginSes
234
252
  }, {
235
253
  type: "passwordResetRequested";
236
254
  params: unknown;
237
- }, never, "pending" | "failed" | "expired" | "completed" | "authenticated" | "awaiting_email_verification" | "awaiting_mfa" | "awaiting_consent" | "awaiting_hook" | "awaiting_continuation", 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, {
238
256
  id: "loginSession";
239
257
  states: {
240
258
  readonly pending: {};
@@ -1,6 +1,7 @@
1
1
  import type { SigningCertificateAuthority } from "../helpers/signing-certificate-authority";
2
2
  import { ActionCodeGenerator, CodeExecutor, DataAdapters } from "@authhero/adapter-interfaces";
3
3
  import type { SamlSigner } from "@authhero/saml/core";
4
+ import type { ManagementAudienceResolver } from "../middlewares/authentication";
4
5
  import { Hooks } from "./Hooks";
5
6
  import { ActionExecutionLogCapture, EntityHooksConfig, McpConfig, OutboxConfig, SigningKeyModeOption, RolloutControllerBinding, TenantOperationExecutorBinding, UserLinkingModeOption, UsernamePasswordProviderResolver, WebhookInvoker } from "./AuthHeroConfig";
6
7
  import { StrategyHandler } from "../strategies";
@@ -48,6 +49,7 @@ export type Bindings = {
48
49
  usersImportMaxBytes?: number;
49
50
  usersImportMaxConcurrentJobs?: number;
50
51
  unsafeAllowAzpCustomClaim?: boolean;
52
+ additionalManagementAudiences?: ManagementAudienceResolver;
51
53
  outbox?: OutboxConfig;
52
54
  userLinkingMode?: UserLinkingModeOption;
53
55
  usernamePasswordProvider?: UsernamePasswordProviderResolver;
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.36.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.22.0",
67
- "@authhero/widget": "0.41.15"
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.31.0",
85
- "@authhero/proxy": "0.11.18",
86
- "@authhero/saml": "0.6.11"
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}