authhero 5.10.0 → 5.11.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.
- package/dist/assets/u/js/client.js +33 -1
- package/dist/assets/u/widget/authhero-widget.esm.js +1 -1
- package/dist/assets/u/widget/index.esm.js +1 -1
- package/dist/assets/u/widget/p-FUW5zvoZ.js +2 -0
- package/dist/assets/u/widget/{p-e91b632f.entry.js → p-aa120307.entry.js} +1 -1
- package/dist/assets/u/widget/{p-f63fd386.entry.js → p-f0f9eca3.entry.js} +1 -1
- package/dist/authhero.cjs +229 -212
- package/dist/authhero.css +2 -1
- package/dist/authhero.d.ts +123 -86
- package/dist/authhero.mjs +80125 -82252
- package/dist/client.js +33 -1
- package/dist/passkey-enrollment-DKWsGt-K.js +1 -0
- package/dist/passkey-enrollment-Dw1ObR65.mjs +26 -0
- package/dist/stats.html +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/passwordless.d.ts +2 -2
- package/dist/types/client/client-bundle.d.ts +1 -1
- package/dist/types/email-services/mailgun.d.ts +1 -0
- package/dist/types/helpers/service-token.d.ts +21 -0
- package/dist/types/hooks/helpers/token-api.d.ts +7 -0
- package/dist/types/index.d.ts +122 -86
- package/dist/types/routes/auth-api/authorize.d.ts +14 -14
- package/dist/types/routes/auth-api/index.d.ts +30 -30
- package/dist/types/routes/auth-api/passwordless.d.ts +12 -12
- package/dist/types/routes/auth-api/revoke.d.ts +6 -6
- package/dist/types/routes/auth-api/token.d.ts +10 -10
- package/dist/types/routes/management-api/action-executions.d.ts +1 -1
- package/dist/types/routes/management-api/actions.d.ts +1 -1
- package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
- package/dist/types/routes/management-api/email-templates.d.ts +14 -14
- package/dist/types/routes/management-api/failed-events.d.ts +1 -1
- package/dist/types/routes/management-api/guardian.d.ts +5 -5
- package/dist/types/routes/management-api/index.d.ts +72 -36
- package/dist/types/routes/management-api/logs.d.ts +3 -3
- package/dist/types/routes/management-api/organizations.d.ts +40 -4
- package/dist/types/routes/management-api/prompts.d.ts +4 -4
- package/dist/types/routes/management-api/users.d.ts +2 -2
- package/dist/types/types/IdToken.d.ts +4 -4
- package/package.json +24 -24
- package/dist/assets/u/widget/p-BFP_5sHV.js +0 -2
- package/dist/passkey-enrollment-D0dl7raT.mjs +0 -42
- package/dist/passkey-enrollment-dbZd6Zqw.js +0 -1
|
@@ -50,7 +50,7 @@ export declare const promptsRoutes: OpenAPIHono<{
|
|
|
50
50
|
};
|
|
51
51
|
};
|
|
52
52
|
output: {
|
|
53
|
-
prompt: "mfa" | "organizations" | "signup" | "status" | "common" | "consent" | "device-flow" | "email-otp-challenge" | "email-verification" | "
|
|
53
|
+
prompt: "mfa" | "organizations" | "signup" | "status" | "invitation" | "common" | "consent" | "device-flow" | "email-otp-challenge" | "email-verification" | "login" | "login-id" | "login-password" | "login-passwordless" | "mfa-email" | "mfa-otp" | "mfa-phone" | "mfa-login-options" | "mfa-push" | "mfa-recovery-code" | "mfa-voice" | "mfa-webauthn" | "passkeys" | "reset-password" | "signup-id" | "signup-password" | "captcha" | "custom-form";
|
|
54
54
|
language: string;
|
|
55
55
|
}[];
|
|
56
56
|
outputFormat: "json";
|
|
@@ -88,7 +88,7 @@ export declare const promptsRoutes: OpenAPIHono<{
|
|
|
88
88
|
$get: {
|
|
89
89
|
input: {
|
|
90
90
|
param: {
|
|
91
|
-
prompt: "mfa" | "organizations" | "signup" | "status" | "common" | "consent" | "device-flow" | "email-otp-challenge" | "email-verification" | "
|
|
91
|
+
prompt: "mfa" | "organizations" | "signup" | "status" | "invitation" | "common" | "consent" | "device-flow" | "email-otp-challenge" | "email-verification" | "login" | "login-id" | "login-password" | "login-passwordless" | "mfa-email" | "mfa-otp" | "mfa-phone" | "mfa-login-options" | "mfa-push" | "mfa-recovery-code" | "mfa-voice" | "mfa-webauthn" | "passkeys" | "reset-password" | "signup-id" | "signup-password" | "captcha" | "custom-form";
|
|
92
92
|
language: string;
|
|
93
93
|
};
|
|
94
94
|
} & {
|
|
@@ -110,7 +110,7 @@ export declare const promptsRoutes: OpenAPIHono<{
|
|
|
110
110
|
$put: {
|
|
111
111
|
input: {
|
|
112
112
|
param: {
|
|
113
|
-
prompt: "mfa" | "organizations" | "signup" | "status" | "common" | "consent" | "device-flow" | "email-otp-challenge" | "email-verification" | "
|
|
113
|
+
prompt: "mfa" | "organizations" | "signup" | "status" | "invitation" | "common" | "consent" | "device-flow" | "email-otp-challenge" | "email-verification" | "login" | "login-id" | "login-password" | "login-passwordless" | "mfa-email" | "mfa-otp" | "mfa-phone" | "mfa-login-options" | "mfa-push" | "mfa-recovery-code" | "mfa-voice" | "mfa-webauthn" | "passkeys" | "reset-password" | "signup-id" | "signup-password" | "captcha" | "custom-form";
|
|
114
114
|
language: string;
|
|
115
115
|
};
|
|
116
116
|
} & {
|
|
@@ -134,7 +134,7 @@ export declare const promptsRoutes: OpenAPIHono<{
|
|
|
134
134
|
$delete: {
|
|
135
135
|
input: {
|
|
136
136
|
param: {
|
|
137
|
-
prompt: "mfa" | "organizations" | "signup" | "status" | "common" | "consent" | "device-flow" | "email-otp-challenge" | "email-verification" | "
|
|
137
|
+
prompt: "mfa" | "organizations" | "signup" | "status" | "invitation" | "common" | "consent" | "device-flow" | "email-otp-challenge" | "email-verification" | "login" | "login-id" | "login-password" | "login-passwordless" | "mfa-email" | "mfa-otp" | "mfa-phone" | "mfa-login-options" | "mfa-push" | "mfa-recovery-code" | "mfa-voice" | "mfa-webauthn" | "passkeys" | "reset-password" | "signup-id" | "signup-password" | "captcha" | "custom-form";
|
|
138
138
|
language: string;
|
|
139
139
|
};
|
|
140
140
|
} & {
|
|
@@ -737,7 +737,7 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
737
737
|
};
|
|
738
738
|
};
|
|
739
739
|
output: {
|
|
740
|
-
type: "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "fh" | "fimp" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "
|
|
740
|
+
type: "gd_send_sms" | "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "fh" | "fimp" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "i" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "sh" | "spm" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum";
|
|
741
741
|
date: string;
|
|
742
742
|
isMobile: boolean;
|
|
743
743
|
log_id: string;
|
|
@@ -776,7 +776,7 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
776
776
|
limit: number;
|
|
777
777
|
length: number;
|
|
778
778
|
logs: {
|
|
779
|
-
type: "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "fh" | "fimp" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "
|
|
779
|
+
type: "gd_send_sms" | "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "fh" | "fimp" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "i" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "sh" | "spm" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum";
|
|
780
780
|
date: string;
|
|
781
781
|
isMobile: boolean;
|
|
782
782
|
log_id: string;
|
|
@@ -18,13 +18,13 @@ export declare const idTokenSchema: z.ZodObject<{
|
|
|
18
18
|
c_hash: z.ZodOptional<z.ZodString>;
|
|
19
19
|
}, z.core.$loose>;
|
|
20
20
|
export declare const userInfoSchema: z.ZodObject<{
|
|
21
|
-
name: z.ZodOptional<z.ZodString>;
|
|
22
21
|
email: z.ZodOptional<z.ZodString>;
|
|
23
|
-
|
|
24
|
-
family_name: z.ZodOptional<z.ZodString>;
|
|
25
|
-
iss: z.ZodString;
|
|
22
|
+
name: z.ZodOptional<z.ZodString>;
|
|
26
23
|
sub: z.ZodString;
|
|
24
|
+
iss: z.ZodString;
|
|
27
25
|
aud: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
28
26
|
exp: z.ZodNumber;
|
|
27
|
+
given_name: z.ZodOptional<z.ZodString>;
|
|
28
|
+
family_name: z.ZodOptional<z.ZodString>;
|
|
29
29
|
}, z.core.$loose>;
|
|
30
30
|
export type IdToken = z.infer<typeof idTokenSchema>;
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "https://github.com/markusahlstrand/authhero"
|
|
13
13
|
},
|
|
14
|
-
"version": "5.
|
|
14
|
+
"version": "5.11.0",
|
|
15
15
|
"files": [
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
@@ -35,35 +35,35 @@
|
|
|
35
35
|
"@hono/zod-openapi": "^1.4.0",
|
|
36
36
|
"@react-email/components": "^1.0.12",
|
|
37
37
|
"@react-email/render": "^2.0.6",
|
|
38
|
-
"@storybook/react": "^10.
|
|
39
|
-
"@storybook/react-vite": "^10.
|
|
40
|
-
"@types/node": "^24.
|
|
38
|
+
"@storybook/react": "^10.4.1",
|
|
39
|
+
"@storybook/react-vite": "^10.4.1",
|
|
40
|
+
"@types/node": "^24.12.4",
|
|
41
41
|
"@types/qrcode": "^1.5.6",
|
|
42
|
-
"@types/react": "^19.2.
|
|
42
|
+
"@types/react": "^19.2.15",
|
|
43
43
|
"@types/react-dom": "^19.2.2",
|
|
44
|
-
"@types/sanitize-html": "^2.16.
|
|
45
|
-
"autoprefixer": "10.
|
|
44
|
+
"@types/sanitize-html": "^2.16.1",
|
|
45
|
+
"autoprefixer": "10.5.0",
|
|
46
46
|
"better-sqlite3": "^12.4.1",
|
|
47
47
|
"cssnano": "7.1.2",
|
|
48
48
|
"detectincognitojs": "^1.6.2",
|
|
49
49
|
"fast-xml-parser": "^5.3.1",
|
|
50
|
-
"hono": "^4.
|
|
50
|
+
"hono": "^4.12.23",
|
|
51
51
|
"i18nexus-cli": "^3.8.2",
|
|
52
|
-
"kysely": "^0.
|
|
53
|
-
"postcss": "8.5.
|
|
54
|
-
"react": "^19.2.
|
|
55
|
-
"react-dom": "^19.2.
|
|
52
|
+
"kysely": "^0.29.2",
|
|
53
|
+
"postcss": "8.5.15",
|
|
54
|
+
"react": "^19.2.6",
|
|
55
|
+
"react-dom": "^19.2.6",
|
|
56
56
|
"rollup-plugin-dts": "^6.4.1",
|
|
57
57
|
"rollup-plugin-visualizer": "^6.0.5",
|
|
58
|
-
"storybook": "^10.
|
|
58
|
+
"storybook": "^10.4.1",
|
|
59
59
|
"tailwindcss": "3.4.18",
|
|
60
|
-
"tsx": "^4.
|
|
60
|
+
"tsx": "^4.22.3",
|
|
61
61
|
"typescript": "^5.9.3",
|
|
62
|
-
"vite": "^
|
|
62
|
+
"vite": "^8.0.14",
|
|
63
63
|
"vite-plugin-dts": "^4.5.4",
|
|
64
|
-
"vitest": "^4.
|
|
65
|
-
"@authhero/kysely-adapter": "11.4.
|
|
66
|
-
"@authhero/widget": "0.32.
|
|
64
|
+
"vitest": "^4.1.7",
|
|
65
|
+
"@authhero/kysely-adapter": "11.4.1",
|
|
66
|
+
"@authhero/widget": "0.32.29"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"@peculiar/x509": "^1.14.0",
|
|
@@ -74,14 +74,14 @@
|
|
|
74
74
|
"cookie": "^1.1.1",
|
|
75
75
|
"country-list": "^2.4.1",
|
|
76
76
|
"i18next": "^25.6.0",
|
|
77
|
-
"libphonenumber-js": "^1.
|
|
78
|
-
"liquidjs": "^10.
|
|
79
|
-
"nanoid": "^5.1.
|
|
77
|
+
"libphonenumber-js": "^1.13.3",
|
|
78
|
+
"liquidjs": "^10.27.0",
|
|
79
|
+
"nanoid": "^5.1.11",
|
|
80
80
|
"oslo": "^1.2.1",
|
|
81
81
|
"qrcode": "^1.5.4",
|
|
82
|
-
"sanitize-html": "^2.17.
|
|
83
|
-
"xstate": "^5.
|
|
84
|
-
"@authhero/adapter-interfaces": "2.
|
|
82
|
+
"sanitize-html": "^2.17.4",
|
|
83
|
+
"xstate": "^5.31.1",
|
|
84
|
+
"@authhero/adapter-interfaces": "2.7.0",
|
|
85
85
|
"@authhero/saml": "0.4.1"
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var t,e,n,s,i,r,o,l,c,u,f,a,h,p,d,v,$,m=Object.create,b=Object.defineProperty,g=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,y=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,O=t=>{throw TypeError(t)},S=(t,e)=>function(){return e||(0,t[w(t)[0]])((e={exports:{}}).exports,e),e.exports},M=(t,e,n)=>e.has(t)||O("Cannot "+n),k=(t,e,n)=>(M(t,e,"read from private field"),n?n.call(t):e.get(t)),E=(t,e,n)=>e.has(t)?O("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),x=(t,e,n)=>(M(t,e,"write to private field"),e.set(t,n),n),N=(t,e,n)=>(M(t,e,"access private method"),n),P=S({"node_modules/balanced-match/index.js"(t,e){function n(t,e,n){t instanceof RegExp&&(t=s(t,n)),e instanceof RegExp&&(e=s(e,n));var r=i(t,e,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+t.length,r[1]),post:n.slice(r[1]+e.length)}}function s(t,e){var n=e.match(t);return n?n[0]:null}function i(t,e,n){var s,i,r,o,l,c=n.indexOf(t),u=n.indexOf(e,c+1),f=c;if(c>=0&&u>0){if(t===e)return[c,u];for(s=[],r=n.length;f>=0&&!l;)f==c?(s.push(f),c=n.indexOf(t,f+1)):1==s.length?l=[s.pop(),u]:((i=s.pop())<r&&(r=i,o=u),u=n.indexOf(e,f+1)),f=c<u&&c>=0?c:u;s.length&&(l=[r,o])}return l}e.exports=n,n.range=i}}),R=S({"node_modules/brace-expansion/index.js"(t,e){var n=P();e.exports=function(t){return t?("{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2)),v(function(t){return t.split("\\\\").join(s).split("\\{").join(i).split("\\}").join(r).split("\\,").join(o).split("\\.").join(l)}(t),!0).map(u)):[]};var s="\0SLASH"+Math.random()+"\0",i="\0OPEN"+Math.random()+"\0",r="\0CLOSE"+Math.random()+"\0",o="\0COMMA"+Math.random()+"\0",l="\0PERIOD"+Math.random()+"\0";function c(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function u(t){return t.split(s).join("\\").split(i).join("{").split(r).join("}").split(o).join(",").split(l).join(".")}function f(t){if(!t)return[""];var e=[],s=n("{","}",t);if(!s)return t.split(",");var i=s.body,r=s.post,o=s.pre.split(",");o[o.length-1]+="{"+i+"}";var l=f(r);return r.length&&(o[o.length-1]+=l.shift(),o.push.apply(o,l)),e.push.apply(e,o),e}function a(t){return"{"+t+"}"}function h(t){return/^-?0\d/.test(t)}function p(t,e){return t<=e}function d(t,e){return t>=e}function v(t,e){var s=[],i=n("{","}",t);if(!i)return[t];var o=i.pre,l=i.post.length?v(i.post,!1):[""];if(/\$$/.test(i.pre))for(var u=0;u<l.length;u++)s.push(C=o+"{"+i.body+"}"+l[u]);else{var $,m,b=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),g=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),w=b||g,y=i.body.indexOf(",")>=0;if(!w&&!y)return i.post.match(/,(?!,).*\}/)?v(t=i.pre+"{"+i.body+r+i.post):[t];if(w)$=i.body.split(/\.\./);else if(1===($=f(i.body)).length&&1===($=v($[0],!1).map(a)).length)return l.map((function(t){return i.pre+$[0]+t}));if(w){var j=c($[0]),O=c($[1]),S=Math.max($[0].length,$[1].length),M=3==$.length?Math.abs(c($[2])):1,k=p;O<j&&(M*=-1,k=d);var E=$.some(h);m=[];for(var x=j;k(x,O);x+=M){var N;if(g)"\\"===(N=String.fromCharCode(x))&&(N="");else if(N=x+"",E){var P=S-N.length;if(P>0){var R=Array(P+1).join("0");N=x<0?"-"+R+N.slice(1):R+N}}m.push(N)}}else{m=[];for(var W=0;W<$.length;W++)m.push.apply(m,v($[W],!1))}for(W=0;W<m.length;W++)for(u=0;u<l.length;u++){var C=o+m[W]+l[u];(!e||w||C)&&s.push(C)}}return s}}}),W=(t=>(t.Undefined="undefined",t.Null="null",t.String="string",t.Number="number",t.SpecialNumber="number",t.Boolean="boolean",t.BigInt="bigint",t))(W||{}),C=(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))(C||{}),A="type",L="value",z="serialized:",I=(t,e)=>{var n;Object.entries(null!=(n=e.i.t)?n:{}).map((([n,[s]])=>{if(31&s||32&s){const s=t[n],i=function(t,e){for(;t;){const n=Object.getOwnPropertyDescriptor(t,e);if(null==n?void 0:n.get)return n;t=Object.getPrototypeOf(t)}}(Object.getPrototypeOf(t),n)||Object.getOwnPropertyDescriptor(t,n);i&&Object.defineProperty(t,n,{get(){return i.get.call(this)},set(t){i.set.call(this,t)},configurable:!0,enumerable:!0}),t[n]=e.o.has(n)?e.o.get(n):s}}))},T=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},_=(t,e)=>{e&&(t.__stencil__getHostRef=()=>e,e.l=t,512&e.i.u&&I(t,e))},D=(t,e)=>e in t,U=(t,e)=>(0,console.error)(t,e),G=new Map,V=new Map,B="s-id",F="sty-id",Z="c-id",H="slot-fb{display:contents}slot-fb[hidden]{display:none}",q="undefined"!=typeof window?window:{},J={u:0,h:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,s)=>t.addEventListener(e,n,s),rel:(t,e,n,s)=>t.removeEventListener(e,n,s),ce:(t,e)=>new CustomEvent(t,e)},Y=t=>Promise.resolve(t),K=(()=>{try{return!!q.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),Q=!!K&&(()=>!!q.document&&Object.getOwnPropertyDescriptor(q.document.adoptedStyleSheets,"length").writable)(),X=!1,tt=[],et=[],nt=(t,e)=>n=>{t.push(n),X||(X=!0,e&&4&J.u?rt(it):J.raf(it))},st=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){U(t)}t.length=0},it=()=>{st(tt),st(et),(X=tt.length>0)&&J.raf(it)},rt=t=>Y().then(t),ot=nt(et,!0),lt=t=>"object"==(t=typeof t)||"function"===t,ct=((t,e,n)=>(n=null!=t?m(y(t)):{},((t,e,n,s)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let n of w(e))j.call(t,n)||undefined===n||b(t,n,{get:()=>e[n],enumerable:!(s=g(e,n))||s.enumerable});return t})(b(n,"default",{value:t,enumerable:!0}),t)))(R()),ut=t=>{if("string"!=typeof t)throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},ft={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},at=t=>t.replace(/[[\]\\-]/g,"\\$&"),ht=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),pt=t=>t.join(""),dt=(t,e)=>{const n=e;if("["!==t.charAt(n))throw Error("not in a brace expression");const s=[],i=[];let r=n+1,o=!1,l=!1,c=!1,u=!1,f=n,a="";t:for(;r<t.length;){const e=t.charAt(r);if("!"!==e&&"^"!==e||r!==n+1){if("]"===e&&o&&!c){f=r+1;break}if(o=!0,"\\"!==e||c){if("["===e&&!c)for(const[e,[o,c,u]]of Object.entries(ft))if(t.startsWith(e,r)){if(a)return["$.",!1,t.length-n,!0];r+=e.length,u?i.push(o):s.push(o),l=l||c;continue t}c=!1,a?(e>a?s.push(at(a)+"-"+at(e)):e===a&&s.push(at(e)),a="",r++):t.startsWith("-]",r+1)?(s.push(at(e+"-")),r+=2):t.startsWith("-",r+1)?(a=e,r+=2):(s.push(at(e)),r++)}else c=!0,r++}else u=!0,r++}if(f<r)return["",!1,0,!1];if(!s.length&&!i.length)return["$.",!1,t.length-n,!0];if(0===i.length&&1===s.length&&/^\\?.$/.test(s[0])&&!u){const t=2===s[0].length?s[0].slice(-1):s[0];return[ht(t),!1,f-n,!1]}const h="["+(u?"^":"")+pt(s)+"]",p="["+(u?"":"^")+pt(i)+"]";return[s.length&&i.length?"("+h+"|"+p+")":s.length?h:p,l,f-n,!0]},vt=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),$t=new Set(["!","?","+","*","@"]),mt=t=>$t.has(t),bt="(?!\\.)",gt=new Set(["[","."]),wt=new Set(["..","."]),yt=new Set("().*{}+?[]^$\\!"),jt=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Ot="[^/]",St=Ot+"*?",Mt=Ot+"+?",kt=class m{constructor(h,p,d={}){E(this,a),((t,e,n)=>{((t,e,n)=>{e in t?b(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n})(t,e+"",n)})(this,"type"),E(this,t),E(this,e),E(this,n,!1),E(this,s,[]),E(this,i),E(this,r),E(this,o),E(this,l,!1),E(this,c),E(this,u),E(this,f,!1),this.type=h,h&&x(this,e,!0),x(this,i,p),x(this,t,k(this,i)?k(k(this,i),t):this),x(this,c,k(this,t)===this?d:k(k(this,t),c)),x(this,o,k(this,t)===this?[]:k(k(this,t),o)),"!"!==h||k(k(this,t),l)||k(this,o).push(this),x(this,r,k(this,i)?k(k(this,i),s).length:0)}get hasMagic(){if(void 0!==k(this,e))return k(this,e);for(const t of k(this,s))if("string"!=typeof t&&(t.type||t.hasMagic))return x(this,e,!0);return k(this,e)}toString(){return void 0!==k(this,u)?k(this,u):x(this,u,this.type?this.type+"("+k(this,s).map((t=>t+"")).join("|")+")":k(this,s).map((t=>t+"")).join(""))}push(...t){for(const e of t)if(""!==e){if("string"!=typeof e&&!(e instanceof m&&k(e,i)===this))throw Error("invalid part: "+e);k(this,s).push(e)}}toJSON(){var e;const n=null===this.type?k(this,s).slice().map((t=>"string"==typeof t?t:t.toJSON())):[this.type,...k(this,s).map((t=>t.toJSON()))];return this.isStart()&&!this.type&&n.unshift([]),this.isEnd()&&(this===k(this,t)||k(k(this,t),l)&&"!"===(null==(e=k(this,i))?void 0:e.type))&&n.push({}),n}isStart(){var e;if(k(this,t)===this)return!0;if(!(null==(e=k(this,i))?void 0:e.isStart()))return!1;if(0===k(this,r))return!0;const n=k(this,i);for(let t=0;t<k(this,r);t++){const e=k(n,s)[t];if(!(e instanceof m&&"!"===e.type))return!1}return!0}isEnd(){var e,n,o;if(k(this,t)===this)return!0;if("!"===(null==(e=k(this,i))?void 0:e.type))return!0;if(!(null==(n=k(this,i))?void 0:n.isEnd()))return!1;if(!this.type)return null==(o=k(this,i))?void 0:o.isEnd();const l=k(this,i)?k(k(this,i),s).length:0;return k(this,r)===l-1}copyIn(t){this.push("string"==typeof t?t:t.clone(this))}clone(t){const e=new m(this.type,t);for(const t of k(this,s))e.copyIn(t);return e}static fromGlob(t,e={}){var n;const s=new m(null,void 0,e);return N(n=m,p,d).call(n,t,s,0,e),s}toMMPattern(){if(this!==k(this,t))return k(this,t).toMMPattern();const n=""+this,[s,i,r,o]=this.toRegExpSource();if(!(r||k(this,e)||k(this,c).nocase&&!k(this,c).nocaseMagicOnly&&n.toUpperCase()!==n.toLowerCase()))return i;const l=(k(this,c).nocase?"i":"")+(o?"u":"");return Object.assign(RegExp(`^${s}$`,l),{_src:s,_glob:n})}get options(){return k(this,c)}toRegExpSource(r){var o;const u=null!=r?r:!!k(this,c).dot;if(k(this,t)===this&&N(this,a,h).call(this),!this.type){const c=this.isStart()&&this.isEnd(),f=k(this,s).map((t=>{var s;const[i,o,l,u]="string"==typeof t?N(s=m,p,$).call(s,t,k(this,e),c):t.toRegExpSource(r);return x(this,e,k(this,e)||l),x(this,n,k(this,n)||u),i})).join("");let a="";if(this.isStart()&&"string"==typeof k(this,s)[0]&&(1!==k(this,s).length||!wt.has(k(this,s)[0]))){const t=gt,e=u&&t.has(f.charAt(0))||f.startsWith("\\.")&&t.has(f.charAt(2))||f.startsWith("\\.\\.")&&t.has(f.charAt(4)),n=!u&&!r&&t.has(f.charAt(0));a=e?"(?!(?:^|/)\\.\\.?(?:$|/))":n?bt:""}let h="";return this.isEnd()&&k(k(this,t),l)&&"!"===(null==(o=k(this,i))?void 0:o.type)&&(h="(?:$|\\/)"),[a+f+h,vt(f),x(this,e,!!k(this,e)),k(this,n)]}const d="*"===this.type||"+"===this.type,b="!"===this.type?"(?:(?!(?:":"(?:";let g=N(this,a,v).call(this,u);if(this.isStart()&&this.isEnd()&&!g&&"!"!==this.type){const t=""+this;return x(this,s,[t]),this.type=null,x(this,e,void 0),[t,vt(""+this),!1,!1]}let w=!d||r||u?"":N(this,a,v).call(this,!0);w===g&&(w=""),w&&(g=`(?:${g})(?:${w})*?`);let y="";return y="!"===this.type&&k(this,f)?(this.isStart()&&!u?bt:"")+Mt:b+g+("!"===this.type?"))"+(!this.isStart()||u||r?"":bt)+St+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&w?")":"*"===this.type&&w?")?":")"+this.type),[y,vt(g),x(this,e,!!k(this,e)),k(this,n)]}};t=new WeakMap,e=new WeakMap,n=new WeakMap,s=new WeakMap,i=new WeakMap,r=new WeakMap,o=new WeakMap,l=new WeakMap,c=new WeakMap,u=new WeakMap,f=new WeakMap,a=new WeakSet,h=function(){if(this!==k(this,t))throw Error("should only call on root");if(k(this,l))return this;let e;for(x(this,l,!0);e=k(this,o).pop();){if("!"!==e.type)continue;let t=e,n=k(t,i);for(;n;){for(let i=k(t,r)+1;!n.type&&i<k(n,s).length;i++)for(const t of k(e,s)){if("string"==typeof t)throw Error("string part in extglob AST??");t.copyIn(k(n,s)[i])}t=n,n=k(t,i)}}return this},p=new WeakSet,d=function(t,n,i,r){var o,l;let c=!1,u=!1,a=-1,h=!1;if(null===n.type){let e=i,s="";for(;e<t.length;){const i=t.charAt(e++);if(c||"\\"===i)c=!c,s+=i;else if(u)e===a+1?"^"!==i&&"!"!==i||(h=!0):"]"!==i||e===a+2&&h||(u=!1),s+=i;else if("["!==i)if(r.noext||!mt(i)||"("!==t.charAt(e))s+=i;else{n.push(s),s="";const l=new kt(i,n);e=N(o=kt,p,d).call(o,t,l,e,r),n.push(l)}else u=!0,a=e,h=!1,s+=i}return n.push(s),e}let v=i+1,$=new kt(null,n);const m=[];let b="";for(;v<t.length;){const e=t.charAt(v++);if(c||"\\"===e)c=!c,b+=e;else if(u)v===a+1?"^"!==e&&"!"!==e||(h=!0):"]"!==e||v===a+2&&h||(u=!1),b+=e;else if("["!==e)if(mt(e)&&"("===t.charAt(v)){$.push(b),b="";const n=new kt(e,$);$.push(n),v=N(l=kt,p,d).call(l,t,n,v,r)}else if("|"!==e){if(")"===e)return""===b&&0===k(n,s).length&&x(n,f,!0),$.push(b),b="",n.push(...m,$),v;b+=e}else $.push(b),b="",m.push($),$=new kt(null,n);else u=!0,a=v,h=!1,b+=e}return n.type=null,x(n,e,void 0),x(n,s,[t.substring(i-1)]),v},v=function(t){return k(this,s).map((e=>{if("string"==typeof e)throw Error("string type in extglob ast??");const[s,i,r,o]=e.toRegExpSource(t);return x(this,n,k(this,n)||o),s})).filter((t=>!(this.isStart()&&this.isEnd()&&!t))).join("|")},$=function(t,e,n=!1){let s=!1,i="",r=!1;for(let o=0;o<t.length;o++){const l=t.charAt(o);if(s)s=!1,i+=(yt.has(l)?"\\":"")+l;else if("\\"!==l){if("["===l){const[n,s,l,c]=dt(t,o);if(l){i+=n,r=r||s,o+=l-1,e=e||c;continue}}"*"!==l?"?"!==l?i+=jt(l):(i+=Ot,e=!0):(i+=n&&"*"===t?Mt:St,e=!0)}else o===t.length-1?i+="\\\\":s=!0}return[i,vt(t),!!e,r]},E(kt,p);var Et=kt,xt=(t,e,n={})=>(ut(e),!(!n.nocomment&&"#"===e.charAt(0))&&new te(e,n).match(t)),Nt=/^\*+([^+@!?\*\[\(]*)$/,Pt=t=>e=>!e.startsWith(".")&&e.endsWith(t),Rt=t=>e=>e.endsWith(t),Wt=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),Ct=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),At=/^\*+\.\*+$/,Lt=t=>!t.startsWith(".")&&t.includes("."),zt=t=>"."!==t&&".."!==t&&t.includes("."),It=/^\.\*+$/,Tt=t=>"."!==t&&".."!==t&&t.startsWith("."),_t=/^\*+$/,Dt=t=>0!==t.length&&!t.startsWith("."),Ut=t=>0!==t.length&&"."!==t&&".."!==t,Gt=/^\?+([^+@!?\*\[\(]*)?$/,Vt=([t,e=""])=>{const n=Ht([t]);return e?(e=e.toLowerCase(),t=>n(t)&&t.toLowerCase().endsWith(e)):n},Bt=([t,e=""])=>{const n=qt([t]);return e?(e=e.toLowerCase(),t=>n(t)&&t.toLowerCase().endsWith(e)):n},Ft=([t,e=""])=>{const n=qt([t]);return e?t=>n(t)&&t.endsWith(e):n},Zt=([t,e=""])=>{const n=Ht([t]);return e?t=>n(t)&&t.endsWith(e):n},Ht=([t])=>{const e=t.length;return t=>t.length===e&&!t.startsWith(".")},qt=([t])=>{const e=t.length;return t=>t.length===e&&"."!==t&&".."!==t},Jt="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";xt.sep="win32"===Jt?"\\":"/";var Yt=Symbol("globstar **");xt.GLOBSTAR=Yt,xt.filter=(t,e={})=>n=>xt(n,t,e);var Kt=(t,e={})=>Object.assign({},t,e);xt.defaults=t=>{if(!t||"object"!=typeof t||!Object.keys(t).length)return xt;const e=xt;return Object.assign(((n,s,i={})=>e(n,s,Kt(t,i))),{Minimatch:class extends e.Minimatch{constructor(e,n={}){super(e,Kt(t,n))}static defaults(n){return e.defaults(Kt(t,n)).Minimatch}},AST:class extends e.AST{constructor(e,n,s={}){super(e,n,Kt(t,s))}static fromGlob(n,s={}){return e.AST.fromGlob(n,Kt(t,s))}},unescape:(n,s={})=>e.unescape(n,Kt(t,s)),escape:(n,s={})=>e.escape(n,Kt(t,s)),filter:(n,s={})=>e.filter(n,Kt(t,s)),defaults:n=>e.defaults(Kt(t,n)),makeRe:(n,s={})=>e.makeRe(n,Kt(t,s)),braceExpand:(n,s={})=>e.braceExpand(n,Kt(t,s)),match:(n,s,i={})=>e.match(n,s,Kt(t,i)),sep:e.sep,GLOBSTAR:Yt})};var Qt=(t,e={})=>(ut(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,ct.default)(t));xt.braceExpand=Qt,xt.makeRe=(t,e={})=>new te(t,e).makeRe(),xt.match=(t,e,n={})=>{const s=new te(e,n);return t=t.filter((t=>s.match(t))),s.options.nonull&&!t.length&&t.push(e),t};var Xt=/[?*]|[+@!]\(.*?\)|\[|\]/,te=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,e={}){ut(t),this.options=e=e||{},this.pattern=t,this.platform=e.platform||Jt,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!e.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!e.nonegate,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==e.windowsNoMagicRoot?e.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const e of t)if("string"!=typeof e)return!0;return!1}debug(...t){}make(){const t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0))return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],e.debug&&(this.debug=(...t)=>console.error(...t)),this.debug(this.pattern,this.globSet);const n=this.globSet.map((t=>this.slashSplit(t)));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let s=this.globParts.map((t=>{if(this.isWindows&&this.windowsNoMagicRoot){const e=!(""!==t[0]||""!==t[1]||"?"!==t[2]&&Xt.test(t[2])||Xt.test(t[3])),n=/^[a-z]:/i.test(t[0]);if(e)return[...t.slice(0,4),...t.slice(4).map((t=>this.parse(t)))];if(n)return[t[0],...t.slice(1).map((t=>this.parse(t)))]}return t.map((t=>this.parse(t)))}));if(this.debug(this.pattern,s),this.set=s.filter((t=>-1===t.indexOf(!1))),this.isWindows)for(let t=0;t<this.set.length;t++){const e=this.set[t];""===e[0]&&""===e[1]&&"?"===this.globParts[t][2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])&&(e[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let e=0;e<t.length;e++)for(let n=0;n<t[e].length;n++)"**"===t[e][n]&&(t[e][n]="*");const{optimizationLevel:e=1}=this.options;return e>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=e>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map((t=>{let e=-1;for(;-1!==(e=t.indexOf("**",e+1));){let n=e;for(;"**"===t[n+1];)n++;n!==e&&t.splice(e,n-e)}return t}))}levelOneOptimize(t){return t.map((t=>0===(t=t.reduce(((t,e)=>{const n=t[t.length-1];return"**"===e&&"**"===n?t:".."===e&&n&&".."!==n&&"."!==n&&"**"!==n?(t.pop(),t):(t.push(e),t)}),[])).length?[""]:t))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let e=!1;do{if(e=!1,!this.preserveMultipleSlashes){for(let n=1;n<t.length-1;n++){const s=t[n];1===n&&""===s&&""===t[0]||"."!==s&&""!==s||(e=!0,t.splice(n,1),n--)}"."!==t[0]||2!==t.length||"."!==t[1]&&""!==t[1]||(e=!0,t.pop())}let n=0;for(;-1!==(n=t.indexOf("..",n+1));){const s=t[n-1];s&&"."!==s&&".."!==s&&"**"!==s&&(e=!0,t.splice(n-1,2),n-=2)}}while(e);return 0===t.length?[""]:t}firstPhasePreProcess(t){let e=!1;do{e=!1;for(let n of t){let s=-1;for(;-1!==(s=n.indexOf("**",s+1));){let i=s;for(;"**"===n[i+1];)i++;i>s&&n.splice(s+1,i-s);const r=n[s+2],o=n[s+3];if(".."!==n[s+1])continue;if(!r||"."===r||".."===r||!o||"."===o||".."===o)continue;e=!0,n.splice(s,1);const l=n.slice(0);l[s]="**",t.push(l),s--}if(!this.preserveMultipleSlashes){for(let t=1;t<n.length-1;t++){const s=n[t];1===t&&""===s&&""===n[0]||"."!==s&&""!==s||(e=!0,n.splice(t,1),t--)}"."!==n[0]||2!==n.length||"."!==n[1]&&""!==n[1]||(e=!0,n.pop())}let i=0;for(;-1!==(i=n.indexOf("..",i+1));){const t=n[i-1];t&&"."!==t&&".."!==t&&"**"!==t&&(e=!0,n.splice(i-1,2,...1===i&&"**"===n[i+1]?["."]:[]),0===n.length&&n.push(""),i-=2)}}}while(e);return t}secondPhasePreProcess(t){for(let e=0;e<t.length-1;e++)for(let n=e+1;n<t.length;n++){const s=this.partsMatch(t[e],t[n],!this.preserveMultipleSlashes);s&&(t[e]=s,t[n]=[])}return t.filter((t=>t.length))}partsMatch(t,e,n=!1){let s=0,i=0,r=[],o="";for(;s<t.length&&i<e.length;)if(t[s]===e[i])r.push("b"===o?e[i]:t[s]),s++,i++;else if(n&&"**"===t[s]&&e[i]===t[s+1])r.push(t[s]),s++;else if(n&&"**"===e[i]&&t[s]===e[i+1])r.push(e[i]),i++;else if("*"!==t[s]||!e[i]||!this.options.dot&&e[i].startsWith(".")||"**"===e[i]){if("*"!==e[i]||!t[s]||!this.options.dot&&t[s].startsWith(".")||"**"===t[s])return!1;if("a"===o)return!1;o="b",r.push(e[i]),s++,i++}else{if("b"===o)return!1;o="a",r.push(t[s]),s++,i++}return t.length===e.length&&r}parseNegate(){if(this.nonegate)return;const t=this.pattern;let e=!1,n=0;for(let s=0;s<t.length&&"!"===t.charAt(s);s++)e=!e,n++;n&&(this.pattern=t.slice(n)),this.negate=e}matchOne(t,e,n=!1){const s=this.options;if(this.isWindows){const n="string"==typeof t[0]&&/^[a-z]:$/i.test(t[0]),s=!n&&""===t[0]&&""===t[1]&&"?"===t[2]&&/^[a-z]:$/i.test(t[3]),i="string"==typeof e[0]&&/^[a-z]:$/i.test(e[0]),r=s?3:n?0:void 0,o=!i&&""===e[0]&&""===e[1]&&"?"===e[2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])?3:i?0:void 0;if("number"==typeof r&&"number"==typeof o){const[n,s]=[t[r],e[o]];n.toLowerCase()===s.toLowerCase()&&(e[o]=n,o>r?e=e.slice(o):r>o&&(t=t.slice(r)))}}const{optimizationLevel:i=1}=this.options;i>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var r=0,o=0,l=t.length,c=e.length;r<l&&o<c;r++,o++){this.debug("matchOne loop");var u=e[o],f=t[r];if(this.debug(e,u,f),!1===u)return!1;if(u===Yt){this.debug("GLOBSTAR",[e,u,f]);var a=r,h=o+1;if(h===c){for(this.debug("** at the end");r<l;r++)if("."===t[r]||".."===t[r]||!s.dot&&"."===t[r].charAt(0))return!1;return!0}for(;a<l;){var p=t[a];if(this.debug("\nglobstar while",t,a,e,h,p),this.matchOne(t.slice(a),e.slice(h),n))return this.debug("globstar found match!",a,l,p),!0;if("."===p||".."===p||!s.dot&&"."===p.charAt(0)){this.debug("dot detected!",t,a,e,h);break}this.debug("globstar swallow a segment, and continue"),a++}return!(!n||(this.debug("\n>>> no match, partial?",t,a,e,h),a!==l))}let i;if("string"==typeof u?(i=f===u,this.debug("string match",u,f,i)):(i=u.test(f),this.debug("pattern match",u,f,i)),!i)return!1}if(r===l&&o===c)return!0;if(r===l)return n;if(o===c)return r===l-1&&""===t[r];throw Error("wtf?")}braceExpand(){return Qt(this.pattern,this.options)}parse(t){ut(t);const e=this.options;if("**"===t)return Yt;if(""===t)return"";let n,s=null;(n=t.match(_t))?s=e.dot?Ut:Dt:(n=t.match(Nt))?s=(e.nocase?e.dot?Ct:Wt:e.dot?Rt:Pt)(n[1]):(n=t.match(Gt))?s=(e.nocase?e.dot?Bt:Vt:e.dot?Ft:Zt)(n):(n=t.match(At))?s=e.dot?zt:Lt:(n=t.match(It))&&(s=Tt);const i=Et.fromGlob(t,this.options).toMMPattern();return s&&"object"==typeof i&&Reflect.defineProperty(i,"test",{value:s}),i}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const e=this.options,n=e.noglobstar?"[^/]*?":e.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",s=new Set(e.nocase?["i"]:[]);let i=t.map((t=>{const e=t.map((t=>{if(t instanceof RegExp)for(const e of t.flags.split(""))s.add(e);return"string"==typeof t?(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"))(t):t===Yt?Yt:t._src}));return e.forEach(((t,s)=>{const i=e[s+1],r=e[s-1];t===Yt&&r!==Yt&&(void 0===r?void 0!==i&&i!==Yt?e[s+1]="(?:\\/|"+n+"\\/)?"+i:e[s]=n:void 0===i?e[s-1]=r+"(?:\\/|"+n+")?":i!==Yt&&(e[s-1]=r+"(?:\\/|\\/"+n+"\\/)"+i,e[s+1]=Yt))})),e.filter((t=>t!==Yt)).join("/")})).join("|");const[r,o]=t.length>1?["(?:",")"]:["",""];i="^"+r+i+o+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=RegExp(i,[...s].join(""))}catch(t){this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,e=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&e)return!0;const n=this.options;this.isWindows&&(t=t.split("\\").join("/"));const s=this.slashSplit(t);this.debug(this.pattern,"split",s);const i=this.set;this.debug(this.pattern,"set",i);let r=s[s.length-1];if(!r)for(let t=s.length-2;!r&&t>=0;t--)r=s[t];for(let t=0;t<i.length;t++){const o=i[t];let l=s;if(n.matchBase&&1===o.length&&(l=[r]),this.matchOne(l,o,e))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate}static defaults(t){return xt.defaults(t).Minimatch}};function ee(t){var e,n,s;return null!=(s=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?s:void 0}xt.AST=Et,xt.Minimatch=te,xt.escape=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),xt.unescape=vt;var ne=class t{static fromLocalValue(e){const n=e[A],s=L in e?e[L]: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((e=>t.fromLocalValue(e)));case"date":return new Date(s);case"map":const e=new Map;for(const[n,i]of s){const s="object"==typeof n&&null!==n?t.fromLocalValue(n):n,r=t.fromLocalValue(i);e.set(s,r)}return e;case"object":const i={};for(const[e,n]of s)i[e]=t.fromLocalValue(n);return i;case"regexp":const{pattern:r,flags:o}=s;return RegExp(r,o);case"set":const l=new Set;for(const e of s)l.add(t.fromLocalValue(e));return l;case"symbol":return Symbol(s);default:throw Error("Unsupported type: "+n)}}static fromLocalValueArray(e){return e.map((e=>t.fromLocalValue(e)))}static isLocalValueObject(t){if("object"!=typeof t||null===t)return!1;if(!t.hasOwnProperty(A))return!1;const e=t[A];return!!Object.values({...W,...C}).includes(e)&&("null"===e||"undefined"===e||t.hasOwnProperty(L))}};((t,e)=>{for(var n in e)b(t,n,{get:e[n],enumerable:!0})})({},{err:()=>ie,map:()=>re,ok:()=>se,unwrap:()=>le,unwrapErr:()=>ce});var se=t=>({isOk:!0,isErr:!1,value:t}),ie=t=>({isOk:!1,isErr:!0,value:t});function re(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>se(t))):se(n)}if(t.isErr)return ie(t.value);throw"should never get here"}var oe,le=t=>{if(t.isOk)return t.value;throw t.value},ce=t=>{if(t.isErr)return t.value;throw t.value};function ue(){const t=this.attachShadow({mode:"open"});void 0===oe&&(oe=null),oe&&(Q?t.adoptedStyleSheets.push(oe):t.adoptedStyleSheets=[...t.adoptedStyleSheets,oe])}var fe=(t,e,n,s)=>{if(t["s-ol"]&&t["s-ol"].isConnected)return;const i=document.createTextNode("");if(i["s-nr"]=t,!e["s-cr"]||!e["s-cr"].parentNode)return;const r=e["s-cr"].parentNode,o=ae(r,"appendChild");if(void 0!==s){i["s-oo"]=s;const t=ae(r,"childNodes"),e=[i];t.forEach((t=>{t["s-nr"]&&e.push(t)})),e.sort(((t,e)=>!t["s-oo"]||t["s-oo"]<(e["s-oo"]||0)?-1:!e["s-oo"]||e["s-oo"]<t["s-oo"]?1:0)),e.forEach((t=>o.call(r,t)))}else o.call(r,i);t["s-ol"]=i,t["s-sh"]=e["s-hn"]};function ae(t,e){if("__"+e in t){const n=t["__"+e];return"function"!=typeof n?n:n.bind(t)}return"function"!=typeof t[e]?t[e]:t[e].bind(t)}var he=new WeakMap,pe=(t,e,n)=>{let s=V.get(t);K&&n?(s=s||new CSSStyleSheet,"string"==typeof s?s=e:s.replaceSync(e)):s=e,V.set(t,s)},de=(t,e)=>{var n,s,i;const r=ve(e),o=V.get(r);if(!q.document)return r;if(t=11===t.nodeType?t:q.document,o)if("string"==typeof o){let i,l=he.get(t=t.head||t);l||he.set(t,l=new Set);const c=t.querySelector(`[${F}="${r}"]`);if(c)c.innerHTML=o;else if(!l.has(r)){i=q.document.createElement("style"),i.innerHTML=o;const c=null!=(n=J.p)?n:ee(q.document);if(null!=c&&i.setAttribute("nonce",c),!(1&e.u))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(i,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(K){const e=new(null!=(s=t.defaultView)?s:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(o),Q?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=o+e.innerHTML:t.prepend(i)}else t.append(i);1&e.u&&t.insertBefore(i,null),4&e.u&&(i.innerHTML+=H),l&&l.add(r)}}else{let e=he.get(t);if(e||he.set(t,e=new Set),!e.has(r)){const n=null!=(i=t.defaultView)?i:t.ownerDocument.defaultView;let s;if(o.constructor===n.CSSStyleSheet)s=o;else{s=new n.CSSStyleSheet;for(let t=0;t<o.cssRules.length;t++)s.insertRule(o.cssRules[t].cssText,t)}Q?t.adoptedStyleSheets.push(s):t.adoptedStyleSheets=[...t.adoptedStyleSheets,s],e.add(r)}}return r},ve=t=>"sc-"+t.v,$e=t=>t.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),me=(t,e,...n)=>{let s=null,i=null,r=!1,o=!1;const l=[],c=e=>{for(let n=0;n<e.length;n++)s=e[n],Array.isArray(s)?c(s):null!=s&&"boolean"!=typeof s&&((r="function"!=typeof t&&!lt(s))&&(s+=""),r&&o?l[l.length-1].$+=s:l.push(r?be(null,s):s),o=r)};if(c(n),e){e.key&&(i=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const u=be(t,null);return u.m=e,l.length>0&&(u.j=l),u.O=i,u},be=(t,e)=>({u:0,S:t,$:e,M:null,j:null,m:null,O:null}),ge={},we=(t,e,n,s,i,r,o,l=[])=>{let c,u,f,a;if(1===r.nodeType){if(c=r.getAttribute(Z),c&&(u=c.split("."),u[0]===o||"0"===u[0])){f=je({u:0,k:u[0],N:u[1],P:u[2],R:u[3],S:r.tagName.toLowerCase(),M:r,m:{class:r.className||""}}),e.push(f),r.removeAttribute(Z),t.j||(t.j=[]);const i=f.M.getAttribute("s-sn");"string"==typeof i&&("slot-fb"===f.S&&Oe(i,u[2],f,r,t,e,n,s,l),f.M["s-sn"]=i,f.M.removeAttribute("s-sn")),void 0!==f.R&&(t.j[f.R]=f),t=f,s&&"0"===f.P&&(s[f.R]=f.M)}if(r.shadowRoot)for(a=r.shadowRoot.childNodes.length-1;a>=0;a--)we(t,e,n,s,i,r.shadowRoot.childNodes[a],o,l);const h=r.__childNodes||r.childNodes;for(a=h.length-1;a>=0;a--)we(t,e,n,s,i,h[a],o,l)}else if(8===r.nodeType)u=r.nodeValue.split("."),(u[1]===o||"0"===u[1])&&(c=u[0],f=je({k:u[1],N:u[2],P:u[3],R:u[4]||"0",M:r,m:null,j:null,O:null,W:null,S:null,$:null}),"t"===c?(f.M=Me(r,3),f.M&&3===f.M.nodeType&&(f.$=f.M.textContent,e.push(f),r.remove(),o===f.k&&(t.j||(t.j=[]),t.j[f.R]=f),s&&"0"===f.P&&(s[f.R]=f.M))):"c"===c?(f.M=Me(r,8),f.M&&8===f.M.nodeType&&(e.push(f),r.remove())):f.k===o&&("s"===c?Oe(r["s-sn"]=u[5]||"",u[2],f,r,t,e,n,s,l):"r"===c&&s&&r.remove()));else if(t&&"style"===t.S){const e=be(null,r.textContent);e.M=r,e.R="0",t.j=[e]}return t},ye=(t,e)=>{if(1===t.nodeType){const n=t[B]||t.getAttribute(B);n&&e.set(n,t);let s=0;if(t.shadowRoot)for(;s<t.shadowRoot.childNodes.length;s++)ye(t.shadowRoot.childNodes[s],e);const i=t.__childNodes||t.childNodes;for(s=0;s<i.length;s++)ye(i[s],e)}else if(8===t.nodeType){const n=t.nodeValue.split(".");"o"===n[0]&&(e.set(n[1]+"."+n[2],t),t.nodeValue="",t["s-en"]=n[3])}},je=t=>({u:0,k:null,N:null,P:null,R:"0",M:null,m:null,j:null,O:null,W:null,S:null,$:null,...t});function Oe(t,e,n,s,i,r,o,l,c){s["s-sr"]=!0,n.W=t||null,n.S="slot";const u=(null==i?void 0:i.M)?i.M["s-id"]||i.M.getAttribute("s-id"):"";if(l&&q.document){const r=n.M=q.document.createElement(n.S);n.W&&n.M.setAttribute("name",t),i.M.shadowRoot&&u&&u!==n.k?ae(i.M,"insertBefore")(r,ae(i.M,"children")[0]):ae(ae(s,"parentNode"),"insertBefore")(r,s),Se(c,e,t,s,n.k),s.remove(),"0"===n.P&&(l[n.R]=n.M)}else{const r=n.M,o=u&&u!==n.k&&i.M.shadowRoot;Se(c,e,t,s,o?u:n.k),function(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const e=e=>function(t){const n=[],s=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 i=this["s-cr"].parentElement;return(i.__childNodes?i.childNodes:(t=>{const e=[];for(let n=0;n<t.length;n++){const s=t[n]["s-nr"]||void 0;s&&s.isConnected&&e.push(s)}return e})(i.childNodes)).forEach((t=>{s===(t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0)(t)&&n.push(t)})),e?n.filter((t=>1===t.nodeType)):n}.bind(t);t.assignedElements=e(!0),t.assignedNodes=e(!1)}(s),o&&i.M.insertBefore(r,i.M.children[0])}r.push(n),o.push(n),i.j||(i.j=[]),i.j[n.R]=n}var Se=(t,e,n,s,i)=>{var r,o;let l=s.nextSibling;if(t[e]=t[e]||[],l&&!(null==(r=l.nodeValue)?void 0:r.startsWith("s.")))do{!l||(l.getAttribute&&l.getAttribute("slot")||l["s-sn"])!==n&&(""!==n||l["s-sn"]||l.getAttribute&&l.getAttribute("slot")||8!==l.nodeType&&3!==l.nodeType)||(l["s-sn"]=n,t[e].push({slot:s,node:l,hostId:i})),l=null==l?void 0:l.nextSibling}while(l&&!(null==(o=l.nodeValue)?void 0:o.startsWith("s.")))},Me=(t,e)=>{let n=t;do{n=n.nextSibling}while(n&&(n.nodeType!==e||!n.nodeValue));return n},ke=t=>{const e=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};ke("::slotted"),ke(":host"),ke(":host-context");var Ee,xe=(t,e)=>"string"==typeof t&&t.startsWith(z)?t=function(t){return"string"==typeof t&&t.startsWith(z)?ne.fromLocalValue(JSON.parse(atob(t.slice(11)))):t}(t):null==t||lt(t)?t:4&e?"false"!==t&&(""===t||!!t):1&e?t+"":t,Ne=t=>{var e;return null==(e=T(t))?void 0:e.$hostElement$},Pe=(t,e)=>{const n=Ne(t);return{emit:t=>Re(n,e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},Re=(t,e,n)=>{const s=J.ce(e,n);return t.dispatchEvent(s),s},We=(t,e,n,s,i,r,o)=>{if(n===s)return;let l=D(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,i=Ae(n);let r=Ae(s);if((t["s-si"]||t["s-sc"])&&o){const n=t["s-sc"]||t["s-si"];r.push(n),i.forEach((t=>{t.startsWith(n)&&r.push(t)})),r=[...new Set(r)].filter((t=>t)),e.add(...r)}else e.remove(...i.filter((t=>t&&!r.includes(t)))),e.add(...r.filter((t=>t&&!i.includes(t))))}else if("style"===e){for(const e in n)s&&null!=s[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in s)n&&s[e]===n[e]||(e.includes("-")?t.style.setProperty(e,s[e]):t.style[e]=s[e])}else if("key"===e);else if(l||"o"!==e[0]||"n"!==e[1]){const o=lt(s);if((l||o&&null!==s)&&!i)try{if(t.tagName.includes("-"))t[e]!==s&&(t[e]=s);else{const i=null==s?"":s;"list"===e?l=!1:null!=n&&t[e]==i||("function"==typeof t.__lookupSetter__(e)?t[e]=i:t.setAttribute(e,i))}}catch(t){}null==s||!1===s?!1===s&&""!==t.getAttribute(e)||t.removeAttribute(e):(!l||4&r||i)&&!o&&1===t.nodeType&&t.setAttribute(e,s=!0===s?"":s)}else if(e="-"===e[2]?e.slice(3):D(q,c)?c.slice(2):c[2]+e.slice(3),n||s){const i=e.endsWith(Le);e=e.replace(ze,""),n&&J.rel(t,e,n,i),s&&J.ael(t,e,s,i)}},Ce=/\s/,Ae=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(Ce):[]),Le="Capture",ze=RegExp(Le+"$"),Ie=(t,e,n,s)=>{const i=11===e.M.nodeType&&e.M.host?e.M.host:e.M,r=t&&t.m||{},o=e.m||{};for(const t of Te(Object.keys(r)))t in o||We(i,t,r[t],void 0,n,e.u,s);for(const t of Te(Object.keys(o)))We(i,t,r[t],o[t],n,e.u,s)};function Te(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var _e=!1,De=(t,e,n)=>{const s=e.j[n];let i,r,o=0;if(null!==s.$)i=s.M=q.document.createTextNode(s.$);else{if(_e||(_e="svg"===s.S),!q.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(i=s.M=q.document.createElementNS(_e?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s.S),_e&&"foreignObject"===s.S&&(_e=!1),Ie(null,s,_e),s.j){const e="template"===s.S?i.content:i;for(o=0;o<s.j.length;++o)r=De(t,s,o),r&&e.appendChild(r)}"svg"===s.S?_e=!1:"foreignObject"===i.tagName&&(_e=!0)}return i["s-hn"]=Ee,i},Ue=(t,e,n,s,i,r)=>{let o,l=t;for(l.shadowRoot&&l.tagName===Ee&&(l=l.shadowRoot),"template"===n.S&&(l=l.content);i<=r;++i)s[i]&&(o=De(null,n,i),o&&(s[i].M=o,Fe(l,o,e)))},Ge=(t,e,n)=>{for(let s=e;s<=n;++s){const e=t[s];if(e){const t=e.M;t&&t.remove()}}},Ve=(t,e,n=!1)=>t.S===e.S&&(n?(n&&!t.O&&e.O&&(t.O=e.O),!0):t.O===e.O),Be=(t,e,n=!1)=>{const s=e.M=t.M,i=t.j,r=e.j,o=e.S,l=e.$;null===l?(Ie(t,e,_e="svg"===o||"foreignObject"!==o&&_e,n),null!==i&&null!==r?((t,e,n,s,i=!1)=>{let r,o,l=0,c=0,u=0,f=0,a=e.length-1,h=e[0],p=e[a],d=s.length-1,v=s[0],$=s[d];const m="template"===n.S?t.content:t;for(;l<=a&&c<=d;)if(null==h)h=e[++l];else if(null==p)p=e[--a];else if(null==v)v=s[++c];else if(null==$)$=s[--d];else if(Ve(h,v,i))Be(h,v,i),h=e[++l],v=s[++c];else if(Ve(p,$,i))Be(p,$,i),p=e[--a],$=s[--d];else if(Ve(h,$,i))Be(h,$,i),Fe(m,h.M,p.M.nextSibling),h=e[++l],$=s[--d];else if(Ve(p,v,i))Be(p,v,i),Fe(m,p.M,h.M),p=e[--a],v=s[++c];else{for(u=-1,f=l;f<=a;++f)if(e[f]&&null!==e[f].O&&e[f].O===v.O){u=f;break}u>=0?(o=e[u],o.S!==v.S?r=De(e&&e[c],n,u):(Be(o,v,i),e[u]=void 0,r=o.M),v=s[++c]):(r=De(e&&e[c],n,c),v=s[++c]),r&&Fe(h.M.parentNode,r,h.M)}l>a?Ue(t,null==s[d+1]?null:s[d+1].M,n,s,c,d):c>d&&Ge(e,l,a)})(s,i,e,r,n):null!==r?(null!==t.$&&(s.textContent=""),Ue(s,null,e,r,0,r.length-1)):n||null===i?n&&null!==i&&null===r&&(e.j=i):Ge(i,0,i.length-1),_e&&"svg"===o&&(_e=!1)):t.$!==l&&(s.data=l)},Fe=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),Ze=(t,e)=>{if(e&&!t.C&&e["s-p"]){const n=e["s-p"].push(new Promise((s=>t.C=()=>{e["s-p"].splice(n-1,1),s()})))}},He=(t,e)=>{if(t.u|=16,4&t.u)return void(t.u|=512);Ze(t,t.A);const n=()=>qe(t,e);if(!e)return ot(n);queueMicrotask((()=>{n()}))},qe=(t,e)=>{const n=t.$hostElement$,s=t.l;if(!s)throw Error(`Can't render component <${n.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 i;return e?(t.L.length&&t.L.forEach((t=>t(n))),i=en(s,"componentWillLoad",void 0,n)):i=en(s,"componentWillUpdate",void 0,n),i=Je(i,(()=>en(s,"componentWillRender",void 0,n))),Je(i,(()=>Ke(t,s,e)))},Je=(t,e)=>Ye(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),Ye=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Ke=async(t,e,n)=>{var s;const i=t.$hostElement$,r=i["s-rc"];n&&(t=>{const e=t.i,n=t.$hostElement$,s=e.u,i=de(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&s&&(n["s-sc"]=i,n.classList.add(i+"-h"))})(t);Qe(t,e,i,n),r&&(r.map((t=>t())),i["s-rc"]=void 0);{const e=null!=(s=i["s-p"])?s:[],n=()=>Xe(t);0===e.length?n():(Promise.all(e).then(n),t.u|=4,e.length=0)}},Qe=(t,e,n,s)=>{try{e=e.render(),t.u&=-17,t.u|=2,((t,e,n=!1)=>{const s=t.$hostElement$,i=t.I||be(null,null),r=(t=>t&&t.S===ge)(e)?e:me(null,null,e);if(Ee=s.tagName,n&&r.m)for(const t of Object.keys(r.m))s.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(r.m[t]=s[t]);r.S=null,r.u|=4,t.I=r,r.M=i.M=s.shadowRoot||s,Be(i,r,n)})(t,e,s)}catch(e){U(e,t.$hostElement$)}return null},Xe=t=>{const e=t.$hostElement$,n=t.l,s=t.A;en(n,"componentDidRender",void 0,e),64&t.u?en(n,"componentDidUpdate",void 0,e):(t.u|=64,nn(e),en(n,"componentDidLoad",void 0,e),t.T(e),s||tn()),t.C&&(t.C(),t.C=void 0),512&t.u&&rt((()=>He(t,!1))),t.u&=-517},tn=()=>{var t;rt((()=>Re(q,"appload",{detail:{namespace:"authhero-widget"}}))),(null==(t=J._)?void 0:t.size)&&J._.clear()},en=(t,e,n,s)=>{if(t&&t[e])try{return t[e](n)}catch(t){U(t,s)}},nn=t=>t.classList.add("hydrated"),sn=(t,e,n,s)=>{const i=T(t);if(!i)return;if(!i)throw Error(`Couldn't find host element for "${s.v}" 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 r=i.$hostElement$,o=i.o.get(e),l=i.u,c=i.l;if(n=xe(n,s.t[e][0]),!(8&l&&void 0!==o||n===o||Number.isNaN(o)&&Number.isNaN(n))){if(i.o.set(e,n),s.D){const t=s.D[e];t&&t.map((t=>{try{const[[s,r]]=Object.entries(t);(128&l||1&r)&&(c?c[s](n,o,e):i.L.push((()=>{i.l[s](n,o,e)})))}catch(t){U(t,r)}}))}if(2==(18&l)){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(n,o,e))return;He(i,!1)}}},rn=(t,e,n)=>{var s,i;const r=t.prototype;{t.watchers&&!e.D&&(e.D=t.watchers),t.deserializers&&!e.U&&(e.U=t.deserializers),t.serializers&&!e.G&&(e.G=t.serializers);const o=Object.entries(null!=(s=e.t)?s:{});if(o.map((([t,[s]])=>{if(31&s||2&n&&32&s){const{get:i,set:o}=Object.getOwnPropertyDescriptor(r,t)||{};i&&(e.t[t][0]|=2048),o&&(e.t[t][0]|=4096),(1&n||!i)&&Object.defineProperty(r,t,{get(){{if(!(2048&e.t[t][0]))return((t,e)=>T(this).o.get(e))(0,t);const n=T(this),s=n?n.l:r;if(!s)return;return s[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(r,t,{set(i){const r=T(this);if(r){if(o)return void 0===(32&s?this[t]:r.$hostElement$[t])&&r.o.get(t)&&(i=r.o.get(t)),o.call(this,xe(i,s)),void sn(this,t,i=32&s?this[t]:r.$hostElement$[t],e);{if(!(1&n&&4096&e.t[t][0]))return sn(this,t,i,e),void(1&n&&!r.l&&r.L.push((()=>{4096&e.t[t][0]&&r.l[t]!==r.o.get(t)&&(r.l[t]=i)})));const o=()=>{const n=r.l[t];!r.o.get(t)&&n&&r.o.set(t,n),r.l[t]=xe(i,s),sn(this,t,r.l[t],e)};r.l?o():r.L.push((()=>{o()}))}}}})}})),1&n){const n=new Map;r.attributeChangedCallback=function(t,s,i){J.jmp((()=>{var l;const c=n.get(t),u=T(this);if(this.hasOwnProperty(c)&&(i=this[c],delete this[c]),r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==i)return;if(null==c){const n=null==u?void 0:u.u;if(u&&n&&!(8&n)&&i!==s){const r=u.l,o=null==(l=e.D)?void 0:l[t];null==o||o.forEach((e=>{const[[o,l]]=Object.entries(e);null!=r[o]&&(128&n||1&l)&&r[o].call(r,i,s,t)}))}return}const f=o.find((([t])=>t===c));f&&4&f[1][0]&&(i=null!==i&&"false"!==i);const a=Object.getOwnPropertyDescriptor(r,c);i==this[c]||a.get&&!a.set||(this[c]=i)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=e.D)?i:{}),...o.filter((([t,e])=>31&e[0])).map((([t,e])=>{const s=e[1]||t;return n.set(s,t),s}))]))}}return t},on=(t,e)=>{en(t,"connectedCallback",void 0,e)},ln=t=>{if(!(1&J.u)){const e=T(t);if(!e)return;const n=e.i,s=()=>{};if(1&e.u)(null==e?void 0:e.l)?on(e.l,t):(null==e?void 0:e.V)&&e.V.then((()=>on(e.l,t)));else{let s;if(e.u|=1,s=t.getAttribute(B),s){if(1&n.u){const e=de(t.shadowRoot,n);t.classList.remove(e+"-h",e+"-s")}((t,e,n,s)=>{var i,r,o,l;const c=t.shadowRoot,u=[],f=[],a=c?[]:null,h=be(e,null);h.M=t,!q.document||J._&&J._.size||ye(q.document.body,J._=new Map),t[B]=n,t.removeAttribute(B),s.I=we(h,u,[],a,t,t,n,f);let p=0;const d=u.length;let v;for(;p<d;p++){v=u[p];const n=v.k+"."+v.N,s=J._.get(n),r=v.M;if(c){if((null==(i=v.S)?void 0:(""+i).includes("-"))&&"slot-fb"!==v.S&&!v.M.shadowRoot){const e=T(v.M);if(e){const n=ve(e.i),s=q.document.querySelector(`style[sty-id="${n}"]`);s&&t.shadowRoot.append(s.cloneNode(!0))}}}else r["s-hn"]=e.toUpperCase(),"slot"===v.S&&(r["s-cr"]=t["s-cr"]);"slot"===v.S&&(v.W=v.M["s-sn"]||v.M.name||null,v.j?(v.u|=2,v.M.childNodes.length||v.j.forEach((t=>{v.M.appendChild(t.M)}))):v.u|=1),s&&s.isConnected&&(s.parentElement.shadowRoot&&""===s["s-en"]&&s.parentNode.insertBefore(r,s.nextSibling),s.parentNode.removeChild(s),c||(r["s-oo"]=parseInt(v.N))),s&&!s["s-id"]&&J._.delete(n)}const $=[],m=f.length;let b,g,w,y,j=0,O=0;for(;j<m;j++)if(b=f[j],b&&b.length)for(w=b.length,g=0;g<w;g++){if(y=b[g],$[y.hostId]||($[y.hostId]=J._.get(y.hostId)),!$[y.hostId])continue;const t=$[y.hostId];t.shadowRoot&&y.node.parentElement!==t&&t.insertBefore(y.node,null==(o=null==(r=b[g-1])?void 0:r.node)?void 0:o.nextSibling),t.shadowRoot&&c||(y.slot["s-cr"]||(y.slot["s-cr"]=t["s-cr"],y.slot["s-cr"]=!y.slot["s-cr"]&&t.shadowRoot?t:(t.__childNodes||t.childNodes)[0]),fe(y.node,y.slot,0,y.node["s-oo"]||O),(null==(l=y.node.parentElement)?void 0:l.shadowRoot)&&y.node.getAttribute&&y.node.getAttribute("slot")&&y.node.removeAttribute("slot")),O=(y.node["s-oo"]||O)+1}if(c){let e=0;const n=a.length;if(n){for(;e<n;e++){const t=a[e];t&&c.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))}))}}s.$hostElement$=t})(t,n.v,s,e)}{let n=t;for(;n=n.parentNode||n.host;)if(1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){Ze(e,e.A=n);break}}n.t&&Object.entries(n.t).map((([e,[n]])=>{if(31&n&&e in t&&t[e]!==Object.prototype[e]){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let s;if(!(32&e.u)){if(e.u|=32,n.B){const i=((t,e)=>{const n=t.v.replace(/-/g,"_"),s=t.B;if(!s)return;const i=G.get(s);return i?i[n]:import(`./${s}.entry.js`).then((t=>(G.set(s,t),t[n])),(t=>{U(t,e.$hostElement$)}))
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(i&&"then"in i){const t=()=>{};s=await i,t()}else s=i;if(!s)throw Error(`Constructor for "${n.v}#${e.F}" was not found`);s.isProxied||(n.D=s.watchers,n.G=s.serializers,n.U=s.deserializers,rn(s,n,2),s.isProxied=!0);const r=()=>{};e.u|=8;try{new s(e)}catch(e){U(e,t)}e.u&=-9,e.u|=128,r(),on(e.l,t)}else s=t.constructor,customElements.whenDefined(t.localName).then((()=>e.u|=128));if(s&&s.style){let t;"string"==typeof s.style&&(t=s.style);const e=ve(n);if(!V.has(e)){const s=()=>{};pe(e,t,!!(1&n.u)),s()}}}const i=e.A,r=()=>He(e,!0);i&&i["s-rc"]?i["s-rc"].push(r):r()})(t,e,n)}s()}},cn=(t,e)=>{en(t,"disconnectedCallback",void 0,e||t)},un=(t,e={})=>{var n;if(!q.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const s=[],i=e.exclude||[],r=q.customElements,o=q.document.head,l=o.querySelector("meta[charset]"),c=q.document.createElement("style"),u=[];let f,a=!0;Object.assign(J,e),J.h=new URL(e.resourcesUrl||"./",q.document.baseURI).href,J.u|=2,(()=>{if(!q.document)return;const t=q.document.querySelectorAll(`[${F}]`);let e=0;for(;e<t.length;e++)pe(t[e].getAttribute(F),$e(t[e].innerHTML),!0)})();let h=!1;if(t.map((t=>{t[1].map((e=>{var n,o,l;const c={u:e[0],v:e[1],t:e[2],Z:e[3]};4&c.u&&(h=!0),c.t=e[2],c.D=null!=(n=e[4])?n:{},c.G=null!=(o=e[5])?o:{},c.U=null!=(l=e[6])?l:{};const p=c.v,d=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,e)=>{const n={u:0,$hostElement$:t,i:e,o:new Map,H:new Map};n.V=new Promise((t=>n.T=t)),t["s-p"]=[],t["s-rc"]=[],n.L=[];const s=n;t.__stencil__getHostRef=()=>s})(t=this,c),1&c.u)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.v}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else ue.call(t,c)}connectedCallback(){T(this)&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),f&&(clearTimeout(f),f=null),a?u.push(this):J.jmp((()=>ln(this))))}disconnectedCallback(){J.jmp((()=>(async t=>{if(!(1&J.u)){const e=T(t);(null==e?void 0:e.l)?cn(e.l,t):(null==e?void 0:e.V)&&e.V.then((()=>cn(e.l,t)))}he.has(t)&&he.delete(t),t.shadowRoot&&he.has(t.shadowRoot)&&he.delete(t.shadowRoot)})(this))),J.raf((()=>{var t;const e=T(this);if(!e)return;const n=u.findIndex((t=>t===this));n>-1&&u.splice(n,1),(null==(t=null==e?void 0:e.I)?void 0:t.M)instanceof Node&&!e.I.M.isConnected&&delete e.I.M}))}componentOnReady(){var t;return null==(t=T(this))?void 0:t.V}};c.B=t[0],i.includes(p)||r.get(p)||(s.push(p),r.define(p,rn(d,c,1)))}))})),s.length>0&&(h&&(c.textContent+=H),c.textContent+=s.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",c.innerHTML.length)){c.setAttribute("data-styles","");const t=null!=(n=J.p)?n:ee(q.document);null!=t&&c.setAttribute("nonce",t),o.insertBefore(c,l?l.nextSibling:o.firstChild)}a=!1,u.length?u.map((t=>t.connectedCallback())):J.jmp((()=>f=setTimeout(tn,30)))},fn=t=>J.p=t;export{un as b,Pe as c,Ne as g,me as h,Y as p,_ as r,fn as s}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
const p = ["passkey", "webauthn-roaming", "webauthn-platform"];
|
|
2
|
-
async function w(s, t, r, n) {
|
|
3
|
-
if (!n)
|
|
4
|
-
return { show: !1 };
|
|
5
|
-
const { connections: i } = await s.env.data.connections.list(t, {
|
|
6
|
-
page: 0,
|
|
7
|
-
per_page: 100,
|
|
8
|
-
include_totals: !1
|
|
9
|
-
}), o = i.find((e) => e.name === n) ?? i.find(
|
|
10
|
-
(e) => e.name.toLowerCase() === n.toLowerCase()
|
|
11
|
-
);
|
|
12
|
-
if (!o?.options)
|
|
13
|
-
return { show: !1 };
|
|
14
|
-
if (!o.options.passkey_options?.progressive_enrollment_enabled)
|
|
15
|
-
return { show: !1 };
|
|
16
|
-
if (!o.options.authentication_methods?.passkey?.enabled)
|
|
17
|
-
return { show: !1 };
|
|
18
|
-
if ((await s.env.data.authenticationMethods.list(
|
|
19
|
-
t,
|
|
20
|
-
r
|
|
21
|
-
)).some(
|
|
22
|
-
(e) => e.confirmed && p.includes(e.type)
|
|
23
|
-
))
|
|
24
|
-
return { show: !1 };
|
|
25
|
-
const l = await s.env.data.users.get(t, r);
|
|
26
|
-
if (!l)
|
|
27
|
-
return { show: !1 };
|
|
28
|
-
const a = l.app_metadata || {};
|
|
29
|
-
if (a.passkey_enrollment_opted_out === !0)
|
|
30
|
-
return { show: !1 };
|
|
31
|
-
if (typeof a.passkey_enrollment_snoozed_at == "string") {
|
|
32
|
-
const e = new Date(a.passkey_enrollment_snoozed_at), f = new Date(
|
|
33
|
-
e.getTime() + 720 * 60 * 60 * 1e3
|
|
34
|
-
);
|
|
35
|
-
if (/* @__PURE__ */ new Date() < f)
|
|
36
|
-
return { show: !1 };
|
|
37
|
-
}
|
|
38
|
-
return { show: !0 };
|
|
39
|
-
}
|
|
40
|
-
export {
|
|
41
|
-
w as checkPasskeyNudgeRequired
|
|
42
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=["passkey","webauthn-roaming","webauthn-platform"],c=30;async function p(s,t,r,n){if(!n)return{show:!1};const{connections:i}=await s.env.data.connections.list(t,{page:0,per_page:100,include_totals:!1}),o=i.find(e=>e.name===n)??i.find(e=>e.name.toLowerCase()===n.toLowerCase());if(!o?.options)return{show:!1};if(!o.options.passkey_options?.progressive_enrollment_enabled)return{show:!1};if(!o.options.authentication_methods?.passkey?.enabled)return{show:!1};if((await s.env.data.authenticationMethods.list(t,r)).some(e=>e.confirmed&&f.includes(e.type)))return{show:!1};const l=await s.env.data.users.get(t,r);if(!l)return{show:!1};const a=l.app_metadata||{};if(a.passkey_enrollment_opted_out===!0)return{show:!1};if(typeof a.passkey_enrollment_snoozed_at=="string"){const e=new Date(a.passkey_enrollment_snoozed_at),u=new Date(e.getTime()+c*24*60*60*1e3);if(new Date<u)return{show:!1}}return{show:!0}}exports.checkPasskeyNudgeRequired=p;
|